pub struct AbstractAccount<Chain: CwEnv> {
pub manager: Manager<Chain>,
pub proxy: Proxy<Chain>,
}
Fields§
§manager: Manager<Chain>
§proxy: Proxy<Chain>
Implementations§
source§impl<Chain: CwEnv + ChainUpload> AbstractAccount<Chain>
impl<Chain: CwEnv + ChainUpload> AbstractAccount<Chain>
pub fn upload(&mut self) -> Result<(), AbstractInterfaceError>
source§impl<Chain: CwEnv> AbstractAccount<Chain>
impl<Chain: CwEnv> AbstractAccount<Chain>
pub fn new(chain: Chain, account_id: Option<AccountId>) -> Self
sourcepub fn register(
&self,
version_control: &VersionControl<Chain>,
version: &str
) -> Result<(), AbstractInterfaceError>
pub fn register( &self, version_control: &VersionControl<Chain>, version: &str ) -> Result<(), AbstractInterfaceError>
Register the account core contracts in the version control
pub fn install_module<TInitMsg: Serialize>( &mut self, module_id: &str, init_msg: &TInitMsg ) -> Result<(), AbstractInterfaceError>
sourcepub fn expect_modules(
&self,
module_addrs: Vec<String>
) -> Result<Vec<ManagerModuleInfo>, AbstractInterfaceError>
pub fn expect_modules( &self, module_addrs: Vec<String> ) -> Result<Vec<ManagerModuleInfo>, AbstractInterfaceError>
Assert that the Account has the expected modules with the provided expected_module_addrs installed.
Note that the proxy is automatically included in the assertions.
Returns the Vec<ManagerModuleInfo>
from the manager
sourcepub fn expect_whitelist(
&self,
whitelisted_addrs: Vec<String>
) -> Result<Vec<String>, AbstractInterfaceError>
pub fn expect_whitelist( &self, whitelisted_addrs: Vec<String> ) -> Result<Vec<String>, AbstractInterfaceError>
Checks that the proxy’s whitelist includes the expected module addresses. Automatically includes the manager in the expected whitelist.
Auto Trait Implementations§
impl<Chain> RefUnwindSafe for AbstractAccount<Chain>where Chain: RefUnwindSafe,
impl<Chain> Send for AbstractAccount<Chain>where Chain: Send,
impl<Chain> Sync for AbstractAccount<Chain>where Chain: Sync,
impl<Chain> Unpin for AbstractAccount<Chain>where Chain: Unpin,
impl<Chain> UnwindSafe for AbstractAccount<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> 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