pub struct ExplorerVerifier;
Implementations§
source§impl ExplorerVerifier
impl ExplorerVerifier
pub fn assert_all_blocks( block: Block, explorer_block: &AllBlocksTipBlocksEdgesNode ) -> Result<(), VerifierError>
fn assert_all_blocks_transaction_param<P>( fragment_transaction: &Transaction<P>, explorer_transaction: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNode ) -> Result<(), VerifierError>
fn assert_all_block_config_param( config_params: &ConfigParams, explorer_config_param: &Vec<configParam> )
fn assert_all_blocks_pool_registration( fragment_cert: &Transaction<PoolRegistration>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnPoolRegistration )
fn assert_all_blocks_stake_delegation( fragment_cert: &Transaction<StakeDelegation>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnStakeDelegation ) -> Result<(), VerifierError>
fn assert_all_blocks_owner_delegation( fragment_cert: &Transaction<OwnerStakeDelegation>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnOwnerStakeDelegation ) -> Result<(), VerifierError>
fn assert_all_blocks_pool_retirement( fragment_cert: &Transaction<PoolRetirement>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnPoolRetirement )
fn assert_all_blocks_pool_update( fragment_cert: &Transaction<PoolUpdate>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnPoolUpdate )
fn assert_all_blocks_vote_plan( fragment_cert: &Transaction<VotePlan>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnVotePlan )
fn assert_all_blocks_vote_cast( fragment_cert: &Transaction<VoteCast>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnVoteCast )
fn assert_all_blocks_vote_tally( fragment_cert: &Transaction<VoteTally>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnVoteTally )
fn assert_all_blocks_update_proposal( fragment_cert: &Transaction<UpdateProposal>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnUpdateProposal )
fn assert_all_blocks_update_vote( fragment_cert: &Transaction<UpdateVote>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnUpdateVote )
source§impl ExplorerVerifier
impl ExplorerVerifier
pub fn assert_all_vote_plans( explorer_vote_plans: Vec<AllVotePlansTipAllVotePlansEdges>, vote_plan_statuses: Vec<VotePlanStatus>, proposal_votes: HashMap<String, HashMap<String, Vec<(Wallet, Choice)>>> )
source§impl ExplorerVerifier
impl ExplorerVerifier
pub fn assert_block_by_id( block: Block, explorer_block: BlockByIdBlock ) -> Result<(), VerifierError>
fn assert_block_transaction_param<P>( fragment_transaction: &Transaction<P>, explorer_transaction: &BlockByIdBlockTransactionsEdgesNode ) -> Result<(), VerifierError>
fn assert_block_config_param( config_params: &ConfigParams, explorer_config_param: &Vec<configParam> )
fn assert_block_pool_registration( fragment_cert: &Transaction<PoolRegistration>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnPoolRegistration )
fn assert_block_stake_delegation( fragment_cert: &Transaction<StakeDelegation>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnStakeDelegation ) -> Result<(), VerifierError>
fn assert_block_owner_delegation( fragment_cert: &Transaction<OwnerStakeDelegation>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnOwnerStakeDelegation ) -> Result<(), VerifierError>
fn assert_block_pool_retirement( fragment_cert: &Transaction<PoolRetirement>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnPoolRetirement )
fn assert_block_pool_update( fragment_cert: &Transaction<PoolUpdate>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnPoolUpdate )
fn assert_block_vote_plan( fragment_cert: &Transaction<VotePlan>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnVotePlan )
fn assert_block_vote_cast( fragment_cert: &Transaction<VoteCast>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnVoteCast )
fn assert_block_vote_tally( fragment_cert: &Transaction<VoteTally>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnVoteTally )
fn assert_block_update_proposal( fragment_cert: &Transaction<UpdateProposal>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnUpdateProposal )
fn assert_block_update_vote( fragment_cert: &Transaction<UpdateVote>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnUpdateVote )
source§impl ExplorerVerifier
impl ExplorerVerifier
pub fn assert_block_by_chain_length( block: Block, explorer_block: &BlocksByChainLengthBlocksByChainLength ) -> Result<(), VerifierError>
fn assert_block_by_chain_length_transaction_param<P>( fragment_transaction: &Transaction<P>, explorer_transaction: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNode ) -> Result<(), VerifierError>
fn assert_block_by_chain_length_pool_registration( fragment_cert: &Transaction<PoolRegistration>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnPoolRegistration )
fn assert_block_by_chain_length_stake_delegation( fragment_cert: &Transaction<StakeDelegation>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnStakeDelegation ) -> Result<(), VerifierError>
fn assert_block_by_chain_length_owner_delegation( fragment_cert: &Transaction<OwnerStakeDelegation>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnOwnerStakeDelegation ) -> Result<(), VerifierError>
fn assert_block_by_chain_length_pool_retirement( fragment_cert: &Transaction<PoolRetirement>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnPoolRetirement )
fn assert_block_by_chain_length_pool_update( fragment_cert: &Transaction<PoolUpdate>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnPoolUpdate )
fn assert_block_by_chain_length_vote_plan( fragment_cert: &Transaction<VotePlan>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnVotePlan )
fn assert_block_by_chain_length_vote_cast( fragment_cert: &Transaction<VoteCast>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnVoteCast )
fn assert_block_by_chain_length_vote_tally( fragment_cert: &Transaction<VoteTally>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnVoteTally )
fn assert_block_by_chain_length_update_proposal( fragment_cert: &Transaction<UpdateProposal>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnUpdateProposal )
fn assert_block_by_chain_length_update_vote( fragment_cert: &Transaction<UpdateVote>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnUpdateVote )
source§impl ExplorerVerifier
impl ExplorerVerifier
pub fn assert_last_block( block: Block, explorer_block: &LastBlockTipBlock ) -> Result<(), VerifierError>
fn assert_last_block_transaction_param<P>( fragment_transaction: &Transaction<P>, explorer_transaction: &LastBlockTipBlockTransactionsEdgesNode ) -> Result<(), VerifierError>
fn assert_last_block_pool_registration( fragment_cert: &Transaction<PoolRegistration>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnPoolRegistration )
fn assert_last_block_stake_delegation( fragment_cert: &Transaction<StakeDelegation>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnStakeDelegation ) -> Result<(), VerifierError>
fn assert_last_block_owner_delegation( fragment_cert: &Transaction<OwnerStakeDelegation>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnOwnerStakeDelegation ) -> Result<(), VerifierError>
fn assert_last_block_pool_retirement( fragment_cert: &Transaction<PoolRetirement>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnPoolRetirement )
fn assert_last_block_pool_update( fragment_cert: &Transaction<PoolUpdate>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnPoolUpdate )
fn assert_last_block_vote_plan( fragment_cert: &Transaction<VotePlan>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnVotePlan )
fn assert_last_block_vote_cast( fragment_cert: &Transaction<VoteCast>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnVoteCast )
fn assert_last_block_vote_tally( fragment_cert: &Transaction<VoteTally>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnVoteTally )
fn assert_last_block_update_proposal( fragment_cert: &Transaction<UpdateProposal>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnUpdateProposal )
fn assert_last_block_update_vote( fragment_cert: &Transaction<UpdateVote>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnUpdateVote )
source§impl ExplorerVerifier
impl ExplorerVerifier
pub fn assert_stake_pool( stake_pool: &StakePool, explorer_stake_pool: &StakePoolStakePool, retirement_time: Option<TimeOffsetSeconds> )
pub fn assert_all_stake_pools( stake_pools: Vec<StakePool>, explorer_stake_pools: AllStakePoolsTipAllStakePools )
source§impl ExplorerVerifier
impl ExplorerVerifier
pub fn assert_transaction_certificates( fragment: Fragment, explorer_transaction: TransactionByIdCertificatesTransaction ) -> Result<(), VerifierError>
fn assert_transaction_params<P>( fragment_transaction: Transaction<P>, explorer_transaction: TransactionByIdCertificatesTransaction ) -> Result<(), VerifierError>
fn assert_pool_registration( fragment_cert: Transaction<PoolRegistration>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnPoolRegistration )
fn assert_stake_delegation( fragment_cert: Transaction<StakeDelegation>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnStakeDelegation ) -> Result<(), VerifierError>
fn assert_owner_delegation( fragment_cert: Transaction<OwnerStakeDelegation>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnOwnerStakeDelegation ) -> Result<(), VerifierError>
fn assert_pool_retirement( fragment_cert: Transaction<PoolRetirement>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnPoolRetirement )
fn assert_pool_update( fragment_cert: Transaction<PoolUpdate>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnPoolUpdate )
fn assert_vote_plan( fragment_cert: Transaction<VotePlan>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnVotePlan )
fn assert_vote_cast( fragment_cert: Transaction<VoteCast>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnVoteCast )
fn assert_vote_tally( fragment_cert: Transaction<VoteTally>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnVoteTally )
fn assert_update_proposal( fragment_cert: Transaction<UpdateProposal>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnUpdateProposal )
fn assert_update_vote( fragment_cert: Transaction<UpdateVote>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnUpdateVote )
source§impl ExplorerVerifier
impl ExplorerVerifier
pub fn assert_transactions_address( fragment_statuses: HashMap<String, (&Fragment, &FragmentStatus)>, explorer_transactions: TransactionsByAddressTipTransactionsByAddress )
fn assert_transactions_address_certificate( explorer_transaction: &TransactionsByAddressTipTransactionsByAddressEdgesNode, fragment: &Fragment ) -> Result<(), VerifierError>
fn assert_transaction_address_params<P>( fragment_transaction: &Transaction<P>, explorer_transaction: &TransactionsByAddressTipTransactionsByAddressEdgesNode ) -> Result<(), VerifierError>
fn assert_address_pool_registration( fragment_cert: &Transaction<PoolRegistration>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnPoolRegistration )
fn assert_address_stake_delegation( fragment_cert: &Transaction<StakeDelegation>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnStakeDelegation ) -> Result<(), VerifierError>
fn assert_address_owner_delegation( fragment_cert: &Transaction<OwnerStakeDelegation>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnOwnerStakeDelegation ) -> Result<(), VerifierError>
fn assert_address_pool_retirement( fragment_cert: &Transaction<PoolRetirement>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnPoolRetirement )
fn assert_address_pool_update( fragment_cert: &Transaction<PoolUpdate>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnPoolUpdate )
fn assert_address_vote_plan( fragment_cert: &Transaction<VotePlan>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnVotePlan )
fn assert_address_vote_cast( fragment_cert: &Transaction<VoteCast>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnVoteCast )
fn assert_address_vote_tally( fragment_cert: &Transaction<VoteTally>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnVoteTally )
fn assert_address_update_proposal( fragment_cert: &Transaction<UpdateProposal>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnUpdateProposal )
fn assert_address_update_vote( fragment_cert: &Transaction<UpdateVote>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnUpdateVote )
source§impl ExplorerVerifier
impl ExplorerVerifier
pub fn assert_vote_plan_by_id( explorer_vote_plan: VotePlanByIdVotePlan, vote_plan_status: VotePlanStatus, proposal_votes: HashMap<String, Vec<(Wallet, Choice)>> )
source§impl ExplorerVerifier
impl ExplorerVerifier
pub fn assert_epoch_stability_depth(depth: u32, explorer_depth: i64)
pub fn assert_fees(fees: LinearFee, explorer_fees: SettingsSettingsFees)
pub fn assert_address(address: Address, explorer_address: AddressAddress)
fn decode_bech32_pk(bech32_public_key: &str) -> PublicKey<Ed25519>
pub fn decode_block(encoded_block: String) -> Block
Auto Trait Implementations§
impl RefUnwindSafe for ExplorerVerifier
impl Send for ExplorerVerifier
impl Sync for ExplorerVerifier
impl Unpin for ExplorerVerifier
impl UnwindSafe for ExplorerVerifier
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request