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