Struct cw_multi_test::Router
source · pub struct Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov> {
pub bank: Bank,
pub custom: Custom,
pub staking: Staking,
pub distribution: Distr,
pub ibc: Ibc,
pub gov: Gov,
/* private fields */
}
Fields§
§bank: Bank
§custom: Custom
§staking: Staking
§distribution: Distr
§ibc: Ibc
§gov: Gov
Implementations§
source§impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT> Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT>where
CustomT::ExecT: Clone + Debug + PartialEq + JsonSchema + DeserializeOwned + 'static,
CustomT::QueryT: CustomQuery + DeserializeOwned + 'static,
CustomT: Module,
WasmT: Wasm<CustomT::ExecT, CustomT::QueryT>,
BankT: Bank,
StakingT: Staking,
DistrT: Distribution,
IbcT: Ibc,
GovT: Gov,
impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT> Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT>where
CustomT::ExecT: Clone + Debug + PartialEq + JsonSchema + DeserializeOwned + 'static,
CustomT::QueryT: CustomQuery + DeserializeOwned + 'static,
CustomT: Module,
WasmT: Wasm<CustomT::ExecT, CustomT::QueryT>,
BankT: Bank,
StakingT: Staking,
DistrT: Distribution,
IbcT: Ibc,
GovT: Gov,
Trait Implementations§
source§impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT> CosmosRouter for Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT>where
CustomT::ExecT: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static,
CustomT::QueryT: CustomQuery + DeserializeOwned + 'static,
CustomT: Module,
WasmT: Wasm<CustomT::ExecT, CustomT::QueryT>,
BankT: Bank,
StakingT: Staking,
DistrT: Distribution,
IbcT: Ibc,
GovT: Gov,
impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT> CosmosRouter for Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT>where
CustomT::ExecT: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static,
CustomT::QueryT: CustomQuery + DeserializeOwned + 'static,
CustomT: Module,
WasmT: Wasm<CustomT::ExecT, CustomT::QueryT>,
BankT: Bank,
StakingT: Staking,
DistrT: Distribution,
IbcT: Ibc,
GovT: Gov,
source§fn query(
&self,
api: &dyn Api,
storage: &dyn Storage,
block: &BlockInfo,
request: QueryRequest<Self::QueryC>
) -> AnyResult<Binary>
fn query(
&self,
api: &dyn Api,
storage: &dyn Storage,
block: &BlockInfo,
request: QueryRequest<Self::QueryC>
) -> AnyResult<Binary>
this is used by RouterQuerier
to actual implement the Querier
interface.
you most likely want to use router.querier(storage, block).wrap()
to get a
QuerierWrapper to interact with