mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-15 20:49:31 +00:00
fix: cargo fmt
This commit is contained in:
parent
7def0c4664
commit
702ef4a46f
@ -18,7 +18,8 @@ type Instruction = Vec<u8>;
|
|||||||
fn main() {
|
fn main() {
|
||||||
// Read inputs
|
// Read inputs
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: greeting,
|
instruction: greeting,
|
||||||
},
|
},
|
||||||
@ -50,5 +51,11 @@ fn main() {
|
|||||||
// with the NSSA program rules.
|
// with the NSSA program rules.
|
||||||
// WARNING: constructing a `ProgramOutput` has no effect on its own. `.write()` must be
|
// WARNING: constructing a `ProgramOutput` has no effect on its own. `.write()` must be
|
||||||
// called to commit the output.
|
// called to commit the output.
|
||||||
ProgramOutput::new(self_program_id, instruction_data, vec![pre_state], vec![post_state]).write();
|
ProgramOutput::new(
|
||||||
|
self_program_id,
|
||||||
|
instruction_data,
|
||||||
|
vec![pre_state],
|
||||||
|
vec![post_state],
|
||||||
|
)
|
||||||
|
.write();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,8 @@ type Instruction = Vec<u8>;
|
|||||||
fn main() {
|
fn main() {
|
||||||
// Read inputs
|
// Read inputs
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: greeting,
|
instruction: greeting,
|
||||||
},
|
},
|
||||||
@ -57,5 +58,11 @@ fn main() {
|
|||||||
// with the NSSA program rules.
|
// with the NSSA program rules.
|
||||||
// WARNING: constructing a `ProgramOutput` has no effect on its own. `.write()` must be
|
// WARNING: constructing a `ProgramOutput` has no effect on its own. `.write()` must be
|
||||||
// called to commit the output.
|
// called to commit the output.
|
||||||
ProgramOutput::new(self_program_id, instruction_data, vec![pre_state], vec![post_state]).write();
|
ProgramOutput::new(
|
||||||
|
self_program_id,
|
||||||
|
instruction_data,
|
||||||
|
vec![pre_state],
|
||||||
|
vec![post_state],
|
||||||
|
)
|
||||||
|
.write();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -65,7 +65,8 @@ fn move_data(from_pre: AccountWithMetadata, to_pre: AccountWithMetadata) -> Vec<
|
|||||||
fn main() {
|
fn main() {
|
||||||
// Read input accounts.
|
// Read input accounts.
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: (function_id, data),
|
instruction: (function_id, data),
|
||||||
},
|
},
|
||||||
|
|||||||
@ -26,7 +26,8 @@ fn hello_world_program_id() -> ProgramId {
|
|||||||
fn main() {
|
fn main() {
|
||||||
// Read inputs
|
// Read inputs
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: (),
|
instruction: (),
|
||||||
},
|
},
|
||||||
@ -55,7 +56,12 @@ fn main() {
|
|||||||
// Write the outputs.
|
// Write the outputs.
|
||||||
// WARNING: constructing a `ProgramOutput` has no effect on its own. `.write()` must be
|
// WARNING: constructing a `ProgramOutput` has no effect on its own. `.write()` must be
|
||||||
// called to commit the output.
|
// called to commit the output.
|
||||||
ProgramOutput::new(self_program_id, instruction_data, vec![pre_state], vec![post_state])
|
ProgramOutput::new(
|
||||||
.with_chained_calls(vec![chained_call])
|
self_program_id,
|
||||||
.write();
|
instruction_data,
|
||||||
|
vec![pre_state],
|
||||||
|
vec![post_state],
|
||||||
|
)
|
||||||
|
.with_chained_calls(vec![chained_call])
|
||||||
|
.write();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,7 +32,8 @@ fn hello_world_program_id() -> ProgramId {
|
|||||||
fn main() {
|
fn main() {
|
||||||
// Read inputs
|
// Read inputs
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: (),
|
instruction: (),
|
||||||
},
|
},
|
||||||
@ -68,7 +69,12 @@ fn main() {
|
|||||||
// Write the outputs.
|
// Write the outputs.
|
||||||
// WARNING: constructing a `ProgramOutput` has no effect on its own. `.write()` must be
|
// WARNING: constructing a `ProgramOutput` has no effect on its own. `.write()` must be
|
||||||
// called to commit the output.
|
// called to commit the output.
|
||||||
ProgramOutput::new(self_program_id, instruction_data, vec![pre_state], vec![post_state])
|
ProgramOutput::new(
|
||||||
.with_chained_calls(vec![chained_call])
|
self_program_id,
|
||||||
.write();
|
instruction_data,
|
||||||
|
vec![pre_state],
|
||||||
|
vec![post_state],
|
||||||
|
)
|
||||||
|
.with_chained_calls(vec![chained_call])
|
||||||
|
.write();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -636,24 +636,24 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn program_output_with_block_validity_window_range_from() {
|
fn program_output_with_block_validity_window_range_from() {
|
||||||
let output =
|
let output = ProgramOutput::new(DEFAULT_PROGRAM_ID, vec![], vec![], vec![])
|
||||||
ProgramOutput::new(DEFAULT_PROGRAM_ID, vec![], vec![], vec![]).with_block_validity_window(10_u64..);
|
.with_block_validity_window(10_u64..);
|
||||||
assert_eq!(output.block_validity_window.start(), Some(10));
|
assert_eq!(output.block_validity_window.start(), Some(10));
|
||||||
assert_eq!(output.block_validity_window.end(), None);
|
assert_eq!(output.block_validity_window.end(), None);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn program_output_with_block_validity_window_range_to() {
|
fn program_output_with_block_validity_window_range_to() {
|
||||||
let output =
|
let output = ProgramOutput::new(DEFAULT_PROGRAM_ID, vec![], vec![], vec![])
|
||||||
ProgramOutput::new(DEFAULT_PROGRAM_ID, vec![], vec![], vec![]).with_block_validity_window(..100_u64);
|
.with_block_validity_window(..100_u64);
|
||||||
assert_eq!(output.block_validity_window.start(), None);
|
assert_eq!(output.block_validity_window.start(), None);
|
||||||
assert_eq!(output.block_validity_window.end(), Some(100));
|
assert_eq!(output.block_validity_window.end(), Some(100));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn program_output_try_with_block_validity_window_empty_range_fails() {
|
fn program_output_try_with_block_validity_window_empty_range_fails() {
|
||||||
let result =
|
let result = ProgramOutput::new(DEFAULT_PROGRAM_ID, vec![], vec![], vec![])
|
||||||
ProgramOutput::new(DEFAULT_PROGRAM_ID, vec![], vec![], vec![]).try_with_block_validity_window(5_u64..5);
|
.try_with_block_validity_window(5_u64..5);
|
||||||
assert!(result.is_err());
|
assert!(result.is_err());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,8 @@ use nssa_core::program::{ProgramInput, ProgramOutput, read_nssa_inputs};
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction,
|
instruction,
|
||||||
},
|
},
|
||||||
@ -152,7 +153,12 @@ fn main() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ProgramOutput::new(self_program_id, instruction_words, pre_states_clone, post_states)
|
ProgramOutput::new(
|
||||||
.with_chained_calls(chained_calls)
|
self_program_id,
|
||||||
.write();
|
instruction_words,
|
||||||
|
pre_states_clone,
|
||||||
|
post_states,
|
||||||
|
)
|
||||||
|
.with_chained_calls(chained_calls)
|
||||||
|
.write();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,8 @@ use nssa_core::program::{ProgramInput, ProgramOutput, read_nssa_inputs};
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction,
|
instruction,
|
||||||
},
|
},
|
||||||
@ -56,7 +57,12 @@ fn main() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ProgramOutput::new(self_program_id, instruction_words, pre_states_clone, post_states)
|
ProgramOutput::new(
|
||||||
.with_chained_calls(chained_calls)
|
self_program_id,
|
||||||
.write();
|
instruction_words,
|
||||||
|
pre_states_clone,
|
||||||
|
post_states,
|
||||||
|
)
|
||||||
|
.with_chained_calls(chained_calls)
|
||||||
|
.write();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -66,7 +66,8 @@ fn transfer(
|
|||||||
fn main() {
|
fn main() {
|
||||||
// Read input accounts.
|
// Read input accounts.
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: balance_to_move,
|
instruction: balance_to_move,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -45,7 +45,8 @@ fn main() {
|
|||||||
// Read input accounts.
|
// Read input accounts.
|
||||||
// It is expected to receive only two accounts: [pinata_account, winner_account]
|
// It is expected to receive only two accounts: [pinata_account, winner_account]
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: solution,
|
instruction: solution,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -51,7 +51,8 @@ fn main() {
|
|||||||
// It is expected to receive three accounts: [pinata_definition, pinata_token_holding,
|
// It is expected to receive three accounts: [pinata_definition, pinata_token_holding,
|
||||||
// winner_token_holding]
|
// winner_token_holding]
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: solution,
|
instruction: solution,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -11,7 +11,8 @@ use token_program::core::Instruction;
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction,
|
instruction,
|
||||||
},
|
},
|
||||||
@ -81,5 +82,11 @@ fn main() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ProgramOutput::new(self_program_id, instruction_words, pre_states_clone, post_states).write();
|
ProgramOutput::new(
|
||||||
|
self_program_id,
|
||||||
|
instruction_words,
|
||||||
|
pre_states_clone,
|
||||||
|
post_states,
|
||||||
|
)
|
||||||
|
.write();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,8 @@ type Instruction = u128;
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: balance_to_burn,
|
instruction: balance_to_burn,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -12,7 +12,8 @@ type Instruction = (u128, ProgramId, u32, Option<PdaSeed>);
|
|||||||
/// program.
|
/// program.
|
||||||
fn main() {
|
fn main() {
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: (balance, auth_transfer_id, num_chain_calls, pda_seed),
|
instruction: (balance, auth_transfer_id, num_chain_calls, pda_seed),
|
||||||
},
|
},
|
||||||
|
|||||||
@ -5,7 +5,8 @@ type Instruction = (Option<Vec<u8>>, bool);
|
|||||||
/// A program that optionally modifies the account data and optionally claims it.
|
/// A program that optionally modifies the account data and optionally claims it.
|
||||||
fn main() {
|
fn main() {
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: (data_opt, should_claim),
|
instruction: (data_opt, should_claim),
|
||||||
},
|
},
|
||||||
@ -33,5 +34,11 @@ fn main() {
|
|||||||
AccountPostState::new(account_post)
|
AccountPostState::new(account_post)
|
||||||
};
|
};
|
||||||
|
|
||||||
ProgramOutput::new(self_program_id, instruction_words, vec![pre], vec![post_state]).write();
|
ProgramOutput::new(
|
||||||
|
self_program_id,
|
||||||
|
instruction_words,
|
||||||
|
vec![pre],
|
||||||
|
vec![post_state],
|
||||||
|
)
|
||||||
|
.write();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,8 @@ type Instruction = ();
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: (),
|
instruction: (),
|
||||||
},
|
},
|
||||||
@ -17,5 +18,11 @@ fn main() {
|
|||||||
|
|
||||||
let account_post = AccountPostState::new_claimed(pre.account.clone(), Claim::Authorized);
|
let account_post = AccountPostState::new_claimed(pre.account.clone(), Claim::Authorized);
|
||||||
|
|
||||||
ProgramOutput::new(self_program_id, instruction_words, vec![pre], vec![account_post]).write();
|
ProgramOutput::new(
|
||||||
|
self_program_id,
|
||||||
|
instruction_words,
|
||||||
|
vec![pre],
|
||||||
|
vec![account_post],
|
||||||
|
)
|
||||||
|
.write();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,8 @@ type Instruction = Vec<u8>;
|
|||||||
/// A program that modifies the account data by setting bytes sent in instruction.
|
/// A program that modifies the account data by setting bytes sent in instruction.
|
||||||
fn main() {
|
fn main() {
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: data,
|
instruction: data,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -6,7 +6,14 @@ use nssa_core::{
|
|||||||
type Instruction = ();
|
type Instruction = ();
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (ProgramInput { self_program_id, pre_states, .. }, instruction_words) = read_nssa_inputs::<Instruction>();
|
let (
|
||||||
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
|
pre_states,
|
||||||
|
..
|
||||||
|
},
|
||||||
|
instruction_words,
|
||||||
|
) = read_nssa_inputs::<Instruction>();
|
||||||
|
|
||||||
let Ok([pre]) = <[_; 1]>::try_from(pre_states) else {
|
let Ok([pre]) = <[_; 1]>::try_from(pre_states) else {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -13,7 +13,8 @@ type Instruction = (u128, ProgramId);
|
|||||||
/// but sets the `is_authorized` field of the first account to true.
|
/// but sets the `is_authorized` field of the first account to true.
|
||||||
fn main() {
|
fn main() {
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: (balance, transfer_program_id),
|
instruction: (balance, transfer_program_id),
|
||||||
},
|
},
|
||||||
|
|||||||
@ -3,7 +3,14 @@ use nssa_core::program::{AccountPostState, ProgramInput, ProgramOutput, read_nss
|
|||||||
type Instruction = ();
|
type Instruction = ();
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (ProgramInput { self_program_id, pre_states, .. }, instruction_words) = read_nssa_inputs::<Instruction>();
|
let (
|
||||||
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
|
pre_states,
|
||||||
|
..
|
||||||
|
},
|
||||||
|
instruction_words,
|
||||||
|
) = read_nssa_inputs::<Instruction>();
|
||||||
|
|
||||||
let Ok([pre]) = <[_; 1]>::try_from(pre_states) else {
|
let Ok([pre]) = <[_; 1]>::try_from(pre_states) else {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -3,7 +3,14 @@ use nssa_core::program::{AccountPostState, ProgramInput, ProgramOutput, read_nss
|
|||||||
type Instruction = ();
|
type Instruction = ();
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (ProgramInput { self_program_id, pre_states, .. }, instruction_words) = read_nssa_inputs::<Instruction>();
|
let (
|
||||||
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
|
pre_states,
|
||||||
|
..
|
||||||
|
},
|
||||||
|
instruction_words,
|
||||||
|
) = read_nssa_inputs::<Instruction>();
|
||||||
|
|
||||||
let Ok([pre1, pre2]) = <[_; 2]>::try_from(pre_states) else {
|
let Ok([pre1, pre2]) = <[_; 2]>::try_from(pre_states) else {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -63,7 +63,8 @@ fn transfer(
|
|||||||
fn main() {
|
fn main() {
|
||||||
// Read input accounts.
|
// Read input accounts.
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: balance_to_move,
|
instruction: balance_to_move,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -3,7 +3,14 @@ use nssa_core::program::{AccountPostState, ProgramInput, ProgramOutput, read_nss
|
|||||||
type Instruction = ();
|
type Instruction = ();
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (ProgramInput { self_program_id, pre_states, .. }, instruction_words) = read_nssa_inputs::<Instruction>();
|
let (
|
||||||
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
|
pre_states,
|
||||||
|
..
|
||||||
|
},
|
||||||
|
instruction_words,
|
||||||
|
) = read_nssa_inputs::<Instruction>();
|
||||||
|
|
||||||
let Ok([pre]) = <[_; 1]>::try_from(pre_states) else {
|
let Ok([pre]) = <[_; 1]>::try_from(pre_states) else {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -3,7 +3,14 @@ use nssa_core::program::{AccountPostState, ProgramInput, ProgramOutput, read_nss
|
|||||||
type Instruction = ();
|
type Instruction = ();
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (ProgramInput { self_program_id, pre_states, .. }, instruction_words) = read_nssa_inputs::<Instruction>();
|
let (
|
||||||
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
|
pre_states,
|
||||||
|
..
|
||||||
|
},
|
||||||
|
instruction_words,
|
||||||
|
) = read_nssa_inputs::<Instruction>();
|
||||||
|
|
||||||
let post_states = pre_states
|
let post_states = pre_states
|
||||||
.iter()
|
.iter()
|
||||||
|
|||||||
@ -3,7 +3,14 @@ use nssa_core::program::{AccountPostState, ProgramInput, ProgramOutput, read_nss
|
|||||||
type Instruction = ();
|
type Instruction = ();
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (ProgramInput { self_program_id, pre_states, .. }, instruction_words) = read_nssa_inputs::<Instruction>();
|
let (
|
||||||
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
|
pre_states,
|
||||||
|
..
|
||||||
|
},
|
||||||
|
instruction_words,
|
||||||
|
) = read_nssa_inputs::<Instruction>();
|
||||||
|
|
||||||
let Ok([pre]) = <[_; 1]>::try_from(pre_states) else {
|
let Ok([pre]) = <[_; 1]>::try_from(pre_states) else {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -4,7 +4,8 @@ type Instruction = u128;
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: balance,
|
instruction: balance,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -7,7 +7,8 @@ type Instruction = (BlockValidityWindow, TimestampValidityWindow);
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: (block_validity_window, timestamp_validity_window),
|
instruction: (block_validity_window, timestamp_validity_window),
|
||||||
},
|
},
|
||||||
|
|||||||
@ -15,7 +15,8 @@ type Instruction = (BlockValidityWindow, ProgramId, BlockValidityWindow);
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let (
|
let (
|
||||||
ProgramInput { self_program_id,
|
ProgramInput {
|
||||||
|
self_program_id,
|
||||||
pre_states,
|
pre_states,
|
||||||
instruction: (block_validity_window, chained_program_id, chained_block_validity_window),
|
instruction: (block_validity_window, chained_program_id, chained_block_validity_window),
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user