Struct abstract_boot::Manager
source · pub struct Manager<Chain: CwEnv>(_);
Implementations§
source§impl<Chain: CwEnv> Manager<Chain>
impl<Chain: CwEnv> Manager<Chain>
pub fn new(name: &str, chain: Chain) -> Self
pub fn upgrade_module<M: Serialize>( &self, module_id: &str, migrate_msg: &M ) -> Result<(), AbstractBootError>
pub fn replace_api(&self, module_id: &str) -> Result<(), AbstractBootError>
pub fn install_module<TInitMsg: Serialize>( &self, module_id: &str, init_msg: &TInitMsg ) -> Result<(), AbstractBootError>
pub fn install_module_version<M: Serialize>( &self, module_id: &str, version: ModuleVersion, init_msg: &M ) -> Result<(), AbstractBootError>
pub fn execute_on_module( &self, module: &str, msg: impl Serialize ) -> Result<(), AbstractBootError>
sourcepub fn module_info(
&self,
module_id: &str
) -> Result<Option<ManagerModuleInfo>, AbstractBootError>
pub fn module_info( &self, module_id: &str ) -> Result<Option<ManagerModuleInfo>, AbstractBootError>
Return the module info installed on the manager
pub fn is_module_installed( &self, module_id: &str ) -> Result<bool, AbstractBootError>
Trait Implementations§
source§impl<Chain: CwEnv> ContractInstance<Chain> for Manager<Chain>
impl<Chain: CwEnv> ContractInstance<Chain> for Manager<Chain>
fn as_instance(&self) -> &Contract<Chain>
fn as_instance_mut(&mut self) -> &mut Contract<Chain>
fn id(&self) -> String
fn address(&self) -> Result<Addr, BootError>
fn addr_str(&self) -> Result<String, BootError>
fn code_id(&self) -> Result<u64, BootError>
fn set_address(&self, address: &Addr)
fn set_code_id(&self, code_id: u64)
fn get_chain(&self) -> &Chain
source§impl<Chain: CwEnv> CwInterface for Manager<Chain>
impl<Chain: CwEnv> CwInterface for Manager<Chain>
type InstantiateMsg = InstantiateMsg
type ExecuteMsg = ExecuteMsg
type QueryMsg = QueryMsg
type MigrateMsg = MigrateMsg
Auto Trait Implementations§
impl<Chain> !RefUnwindSafe for Manager<Chain>
impl<Chain> !Send for Manager<Chain>
impl<Chain> !Sync for Manager<Chain>
impl<Chain> Unpin for Manager<Chain>where Chain: Unpin,
impl<Chain> !UnwindSafe for Manager<Chain>
Blanket Implementations§
source§impl<T, Chain> BootExecute<Chain> for Twhere
T: CwInterface + ContractInstance<Chain>,
Chain: CwEnv,
impl<T, Chain> BootExecute<Chain> for Twhere T: CwInterface + ContractInstance<Chain>, Chain: CwEnv,
type ExecuteMsg = <T as CwInterface>::ExecuteMsg
fn execute( &self, execute_msg: &<T as BootExecute<Chain>>::ExecuteMsg, coins: Option<&[Coin]> ) -> Result<<Chain as TxHandler>::Response, BootError>
source§impl<T, Chain> BootInstantiate<Chain> for Twhere
T: CwInterface + ContractInstance<Chain>,
Chain: CwEnv,
impl<T, Chain> BootInstantiate<Chain> for Twhere T: CwInterface + ContractInstance<Chain>, Chain: CwEnv,
type InstantiateMsg = <T as CwInterface>::InstantiateMsg
fn instantiate( &self, instantiate_msg: &<T as BootInstantiate<Chain>>::InstantiateMsg, admin: Option<&Addr>, coins: Option<&[Coin]> ) -> Result<<Chain as TxHandler>::Response, BootError>
source§impl<T, Chain> BootMigrate<Chain> for Twhere
T: CwInterface + ContractInstance<Chain>,
Chain: CwEnv,
impl<T, Chain> BootMigrate<Chain> for Twhere T: CwInterface + ContractInstance<Chain>, Chain: CwEnv,
type MigrateMsg = <T as CwInterface>::MigrateMsg
fn migrate( &self, migrate_msg: &<T as BootMigrate<Chain>>::MigrateMsg, new_code_id: u64 ) -> Result<<Chain as TxHandler>::Response, BootError>
source§impl<T, Chain> BootQuery<Chain> for Twhere
T: CwInterface + ContractInstance<Chain>,
Chain: CwEnv,
impl<T, Chain> BootQuery<Chain> for Twhere T: CwInterface + ContractInstance<Chain>, Chain: CwEnv,
source§impl<T, Chain> BootUpload<Chain> for Twhere
T: ContractInstance<Chain>,
Chain: CwEnv,
impl<T, Chain> BootUpload<Chain> for Twhere T: ContractInstance<Chain>, Chain: CwEnv,
source§impl<T> CallAs<Daemon> for Twhere
T: BootExecute<Daemon> + ContractInstance<Daemon> + Clone,
impl<T> CallAs<Daemon> for Twhere T: BootExecute<Daemon> + ContractInstance<Daemon> + Clone,
source§impl<T> CallAs<Mock<MockState>> for Twhere
T: BootExecute<Mock<MockState>> + ContractInstance<Mock<MockState>> + Clone,
impl<T> CallAs<Mock<MockState>> for Twhere T: BootExecute<Mock<MockState>> + ContractInstance<Mock<MockState>> + Clone,
source§impl<SupportedContract, Chain> ExecuteMsgFns<Chain> for SupportedContractwhere
Chain: CwEnv,
SupportedContract: BootExecute<Chain, ExecuteMsg = ExecuteMsg>,
impl<SupportedContract, Chain> ExecuteMsgFns<Chain> for SupportedContractwhere Chain: CwEnv, SupportedContract: BootExecute<Chain, ExecuteMsg = ExecuteMsg>,
fn exec_on_module( &self, exec_msg: Binary, module_id: String ) -> Result<<Chain as TxHandler>::Response, BootError>
fn update_module_addresses( &self, to_add: Option<Vec<(String, String), Global>>, to_remove: Option<Vec<String, Global>> ) -> Result<<Chain as TxHandler>::Response, BootError>
fn install_module( &self, module: ModuleInfo, init_msg: Option<Binary> ) -> Result<<Chain as TxHandler>::Response, BootError>
fn register_module( &self, module: Module, module_addr: String ) -> Result<<Chain as TxHandler>::Response, BootError>
fn uninstall_module( &self, module_id: String ) -> Result<<Chain as TxHandler>::Response, BootError>
fn upgrade( &self, modules: Vec<(ModuleInfo, Option<Binary>), Global> ) -> Result<<Chain as TxHandler>::Response, BootError>
fn update_info( &self, description: Option<String>, link: Option<String>, name: Option<String> ) -> Result<<Chain as TxHandler>::Response, BootError>
fn set_owner( &self, owner: GovernanceDetails<String> ) -> Result<<Chain as TxHandler>::Response, BootError>
fn update_status( &self, is_suspended: Option<bool> ) -> Result<<Chain as TxHandler>::Response, BootError>
fn update_settings( &self, ibc_enabled: Option<bool> ) -> Result<<Chain as TxHandler>::Response, BootError>
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