pub struct ExplorerVerifier;

Implementations§

source§

impl ExplorerVerifier

source

pub fn assert_all_blocks( block: Block, explorer_block: &AllBlocksTipBlocksEdgesNode ) -> Result<(), VerifierError>

source

fn assert_all_blocks_transaction_param<P>( fragment_transaction: &Transaction<P>, explorer_transaction: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNode ) -> Result<(), VerifierError>

source

fn assert_all_block_config_param( config_params: &ConfigParams, explorer_config_param: &Vec<configParam> )

source

fn assert_all_blocks_pool_registration( fragment_cert: &Transaction<PoolRegistration>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnPoolRegistration )

source

fn assert_all_blocks_stake_delegation( fragment_cert: &Transaction<StakeDelegation>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnStakeDelegation ) -> Result<(), VerifierError>

source

fn assert_all_blocks_owner_delegation( fragment_cert: &Transaction<OwnerStakeDelegation>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnOwnerStakeDelegation ) -> Result<(), VerifierError>

source

fn assert_all_blocks_pool_retirement( fragment_cert: &Transaction<PoolRetirement>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnPoolRetirement )

source

fn assert_all_blocks_pool_update( fragment_cert: &Transaction<PoolUpdate>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnPoolUpdate )

source

fn assert_all_blocks_vote_plan( fragment_cert: &Transaction<VotePlan>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnVotePlan )

source

fn assert_all_blocks_vote_cast( fragment_cert: &Transaction<VoteCast>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnVoteCast )

source

fn assert_all_blocks_vote_tally( fragment_cert: &Transaction<VoteTally>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnVoteTally )

source

fn assert_all_blocks_update_proposal( fragment_cert: &Transaction<UpdateProposal>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnUpdateProposal )

source

fn assert_all_blocks_update_vote( fragment_cert: &Transaction<UpdateVote>, explorer_cert: &AllBlocksTipBlocksEdgesNodeTransactionsEdgesNodeCertificateOnUpdateVote )

source§

impl ExplorerVerifier

source

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

source

pub fn assert_block_by_id( block: Block, explorer_block: BlockByIdBlock ) -> Result<(), VerifierError>

source

fn assert_block_transaction_param<P>( fragment_transaction: &Transaction<P>, explorer_transaction: &BlockByIdBlockTransactionsEdgesNode ) -> Result<(), VerifierError>

source

fn assert_block_config_param( config_params: &ConfigParams, explorer_config_param: &Vec<configParam> )

source

fn assert_block_pool_registration( fragment_cert: &Transaction<PoolRegistration>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnPoolRegistration )

source

fn assert_block_stake_delegation( fragment_cert: &Transaction<StakeDelegation>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnStakeDelegation ) -> Result<(), VerifierError>

source

fn assert_block_owner_delegation( fragment_cert: &Transaction<OwnerStakeDelegation>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnOwnerStakeDelegation ) -> Result<(), VerifierError>

source

fn assert_block_pool_retirement( fragment_cert: &Transaction<PoolRetirement>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnPoolRetirement )

source

fn assert_block_pool_update( fragment_cert: &Transaction<PoolUpdate>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnPoolUpdate )

source

fn assert_block_vote_plan( fragment_cert: &Transaction<VotePlan>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnVotePlan )

source

fn assert_block_vote_cast( fragment_cert: &Transaction<VoteCast>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnVoteCast )

source

fn assert_block_vote_tally( fragment_cert: &Transaction<VoteTally>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnVoteTally )

source

fn assert_block_update_proposal( fragment_cert: &Transaction<UpdateProposal>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnUpdateProposal )

source

fn assert_block_update_vote( fragment_cert: &Transaction<UpdateVote>, explorer_cert: &BlockByIdBlockTransactionsEdgesNodeCertificateOnUpdateVote )

source§

impl ExplorerVerifier

source

pub fn assert_block_by_chain_length( block: Block, explorer_block: &BlocksByChainLengthBlocksByChainLength ) -> Result<(), VerifierError>

