From d73fcbd2b31add0017c3a42187186f98d16667ee Mon Sep 17 00:00:00 2001 From: Sergio Chouhy Date: Sat, 22 Nov 2025 18:30:15 -0300 Subject: [PATCH] add docstrings --- nssa/core/src/program.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nssa/core/src/program.rs b/nssa/core/src/program.rs index dfa1c0f..a26a024 100644 --- a/nssa/core/src/program.rs +++ b/nssa/core/src/program.rs @@ -18,7 +18,9 @@ pub struct ProgramInput { #[derive(Serialize, Deserialize, Clone)] #[cfg_attr(any(feature = "host", test), derive(Debug, PartialEq, Eq))] pub struct ChainedCall { + /// The program ID of the program to execute pub program_id: ProgramId, + /// The instruction data to pass pub instruction_data: InstructionData, pub account_indices: Vec, } @@ -26,9 +28,13 @@ pub struct ChainedCall { #[derive(Serialize, Deserialize, Clone)] #[cfg_attr(any(feature = "host", test), derive(Debug, PartialEq, Eq))] pub struct ProgramOutput { + /// The instruction data the program received to produce this output pub instruction_data: InstructionData, + /// The account pre states the program received to produce this output pub pre_states: Vec, + /// The account post states produced with the given pre states and instruction data pub post_states: Vec, + /// The optional next call of a program pub chained_call: Option, }