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§
Sourcefn first_block_time(&self) -> TimestampMillis
fn first_block_time(&self) -> TimestampMillis
Returns the first block time.
Sourcefn first_block_height(&self) -> BlockHeight
fn first_block_height(&self) -> BlockHeight
Returns the first block height.
Sourcefn total_blocks_in_epoch(&self) -> BlockHeightInterval
fn total_blocks_in_epoch(&self) -> BlockHeightInterval
Returns the total blocks in the epoch.
Sourcefn first_core_block_height(&self) -> CoreBlockHeight
fn first_core_block_height(&self) -> CoreBlockHeight
Returns the first core block height.
Sourcefn next_epoch_start_core_block_height(&self) -> CoreBlockHeight
fn next_epoch_start_core_block_height(&self) -> CoreBlockHeight
Returns the last core block height.
Sourcefn total_processing_fees(&self) -> Credits
fn total_processing_fees(&self) -> Credits
Returns the total processing fees.
Sourcefn total_distributed_storage_fees(&self) -> Credits
fn total_distributed_storage_fees(&self) -> Credits
Returns the total distributed storage fees.
Sourcefn total_created_storage_fees(&self) -> Credits
fn total_created_storage_fees(&self) -> Credits
Returns the total created storage fees.
Sourcefn core_block_rewards(&self) -> Credits
fn core_block_rewards(&self) -> Credits
Total rewards given from core subsidy
Sourcefn block_proposers(&self) -> &BTreeMap<Identifier, u64>
fn block_proposers(&self) -> &BTreeMap<Identifier, u64>
Returns a reference to the block proposers map.
Sourcefn fee_multiplier_permille(&self) -> u64
fn fee_multiplier_permille(&self) -> u64
Returns the fee multiplier (permille).
Sourcefn protocol_version(&self) -> u32
fn protocol_version(&self) -> u32
Returns the protocol version.