OWNABLE

Trait OWNABLE 

Source
pub trait OWNABLE<Storage: ContractStorage>: ContractContext<Storage> {
    // Provided methods
    fn init(
        &mut self,
        contract_hash: ContractHash,
        package_hash: ContractPackageHash,
    ) { ... }
    fn owner(&self) -> Key { ... }
    fn only_owner(&self) { ... }
    fn is_owner(&self) -> bool { ... }
    fn renounce_ownership(&mut self) { ... }
    fn transfer_ownership(&mut self, new_owner: Key) { ... }
    fn _transfer_ownership(&mut self, new_owner: Key) { ... }
    fn ownable_emit(&mut self, ownable_event: &OwnableEvent) { ... }
}

Provided Methods§

Source

fn init( &mut self, contract_hash: ContractHash, package_hash: ContractPackageHash, )

Source

fn owner(&self) -> Key

Source

fn only_owner(&self)

Source

fn is_owner(&self) -> bool

Source

fn renounce_ownership(&mut self)

Source

fn transfer_ownership(&mut self, new_owner: Key)

Source

fn _transfer_ownership(&mut self, new_owner: Key)

Source

fn ownable_emit(&mut self, ownable_event: &OwnableEvent)

Implementors§