We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ProgramNode
It would be useful to have visitors such as addAccountsVisitor, addInstructionsVisitor, addDefinedTypesVisitor, addErrorsVisitor, etc.
addAccountsVisitor
addInstructionsVisitor
addDefinedTypesVisitor
addErrorsVisitor
By default these visitors would add the provided nodes to the main program of the RootNode.
program
RootNode
// Example. codama.update( addDefinedTypesVisitor([ definedTypeNode({ name: 'slot', type: numberTypeNode('u64') }), definedTypeNode({ name: 'hash', type: publicKeyTypeNode() }) ]) );
However, we could also support an additional signature that would look for the correct ProgramNode using the provided program name.
// Example. codama.update( addDefinedTypesVisitor('someAdditionalProgram', [ definedTypeNode({ name: 'slot', type: numberTypeNode('u64') }), definedTypeNode({ name: 'hash', type: publicKeyTypeNode() }) ]) );
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It would be useful to have visitors such as
addAccountsVisitor
,addInstructionsVisitor
,addDefinedTypesVisitor
,addErrorsVisitor
, etc.By default these visitors would add the provided nodes to the main
program
of theRootNode
.However, we could also support an additional signature that would look for the correct
ProgramNode
using the provided program name.The text was updated successfully, but these errors were encountered: