Struct ex3_block_builder::BlockBuilder
source · pub struct BlockBuilder { /* private fields */ }
Implementations§
source§impl BlockBuilder
impl BlockBuilder
sourcepub fn get_balance_vault_seq_id_by_wallet_id(
&self,
wallet_id: &WalletRegisterId
) -> BalanceVaultSeqId
pub fn get_balance_vault_seq_id_by_wallet_id( &self, wallet_id: &WalletRegisterId ) -> BalanceVaultSeqId
Get balance vault seq id by wallet id
source§impl BlockBuilder
impl BlockBuilder
sourcepub fn get_secret_vault_seq_id_by_wallet_id(
&self,
wallet_id: &WalletRegisterId
) -> SecretVaultSeqId
pub fn get_secret_vault_seq_id_by_wallet_id( &self, wallet_id: &WalletRegisterId ) -> SecretVaultSeqId
Get secret vault seq id by wallet id
source§impl BlockBuilder
impl BlockBuilder
sourcepub fn get_wallet_registry_seq_id_by_wallet_id(
&self,
wallet_id: &WalletRegisterId
) -> WalletRegistrySeqId
pub fn get_wallet_registry_seq_id_by_wallet_id( &self, wallet_id: &WalletRegisterId ) -> WalletRegistrySeqId
Get wallet registry seq id by wallet id
source§impl BlockBuilder
impl BlockBuilder
pub fn new( core_registry_canister_id: CanisterId, deposit_detector_canister_id: CanisterId, max_core_registry_update_tx_per_sharding_sub_report: usize, max_wallet_register_txs_per_sharding_sub_report: usize, max_secret_update_txs_per_sharding_sub_report: usize, max_balance_changed_records_per_sharding_sub_report: usize, max_withdrawal_txs_per_sharding_sub_report: usize, max_consumed_deposit_per_sharding_sub_report: usize, max_wallets_per_balance_vault_canister: usize, max_wallets_per_registry_canister: usize, max_wallets_per_secret_vault_canister: usize, start_wallet_id: usize ) -> Self
pub fn build( &self, pre_block_hash: BlockHash, block_height: BlockHeight, last_process_p_id: PackageId, snapshot_cursor_pre_height: SnapshotCursor, txs: Vec<Transaction>, rejected_tx_indexes: Vec<u32>, balances_changed: Vec<(WalletRegisterId, Vec<(AssetId, BalanceChanged)>)> ) -> Result<BlockWithShardingReports>
pub fn build_data_integrity_merkle_tree( &self, data_integrity: &Vec<MerkleNode> ) -> MerkleTree<Sha256>
Auto Trait Implementations§
impl Freeze for BlockBuilder
impl RefUnwindSafe for BlockBuilder
impl Send for BlockBuilder
impl Sync for BlockBuilder
impl Unpin for BlockBuilder
impl UnwindSafe for BlockBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more