Struct clarity_repl::repl::datastore::BurnDatastore
source · pub struct BurnDatastore { /* private fields */ }Implementations§
source§impl BurnDatastore
impl BurnDatastore
pub fn new(constants: StacksConstants) -> BurnDatastore
pub fn advance_chain_tip(&mut self, count: u32)
Trait Implementations§
source§impl BurnStateDB for BurnDatastore
impl BurnStateDB for BurnDatastore
source§fn get_burn_block_height(&self, sortition_id: &SortitionId) -> Option<u32>
fn get_burn_block_height(&self, sortition_id: &SortitionId) -> Option<u32>
Returns the burnchain block height for the sortition_id is associated with.
source§fn get_burn_start_height(&self) -> u32
fn get_burn_start_height(&self) -> u32
Returns the height of the burnchain when the Stacks chain started running.
source§fn get_burn_header_hash(
&self,
height: u32,
sortition_id: &SortitionId
) -> Option<BurnchainHeaderHash>
fn get_burn_header_hash( &self, height: u32, sortition_id: &SortitionId ) -> Option<BurnchainHeaderHash>
Returns the burnchain header hash for the given burn block height, as queried from the given SortitionId.
Returns Some if self.get_burn_start_height() <= height < self.get_burn_block_height(sorition_id), and None otherwise.
source§fn get_sortition_id_from_consensus_hash(
&self,
consensus_hash: &ConsensusHash
) -> Option<SortitionId>
fn get_sortition_id_from_consensus_hash( &self, consensus_hash: &ConsensusHash ) -> Option<SortitionId>
Lookup a SortitionId keyed to a ConsensusHash.
Returns None if no block found.
source§fn get_stacks_epoch(&self, height: u32) -> Option<StacksEpoch>
fn get_stacks_epoch(&self, height: u32) -> Option<StacksEpoch>
The epoch is defined as by a start and end height. This returns
the epoch enclosing height.
source§fn get_pox_payout_addrs(
&self,
height: u32,
sortition_id: &SortitionId
) -> Option<(Vec<TupleData>, u128)>
fn get_pox_payout_addrs( &self, height: u32, sortition_id: &SortitionId ) -> Option<(Vec<TupleData>, u128)>
Get the PoX payout addresses for a given burnchain block
fn get_v1_unlock_height(&self) -> u32
fn get_v2_unlock_height(&self) -> u32
fn get_pox_3_activation_height(&self) -> u32
fn get_pox_prepare_length(&self) -> u32
fn get_pox_reward_cycle_length(&self) -> u32
fn get_pox_rejection_fraction(&self) -> u64
fn get_stacks_epoch_by_epoch_id( &self, epoch_id: &StacksEpochId ) -> Option<StacksEpoch>
fn get_ast_rules(&self, height: u32) -> ASTRules
source§impl Clone for BurnDatastore
impl Clone for BurnDatastore
source§fn clone(&self) -> BurnDatastore
fn clone(&self) -> BurnDatastore
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for BurnDatastore
impl Debug for BurnDatastore
source§impl HeadersDB for BurnDatastore
impl HeadersDB for BurnDatastore
fn get_stacks_block_header_hash_for_block( &self, id_bhh: &StacksBlockId ) -> Option<BlockHeaderHash>
fn get_burn_header_hash_for_block( &self, id_bhh: &StacksBlockId ) -> Option<BurnchainHeaderHash>
fn get_consensus_hash_for_block( &self, id_bhh: &StacksBlockId ) -> Option<ConsensusHash>
fn get_vrf_seed_for_block(&self, id_bhh: &StacksBlockId) -> Option<VRFSeed>
fn get_burn_block_time_for_block(&self, id_bhh: &StacksBlockId) -> Option<u64>
fn get_burn_block_height_for_block(&self, id_bhh: &StacksBlockId) -> Option<u32>
fn get_miner_address(&self, id_bhh: &StacksBlockId) -> Option<StacksAddress>
fn get_burnchain_tokens_spent_for_block( &self, id_bhh: &StacksBlockId ) -> Option<u128>
fn get_burnchain_tokens_spent_for_winning_block( &self, id_bhh: &StacksBlockId ) -> Option<u128>
fn get_tokens_earned_for_block(&self, id_bhh: &StacksBlockId) -> Option<u128>
Auto Trait Implementations§
impl RefUnwindSafe for BurnDatastore
impl Send for BurnDatastore
impl Sync for BurnDatastore
impl Unpin for BurnDatastore
impl UnwindSafe for BurnDatastore
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