abstract_testing::prelude

Trait AbstractMockQuerier

Source
pub trait AbstractMockQuerier {
    // Required methods
    fn account(self, account: &Account, account_id: AccountId) -> Self;
    fn assets(self, assets: Vec<(&AssetEntry, AssetInfo)>) -> Self;
    fn set_account_admin_call_to(self, account: &Account) -> Self;
    fn contracts(self, contracts: Vec<(&ContractEntry, Addr)>) -> Self;
    fn channels(self, channels: Vec<(&ChannelEntry, String)>) -> Self;
    fn addrs(&self) -> AbstractMockAddrs;
}

Required Methods§

Source

fn account(self, account: &Account, account_id: AccountId) -> Self

Mock the existence of an Account by setting the Account id for the account along with registering the account to registry.

Source

fn assets(self, assets: Vec<(&AssetEntry, AssetInfo)>) -> Self

Add mock assets into ANS

Source

fn set_account_admin_call_to(self, account: &Account) -> Self

Source

fn contracts(self, contracts: Vec<(&ContractEntry, Addr)>) -> Self

Source

fn channels(self, channels: Vec<(&ChannelEntry, String)>) -> Self

Source

fn addrs(&self) -> AbstractMockAddrs

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§