Struct boot_abstract::AbstractOS
source · pub struct AbstractOS<Chain: TxHandler, ExecuteMsg: Serialize + Debug, InitMsg: Serialize + Debug, QueryMsg: Serialize + Debug, M: Serialize + Debug>(_)
where
<Chain as TxHandler>::Response: IndexResponse;Implementations
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
pub fn new(name: &str, chain: &Chain) -> Self
pub fn upgrade_module<M: Serialize>(
&self,
module_id: &str,
migrate_msg: &M
) -> Result<(), BootError>
pub fn install_module<M: Serialize>(
&self,
module_id: &str,
init_msg: Option<&M>
) -> Result<(), BootError>
pub fn execute_on_module(
&self,
module: &str,
msg: impl Serialize
) -> Result<(), BootError>
pub fn add_module<I: Serialize + Debug, H: Serialize + Debug, N: Serialize + Debug, S: Serialize + Debug>(
&self,
module: &Contract<Chain, H, I, N, S>,
init_msg: Option<&I>,
contract_id: &str,
version: String
) -> Result<TxResponse<Chain>, BootError>
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
sourceimpl AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>
impl AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>
pub fn update_all(&self) -> Result<(), BootError>
pub fn update_assets(&self) -> Result<(), BootError>
pub fn update_channels(&self) -> Result<(), BootError>
pub fn update_contracts(&self) -> Result<(), BootError>
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
pub fn new(name: &str, chain: &Chain) -> Self
pub fn change_memory_addr(
&self,
mem_addr: String
) -> Result<TxResponse<Chain>, BootError>
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
pub fn new(name: &str, chain: &Chain) -> Self
pub fn create_default_os(
&self,
governance_details: GovernanceDetails
) -> Result<(), BootError>
pub fn set_subscription_contract(
&self,
addr: String
) -> Result<TxResponse<Chain>, BootError>
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
pub fn new(name: &str, chain: &Chain) -> Self
pub fn init_msg(
payment_denom: String,
token_addr: String,
memory_address: String,
factory_addr: String,
version_control_addr: String
) -> InstantiateMsg
pub fn claim_contribution(&self, os_id: u32) -> Result<()>
pub fn claim_emissions(&self, os_id: u32) -> Result<()>
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg<BaseExecuteMsg, ApiRequestMsg<DexRequestMsg>, Empty>, InstantiateMsg<BaseInstantiateMsg, Empty>, QueryMsg<BaseQueryMsg, DexQueryMsg>, Empty>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg<BaseExecuteMsg, ApiRequestMsg<DexRequestMsg>, Empty>, InstantiateMsg<BaseInstantiateMsg, Empty>, QueryMsg<BaseQueryMsg, DexQueryMsg>, Empty>where
TxResponse<Chain>: IndexResponse,
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, EtfExecuteMsg, EtfInstantiateMsg, EtfQueryMsg, MigrateMsg<BaseMigrateMsg, Empty>>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, EtfExecuteMsg, EtfInstantiateMsg, EtfQueryMsg, MigrateMsg<BaseMigrateMsg, Empty>>where
TxResponse<Chain>: IndexResponse,
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
pub fn new(name: &str, chain: &Chain) -> Self
pub fn send(
&self,
msg: Binary,
amount: u128,
contract: String
) -> Result<TxResponse<Chain>, BootError>
sourcepub fn create_new<T: Into<Uint128>>(
&self,
minter: &Addr,
balance: T,
version_control_address: String,
symbol: &str
) -> Result<TxResponse<Chain>, BootError>
pub fn create_new<T: Into<Uint128>>(
&self,
minter: &Addr,
balance: T,
version_control_address: String,
symbol: &str
) -> Result<TxResponse<Chain>, BootError>
Instantiate a new token instance with some initial balance given to the minter
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, Empty, BaseInstantiateMsg, QueryMsg<BaseQueryMsg, Empty>, MigrateMsg<BaseMigrateMsg, Empty>>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, Empty, BaseInstantiateMsg, QueryMsg<BaseQueryMsg, Empty>, MigrateMsg<BaseMigrateMsg, Empty>>where
TxResponse<Chain>: IndexResponse,
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg<BaseExecuteMsg, ApiRequestMsg<RequestMsg>, Empty>, InstantiateMsg<BaseInstantiateMsg, Empty>, QueryMsg<BaseQueryMsg, QueryMsg>, Empty>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg<BaseExecuteMsg, ApiRequestMsg<RequestMsg>, Empty>, InstantiateMsg<BaseInstantiateMsg, Empty>, QueryMsg<BaseQueryMsg, QueryMsg>, Empty>where
TxResponse<Chain>: IndexResponse,
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, MigrateMsg>where
TxResponse<Chain>: IndexResponse,
pub fn new(name: &str, chain: &Chain) -> Self
pub fn upload_and_register_module<R: Serialize + Debug, S: Serialize + Debug, T: Serialize + Debug, V: Serialize + Debug>(
&self,
module: &mut Contract<Chain, R, S, T, V>,
new_version: &Version
) -> Result<(), BootError>
pub fn upload_and_register_api<R: Serialize + Debug, T: Serialize + Debug, V: Serialize + Debug>(
&self,
api: &mut Contract<Chain, R, InstantiateMsg<BaseInstantiateMsg>, T, V>,
api_init_msg: &InstantiateMsg<BaseInstantiateMsg>,
new_version: &Version
) -> Result<(), BootError>
pub fn add_code_ids(&self, version: Version) -> Result<()>
pub fn get_os_core(&self, os_id: u32) -> Result<Core, BootError>
sourceimpl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, Empty>where
TxResponse<Chain>: IndexResponse,
impl<Chain: TxHandler + Clone> AbstractOS<Chain, ExecuteMsg, InstantiateMsg, QueryMsg, Empty>where
TxResponse<Chain>: IndexResponse,
Methods from Deref<Target = Contract<Chain, E, I, Q, M>>
pub fn chain(&self) -> Chain
pub fn execute(
&self,
msg: &E,
coins: Option<&[Coin]>
) -> Result<<Chain as TxHandler>::Response, BootError>
pub fn instantiate(
&self,
msg: &I,
admin: Option<&Addr>,
coins: Option<&[Coin]>
) -> Result<<Chain as TxHandler>::Response, BootError>
pub fn upload(&mut self) -> Result<<Chain as TxHandler>::Response, BootError>
pub fn query<T>(&self, query_msg: &Q) -> Result<T, BootError>where
T: Serialize + DeserializeOwned,
pub fn migrate(
&self,
migrate_msg: &M,
new_code_id: u64
) -> Result<<Chain as TxHandler>::Response, BootError>
pub fn address(&self) -> Result<Addr, BootError>
pub fn code_id(&self) -> Result<u64, BootError>
pub fn set_address(&self, address: &Addr)
pub fn set_code_id(&self, code_id: u64)
Trait Implementations
Auto Trait Implementations
impl<Chain, ExecuteMsg, InitMsg, QueryMsg, M> !RefUnwindSafe for AbstractOS<Chain, ExecuteMsg, InitMsg, QueryMsg, M>
impl<Chain, ExecuteMsg, InitMsg, QueryMsg, M> !Send for AbstractOS<Chain, ExecuteMsg, InitMsg, QueryMsg, M>
impl<Chain, ExecuteMsg, InitMsg, QueryMsg, M> !Sync for AbstractOS<Chain, ExecuteMsg, InitMsg, QueryMsg, M>
impl<Chain, ExecuteMsg, InitMsg, QueryMsg, M> Unpin for AbstractOS<Chain, ExecuteMsg, InitMsg, QueryMsg, M>where
Chain: Unpin,
ExecuteMsg: Unpin,
InitMsg: Unpin,
M: Unpin,
QueryMsg: Unpin,
impl<Chain, ExecuteMsg, InitMsg, QueryMsg, M> !UnwindSafe for AbstractOS<Chain, ExecuteMsg, InitMsg, QueryMsg, M>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request