InstructionLinkNodeThis node represents a reference to an existing InstructionNode in the Codama IDL.
| Attribute | Type | Description |
|---|---|---|
kind |
"instructionLinkNode" |
The node discriminator. |
name |
CamelCaseString |
The name of the InstructionNode we are referring to. |
| Attribute | Type | Description |
|---|---|---|
program |
ProgramLinkNode |
(Optional) The program associated with the linked instruction. Default to using the program we are currently under. |
instructionLinkNode(name, program?)Helper function that creates an InstructionLinkNode object from the name of the InstructionNode we are referring to. If the instruction is from another program, the program parameter must be provided as either a string or a ProgramLinkNode.
const node = instructionLinkNode('myInstruction');
const nodeFromAnotherProgram = instructionLinkNode('myInstruction', 'myOtherProgram');