Struct abstract_boot::Manager

source ·
pub struct Manager<Chain: BootEnvironment>(_);

Implementations§

source§

impl<Chain: BootEnvironment> Manager<Chain>

source

pub fn new(name: &str, chain: Chain) -> Self

source

pub fn upgrade_module<M: Serialize>( &self, module_id: &str, migrate_msg: &M ) -> Result<(), AbstractBootError>

source

pub fn replace_api(&self, module_id: &str) -> Result<(), AbstractBootError>

source

pub fn install_module<TInitMsg: Serialize>( &self, module_id: &str, init_msg: &TInitMsg ) -> Result<(), AbstractBootError>

source

pub fn install_module_version<M: Serialize>( &self, module_id: &str, version: ModuleVersion, init_msg: &M ) -> Result<(), AbstractBootError>

source

pub fn uninstall_module( &self, module_id: impl Into<String> ) -> Result<(), AbstractBootError>

source

pub fn execute_on_module( &self, module: &str, msg: impl Serialize ) -> Result<(), AbstractBootError>

source

pub fn update_api_traders( &self, module_id: &str, to_add: Vec<String>, to_remove: Vec<String> ) -> Result<(), AbstractBootError>

source

pub fn module_info( &self, module_id: &str ) -> Result<Option<ManagerModuleInfo>, AbstractBootError>

Return the module info installed on the manager

source

pub fn is_module_installed( &self, module_id: &str ) -> Result<bool, AbstractBootError>

Trait Implementations§

source§

impl<Chain: Clone + BootEnvironment> Clone for Manager<Chain>

source§

fn clone(&self) -> Manager<Chain>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Chain: BootEnvironment> ContractInstance<Chain> for Manager<Chain>

source§

fn as_instance(&self) -> &Contract<Chain>

source§

fn as_instance_mut(&mut self) -> &mut Contract<Chain>

source§

fn id(&self) -> String

source§

fn address(&self) -> Result<Addr, BootError>

source§

fn addr_str(&self) -> Result<String, BootError>

source§

fn code_id(&self) -> Result<u64, BootError>

source§

fn set_address(&self, address: &Addr)

source§

fn set_code_id(&self, code_id: u64)

source§

fn get_chain(&self) -> &Chain

source§

impl<Chain: BootEnvironment> CwInterface for Manager<Chain>

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T, Chain> BootExecute<Chain> for Twhere T: CwInterface + ContractInstance<Chain>, Chain: BootEnvironment,

§

type ExecuteMsg = <T as CwInterface>::ExecuteMsg

source§

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: BootEnvironment,

§

type InstantiateMsg = <T as CwInterface>::InstantiateMsg

source§

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: BootEnvironment,

§

type MigrateMsg = <T as CwInterface>::MigrateMsg

source§

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: BootEnvironment,

§

type QueryMsg = <T as CwInterface>::QueryMsg

source§

fn query<G>( &self, query_msg: &<T as BootQuery<Chain>>::QueryMsg ) -> Result<G, BootError>where G: Serialize + DeserializeOwned + Debug,

source§

impl<T, Chain> BootUpload<Chain> for Twhere T: ContractInstance<Chain>, Chain: BootEnvironment,

source§

fn upload(&mut self) -> Result<<Chain as TxHandler>::Response, BootError>

source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CallAs for Twhere T: BootExecute<Mock<MockState>> + ContractInstance<Mock<MockState>> + Clone,

source§

fn call_as(&self, sender: &Addr) -> Self

source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<SupportedContract, Chain> ExecuteMsgFns<Chain> for SupportedContractwhere Chain: BootEnvironment, SupportedContract: BootExecute<Chain, ExecuteMsg = ExecuteMsg>,

source§

fn exec_on_module( &self, exec_msg: Binary, module_id: String ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn update_module_addresses( &self, to_add: Option<Vec<(String, String), Global>>, to_remove: Option<Vec<String, Global>> ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn install_module( &self, module: ModuleInfo, init_msg: Option<Binary> ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn register_module( &self, module: Module, module_addr: String ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn remove_module( &self, module_id: String ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn upgrade( &self, modules: Vec<(ModuleInfo, Option<Binary>), Global> ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn update_info( &self, description: Option<String>, link: Option<String>, name: Option<String> ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn set_owner( &self, owner: String, governance_type: Option<String> ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn suspend_account( &self, new_status: bool ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

fn enable_ibc( &self, new_status: bool ) -> Result<<Chain as TxHandler>::Response, BootError>

source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<SupportedContract, Chain> QueryMsgFns<Chain> for SupportedContractwhere Chain: BootEnvironment, SupportedContract: BootQuery<Chain, QueryMsg = QueryMsg>,

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.