Add IDL publishing step - #143
Open
fedgiac wants to merge 1 commit into
Open
Conversation
kaze-cow
approved these changes
Sep 7, 2026
kaze-cow
left a comment
Contributor
There was a problem hiding this comment.
In the future this command almost certainly could go in the actual deploy script, but its not much extra at all to run it separately either.
See minor comments about locking the version
|
|
||
| ```sh | ||
| settlement_program_address="the IDL will be registered for the program at the address specified in this string" | ||
| npx @solana-program/program-metadata@latest write idl "$settlement_program_address" ./programs/settlement/idl/cow_settlement.json --keypair ./deployer-keypair.json |
Contributor
There was a problem hiding this comment.
minor for security:
Suggested change
| npx @solana-program/program-metadata@latest write idl "$settlement_program_address" ./programs/settlement/idl/cow_settlement.json --keypair ./deployer-keypair.json | |
| npx @solana-program/program-metadata@v0.9.3 write idl "$settlement_program_address" ./programs/settlement/idl/cow_settlement.json --keypair ./deployer-keypair.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the command used to publish the current IDL.
It was actually originally suggested by Solscan itself when there was no IDL.
It would be nicer to pin a version in some package.json, but for now this is good enough!
How to test
This was tested in a call and seems to be working.