pub struct EpochExt { /* private fields */ }
Expand description
TODO(doc): @quake
Implementations§
source§impl EpochExt
impl EpochExt
sourcepub fn number(&self) -> EpochNumber
pub fn number(&self) -> EpochNumber
TODO(doc): @quake
sourcepub fn primary_reward(&self) -> Capacity
pub fn primary_reward(&self) -> Capacity
TODO(doc): @quake
sourcepub fn base_block_reward(&self) -> &Capacity
pub fn base_block_reward(&self) -> &Capacity
TODO(doc): @quake
sourcepub fn remainder_reward(&self) -> &Capacity
pub fn remainder_reward(&self) -> &Capacity
TODO(doc): @quake
sourcepub fn previous_epoch_hash_rate(&self) -> &U256
pub fn previous_epoch_hash_rate(&self) -> &U256
TODO(doc): @quake
sourcepub fn last_block_hash_in_previous_epoch(&self) -> Byte32
pub fn last_block_hash_in_previous_epoch(&self) -> Byte32
TODO(doc): @quake
sourcepub fn start_number(&self) -> BlockNumber
pub fn start_number(&self) -> BlockNumber
TODO(doc): @quake
sourcepub fn length(&self) -> BlockNumber
pub fn length(&self) -> BlockNumber
TODO(doc): @quake
sourcepub fn compact_target(&self) -> u32
pub fn compact_target(&self) -> u32
TODO(doc): @quake
sourcepub fn set_number(&mut self, number: BlockNumber)
pub fn set_number(&mut self, number: BlockNumber)
TODO(doc): @quake
sourcepub fn set_base_block_reward(&mut self, base_block_reward: Capacity)
pub fn set_base_block_reward(&mut self, base_block_reward: Capacity)
TODO(doc): @quake
sourcepub fn set_remainder_reward(&mut self, remainder_reward: Capacity)
pub fn set_remainder_reward(&mut self, remainder_reward: Capacity)
TODO(doc): @quake
sourcepub fn set_previous_epoch_hash_rate(&mut self, previous_epoch_hash_rate: U256)
pub fn set_previous_epoch_hash_rate(&mut self, previous_epoch_hash_rate: U256)
TODO(doc): @quake
sourcepub fn set_last_block_hash_in_previous_epoch(
&mut self,
last_block_hash_in_previous_epoch: Byte32
)
pub fn set_last_block_hash_in_previous_epoch( &mut self, last_block_hash_in_previous_epoch: Byte32 )
TODO(doc): @quake
sourcepub fn set_start_number(&mut self, start_number: BlockNumber)
pub fn set_start_number(&mut self, start_number: BlockNumber)
TODO(doc): @quake
sourcepub fn set_length(&mut self, length: BlockNumber)
pub fn set_length(&mut self, length: BlockNumber)
TODO(doc): @quake
sourcepub fn set_primary_reward(&mut self, primary_reward: Capacity)
pub fn set_primary_reward(&mut self, primary_reward: Capacity)
TODO(doc): @quake
sourcepub fn set_compact_target(&mut self, compact_target: u32)
pub fn set_compact_target(&mut self, compact_target: u32)
TODO(doc): @quake
sourcepub fn new_builder() -> EpochExtBuilder
pub fn new_builder() -> EpochExtBuilder
TODO(doc): @quake
sourcepub fn into_builder(self) -> EpochExtBuilder
pub fn into_builder(self) -> EpochExtBuilder
TODO(doc): @quake
sourcepub fn is_genesis(&self) -> bool
pub fn is_genesis(&self) -> bool
TODO(doc): @quake
sourcepub fn block_reward(&self, number: BlockNumber) -> CapacityResult<Capacity>
pub fn block_reward(&self, number: BlockNumber) -> CapacityResult<Capacity>
TODO(doc): @quake
sourcepub fn number_with_fraction(
&self,
number: BlockNumber
) -> EpochNumberWithFraction
pub fn number_with_fraction( &self, number: BlockNumber ) -> EpochNumberWithFraction
TODO(doc): @quake
sourcepub fn secondary_block_issuance(
&self,
block_number: BlockNumber,
secondary_epoch_issuance: Capacity
) -> CapacityResult<Capacity>
pub fn secondary_block_issuance( &self, block_number: BlockNumber, secondary_epoch_issuance: Capacity ) -> CapacityResult<Capacity>
TODO(doc): @quake
Trait Implementations§
source§impl PartialEq for EpochExt
impl PartialEq for EpochExt
source§impl<'r> Unpack<EpochExt> for EpochExtReader<'r>
impl<'r> Unpack<EpochExt> for EpochExtReader<'r>
impl Eq for EpochExt
impl StructuralPartialEq for EpochExt
Auto Trait Implementations§
impl RefUnwindSafe for EpochExt
impl Send for EpochExt
impl Sync for EpochExt
impl Unpin for EpochExt
impl UnwindSafe for EpochExt
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more