xrpl_std/core/
constants.rs

1use crate::core::types::account_id::AccountID;
2
3/// The 20 bytes of Account Zero (rrrrrrrrrrrrrrrrrrrrrhoLvTp)
4pub const ACCOUNT_ZERO: AccountID = AccountID([0u8; 20]);
5
6/// The 20 bytes of Account One (rrrrrrrrrrrrrrrrrrrrBZbvji)
7pub const ACCOUNT_ONE: AccountID = {
8    // Create a mutable array *only* during compile-time evaluation
9    let mut arr = [0x00; 20];
10    arr[19] = 0x01;
11    // The final value of the block is the initialized array
12    AccountID(arr)
13};
14
15/// Indivisible unit of XRP
16pub const ONE_DROP: u64 = 1;
17
18/// 100 billion XRP
19pub const MAX_XRP: u64 = 100_000_000_000u64;
20/// Maximum possible drops of XRP
21pub const MAX_DROPS: u64 = MAX_XRP * 1_000_000;