Struct abstract_boot::AbstractAccount
source · pub struct AbstractAccount<Chain: BootEnvironment> {
pub manager: Manager<Chain>,
pub proxy: Proxy<Chain>,
}Fields§
§manager: Manager<Chain>§proxy: Proxy<Chain>Implementations§
source§impl<Chain: BootEnvironment> AbstractAccount<Chain>
impl<Chain: BootEnvironment> AbstractAccount<Chain>
pub fn new(chain: Chain, account_id: Option<AccountId>) -> Self
pub fn upload(&mut self) -> Result<(), AbstractBootError>
sourcepub fn register(
&self,
version_control: &VersionControl<Chain>,
version: &str
) -> Result<(), AbstractBootError>
pub fn register( &self, version_control: &VersionControl<Chain>, version: &str ) -> Result<(), AbstractBootError>
Register the account core contracts in the version control
pub fn install_module<TInitMsg: Serialize>( &mut self, module_id: &str, init_msg: &TInitMsg ) -> Result<(), AbstractBootError>
sourcepub fn expect_modules(
&self,
module_addrs: Vec<String>
) -> Result<Vec<ManagerModuleInfo>, AbstractBootError>
pub fn expect_modules( &self, module_addrs: Vec<String> ) -> Result<Vec<ManagerModuleInfo>, AbstractBootError>
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>, AbstractBootError>
pub fn expect_whitelist( &self, whitelisted_addrs: Vec<String> ) -> Result<Vec<String>, AbstractBootError>
Checks that the proxy’s whitelist includes the expected module addresses. Automatically includes the manager in the expected whitelist.