Trait abstract_interface::RegisteredModule
source · pub trait RegisteredModule {
type InitMsg: Serialize;
// Required methods
fn module_id<'a>() -> &'a str;
fn module_version<'a>() -> &'a str;
// Provided method
fn installed_module_contract_id(account_id: &AccountId) -> String { ... }
}
Expand description
Trait to access module information tied directly to the type.
Required Associated Types§
Required Methods§
sourcefn module_version<'a>() -> &'a str
fn module_version<'a>() -> &'a str
The version of the module.
Provided Methods§
sourcefn installed_module_contract_id(account_id: &AccountId) -> String
fn installed_module_contract_id(account_id: &AccountId) -> String
Create the unique contract ID for a module installed on an Account.
Object Safety§
This trait is not object safe.