Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts: Anchor clients for non anchor programs #799

Closed
armaniferrante opened this issue Sep 26, 2021 · 3 comments · Fixed by #1259
Closed

ts: Anchor clients for non anchor programs #799

armaniferrante opened this issue Sep 26, 2021 · 3 comments · Fixed by #1259
Assignees
Labels
help wanted Extra attention is needed ts

Comments

@armaniferrante
Copy link
Member

armaniferrante commented Sep 26, 2021

The coder/serialization interface should be pluggable so that one can simply create and generate an anchor client for non anchor programs--given an IDL for the non anchor program. The spl token program would be a great first test.

@armaniferrante armaniferrante added ts help wanted Extra attention is needed hacktoberfest labels Sep 26, 2021
@leofisG
Copy link
Contributor

leofisG commented Oct 11, 2021

This is interesting.

I wonder how will one go about specifying optional accounts in the IDL.

In SPL program, we have seen cases where the program performs different logic based on the number of accounts client pass into. Checking the IDL definition (here), it seems like all accounts are assumed to be required?

@Necmttn
Copy link
Contributor

Necmttn commented Jan 4, 2022

This is somehow related: #1176 with the little direction I can try to do it.

@armaniferrante
Copy link
Member Author

Going to do the first part of this. That is, transitioning Coder into a common interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed ts
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants