FinalizedEpochInfoGettersV0

Trait FinalizedEpochInfoGettersV0 

Source
pub trait FinalizedEpochInfoGettersV0 {
    // Required methods
    fn first_block_time(&self) -> TimestampMillis;
    fn first_block_height(&self) -> BlockHeight;
    fn total_blocks_in_epoch(&self) -> BlockHeightInterval;
    fn first_core_block_height(&self) -> CoreBlockHeight;
    fn next_epoch_start_core_block_height(&self) -> CoreBlockHeight;
    fn total_processing_fees(&self) -> Credits;
    fn total_distributed_storage_fees(&self) -> Credits;
    fn total_created_storage_fees(&self) -> Credits;
    fn core_block_rewards(&self) -> Credits;
    fn block_proposers(&self) -> &BTreeMap<Identifier, u64>;
    fn fee_multiplier_permille(&self) -> u64;
    fn protocol_version(&self) -> u32;
}
Expand description

Trait for accessing fields of FinalizedEpochInfoV0.

Required Methods§

Source

fn first_block_time(&self) -> TimestampMillis

Returns the first block time.

Source

fn first_block_height(&self) -> BlockHeight

Returns the first block height.

Source

fn total_blocks_in_epoch(&self) -> BlockHeightInterval

Returns the total blocks in the epoch.

Source

fn first_core_block_height(&self) -> CoreBlockHeight

Returns the first core block height.

Source

fn next_epoch_start_core_block_height(&self) -> CoreBlockHeight

Returns the last core block height.

Source

fn total_processing_fees(&self) -> Credits

Returns the total processing fees.

Source

fn total_distributed_storage_fees(&self) -> Credits

Returns the total distributed storage fees.

Source

fn total_created_storage_fees(&self) -> Credits

Returns the total created storage fees.

Source

fn core_block_rewards(&self) -> Credits

Total rewards given from core subsidy

Source

fn block_proposers(&self) -> &BTreeMap<Identifier, u64>

Returns a reference to the block proposers map.

Source

fn fee_multiplier_permille(&self) -> u64

Returns the fee multiplier (permille).

Source

fn protocol_version(&self) -> u32

Returns the protocol version.

Implementors§