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

lang/ts: assert address constants in the IDL similar to PDA derivation #1680

Closed
callensm opened this issue Mar 24, 2022 · 2 comments
Closed
Labels
idl related to the IDL, either program or client side ts

Comments

@callensm
Copy link
Member

Currently when the seeds flag is enabled in the Anchor.toml features block, PDA seeds are derived and stored in the generated IDL to allow the Typescript program to auto-populate the different account public keys.

This would also be useful when there is an address constraint on an account so that the statically asserted public keys could also be auto-populated.

(from @thesoftwarejedi)

@callensm callensm changed the title ts: assert address constants in the IDL similar to PDA derivation lang/ts: assert address constants in the IDL similar to PDA derivation Mar 24, 2022
@callensm
Copy link
Member Author

This would assume that the value of the address constraint is a constant that can be calculated or discovered.

@acheroncrypto acheroncrypto mentioned this issue Feb 25, 2024
@acheroncrypto acheroncrypto added ts idl related to the IDL, either program or client side labels Mar 10, 2024
@acheroncrypto
Copy link
Collaborator

Added in #2824.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idl related to the IDL, either program or client side ts
Projects
None yet
Development

No branches or pull requests

2 participants