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§
Sourcefn account(self, account: &Account, account_id: AccountId) -> Self
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.
Sourcefn assets(self, assets: Vec<(&AssetEntry, AssetInfo)>) -> Self
fn assets(self, assets: Vec<(&AssetEntry, AssetInfo)>) -> Self
Add mock assets into ANS
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
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.