source

fn assert_block_by_chain_length_transaction_param<P>( fragment_transaction: &Transaction<P>, explorer_transaction: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNode ) -> Result<(), VerifierError>

source

fn assert_block_by_chain_length_pool_registration( fragment_cert: &Transaction<PoolRegistration>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnPoolRegistration )

source

fn assert_block_by_chain_length_stake_delegation( fragment_cert: &Transaction<StakeDelegation>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnStakeDelegation ) -> Result<(), VerifierError>

source

fn assert_block_by_chain_length_owner_delegation( fragment_cert: &Transaction<OwnerStakeDelegation>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnOwnerStakeDelegation ) -> Result<(), VerifierError>

source

fn assert_block_by_chain_length_pool_retirement( fragment_cert: &Transaction<PoolRetirement>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnPoolRetirement )

source

fn assert_block_by_chain_length_pool_update( fragment_cert: &Transaction<PoolUpdate>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnPoolUpdate )

source

fn assert_block_by_chain_length_vote_plan( fragment_cert: &Transaction<VotePlan>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnVotePlan )

source

fn assert_block_by_chain_length_vote_cast( fragment_cert: &Transaction<VoteCast>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnVoteCast )

source

fn assert_block_by_chain_length_vote_tally( fragment_cert: &Transaction<VoteTally>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnVoteTally )

source

fn assert_block_by_chain_length_update_proposal( fragment_cert: &Transaction<UpdateProposal>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnUpdateProposal )

source

fn assert_block_by_chain_length_update_vote( fragment_cert: &Transaction<UpdateVote>, explorer_cert: &BlocksByChainLengthBlocksByChainLengthTransactionsEdgesNodeCertificateOnUpdateVote )

source§

impl ExplorerVerifier

source

pub fn assert_last_block( block: Block, explorer_block: &LastBlockTipBlock ) -> Result<(), VerifierError>

source

fn assert_last_block_transaction_param<P>( fragment_transaction: &Transaction<P>, explorer_transaction: &LastBlockTipBlockTransactionsEdgesNode ) -> Result<(), VerifierError>

source

fn assert_last_block_pool_registration( fragment_cert: &Transaction<PoolRegistration>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnPoolRegistration )

source

fn assert_last_block_stake_delegation( fragment_cert: &Transaction<StakeDelegation>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnStakeDelegation ) -> Result<(), VerifierError>

source

fn assert_last_block_owner_delegation( fragment_cert: &Transaction<OwnerStakeDelegation>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnOwnerStakeDelegation ) -> Result<(), VerifierError>

source

fn assert_last_block_pool_retirement( fragment_cert: &Transaction<PoolRetirement>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnPoolRetirement )

source

fn assert_last_block_pool_update( fragment_cert: &Transaction<PoolUpdate>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnPoolUpdate )

source

fn assert_last_block_vote_plan( fragment_cert: &Transaction<VotePlan>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnVotePlan )

source

fn assert_last_block_vote_cast( fragment_cert: &Transaction<VoteCast>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnVoteCast )

source

fn assert_last_block_vote_tally( fragment_cert: &Transaction<VoteTally>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnVoteTally )

source

fn assert_last_block_update_proposal( fragment_cert: &Transaction<UpdateProposal>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnUpdateProposal )

source

fn assert_last_block_update_vote( fragment_cert: &Transaction<UpdateVote>, explorer_cert: &LastBlockTipBlockTransactionsEdgesNodeCertificateOnUpdateVote )

source§

impl ExplorerVerifier

source

pub fn assert_stake_pool( stake_pool: &StakePool, explorer_stake_pool: &StakePoolStakePool, retirement_time: Option<TimeOffsetSeconds> )

source

pub fn assert_all_stake_pools( stake_pools: Vec<StakePool>, explorer_stake_pools: AllStakePoolsTipAllStakePools )

source§

impl ExplorerVerifier

source

