anchor icon indicating copy to clipboard operation
anchor copied to clipboard

feat: rust client account resolvers

Open levicook opened this issue 1 year ago • 6 comments

for now, this is just me looking at what it would take to catch the rust client up with the typescript client's ability to derive accounts from an idl. if it goes well, i'll clean the description up & make it not a draft.

levicook avatar Feb 10 '24 20:02 levicook

@levicook is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Feb 10 '24 20:02 vercel[bot]

Supporting account resolution in Rust clients would be great, thanks for starting this!

However there is one problem — I'm working on a massive PR that is related to the IDL and account resolution which I'm planning to finish later this month. Would you be able to wait until that lands so that we can avoid running into a bunch of conflicts?

acheroncrypto avatar Feb 10 '24 22:02 acheroncrypto

Thanks for the heads up! I started this with an intention to get a feel for the concrete problem. No urgency on my end & it would be helpful to track your work -- do you have an open PR I can follow?

We can close the PR. I'll leave my branch open to keep experimenting. Totally fine for it to go stale & invalid. We'll start fresh after your work lands.

levicook avatar Feb 10 '24 23:02 levicook

One realization already is that we might be able to just generate better client code up front & skip network calls to retrieve idls that may or may not be published.

levicook avatar Feb 10 '24 23:02 levicook

No urgency on my end & it would be helpful to track your work -- do you have an open PR I can follow?

Not yet but I can let you know when I do.

acheroncrypto avatar Feb 11 '24 04:02 acheroncrypto

it would be helpful to track your work -- do you have an open PR I can follow?

Here is the PR: https://github.com/coral-xyz/anchor/pull/2824

acheroncrypto avatar Feb 25 '24 17:02 acheroncrypto