pub trait ModuleOperations<T, Balance>where
    T: Config,{
    // Required methods
    fn get_bytecode(&self) -> &Vec<u8, Global> ;
    fn get_author(
        &self
    ) -> Option<&AuthorInfo<<T as Config>::AccountId, Balance>>;
    fn set_author(
        &mut self,
        author: AuthorInfo<<T as Config>::AccountId, Balance>
    );
    fn get_type(&self) -> &ContractType;
    fn set_type(&mut self, kind: ContractType);
}

Required Methods§

fn get_bytecode(&self) -> &Vec<u8, Global>

fn get_author(&self) -> Option<&AuthorInfo<<T as Config>::AccountId, Balance>>

fn set_author(&mut self, author: AuthorInfo<<T as Config>::AccountId, Balance>)

fn get_type(&self) -> &ContractType

fn set_type(&mut self, kind: ContractType)

Implementors§

§

impl<T, Balance> ModuleOperations<T, Balance> for ThreeVmInfo<T, Balance>where T: Config,