solana_sdk/
inner_instruction.rs

1use {
2    crate::instruction::CompiledInstruction,
3    serde::{Deserialize, Serialize},
4};
5
6#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
7#[serde(rename_all = "camelCase")]
8pub struct InnerInstruction {
9    pub instruction: CompiledInstruction,
10    /// Invocation stack height of this instruction. Instruction stack height
11    /// starts at 1 for transaction instructions.
12    pub stack_height: u8,
13}
14
15/// An ordered list of compiled instructions that were invoked during a
16/// transaction instruction
17pub type InnerInstructions = Vec<InnerInstruction>;
18
19/// A list of compiled instructions that were invoked during each instruction of
20/// a transaction
21pub type InnerInstructionsList = Vec<InnerInstructions>;