mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-02 13:23:10 +00:00
add docstrings
This commit is contained in:
parent
47a7656ec4
commit
d73fcbd2b3
@ -18,7 +18,9 @@ pub struct ProgramInput<T> {
|
||||
#[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<usize>,
|
||||
}
|
||||
@ -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<AccountWithMetadata>,
|
||||
/// The account post states produced with the given pre states and instruction data
|
||||
pub post_states: Vec<Account>,
|
||||
/// The optional next call of a program
|
||||
pub chained_call: Option<ChainedCall>,
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user