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

Dynamic account resolution #264

Open
joncinque opened this issue Oct 29, 2024 · 0 comments
Open

Dynamic account resolution #264

joncinque opened this issue Oct 29, 2024 · 0 comments
Labels
proposal Suggesting a change / new feature

Comments

@joncinque
Copy link

Problem

Codama IDLs can describe all sorts of program instructions, account types, errors, and they can describe how to generate program-derived addresses based on other accounts, but they don't specify how to derive an additional dynamic set of accounts.

For example, the SPL Transfer Hook Interface specifies how additional accounts required for a transfer are supposed to be fetched, based on account data. Other systems might have other methods of resolving additional accounts, ie. through instruction simulation.

Proposed solution

I don't have a specific idea unfortunately, but it would be good for the concept of "there may be additional dynamic accounts for this instruction" to be included in Codama IDLs.

After that, we could develop specs for account resolution schemes, which Codama could support.

@lorisleiva lorisleiva added the proposal Suggesting a change / new feature label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Suggesting a change / new feature
Projects
None yet
Development

No branches or pull requests

2 participants