pub struct Abstract<Chain: CwEnv> {
pub ans_host: AnsHost<Chain>,
pub registry: Registry<Chain>,
pub module_factory: ModuleFactory<Chain>,
pub ibc: AbstractIbc<Chain>,
/* private fields */
}
Fields§
§ans_host: AnsHost<Chain>
§registry: Registry<Chain>
§module_factory: ModuleFactory<Chain>
§ibc: AbstractIbc<Chain>
Implementations§
Trait Implementations§
Source§impl<Chain: CwEnv> Deploy<Chain> for Abstract<Chain>
impl<Chain: CwEnv> Deploy<Chain> for Abstract<Chain>
Source§fn deploy_on(
chain: Chain,
_deploy_data: Self::DeployData,
) -> Result<Self, AbstractInterfaceError>
fn deploy_on( chain: Chain, _deploy_data: Self::DeployData, ) -> Result<Self, AbstractInterfaceError>
Deploys abstract using provided TxHandler::Sender
.
After deployment sender of abstract contracts is a sender of provided chain
Source§type Error = AbstractInterfaceError
type Error = AbstractInterfaceError
Error type returned by the deploy functions.
Source§type DeployData = ()
type DeployData = ()
Data required to deploy the application.
Source§fn store_on(chain: Chain) -> Result<Self, AbstractInterfaceError>
fn store_on(chain: Chain) -> Result<Self, AbstractInterfaceError>
Stores/uploads the application to the chain.
Source§fn get_contracts_mut(&mut self) -> Vec<Box<&mut dyn ContractInstance<Chain>>>
fn get_contracts_mut(&mut self) -> Vec<Box<&mut dyn ContractInstance<Chain>>>
Returns all the contracts in this deployment instance
Used to set the contract state (addr and code_id) when importing the package.
Auto Trait Implementations§
impl<Chain> Freeze for Abstract<Chain>where
Chain: Freeze,
impl<Chain> RefUnwindSafe for Abstract<Chain>where
Chain: RefUnwindSafe,
impl<Chain> Send for Abstract<Chain>where
Chain: Send,
impl<Chain> Sync for Abstract<Chain>where
Chain: Sync,
impl<Chain> Unpin for Abstract<Chain>where
Chain: Unpin,
impl<Chain> UnwindSafe for Abstract<Chain>where
Chain: UnwindSafe,
Blanket Implementations§
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> 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 more