Module instruction

Source
Expand description

Provides structures and traits for decoding and processing instructions within transactions.

The module includes the following main components:

  • InstructionMetadata: Metadata associated with an instruction, capturing transaction context.
  • DecodedInstruction: Represents an instruction that has been decoded, with associated program ID, data, and accounts.
  • InstructionDecoder: A trait for decoding instructions into specific types.
  • InstructionPipe: A structure that processes instructions using a decoder and a processor.
  • InstructionPipes: An async trait for processing instructions within nested contexts.
  • NestedInstruction: Represents instructions with potential nested inner instructions, allowing for recursive processing.

These components enable the carbon-core framework to handle Solana transaction instructions efficiently, decoding them into structured types and facilitating hierarchical processing.

Structs§

DecodedInstruction
A decoded instruction containing program ID, data, and associated accounts.
InstructionMetadata
Metadata associated with a specific instruction, including transaction-level details.
InstructionPipe
A processing pipeline for instructions, using a decoder and processor.
NestedInstruction
Represents a nested instruction with metadata, including potential inner instructions.
NestedInstructions
UnsafeNestedBuilder

Constants§

MAX_INSTRUCTION_STACK_DEPTH

Traits§

InstructionDecoder
A trait for decoding Solana instructions into a structured type.
InstructionPipes
An async trait for processing instructions within nested contexts.

Type Aliases§

InstructionProcessorInputType
The input type for the instruction processor.
InstructionsWithMetadata