Struct cw_multi_test::Router
source · pub struct Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> {
pub bank: Bank,
pub custom: Custom,
pub staking: Staking,
pub distribution: Distr,
pub ibc: Ibc,
pub gov: Gov,
pub stargate: Stargate,
/* private fields */
}Fields§
§bank: Bank§custom: Custom§staking: Staking§distribution: Distr§ibc: Ibc§gov: Gov§stargate: StargateImplementations§
source§impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT> Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT>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,
StargateT: Stargate,
impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT> Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT>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,
StargateT: Stargate,
Trait Implementations§
source§impl<Bank: Clone, Custom: Clone, Wasm: Clone, Staking: Clone, Distr: Clone, Ibc: Clone, Gov: Clone, Stargate: Clone> Clone for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>
impl<Bank: Clone, Custom: Clone, Wasm: Clone, Staking: Clone, Distr: Clone, Ibc: Clone, Gov: Clone, Stargate: Clone> Clone for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>
source§impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT> CosmosRouter for Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT>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,
StargateT: Stargate,
impl<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT> CosmosRouter for Router<BankT, CustomT, WasmT, StakingT, DistrT, IbcT, GovT, StargateT>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,
StargateT: Stargate,
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
type ExecC = <CustomT as Module>::ExecT
type QueryC = <CustomT as Module>::QueryT
fn execute( &self, api: &dyn Api, storage: &mut dyn Storage, block: &BlockInfo, sender: Addr, msg: CosmosMsg<Self::ExecC> ) -> AnyResult<AppResponse>
fn sudo( &self, api: &dyn Api, storage: &mut dyn Storage, block: &BlockInfo, msg: SudoMsg ) -> AnyResult<AppResponse>
Auto Trait Implementations§
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> Freeze for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> RefUnwindSafe for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>where
Bank: RefUnwindSafe,
Custom: RefUnwindSafe,
Distr: RefUnwindSafe,
Gov: RefUnwindSafe,
Ibc: RefUnwindSafe,
Staking: RefUnwindSafe,
Stargate: RefUnwindSafe,
Wasm: RefUnwindSafe,
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> Send for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> Sync for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> Unpin for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>
impl<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate> UnwindSafe for Router<Bank, Custom, Wasm, Staking, Distr, Ibc, Gov, Stargate>where
Bank: UnwindSafe,
Custom: UnwindSafe,
Distr: UnwindSafe,
Gov: UnwindSafe,
Ibc: UnwindSafe,
Staking: UnwindSafe,
Stargate: UnwindSafe,
Wasm: UnwindSafe,
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