[][src]Trait sunshine_util::traits::SupervisorKeyManagement

pub trait SupervisorKeyManagement<AccountId> {
    fn is_organization_supervisor(uuid: u32, who: &AccountId) -> bool;
fn set_supervisor(uuid: u32, supervisor: AccountId) -> DispatchResult;
fn swap_supervisor(
        uuid: u32,
        old_key: AccountId,
        new_key: AccountId
    ) -> Result<AccountId, DispatchError>; }

Required methods

fn is_organization_supervisor(uuid: u32, who: &AccountId) -> bool

fn set_supervisor(uuid: u32, supervisor: AccountId) -> DispatchResult

fn swap_supervisor(
    uuid: u32,
    old_key: AccountId,
    new_key: AccountId
) -> Result<AccountId, DispatchError>

Loading content...

Implementors

Loading content...