pub fn assert_transaction_certificates( fragment: Fragment, explorer_transaction: TransactionByIdCertificatesTransaction ) -> Result<(), VerifierError>

source

fn assert_transaction_params<P>( fragment_transaction: Transaction<P>, explorer_transaction: TransactionByIdCertificatesTransaction ) -> Result<(), VerifierError>

source

fn assert_pool_registration( fragment_cert: Transaction<PoolRegistration>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnPoolRegistration )

source

fn assert_stake_delegation( fragment_cert: Transaction<StakeDelegation>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnStakeDelegation ) -> Result<(), VerifierError>

source

fn assert_owner_delegation( fragment_cert: Transaction<OwnerStakeDelegation>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnOwnerStakeDelegation ) -> Result<(), VerifierError>

source

fn assert_pool_retirement( fragment_cert: Transaction<PoolRetirement>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnPoolRetirement )

source

fn assert_pool_update( fragment_cert: Transaction<PoolUpdate>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnPoolUpdate )

source

fn assert_vote_plan( fragment_cert: Transaction<VotePlan>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnVotePlan )

source

fn assert_vote_cast( fragment_cert: Transaction<VoteCast>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnVoteCast )

source

fn assert_vote_tally( fragment_cert: Transaction<VoteTally>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnVoteTally )

source

fn assert_update_proposal( fragment_cert: Transaction<UpdateProposal>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnUpdateProposal )

source

fn assert_update_vote( fragment_cert: Transaction<UpdateVote>, explorer_cert: TransactionByIdCertificatesTransactionCertificateOnUpdateVote )

source§

impl ExplorerVerifier

source

pub fn assert_transactions_address( fragment_statuses: HashMap<String, (&Fragment, &FragmentStatus)>, explorer_transactions: TransactionsByAddressTipTransactionsByAddress )

source

fn assert_transactions_address_certificate( explorer_transaction: &TransactionsByAddressTipTransactionsByAddressEdgesNode, fragment: &Fragment ) -> Result<(), VerifierError>

source

fn assert_transaction_address_params<P>( fragment_transaction: &Transaction<P>, explorer_transaction: &TransactionsByAddressTipTransactionsByAddressEdgesNode ) -> Result<(), VerifierError>

source

fn assert_address_pool_registration( fragment_cert: &Transaction<PoolRegistration>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnPoolRegistration )

source

fn assert_address_stake_delegation( fragment_cert: &Transaction<StakeDelegation>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnStakeDelegation ) -> Result<(), VerifierError>

source

fn assert_address_owner_delegation( fragment_cert: &Transaction<OwnerStakeDelegation>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnOwnerStakeDelegation ) -> Result<(), VerifierError>

source

fn assert_address_pool_retirement( fragment_cert: &Transaction<PoolRetirement>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnPoolRetirement )

source

fn assert_address_pool_update( fragment_cert: &Transaction<PoolUpdate>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnPoolUpdate )

source

fn assert_address_vote_plan( fragment_cert: &Transaction<VotePlan>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnVotePlan )

source

fn assert_address_vote_cast( fragment_cert: &Transaction<VoteCast>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnVoteCast )

source

fn assert_address_vote_tally( fragment_cert: &Transaction<VoteTally>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnVoteTally )

source

fn assert_address_update_proposal( fragment_cert: &Transaction<UpdateProposal>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnUpdateProposal )

source

fn assert_address_update_vote( fragment_cert: &Transaction<UpdateVote>, explorer_cert: &TransactionsByAddressTipTransactionsByAddressEdgesNodeCertificateOnUpdateVote )

source§

impl ExplorerVerifier

source

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

source

pub fn assert_epoch_stability_depth(depth: u32, explorer_depth: i64)

source

pub fn assert_fees(fees: LinearFee, explorer_fees: SettingsSettingsFees)

source

pub fn assert_address(address: Address, explorer_address: AddressAddress)

source

fn decode_bech32_pk(bech32_public_key: &str) -> PublicKey<Ed25519>

source

pub fn decode_block(encoded_block: String) -> Block

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more