pub struct IbcSimpleModule;
Trait Implementations§
Source§impl Default for IbcSimpleModule
impl Default for IbcSimpleModule
Source§fn default() -> IbcSimpleModule
fn default() -> IbcSimpleModule
Returns the “default value” for a type. Read more
Source§impl Module for IbcSimpleModule
impl Module for IbcSimpleModule
Source§type QueryT = MockIbcQuery
type QueryT = MockIbcQuery
Type of queries processed by the module instance.
Source§type SudoT = IbcPacketRelayingMsg
type SudoT = IbcPacketRelayingMsg
Type of privileged messages used by the module instance.
Source§fn execute<ExecC, QueryC>(
&self,
api: &dyn Api,
storage: &mut dyn Storage,
router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
block: &BlockInfo,
sender: Addr,
msg: Self::ExecT,
) -> Result<AppResponse>
fn execute<ExecC, QueryC>( &self, api: &dyn Api, storage: &mut dyn Storage, router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>, block: &BlockInfo, sender: Addr, msg: Self::ExecT, ) -> Result<AppResponse>
Runs any ExecT message,
which can be called by any external actor or smart contract.
Source§fn sudo<ExecC, QueryC>(
&self,
api: &dyn Api,
storage: &mut dyn Storage,
router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
block: &BlockInfo,
msg: Self::SudoT,
) -> Result<AppResponse>
fn sudo<ExecC, QueryC>( &self, api: &dyn Api, storage: &mut dyn Storage, router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>, block: &BlockInfo, msg: Self::SudoT, ) -> Result<AppResponse>
Runs privileged actions, like minting tokens, or governance proposals.
This allows modules to have full access to these privileged actions,
that cannot be triggered by smart contracts. Read more
Source§fn query(
&self,
_api: &dyn Api,
storage: &dyn Storage,
_querier: &dyn Querier,
_block: &BlockInfo,
request: Self::QueryT,
) -> Result<Binary>
fn query( &self, _api: &dyn Api, storage: &dyn Storage, _querier: &dyn Querier, _block: &BlockInfo, request: Self::QueryT, ) -> Result<Binary>
Runs any QueryT message,
which can be called by any external actor or smart contract.
Source§fn ibc_channel_open<ExecC, QueryC>(
&self,
_api: &dyn Api,
_storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
_request: IbcChannelOpenMsg,
) -> AnyResult<IbcChannelOpenResponse>where
ExecC: CustomMsg + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
fn ibc_channel_open<ExecC, QueryC>(
&self,
_api: &dyn Api,
_storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
_request: IbcChannelOpenMsg,
) -> AnyResult<IbcChannelOpenResponse>where
ExecC: CustomMsg + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
Executes the contract ibc_channel_open endpoint
Source§fn ibc_channel_connect<ExecC, QueryC>(
&self,
_api: &dyn Api,
_storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
_request: IbcChannelConnectMsg,
) -> AnyResult<AppIbcBasicResponse>where
ExecC: CustomMsg + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
fn ibc_channel_connect<ExecC, QueryC>(
&self,
_api: &dyn Api,
_storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
_request: IbcChannelConnectMsg,
) -> AnyResult<AppIbcBasicResponse>where
ExecC: CustomMsg + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
Executes the contract ibc_channel_connect endpoint
Source§fn ibc_channel_close<ExecC, QueryC>(
&self,
_api: &dyn Api,
_storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
_request: IbcChannelCloseMsg,
) -> AnyResult<AppIbcBasicResponse>where
ExecC: CustomMsg + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
fn ibc_channel_close<ExecC, QueryC>(
&self,
_api: &dyn Api,
_storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
_request: IbcChannelCloseMsg,
) -> AnyResult<AppIbcBasicResponse>where
ExecC: CustomMsg + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
Executes the contract ibc_channel_close endpoints
Source§fn ibc_packet_receive<ExecC, QueryC>(
&self,
_api: &dyn Api,
_storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
_request: IbcPacketReceiveMsg,
) -> AnyResult<AppIbcReceiveResponse>where
ExecC: CustomMsg + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
fn ibc_packet_receive<ExecC, QueryC>(
&self,
_api: &dyn Api,
_storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
_request: IbcPacketReceiveMsg,
) -> AnyResult<AppIbcReceiveResponse>where
ExecC: CustomMsg + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
Executes the contract ibc_packet_receive endpoint
Source§fn ibc_packet_acknowledge<ExecC, QueryC>(
&self,
_api: &dyn Api,
_storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
_request: IbcPacketAckMsg,
) -> AnyResult<AppIbcBasicResponse>where
ExecC: CustomMsg + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
fn ibc_packet_acknowledge<ExecC, QueryC>(
&self,
_api: &dyn Api,
_storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
_request: IbcPacketAckMsg,
) -> AnyResult<AppIbcBasicResponse>where
ExecC: CustomMsg + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
Executes the contract ibc_packet_acknowledge endpoint
Source§fn ibc_packet_timeout<ExecC, QueryC>(
&self,
_api: &dyn Api,
_storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
_request: IbcPacketTimeoutMsg,
) -> AnyResult<AppIbcBasicResponse>where
ExecC: CustomMsg + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
fn ibc_packet_timeout<ExecC, QueryC>(
&self,
_api: &dyn Api,
_storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
_request: IbcPacketTimeoutMsg,
) -> AnyResult<AppIbcBasicResponse>where
ExecC: CustomMsg + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
Executes the contract ibc_packet_timeout endpoint
impl Ibc for IbcSimpleModule
Auto Trait Implementations§
impl Freeze for IbcSimpleModule
impl RefUnwindSafe for IbcSimpleModule
impl Send for IbcSimpleModule
impl Sync for IbcSimpleModule
impl Unpin for IbcSimpleModule
impl UnwindSafe for IbcSimpleModule
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more