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

Automatically fetch on-chain IDL #93

Open
acheroncrypto opened this issue Dec 6, 2022 · 2 comments
Open

Automatically fetch on-chain IDL #93

acheroncrypto opened this issue Dec 6, 2022 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@acheroncrypto
Copy link
Member

Playground already generates UI for interacting with programs that have Anchor IDL(either built inside playground or uploaded the file manually) but it doesn't fetch on-chain IDLs.

Playground should check the program id to see if there is an Anchor IDL on-chain. This not only would allow anyone to easily interact with all programs with on-chain IDL without manually uploading it to playground, but since playground also works with localhost, it would also make the local development experience smoother.

@acheroncrypto acheroncrypto added enhancement New feature or request good first issue Good for newcomers labels Dec 6, 2022
@dhruvsol
Copy link
Contributor

@acheroncrypto the fetchIDL function in anchor can be used?

@acheroncrypto
Copy link
Member Author

@acheroncrypto the fetchIDL function in anchor can be used?

Yes, that's the best way. Ideally we would only fetch the IDL once user has put a custom program id from Program Credentials. And we could also add a Fetch IDL button under the IDL setting for manual fetching.

acheroncrypto added a commit that referenced this issue Jan 29, 2023
Requested in #111, related with #93
acheroncrypto added a commit that referenced this issue Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants