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§
source§impl<Chain: CwEnv> Abstract<Chain>
impl<Chain: CwEnv> Abstract<Chain>
pub fn new(chain: Chain) -> Self
pub fn instantiate( &mut self, admin: String, ) -> Result<(), AbstractInterfaceError>
pub fn contracts(&self) -> Vec<(&Contract<Chain>, String)>
pub fn update_sender(&mut self, sender: &Chain::Sender)
pub fn call_as(&self, sender: &<Chain as TxHandler>::Sender) -> Self
source§impl<Chain: CwEnv<Sender = Addr>> Abstract<Chain>
impl<Chain: CwEnv<Sender = Addr>> Abstract<Chain>
pub fn deploy_on_mock(chain: Chain) -> Result<Self, AbstractInterfaceError>
pub fn mock_admin(chain: &Chain) -> <MockBase as TxHandler>::Sender
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 = <Chain as TxHandler>::Sender
type DeployData = <Chain as TxHandler>::Sender
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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