dpp/withdrawal/
mod.rs

1pub mod daily_withdrawal_limit;
2#[cfg(all(feature = "withdrawals-contract", feature = "system_contracts"))]
3mod document_try_into_asset_unlock_base_transaction_info;
4
5use bincode::{Decode, Encode};
6use serde_repr::{Deserialize_repr, Serialize_repr};
7
8#[repr(u8)]
9#[derive(
10    Serialize_repr, Deserialize_repr, PartialEq, Eq, Clone, Copy, Debug, Encode, Decode, Default,
11)]
12pub enum Pooling {
13    #[default]
14    Never = 0,
15    IfAvailable = 1,
16    Standard = 2,
17}
18
19/// Transaction index type
20pub type WithdrawalTransactionIndex = u64;
21
22/// Simple type alias for withdrawal transaction with it's index
23pub type WithdrawalTransactionIndexAndBytes = (WithdrawalTransactionIndex, Vec<u8>);