Struct abstract_adapter::state::AdapterContract
source · pub struct AdapterContract<Error: ContractError, CustomInitMsg: 'static, CustomExecMsg: 'static, CustomQueryMsg: 'static, Receive: 'static = Empty, SudoMsg: 'static = Empty>where
Self: Handler,{
pub authorized_addresses: Map<'static, Addr, Vec<Addr>>,
pub target_account: Option<AccountBase>,
/* private fields */
}
Expand description
The state variables for our AdapterContract.
Fields§
Map ProxyAddr -> AuthorizedAddrs
target_account: Option<AccountBase>
The Account on which commands are executed. Set each time in the abstract_std::adapter::ExecuteMsg::Base
handler.
Implementations§
source§impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
Constructor
pub const fn new( name: &'static str, version: &'static str, metadata: Option<&'static str> ) -> Self
pub fn version(&self) -> &'static str
pub fn state(&self, store: &dyn Storage) -> StdResult<AdapterState>
sourcepub fn target(&self) -> Result<&Addr, AdapterError>
pub fn target(&self) -> Result<&Addr, AdapterError>
Return the address of the proxy for the Account associated with this Adapter.
Set each time in the abstract_std::adapter::ExecuteMsg::Base
handler.
sourcepub const fn with_dependencies(
self,
dependencies: &'static [StaticDependency]
) -> Self
pub const fn with_dependencies( self, dependencies: &'static [StaticDependency] ) -> Self
add dependencies to the contract
pub const fn with_instantiate( self, instantiate_handler: InstantiateHandlerFn<Self, CustomInitMsg, Error> ) -> Self
pub const fn with_execute( self, execute_handler: ExecuteHandlerFn<Self, CustomExecMsg, Error> ) -> Self
pub const fn with_query( self, query_handler: QueryHandlerFn<Self, CustomQueryMsg, Error> ) -> Self
pub const fn with_replies( self, reply_handlers: &'static [(u64, ReplyHandlerFn<Self, Error>)] ) -> Self
pub const fn with_sudo( self, sudo_handler: SudoHandlerFn<Self, SudoMsg, Error> ) -> Self
pub const fn with_receive( self, receive_handler: ReceiveHandlerFn<Self, ReceiveMsg, Error> ) -> Self
sourcepub const fn with_ibc_callbacks(
self,
callbacks: &'static [(&'static str, IbcCallbackHandlerFn<Self, Error>)]
) -> Self
pub const fn with_ibc_callbacks( self, callbacks: &'static [(&'static str, IbcCallbackHandlerFn<Self, Error>)] ) -> Self
add IBC callback handler to contract
sourcepub const fn with_module_ibc(
self,
module_handler: ModuleIbcHandlerFn<Self, Error>
) -> Self
pub const fn with_module_ibc( self, module_handler: ModuleIbcHandlerFn<Self, Error> ) -> Self
add Module IBC to contract
Trait Implementations§
source§impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> AbstractNameService for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> AbstractNameService for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
source§fn name_service<'a>(
&'a self,
deps: Deps<'a>
) -> AbstractNameServiceClient<'a, Self>
fn name_service<'a>( &'a self, deps: Deps<'a> ) -> AbstractNameServiceClient<'a, Self>
Construct the name service client.
source§impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> AbstractRegistryAccess for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> AbstractRegistryAccess for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
Get the version control contract
source§fn abstract_registry(
&self,
deps: Deps<'_>
) -> AbstractSdkResult<VersionControlContract>
fn abstract_registry( &self, deps: Deps<'_> ) -> AbstractSdkResult<VersionControlContract>
Get the address of the registry.
source§impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> AccountIdentification for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> AccountIdentification for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
Retrieve identifying information about the calling Account
source§fn proxy_address(&self, _deps: Deps<'_>) -> AbstractSdkResult<Addr>
fn proxy_address(&self, _deps: Deps<'_>) -> AbstractSdkResult<Addr>
Get the proxy address for the current account.
source§fn manager_address(&self, _deps: Deps<'_>) -> AbstractSdkResult<Addr>
fn manager_address(&self, _deps: Deps<'_>) -> AbstractSdkResult<Addr>
Get the manager address for the current account.
source§fn account_base(&self, _deps: Deps<'_>) -> AbstractSdkResult<AccountBase>
fn account_base(&self, _deps: Deps<'_>) -> AbstractSdkResult<AccountBase>
Get the AccountBase for the current account.
source§fn account_id(&self, deps: Deps<'_>) -> Result<AccountId, AbstractSdkError>
fn account_id(&self, deps: Deps<'_>) -> Result<AccountId, AbstractSdkError>
Get the Account id for the current account.
source§impl<Error: ContractError, CustomInitMsg, CustomExecMsg: Serialize + JsonSchema + AdapterExecuteMsg, CustomQueryMsg, ReceiveMsg: Serialize + JsonSchema, SudoMsg> ExecuteEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
impl<Error: ContractError, CustomInitMsg, CustomExecMsg: Serialize + JsonSchema + AdapterExecuteMsg, CustomQueryMsg, ReceiveMsg: Serialize + JsonSchema, SudoMsg> ExecuteEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
§type ExecuteMsg = ExecuteMsg<BaseExecuteMsg, AdapterRequestMsg<CustomExecMsg>, ReceiveMsg>
type ExecuteMsg = ExecuteMsg<BaseExecuteMsg, AdapterRequestMsg<CustomExecMsg>, ReceiveMsg>
The message type for the Execute entry point.
source§fn execute(
self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: Self::ExecuteMsg
) -> Result<Response, Error>
fn execute( self, deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: Self::ExecuteMsg ) -> Result<Response, Error>
Handler for the Execute endpoint.
source§impl<Error: ContractError, InitMsg, ExecMsg, QueryMsg, ReceiveMsg, SudoMsg> Handler for AdapterContract<Error, InitMsg, ExecMsg, QueryMsg, ReceiveMsg, SudoMsg>
impl<Error: ContractError, InitMsg, ExecMsg, QueryMsg, ReceiveMsg, SudoMsg> Handler for AdapterContract<Error, InitMsg, ExecMsg, QueryMsg, ReceiveMsg, SudoMsg>
§type CustomInitMsg = InitMsg
type CustomInitMsg = InitMsg
Custom init message for the contract
§type CustomExecMsg = ExecMsg
type CustomExecMsg = ExecMsg
Custom execute message for the contract
§type CustomQueryMsg = QueryMsg
type CustomQueryMsg = QueryMsg
Custom query message for the contract
§type CustomMigrateMsg = Empty
type CustomMigrateMsg = Empty
Custom migrate message for the contract
§type ReceiveMsg = ReceiveMsg
type ReceiveMsg = ReceiveMsg
Receive message for the contract
source§fn contract(&self) -> &AbstractContract<Self, Error>
fn contract(&self) -> &AbstractContract<Self, Error>
Returns the contract object.
source§fn stored_version(
&self,
store: &dyn Storage
) -> Result<ContractVersion, AbstractSdkError>
fn stored_version( &self, store: &dyn Storage ) -> Result<ContractVersion, AbstractSdkError>
Returns the cw2 contract version.
source§fn info(&self) -> (&'static str, &'static str, Option<&'static str>)
fn info(&self) -> (&'static str, &'static str, Option<&'static str>)
Returns the static contract info.
source§fn dependencies(&self) -> &'static [StaticDependency]
fn dependencies(&self) -> &'static [StaticDependency]
Returns the static contract dependencies.
source§fn maybe_execute_handler(
&self
) -> Option<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: Self::CustomExecMsg) -> Result<Response, Self::Error>>
fn maybe_execute_handler( &self ) -> Option<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: Self::CustomExecMsg) -> Result<Response, Self::Error>>
Get an execute handler if it exists.
source§fn execute_handler(
&self
) -> Result<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: Self::CustomExecMsg) -> Result<Response, Self::Error>, AbstractSdkError>
fn execute_handler( &self ) -> Result<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: Self::CustomExecMsg) -> Result<Response, Self::Error>, AbstractSdkError>
Get an execute handler or return an error.
source§fn maybe_instantiate_handler(
&self
) -> Option<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: Self::CustomInitMsg) -> Result<Response, Self::Error>>
fn maybe_instantiate_handler( &self ) -> Option<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: Self::CustomInitMsg) -> Result<Response, Self::Error>>
Get a instantiate handler if it exists.
source§fn instantiate_handler(
&self
) -> Result<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: Self::CustomInitMsg) -> Result<Response, Self::Error>, AbstractSdkError>
fn instantiate_handler( &self ) -> Result<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: Self::CustomInitMsg) -> Result<Response, Self::Error>, AbstractSdkError>
Get an instantiate handler or return an error.
source§fn maybe_query_handler(
&self
) -> Option<fn(_: Deps<'_>, _: Env, _: &Self, _: Self::CustomQueryMsg) -> Result<Binary, Self::Error>>
fn maybe_query_handler( &self ) -> Option<fn(_: Deps<'_>, _: Env, _: &Self, _: Self::CustomQueryMsg) -> Result<Binary, Self::Error>>
Get a query handler if it exists.
source§fn query_handler(
&self
) -> Result<fn(_: Deps<'_>, _: Env, _: &Self, _: Self::CustomQueryMsg) -> Result<Binary, Self::Error>, AbstractSdkError>
fn query_handler( &self ) -> Result<fn(_: Deps<'_>, _: Env, _: &Self, _: Self::CustomQueryMsg) -> Result<Binary, Self::Error>, AbstractSdkError>
Get a query handler or return an error.
source§fn maybe_migrate_handler(
&self
) -> Option<fn(_: DepsMut<'_>, _: Env, _: Self, _: Self::CustomMigrateMsg) -> Result<Response, Self::Error>>
fn maybe_migrate_handler( &self ) -> Option<fn(_: DepsMut<'_>, _: Env, _: Self, _: Self::CustomMigrateMsg) -> Result<Response, Self::Error>>
Get a migrate handler if it exists.
source§fn migrate_handler(
&self
) -> Result<fn(_: DepsMut<'_>, _: Env, _: Self, _: Self::CustomMigrateMsg) -> Result<Response, Self::Error>, AbstractSdkError>
fn migrate_handler( &self ) -> Result<fn(_: DepsMut<'_>, _: Env, _: Self, _: Self::CustomMigrateMsg) -> Result<Response, Self::Error>, AbstractSdkError>
Get a migrate handler or return an error.
source§fn maybe_sudo_handler(
&self
) -> Option<fn(_: DepsMut<'_>, _: Env, _: Self, _: Self::SudoMsg) -> Result<Response, Self::Error>>
fn maybe_sudo_handler( &self ) -> Option<fn(_: DepsMut<'_>, _: Env, _: Self, _: Self::SudoMsg) -> Result<Response, Self::Error>>
Get a sudo handler if it exists.
source§fn sudo_handler(
&self
) -> Result<fn(_: DepsMut<'_>, _: Env, _: Self, _: Self::SudoMsg) -> Result<Response, Self::Error>, AbstractSdkError>
fn sudo_handler( &self ) -> Result<fn(_: DepsMut<'_>, _: Env, _: Self, _: Self::SudoMsg) -> Result<Response, Self::Error>, AbstractSdkError>
Get a sudo handler or return an error.
source§fn maybe_receive_handler(
&self
) -> Option<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: Self::ReceiveMsg) -> Result<Response, Self::Error>>
fn maybe_receive_handler( &self ) -> Option<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: Self::ReceiveMsg) -> Result<Response, Self::Error>>
Get a reply handler if it exists.
source§fn receive_handler(
&self
) -> Result<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: Self::ReceiveMsg) -> Result<Response, Self::Error>, AbstractSdkError>
fn receive_handler( &self ) -> Result<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: Self::ReceiveMsg) -> Result<Response, Self::Error>, AbstractSdkError>
Get a receive handler or return an error.
source§fn maybe_ibc_callback_handler(
&self,
id: &str
) -> Option<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: IbcResponseMsg) -> Result<Response, Self::Error>>
fn maybe_ibc_callback_handler( &self, id: &str ) -> Option<fn(_: DepsMut<'_>, _: Env, _: MessageInfo, _: Self, _: IbcResponseMsg) -> Result<Response, Self::Error>>
Get an ibc callback handler if it exists.
source§fn maybe_module_ibc_handler(
&self
) -> Option<fn(_: DepsMut<'_>, _: Env, _: Self, _: ModuleIbcMsg) -> Result<Response, Self::Error>>
fn maybe_module_ibc_handler( &self ) -> Option<fn(_: DepsMut<'_>, _: Env, _: Self, _: ModuleIbcMsg) -> Result<Response, Self::Error>>
Get an IBC module call handler if it exists.
source§impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> IbcCallbackEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> IbcCallbackEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
source§fn ibc_client(&self, deps: Deps<'_>) -> Result<Addr, Self::Error>
fn ibc_client(&self, deps: Deps<'_>) -> Result<Addr, Self::Error>
Queries the IBC Client address.
source§fn ibc_callback(
self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: IbcResponseMsg
) -> Result<Response, Self::Error>
fn ibc_callback( self, deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: IbcResponseMsg ) -> Result<Response, Self::Error>
Handler for the
ExecuteMsg::IbcCallback()
variant.source§impl<Error: ContractError, CustomInitMsg: Serialize + JsonSchema, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> InstantiateEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
impl<Error: ContractError, CustomInitMsg: Serialize + JsonSchema, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> InstantiateEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
source§fn instantiate(
self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: Self::InstantiateMsg
) -> Result<Response, Error>
fn instantiate( self, deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: Self::InstantiateMsg ) -> Result<Response, Error>
Instantiate the api
§type InstantiateMsg = InstantiateMsg<BaseInstantiateMsg, CustomInitMsg>
type InstantiateMsg = InstantiateMsg<BaseInstantiateMsg, CustomInitMsg>
The message type for the Instantiate entry point.
source§impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> ModuleIbcEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> ModuleIbcEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
source§fn ibc_host(&self, deps: Deps<'_>) -> Result<Addr, Self::Error>
fn ibc_host(&self, deps: Deps<'_>) -> Result<Addr, Self::Error>
Get the address of the ibc host associated with this module
source§fn module_ibc(
self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: ModuleIbcMsg
) -> Result<Response, Self::Error>
fn module_ibc( self, deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: ModuleIbcMsg ) -> Result<Response, Self::Error>
Handler for the
ExecuteMsg::ModuleIbc(ModuleIbcMsg)
variant.source§impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg: AdapterQueryMsg, ReceiveMsg, SudoMsg> QueryEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg: AdapterQueryMsg, ReceiveMsg, SudoMsg> QueryEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
Where we dispatch the queries for the AdapterContract
These AdapterQueryMsg declarations can be found in abstract_sdk::std::common_module::app_msg
source§impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> ReceiveEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> ReceiveEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
source§fn receive(
self,
deps: DepsMut<'_>,
env: Env,
info: MessageInfo,
msg: Self::ReceiveMsg
) -> Result<Response, Self::Error>
fn receive( self, deps: DepsMut<'_>, env: Env, info: MessageInfo, msg: Self::ReceiveMsg ) -> Result<Response, Self::Error>
Handler for the
ExecuteMsg::Receive()
variant.source§impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> ReplyEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> ReplyEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
source§impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> SudoEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
impl<Error: ContractError, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg> SudoEndpoint for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, ReceiveMsg, SudoMsg>
Auto Trait Implementations§
impl<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg> Freeze for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg>where
AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg>: Sized,
impl<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg> RefUnwindSafe for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg>where
AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg>: Sized,
impl<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg> Send for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg>where
AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg>: Sized,
impl<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg> Sync for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg>where
AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg>: Sized,
impl<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg> Unpin for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg>where
AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg>: Sized,
impl<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg> UnwindSafe for AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg>where
AdapterContract<Error, CustomInitMsg, CustomExecMsg, CustomQueryMsg, Receive, SudoMsg>: Sized,
Blanket Implementations§
source§impl<T> AbstractResponse for Twhere
T: ModuleIdentification,
impl<T> AbstractResponse for Twhere
T: ModuleIdentification,
source§fn response(&self, action: impl Into<String>) -> Response
fn response(&self, action: impl Into<String>) -> Response
Respond with an abstract-specific event that contains the contract name and the action.
source§fn custom_response(
&self,
action: impl Into<String>,
attributes: impl IntoIterator<Item = impl Into<Attribute>>
) -> Response
fn custom_response( &self, action: impl Into<String>, attributes: impl IntoIterator<Item = impl Into<Attribute>> ) -> Response
.response()
with additional attributes.source§impl<T> AccountVerification for Twhere
T: AbstractRegistryAccess + ModuleIdentification,
impl<T> AccountVerification for Twhere
T: AbstractRegistryAccess + ModuleIdentification,
source§fn account_registry<'a>(
&'a self,
deps: Deps<'a>
) -> Result<AccountRegistry<'a, Self>, AbstractSdkError>
fn account_registry<'a>( &'a self, deps: Deps<'a> ) -> Result<AccountRegistry<'a, Self>, AbstractSdkError>
API for querying and verifying a sender’s identity in the context of Abstract Accounts. Read more
source§impl<T> AccountingInterface for T
impl<T> AccountingInterface for T
source§fn accountant<'a>(&'a self, deps: Deps<'a>) -> Accountant<'a, Self>
fn accountant<'a>(&'a self, deps: Deps<'a>) -> Accountant<'a, Self>
API for querying the Account’s asset values and accounting configuration. Read more
source§impl<T> AdapterInterface for Twhere
T: ModuleInterface + ModuleIdentification,
impl<T> AdapterInterface for Twhere
T: ModuleInterface + ModuleIdentification,
source§impl<T> AppInterface for Twhere
T: ModuleInterface + ModuleIdentification,
impl<T> AppInterface for Twhere
T: ModuleInterface + ModuleIdentification,
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> Dependencies for Twhere
T: Handler,
impl<T> Dependencies for Twhere
T: Handler,
source§fn dependencies(&self) -> &[StaticDependency]
fn dependencies(&self) -> &[StaticDependency]
Get the dependencies of the module.
source§impl<T> Execution for Twhere
T: AccountIdentification + ModuleIdentification,
impl<T> Execution for Twhere
T: AccountIdentification + ModuleIdentification,
source§impl<T> IbcInterface for T
impl<T> IbcInterface for T
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 moresource§impl<T> ModuleIdentification for Twhere
T: Handler,
impl<T> ModuleIdentification for Twhere
T: Handler,
source§impl<T> ModuleInterface for T
impl<T> ModuleInterface for T
source§impl<T> ModuleRegistryInterface for Twhere
T: AbstractRegistryAccess + ModuleIdentification,
impl<T> ModuleRegistryInterface for Twhere
T: AbstractRegistryAccess + ModuleIdentification,
source§fn module_registry<'a>(
&'a self,
deps: Deps<'a>
) -> Result<ModuleRegistry<'a, Self>, AbstractSdkError>
fn module_registry<'a>( &'a self, deps: Deps<'a> ) -> Result<ModuleRegistry<'a, Self>, AbstractSdkError>
API for querying module information from the Abstract version control contract. Read more