MCPcopy Create free account
hub / github.com/Lightprotocol/light-protocol-v1 / ChecksAndTransferState

Class ChecksAndTransferState

program/src/state.rs:13–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12#[derive(Clone)]
13pub struct ChecksAndTransferState {
14 is_initialized: bool,
15 pub found_root: u8,
16 pub account_type: u8,
17 pub merkle_tree_index: u8,
18 pub signing_address: Vec<u8>, // is relayer address
19 pub relayer_fee: Vec<u8>,
20 pub recipient: Vec<u8>,
21 pub ext_amount: Vec<u8>,
22 pub amount: Vec<u8>,
23 pub root_hash: Vec<u8>,
24 pub tx_integrity_hash: Vec<u8>, // is calculated on-chain from recipient, ext_amount, signing_address,
25 pub current_instruction_index: usize,
26 pub proof_a_b_c_leaves_and_nullifiers: Vec<u8>,
27 // set changed_constants to true to pack specified values other values will not be packed
28 pub changed_constants: [bool; 11],
29}
30impl Sealed for ChecksAndTransferState {}
31impl IsInitialized for ChecksAndTransferState {
32 fn is_initialized(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected