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§
- A decoded instruction containing program ID, data, and associated accounts.
- Metadata associated with a specific instruction, including transaction-level details.
- A processing pipeline for instructions, using a decoder and processor.
- Represents a nested instruction with metadata, including potential inner instructions.
Traits§
- A trait for decoding Solana instructions into a structured type.
- An async trait for processing instructions within nested contexts.