AdminControl

Trait AdminControl 

Source
pub trait AdminControl<Storage: ContractStorage>: ContractContext<Storage> {
    // Provided methods
    fn init(&mut self) { ... }
    fn add_admin(&mut self, address: Key) { ... }
    fn disable_admin(&mut self, address: Key) { ... }
    fn add_admin_without_checked(&mut self, address: Key) { ... }
    fn assert_caller_is_admin(&self) { ... }
}

Provided Methods§

Source

fn init(&mut self)

Source

fn add_admin(&mut self, address: Key)

Source

fn disable_admin(&mut self, address: Key)

Source

fn add_admin_without_checked(&mut self, address: Key)

Source

fn assert_caller_is_admin(&self)

Implementors§