Struct abstract_boot::VersionControl
source · pub struct VersionControl<Chain: CwEnv>(_);
Implementations§
source§impl<Chain: CwEnv> VersionControl<Chain>where
TxResponse<Chain>: IndexResponse,
impl<Chain: CwEnv> VersionControl<Chain>where TxResponse<Chain>: IndexResponse,
pub fn new(name: &str, chain: Chain) -> Self
pub fn load(chain: Chain, address: &Addr) -> Self
sourcepub fn module(&self, info: ModuleInfo) -> Result<Module, AbstractBootError>
pub fn module(&self, info: ModuleInfo) -> Result<Module, AbstractBootError>
Query a single module
pub fn register_base( &self, account: &AbstractAccount<Chain>, version: &str ) -> Result<(), AbstractBootError>
sourcepub fn register_account_mods(
&self,
apps: Vec<&Contract<Chain>>,
version: &Version
) -> Result<(), AbstractBootError>
pub fn register_account_mods( &self, apps: Vec<&Contract<Chain>>, version: &Version ) -> Result<(), AbstractBootError>
Register account modules
sourcepub fn register_natives(
&self,
natives: Vec<&Contract<Chain>>,
version: &Version
) -> Result<(), AbstractBootError>
pub fn register_natives( &self, natives: Vec<&Contract<Chain>>, version: &Version ) -> Result<(), AbstractBootError>
Register native modules
pub fn register_apps( &self, apps: Vec<&Contract<Chain>>, version: &Version ) -> Result<(), AbstractBootError>
pub fn register_apis( &self, apis: Vec<&Contract<Chain>>, version: &Version ) -> Result<(), AbstractBootError>
pub fn register_standalones( &self, standalones: Vec<&Contract<Chain>>, version: &Version ) -> Result<(), AbstractBootError>
pub fn get_account( &self, account_id: AccountId ) -> Result<AccountBase, AbstractBootError>
sourcepub fn get_api_addr(
&self,
id: &str,
version: ModuleVersion
) -> Result<Addr, AbstractBootError>
pub fn get_api_addr( &self, id: &str, version: ModuleVersion ) -> Result<Addr, AbstractBootError>
Retrieves an API’s address from version control given the module id and version.
sourcepub fn get_app_code(
&self,
id: &str,
version: ModuleVersion
) -> Result<u64, AbstractBootError>
pub fn get_app_code( &self, id: &str, version: ModuleVersion ) -> Result<u64, AbstractBootError>
Retrieves an APP’s code id from version control given the module id and version.
Trait Implementations§
source§impl<Chain: Clone + CwEnv> Clone for VersionControl<Chain>
impl<Chain: Clone + CwEnv> Clone for VersionControl<Chain>
source§fn clone(&self) -> VersionControl<Chain>
fn clone(&self) -> VersionControl<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: CwEnv> ContractInstance<Chain> for VersionControl<Chain>
impl<Chain: CwEnv> ContractInstance<Chain> for VersionControl<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 VersionControl<Chain>
impl<Chain: CwEnv> CwInterface for VersionControl<Chain>
type InstantiateMsg = InstantiateMsg
type ExecuteMsg = ExecuteMsg
type QueryMsg = QueryMsg
type MigrateMsg = MigrateMsg
Auto Trait Implementations§
impl<Chain> !RefUnwindSafe for VersionControl<Chain>
impl<Chain> !Send for VersionControl<Chain>
impl<Chain> !Sync for VersionControl<Chain>
impl<Chain> Unpin for VersionControl<Chain>where Chain: Unpin,
impl<Chain> !UnwindSafe for VersionControl<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 remove_module( &self, module: ModuleInfo ) -> Result<<Chain as TxHandler>::Response, BootError>
fn yank_module( &self, module: ModuleInfo ) -> Result<<Chain as TxHandler>::Response, BootError>
fn add_modules( &self, modules: Vec<(ModuleInfo, ModuleReference), Global> ) -> Result<<Chain as TxHandler>::Response, BootError>
fn approve_or_reject_modules( &self, approves: Vec<ModuleInfo, Global>, rejects: Vec<ModuleInfo, Global> ) -> Result<<Chain as TxHandler>::Response, BootError>
fn claim_namespaces( &self, account_id: u32, namespaces: Vec<String, Global> ) -> Result<<Chain as TxHandler>::Response, BootError>
fn remove_namespaces( &self, namespaces: Vec<String, Global> ) -> Result<<Chain as TxHandler>::Response, BootError>
fn add_account( &self, account_base: AccountBase, account_id: u32 ) -> Result<<Chain as TxHandler>::Response, BootError>
fn update_namespace_limit( &self, new_limit: u32 ) -> Result<<Chain as TxHandler>::Response, BootError>
fn set_factory( &self, new_factory: String ) -> 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