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

Required Methods§

source

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

source

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

source

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

source

fn get_type(&self) -> &ContractType

source

fn set_type(&mut self, kind: ContractType)

Implementors§

source§

impl<T: ConfigSystem, Balance> ModuleOperations<T, Balance> for ThreeVmInfo<T, Balance>