pub struct MockAppRemoteI<Chain>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<Chain: CwEnv> AppDeployer<Chain> for MockAppRemoteI<Chain>
impl<Chain: CwEnv> AppDeployer<Chain> for MockAppRemoteI<Chain>
Source§fn deploy(
&self,
version: Version,
strategy: DeployStrategy,
) -> Result<(), AbstractInterfaceError>
fn deploy( &self, version: Version, strategy: DeployStrategy, ) -> Result<(), AbstractInterfaceError>
Deploys the app. If the app is already deployed, it will return an error.
Use
maybe_deploy if you want to deploy the app only if it is not already deployed.Source§impl<Chain: Clone> Clone for MockAppRemoteI<Chain>
impl<Chain: Clone> Clone for MockAppRemoteI<Chain>
Source§fn clone(&self) -> MockAppRemoteI<Chain>
fn clone(&self) -> MockAppRemoteI<Chain>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Chain: ChainState> ContractInstance<Chain> for MockAppRemoteI<Chain>
impl<Chain: ChainState> ContractInstance<Chain> for MockAppRemoteI<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.
Source§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.
Source§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.
Source§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.
Source§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> ExecutableContract for MockAppRemoteI<Chain>
impl<Chain> ExecutableContract for MockAppRemoteI<Chain>
Source§type ExecuteMsg = <AppContract<MockError, MockInitMsg, MockExecMsg, MockQueryMsg, MockMigrateMsg, MockReceiveMsg, MockSudoMsg> as ExecuteEndpoint>::ExecuteMsg
type ExecuteMsg = <AppContract<MockError, MockInitMsg, MockExecMsg, MockQueryMsg, MockMigrateMsg, MockReceiveMsg, MockSudoMsg> as ExecuteEndpoint>::ExecuteMsg
Execute message for the contract.
Source§impl<Chain> InstantiableContract for MockAppRemoteI<Chain>
impl<Chain> InstantiableContract for MockAppRemoteI<Chain>
Source§type InstantiateMsg = <AppContract<MockError, MockInitMsg, MockExecMsg, MockQueryMsg, MockMigrateMsg, MockReceiveMsg, MockSudoMsg> as InstantiateEndpoint>::InstantiateMsg
type InstantiateMsg = <AppContract<MockError, MockInitMsg, MockExecMsg, MockQueryMsg, MockMigrateMsg, MockReceiveMsg, MockSudoMsg> as InstantiateEndpoint>::InstantiateMsg
Instantiate message for the contract.
Source§impl<Chain> MigratableContract for MockAppRemoteI<Chain>
impl<Chain> MigratableContract for MockAppRemoteI<Chain>
Source§type MigrateMsg = <AppContract<MockError, MockInitMsg, MockExecMsg, MockQueryMsg, MockMigrateMsg, MockReceiveMsg, MockSudoMsg> as MigrateEndpoint>::MigrateMsg
type MigrateMsg = <AppContract<MockError, MockInitMsg, MockExecMsg, MockQueryMsg, MockMigrateMsg, MockReceiveMsg, MockSudoMsg> as MigrateEndpoint>::MigrateMsg
Migrate message for the contract.
Source§impl<Chain> QueryableContract for MockAppRemoteI<Chain>
impl<Chain> QueryableContract for MockAppRemoteI<Chain>
Source§type QueryMsg = <AppContract<MockError, MockInitMsg, MockExecMsg, MockQueryMsg, MockMigrateMsg, MockReceiveMsg, MockSudoMsg> as QueryEndpoint>::QueryMsg
type QueryMsg = <AppContract<MockError, MockInitMsg, MockExecMsg, MockQueryMsg, MockMigrateMsg, MockReceiveMsg, MockSudoMsg> as QueryEndpoint>::QueryMsg
Query message for the contract.
Source§impl<Chain: CwEnv> RegisteredModule for MockAppRemoteI<Chain>
impl<Chain: CwEnv> RegisteredModule for MockAppRemoteI<Chain>
Source§type InitMsg = <AppContract<MockError, MockInitMsg, MockExecMsg, MockQueryMsg, MockMigrateMsg, MockReceiveMsg, MockSudoMsg> as Handler>::CustomInitMsg
type InitMsg = <AppContract<MockError, MockInitMsg, MockExecMsg, MockQueryMsg, MockMigrateMsg, MockReceiveMsg, MockSudoMsg> as Handler>::CustomInitMsg
The init message for the module.
Source§fn module_version<'a>() -> &'a str
fn module_version<'a>() -> &'a str
The version of the module.
Source§fn installed_module_contract_id(account_id: &AccountId) -> String
fn installed_module_contract_id(account_id: &AccountId) -> String
Create the unique contract ID for a module installed on an Account.
Source§impl<Chain: CwEnv> Uploadable for MockAppRemoteI<Chain>
impl<Chain: CwEnv> Uploadable for MockAppRemoteI<Chain>
Auto Trait Implementations§
impl<Chain> Freeze for MockAppRemoteI<Chain>where
Chain: Freeze,
impl<Chain> RefUnwindSafe for MockAppRemoteI<Chain>where
Chain: RefUnwindSafe,
impl<Chain> Send for MockAppRemoteI<Chain>where
Chain: Send,
impl<Chain> Sync for MockAppRemoteI<Chain>where
Chain: Sync,
impl<Chain> Unpin for MockAppRemoteI<Chain>where
Chain: Unpin,
impl<Chain> UnwindSafe for MockAppRemoteI<Chain>where
Chain: UnwindSafe,
Blanket Implementations§
Source§impl<SupportedContract, Chain, ModuleMsg> BaseQueryMsgFns<Chain, ModuleMsg> for SupportedContractwhere
Chain: QueryHandler + ChainState,
SupportedContract: CwOrchQuery<Chain, QueryMsg = QueryMsg<BaseQueryMsg, ModuleMsg>>,
impl<SupportedContract, Chain, ModuleMsg> BaseQueryMsgFns<Chain, ModuleMsg> for SupportedContractwhere
Chain: QueryHandler + ChainState,
SupportedContract: CwOrchQuery<Chain, QueryMsg = QueryMsg<BaseQueryMsg, ModuleMsg>>,
Source§fn base_config(&self) -> Result<AppConfigResponse, CwEnvError>
fn base_config(&self) -> Result<AppConfigResponse, CwEnvError>
Automatically generated wrapper around BaseQueryMsg::BaseConfig variant
Source§fn base_admin(&self) -> Result<AdminResponse, CwEnvError>
fn base_admin(&self) -> Result<AdminResponse, CwEnvError>
Automatically generated wrapper around BaseQueryMsg::BaseAdmin variant
Source§fn module_data(&self) -> Result<ModuleDataResponse, CwEnvError>
fn module_data(&self) -> Result<ModuleDataResponse, CwEnvError>
Automatically generated wrapper around BaseQueryMsg::ModuleData variant
Source§fn top_level_owner(&self) -> Result<TopLevelOwnerResponse, CwEnvError>
fn top_level_owner(&self) -> Result<TopLevelOwnerResponse, CwEnvError>
Automatically generated wrapper around BaseQueryMsg::TopLevelOwner variant
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, Chain> ConditionalMigrate<Chain> for T
impl<T, Chain> ConditionalMigrate<Chain> for T
Source§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
Source§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.
Source§impl<T, Chain> ConditionalUpload<Chain> for Twhere
Chain: CwEnv,
T: CwOrchUpload<Chain>,
impl<T, Chain> ConditionalUpload<Chain> for Twhere
Chain: CwEnv,
T: CwOrchUpload<Chain>,
Source§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)
Source§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.
Source§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
Source§impl<T, Chain> CwOrchExecute<Chain> for T
impl<T, Chain> CwOrchExecute<Chain> for T
Source§fn execute(
&self,
execute_msg: &Self::ExecuteMsg,
coins: Option<&[Coin]>,
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn execute( &self, execute_msg: &Self::ExecuteMsg, coins: Option<&[Coin]>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Send a ExecuteMsg to the contract.
Source§impl<T, Chain> CwOrchInstantiate<Chain> for T
impl<T, Chain> CwOrchInstantiate<Chain> for T
Source§fn instantiate(
&self,
instantiate_msg: &Self::InstantiateMsg,
admin: Option<&Addr>,
coins: Option<&[Coin]>,
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn instantiate( &self, instantiate_msg: &Self::InstantiateMsg, admin: Option<&Addr>, coins: Option<&[Coin]>, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Instantiates the contract.
Source§fn instantiate2(
&self,
instantiate_msg: &Self::InstantiateMsg,
admin: Option<&Addr>,
coins: Option<&[Coin]>,
salt: Binary,
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn instantiate2( &self, instantiate_msg: &Self::InstantiateMsg, admin: Option<&Addr>, coins: Option<&[Coin]>, salt: Binary, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Instantiates the contract using instantiate2
Source§impl<T, Chain> CwOrchMigrate<Chain> for T
impl<T, Chain> CwOrchMigrate<Chain> for T
Source§fn migrate(
&self,
migrate_msg: &Self::MigrateMsg,
new_code_id: u64,
) -> Result<<Chain as TxHandler>::Response, CwEnvError>
fn migrate( &self, migrate_msg: &Self::MigrateMsg, new_code_id: u64, ) -> Result<<Chain as TxHandler>::Response, CwEnvError>
Migrate the contract.
Source§impl<T, Chain> CwOrchQuery<Chain> for T
impl<T, Chain> CwOrchQuery<Chain> for T
Source§impl<T, Chain> CwOrchUpload<Chain> for T
impl<T, Chain> CwOrchUpload<Chain> for T
Source§impl<T> IbcPacketLogger for Twhere
T: ContractInstance<Daemon>,
impl<T> IbcPacketLogger for Twhere
T: ContractInstance<Daemon>,
Source§impl<T> InstallConfig for Twhere
T: RegisteredModule,
impl<T> InstallConfig for Twhere
T: RegisteredModule,
Source§fn module_info() -> Result<ModuleInfo, AbstractInterfaceError>
fn module_info() -> Result<ModuleInfo, AbstractInterfaceError>
Constructs the
ModuleInfo by using information from RegisteredModule.Source§fn install_config(
init_msg: &Self::InitMsg,
) -> Result<ModuleInstallConfig, AbstractInterfaceError>
fn install_config( init_msg: &Self::InitMsg, ) -> Result<ModuleInstallConfig, AbstractInterfaceError>
Constructs the
ModuleInstallConfig for an App InterfaceSource§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> 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> 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::RequestSource§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