Struct abstract_interface::AnsHost
source · pub struct AnsHost<Chain: CwEnv>(/* private fields */);
Implementations§
Trait Implementations§
source§impl<Chain: CwEnv> ContractInstance<Chain> for AnsHost<Chain>
impl<Chain: CwEnv> ContractInstance<Chain> for AnsHost<Chain>
source§fn as_instance(&self) -> &Contract<Chain>
fn as_instance(&self) -> &Contract<Chain>
Return a reference to the underlying contract instance.
source§fn as_instance_mut(&mut self) -> &mut Contract<Chain>
fn as_instance_mut(&mut self) -> &mut Contract<Chain>
Return a mutable reference to the underlying contract instance.
§fn set_address(&self, address: &Addr)
fn set_address(&self, address: &Addr)
Sets the address for the contract. Useful when the contract is already initialized
and not registered in the configured state file.
§fn set_default_address(&mut self, address: &Addr)
fn set_default_address(&mut self, address: &Addr)
Sets a default address for the contract. If the contract already has an address registered in the state, this won’t be used.
This is mostly used to ship address with a cw-orch package.
§fn set_code_id(&self, code_id: u64)
fn set_code_id(&self, code_id: u64)
Sets the code_id for the contract. Useful when the contract is already initialized
and not registered in the configured state file.
§fn set_default_code_id(&mut self, code_id: u64)
fn set_default_code_id(&mut self, code_id: u64)
Sets a default address for the contract. If the contract already has an address registered in the state, this won’t be used.
This is mostly used to ship address with a cw-orch package.
source§impl<Chain: CwEnv> ExecutableContract for AnsHost<Chain>
impl<Chain: CwEnv> ExecutableContract for AnsHost<Chain>
§type ExecuteMsg = ExecuteMsg
type ExecuteMsg = ExecuteMsg
Execute message for the contract.
source§impl<Chain: CwEnv> InstantiableContract for AnsHost<Chain>
impl<Chain: CwEnv> InstantiableContract for AnsHost<Chain>
§type InstantiateMsg = InstantiateMsg
type InstantiateMsg = InstantiateMsg
Instantiate message for the contract.
source§impl<Chain: CwEnv> MigratableContract for AnsHost<Chain>
impl<Chain: CwEnv> MigratableContract for AnsHost<Chain>
§type MigrateMsg = MigrateMsg
type MigrateMsg = MigrateMsg
Migrate message for the contract.
Auto Trait Implementations§
impl<Chain> RefUnwindSafe for AnsHost<Chain>where Chain: RefUnwindSafe,
impl<Chain> Send for AnsHost<Chain>where Chain: Send,
impl<Chain> Sync for AnsHost<Chain>where Chain: Sync,
impl<Chain> Unpin for AnsHost<Chain>where Chain: Unpin,
impl<Chain> UnwindSafe for AnsHost<Chain>where Chain: UnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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
§impl<T, Chain> CallAs<Chain> for Twhere
T: CwOrchExecute<Chain> + ContractInstance<Chain> + Clone,
Chain: CwEnv,
impl<T, Chain> CallAs<Chain> for Twhere T: CwOrchExecute<Chain> + ContractInstance<Chain> + Clone, Chain: CwEnv,
fn set_sender(&mut self, sender: &<Chain as TxHandler>::Sender)
§impl<T, Chain> CwOrchExecute<Chain> for Twhere
T: ExecutableContract + ContractInstance<Chain>,
Chain: CwEnv,
impl<T, Chain> CwOrchExecute<Chain> for Twhere T: ExecutableContract + ContractInstance<Chain>, Chain: CwEnv,
§impl<T, Chain> CwOrchInstantiate<Chain> for Twhere
T: InstantiableContract + ContractInstance<Chain>,
Chain: CwEnv,
impl<T, Chain> CwOrchInstantiate<Chain> for Twhere T: InstantiableContract + ContractInstance<Chain>, Chain: CwEnv,
§impl<T, Chain> CwOrchMigrate<Chain> for Twhere
T: MigratableContract + ContractInstance<Chain>,
Chain: CwEnv,
impl<T, Chain> CwOrchMigrate<Chain> for Twhere T: MigratableContract + ContractInstance<Chain>, Chain: CwEnv,
§impl<T, Chain> CwOrchQuery<Chain> for Twhere
T: QueryableContract + ContractInstance<Chain>,
Chain: CwEnv,
impl<T, Chain> CwOrchQuery<Chain> for Twhere T: QueryableContract + ContractInstance<Chain>, Chain: CwEnv,
§impl<T, Chain> CwOrchUpload<Chain> for Twhere
T: ContractInstance<Chain> + Uploadable,
Chain: CwEnv,
impl<T, Chain> CwOrchUpload<Chain> for Twhere T: ContractInstance<Chain> + Uploadable, Chain: CwEnv,
source§impl<SupportedContract, Chain> ExecuteMsgFns<Chain> for SupportedContractwhere
Chain: CwEnv,
SupportedContract: CwOrchExecute<Chain, ExecuteMsg = ExecuteMsg>,
impl<SupportedContract, Chain> ExecuteMsgFns<Chain> for SupportedContractwhere Chain: CwEnv, SupportedContract: CwOrchExecute<Chain, ExecuteMsg = ExecuteMsg>,
source§fn update_contract_addresses(
&self,
to_add: Vec<(UncheckedContractEntry, String), Global>,
to_remove: Vec<UncheckedContractEntry, Global>
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn update_contract_addresses( &self, to_add: Vec<(UncheckedContractEntry, String), Global>, to_remove: Vec<UncheckedContractEntry, Global> ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UpdateContractAddresses variant
source§fn update_asset_addresses(
&self,
to_add: Vec<(String, AssetInfoBase<String>), Global>,
to_remove: Vec<String, Global>
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn update_asset_addresses( &self, to_add: Vec<(String, AssetInfoBase<String>), Global>, to_remove: Vec<String, Global> ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UpdateAssetAddresses variant
source§fn update_channels(
&self,
to_add: Vec<(UncheckedChannelEntry, String), Global>,
to_remove: Vec<UncheckedChannelEntry, Global>
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn update_channels( &self, to_add: Vec<(UncheckedChannelEntry, String), Global>, to_remove: Vec<UncheckedChannelEntry, Global> ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UpdateChannels variant
source§fn update_dexes(
&self,
to_add: Vec<String, Global>,
to_remove: Vec<String, Global>
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn update_dexes( &self, to_add: Vec<String, Global>, to_remove: Vec<String, Global> ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UpdateDexes variant
source§fn update_pools(
&self,
to_add: Vec<(PoolAddressBase<String>, PoolMetadata), Global>,
to_remove: Vec<UniquePoolId, Global>
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn update_pools( &self, to_add: Vec<(PoolAddressBase<String>, PoolMetadata), Global>, to_remove: Vec<UniquePoolId, Global> ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UpdatePools variant
source§fn update_ownership(
&self,
arg0: Action
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn update_ownership( &self, arg0: Action ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UpdateOwnership variant
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<SupportedContract, Chain> QueryMsgFns<Chain> for SupportedContractwhere
Chain: CwEnv,
SupportedContract: CwOrchQuery<Chain, QueryMsg = QueryMsg>,
impl<SupportedContract, Chain> QueryMsgFns<Chain> for SupportedContractwhere Chain: CwEnv, SupportedContract: CwOrchQuery<Chain, QueryMsg = QueryMsg>,
source§fn config(&self) -> Result<ConfigResponse, CwEnvError>
fn config(&self) -> Result<ConfigResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Config variant
source§fn assets(
&self,
names: Vec<String, Global>
) -> Result<AssetsResponse, CwEnvError>
fn assets( &self, names: Vec<String, Global> ) -> Result<AssetsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Assets variant
source§fn asset_list(
&self,
filter: Option<AssetFilter>,
limit: Option<u8>,
start_after: Option<String>
) -> Result<AssetListResponse, CwEnvError>
fn asset_list( &self, filter: Option<AssetFilter>, limit: Option<u8>, start_after: Option<String> ) -> Result<AssetListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AssetList variant
source§fn asset_infos(
&self,
infos: Vec<AssetInfoBase<String>, Global>
) -> Result<AssetsResponse, CwEnvError>
fn asset_infos( &self, infos: Vec<AssetInfoBase<String>, Global> ) -> Result<AssetsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AssetInfos variant
source§fn asset_info_list(
&self,
filter: Option<AssetInfoFilter>,
limit: Option<u8>,
start_after: Option<AssetInfoBase<String>>
) -> Result<AssetInfoListResponse, CwEnvError>
fn asset_info_list( &self, filter: Option<AssetInfoFilter>, limit: Option<u8>, start_after: Option<AssetInfoBase<String>> ) -> Result<AssetInfoListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::AssetInfoList variant
source§fn contracts(
&self,
entries: Vec<ContractEntry, Global>
) -> Result<ContractsResponse, CwEnvError>
fn contracts( &self, entries: Vec<ContractEntry, Global> ) -> Result<ContractsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Contracts variant
source§fn contract_list(
&self,
filter: Option<ContractFilter>,
limit: Option<u8>,
start_after: Option<ContractEntry>
) -> Result<ContractListResponse, CwEnvError>
fn contract_list( &self, filter: Option<ContractFilter>, limit: Option<u8>, start_after: Option<ContractEntry> ) -> Result<ContractListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ContractList variant
source§fn channels(
&self,
entries: Vec<ChannelEntry, Global>
) -> Result<ChannelsResponse, CwEnvError>
fn channels( &self, entries: Vec<ChannelEntry, Global> ) -> Result<ChannelsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Channels variant
source§fn channel_list(
&self,
filter: Option<ChannelFilter>,
limit: Option<u8>,
start_after: Option<ChannelEntry>
) -> Result<ChannelListResponse, CwEnvError>
fn channel_list( &self, filter: Option<ChannelFilter>, limit: Option<u8>, start_after: Option<ChannelEntry> ) -> Result<ChannelListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ChannelList variant
source§fn registered_dexes(&self) -> Result<RegisteredDexesResponse, CwEnvError>
fn registered_dexes(&self) -> Result<RegisteredDexesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::RegisteredDexes variant
source§fn pools(
&self,
pairings: Vec<DexAssetPairing, Global>
) -> Result<PoolsResponse, CwEnvError>
fn pools( &self, pairings: Vec<DexAssetPairing, Global> ) -> Result<PoolsResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Pools variant
source§fn pool_list(
&self,
filter: Option<AssetPairingFilter>,
limit: Option<u8>,
start_after: Option<DexAssetPairing>
) -> Result<PoolAddressListResponse, CwEnvError>
fn pool_list( &self, filter: Option<AssetPairingFilter>, limit: Option<u8>, start_after: Option<DexAssetPairing> ) -> Result<PoolAddressListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::PoolList variant
source§fn pool_metadatas(
&self,
ids: Vec<UniquePoolId, Global>
) -> Result<PoolMetadatasResponse, CwEnvError>
fn pool_metadatas( &self, ids: Vec<UniquePoolId, Global> ) -> Result<PoolMetadatasResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::PoolMetadatas variant
source§fn pool_metadata_list(
&self,
filter: Option<PoolMetadataFilter>,
limit: Option<u8>,
start_after: Option<UniquePoolId>
) -> Result<PoolMetadataListResponse, CwEnvError>
fn pool_metadata_list( &self, filter: Option<PoolMetadataFilter>, limit: Option<u8>, start_after: Option<UniquePoolId> ) -> Result<PoolMetadataListResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::PoolMetadataList variant