| 11 | |
| 12 | #[derive(Clone)] |
| 13 | pub 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 | } |
| 30 | impl Sealed for ChecksAndTransferState {} |
| 31 | impl IsInitialized for ChecksAndTransferState { |
| 32 | fn is_initialized(&self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected