tpl-token-2022-interface 3.2.3

Trezoa Program Library Token 2022 Interface
Documentation
//! The Mint that represents the native token

/// There are `10^9` lamports in one TRZ
pub const DECIMALS: u8 = 9;

// The Mint for native TRZ Token accounts
trezoa_pubkey::declare_id!("3TsRVzckpawLrMJ8aDEmSW2QEg8FxihrzmdEJ7oGxnuu");

/// Seed for the native mint's program-derived address
pub const PROGRAM_ADDRESS_SEEDS: &[&[u8]] = &["native-mint".as_bytes(), &[253]];

#[cfg(test)]
mod tests {
    use {super::*, trezoa_pubkey::Pubkey};

    #[test]
    fn expected_native_mint_id() {
        let native_mint_id =
            Pubkey::create_program_address(PROGRAM_ADDRESS_SEEDS, &crate::id()).unwrap();
        assert_eq!(id(), native_mint_id);
    }
}