[][src]Trait sunshine_util::traits::RegisterShareGroup

pub trait RegisterShareGroup<OrgId, ShareId, AccountId, Shares>: ShareGroupChecks<OrgId, ShareId, AccountId> {
    fn register_inner_flat_share_group(
        organization: OrgId,
        group: Vec<AccountId>
    ) -> Result<ShareId, DispatchError>;
fn register_inner_weighted_share_group(
        organization: OrgId,
        group: Vec<(AccountId, Shares)>
    ) -> Result<ShareId, DispatchError>;
fn register_outer_flat_share_group(
        organization: u32,
        group: Vec<AccountId>
    ) -> Result<ShareId, DispatchError>;
fn register_outer_weighted_share_group(
        organization: u32,
        group: Vec<(AccountId, Shares)>
    ) -> Result<ShareId, DispatchError>; }

Required methods

fn register_inner_flat_share_group(
    organization: OrgId,
    group: Vec<AccountId>
) -> Result<ShareId, DispatchError>

fn register_inner_weighted_share_group(
    organization: OrgId,
    group: Vec<(AccountId, Shares)>
) -> Result<ShareId, DispatchError>

fn register_outer_flat_share_group(
    organization: u32,
    group: Vec<AccountId>
) -> Result<ShareId, DispatchError>

fn register_outer_weighted_share_group(
    organization: u32,
    group: Vec<(AccountId, Shares)>
) -> Result<ShareId, DispatchError>

Loading content...

Implementors

Loading content...