[][src]Struct eosio_system::EosioGlobalState

pub struct EosioGlobalState {
    pub blockchain_parameters: BlockchainParameters,
    pub max_ram_size: u64,
    pub total_ram_bytes_reserved: u64,
    pub total_ram_stake: i64,
    pub last_producer_schedule_update: BlockTimestamp,
    pub last_pervote_bucket_fill: TimePoint,
    pub pervote_bucket: i64,
    pub perblock_bucket: i64,
    pub total_unpaid_blocks: u32,
    pub total_activated_stake: i64,
    pub thresh_activated_stake_time: TimePoint,
    pub last_producer_schedule_size: u16,
    pub total_producer_vote_weight: f64,
    pub last_name_close: BlockTimestamp,
}

Defines new global state parameters. https://github.com/EOSIO/eosio.contracts/blob/v1.9.0-rc3/contracts/eosio.system/include/eosio.system/eosio.system.hpp#L120-L145

Fields

blockchain_parameters: BlockchainParametersmax_ram_size: u64total_ram_bytes_reserved: u64total_ram_stake: i64last_producer_schedule_update: BlockTimestamplast_pervote_bucket_fill: TimePointpervote_bucket: i64perblock_bucket: i64total_unpaid_blocks: u32

all blocks which have been produced but not paid

total_activated_stake: i64thresh_activated_stake_time: TimePointlast_producer_schedule_size: u16total_producer_vote_weight: f64

the sum of all producer votes

last_name_close: BlockTimestamp

Methods

impl EosioGlobalState[src]

pub fn singleton<C, S>(code: C, scope: S) -> SingletonIndex<Self> where
    C: Into<AccountName>,
    S: Into<ScopeName>, 
[src]

Trait Implementations

impl Default for EosioGlobalState[src]

impl NumBytes for EosioGlobalState[src]

impl Read for EosioGlobalState[src]

impl Table for EosioGlobalState[src]

type Row = Self

TODO docs

impl Write for EosioGlobalState[src]

Auto Trait Implementations

impl RefUnwindSafe for EosioGlobalState

impl Send for EosioGlobalState

impl Sync for EosioGlobalState

impl Unpin for EosioGlobalState

impl UnwindSafe for EosioGlobalState

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.