Struct abstract_interface::IbcHost
source · pub struct IbcHost<Chain: CwEnv>(/* private fields */);
Implementations§
Trait Implementations§
source§impl<Chain: CwEnv> ContractInstance<Chain> for IbcHost<Chain>
impl<Chain: CwEnv> ContractInstance<Chain> for IbcHost<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 IbcHost<Chain>
impl<Chain: CwEnv> ExecutableContract for IbcHost<Chain>
§type ExecuteMsg = ExecuteMsg
type ExecuteMsg = ExecuteMsg
Execute message for the contract.
source§impl<Chain: CwEnv> InstantiableContract for IbcHost<Chain>
impl<Chain: CwEnv> InstantiableContract for IbcHost<Chain>
§type InstantiateMsg = InstantiateMsg
type InstantiateMsg = InstantiateMsg
Instantiate message for the contract.
source§impl<Chain: CwEnv> MigratableContract for IbcHost<Chain>
impl<Chain: CwEnv> MigratableContract for IbcHost<Chain>
§type MigrateMsg = MigrateMsg
type MigrateMsg = MigrateMsg
Migrate message for the contract.
Auto Trait Implementations§
impl<Chain> RefUnwindSafe for IbcHost<Chain>where
Chain: RefUnwindSafe,
impl<Chain> Send for IbcHost<Chain>where
Chain: Send,
impl<Chain> Sync for IbcHost<Chain>where
Chain: Sync,
impl<Chain> Unpin for IbcHost<Chain>where
Chain: Unpin,
impl<Chain> UnwindSafe for IbcHost<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> ConditionalMigrate<Chain> for Twhere
Chain: CwEnv,
T: CwOrchMigrate<Chain> + ConditionalUpload<Chain>,
impl<T, Chain> ConditionalMigrate<Chain> for Twhere
Chain: CwEnv,
T: CwOrchMigrate<Chain> + ConditionalUpload<Chain>,
§fn migrate_if_needed(
&self,
migrate_msg: &Self::MigrateMsg
) -> Result<Option<<Chain as TxHandler>::Response>, CwEnvError>
fn migrate_if_needed( &self, migrate_msg: &Self::MigrateMsg ) -> Result<Option<<Chain as TxHandler>::Response>, CwEnvError>
Only migrate the contract if it is not on the latest code-id yet
§fn upload_and_migrate_if_needed(
&self,
migrate_msg: &Self::MigrateMsg
) -> Result<Option<Vec<<Chain as TxHandler>::Response>>, CwEnvError>
fn upload_and_migrate_if_needed( &self, migrate_msg: &Self::MigrateMsg ) -> Result<Option<Vec<<Chain as TxHandler>::Response>>, CwEnvError>
Uploads the contract if the local contract hash is different from the latest on-chain code hash.
Proceeds to migrates the contract if the contract is not running the latest code.
§impl<T, Chain> ConditionalUpload<Chain> for Twhere
Chain: CwEnv,
T: CwOrchUpload<Chain>,
impl<T, Chain> ConditionalUpload<Chain> for Twhere
Chain: CwEnv,
T: CwOrchUpload<Chain>,
§fn upload_if_needed(
&self
) -> Result<Option<<Chain as TxHandler>::Response>, CwEnvError>
fn upload_if_needed( &self ) -> Result<Option<<Chain as TxHandler>::Response>, CwEnvError>
Only upload the contract if it is not uploaded yet (checksum does not match)
§fn latest_is_uploaded(&self) -> Result<bool, CwEnvError>
fn latest_is_uploaded(&self) -> Result<bool, CwEnvError>
Returns whether the checksum of the WASM file matches the checksum of the latest uploaded code for this contract.
§fn is_running_latest(&self) -> Result<bool, CwEnvError>
fn is_running_latest(&self) -> Result<bool, CwEnvError>
Returns whether the contract is running the latest uploaded code for it
§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_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§fn update_config(
&self,
account_factory_address: Option<String>,
ans_host_address: Option<String>,
version_control_address: Option<String>
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn update_config( &self, account_factory_address: Option<String>, ans_host_address: Option<String>, version_control_address: Option<String> ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::UpdateConfig variant
source§fn register_chain_proxy(
&self,
chain: String,
proxy: String
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn register_chain_proxy( &self, chain: String, proxy: String ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::RegisterChainProxy variant
source§fn remove_chain_proxy(
&self,
chain: String
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn remove_chain_proxy( &self, chain: String ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::RemoveChainProxy variant
source§fn ibc_execute(
&self,
account_id: AccountId,
action: HostAction,
proxy_address: String
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn ibc_execute( &self, account_id: AccountId, action: HostAction, proxy_address: String ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Automatically generated wrapper around ExecuteMsg::Execute variant
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 ownership(&self) -> Result<Ownership<Addr>, CwEnvError>
fn ownership(&self) -> Result<Ownership<Addr>, CwEnvError>
Automatically generated wrapper around QueryMsg::Ownership variant
source§fn config(&self) -> Result<ConfigResponse, CwEnvError>
fn config(&self) -> Result<ConfigResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::Config variant
source§fn client_proxies(
&self,
limit: Option<u32>,
start_after: Option<String>
) -> Result<ClientProxiesResponse, CwEnvError>
fn client_proxies( &self, limit: Option<u32>, start_after: Option<String> ) -> Result<ClientProxiesResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ClientProxies variant
source§fn client_proxy(&self, chain: String) -> Result<ClientProxyResponse, CwEnvError>
fn client_proxy(&self, chain: String) -> Result<ClientProxyResponse, CwEnvError>
Automatically generated wrapper around QueryMsg::ClientProxy variant