pub trait GlobalParamKey {
    const ID: usize;
    const KEY: &'static [u8];
    const SPACE: Space = Space::Native;
    const ADDRESS: Address = STORAGE_INTEREST_STAKING_CONTRACT_ADDRESS;
    const STORAGE_KEY: StorageKeyWithSpace<'static> = _;

    // Provided methods
    fn init_vm_value() -> U256 { ... }
    fn from_vm_value(val: U256) -> U256 { ... }
    fn into_vm_value(val: U256) -> U256 { ... }
}

Required Associated Constants§

source

const ID: usize

source

const KEY: &'static [u8]

Provided Associated Constants§

source

const SPACE: Space = Space::Native

source

const ADDRESS: Address = STORAGE_INTEREST_STAKING_CONTRACT_ADDRESS

source

const STORAGE_KEY: StorageKeyWithSpace<'static> = _

Provided Methods§

source

fn init_vm_value() -> U256

How to initialize such a variable in the executor

source

fn from_vm_value(val: U256) -> U256

How to convert such a variable from the executor representing to the db representing

source

fn into_vm_value(val: U256) -> U256

How to convert such a variable from the db representing to the executor representing

Object Safety§

This trait is not object safe.

Implementors§

source§

impl GlobalParamKey for AccumulateInterestRate

source§

const ID: usize = 1usize

source§

const KEY: &'static [u8] = b"accumulate_interest_rate"

source§

impl GlobalParamKey for BaseFeeProp

source§

const ID: usize = 13usize

source§

const KEY: &'static [u8] = b"base_fee_prop"

source§

impl GlobalParamKey for ConvertedStoragePoints

source§

const ID: usize = 7usize

source§

const KEY: &'static [u8] = b"converted_storage_points_key"

source§

impl GlobalParamKey for DistributablePoSInterest

source§

const ID: usize = 9usize

source§

const KEY: &'static [u8] = b"distributable_pos_interest"

source§

impl GlobalParamKey for InterestRate

source§

const ID: usize = 0usize

source§

const KEY: &'static [u8] = b"interest_rate"

source§

impl GlobalParamKey for LastDistributeBlock

source§

const ID: usize = 10usize

source§

const KEY: &'static [u8] = b"last_distribute_block"

source§

impl GlobalParamKey for PowBaseReward

source§

const ADDRESS: Address = PARAMS_CONTROL_CONTRACT_ADDRESS

source§

const ID: usize = 11usize

source§

const KEY: &'static [u8] = b"pow_base_reward"

source§

impl GlobalParamKey for TotalBurnt1559

source§

const ID: usize = 12usize

source§

const KEY: &'static [u8] = b"total_burnt_tokens_by_cip1559"

source§

impl GlobalParamKey for TotalEvmToken

source§

const ID: usize = 5usize

source§

const KEY: &'static [u8] = b"total_evm_tokens"

source§

impl GlobalParamKey for TotalIssued

source§

const ID: usize = 2usize

source§

const KEY: &'static [u8] = b"total_issued_tokens"

source§

impl GlobalParamKey for TotalPosStaking

source§

const ID: usize = 8usize

source§

const KEY: &'static [u8] = b"total_pos_staking_tokens"

source§

impl GlobalParamKey for TotalStaking

source§

const ID: usize = 3usize

source§

const KEY: &'static [u8] = b"total_staking_tokens"

source§

impl GlobalParamKey for TotalStorage

source§

const ID: usize = 4usize

source§

const KEY: &'static [u8] = b"total_storage_tokens"

source§

impl GlobalParamKey for UsedStoragePoints

source§

const ID: usize = 6usize

source§

const KEY: &'static [u8] = b"used_storage_points"