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

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

Associated Types

Loading content...

Required methods

fn register_inner_flat_share_group(
    organization: u32,
    group: Vec<AccountId>
) -> Result<Self::MultiShareIdentifier, DispatchError>

fn register_inner_weighted_share_group(
    organization: u32,
    group: Vec<(AccountId, Shares)>
) -> Result<Self::MultiShareIdentifier, DispatchError>

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

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

Loading content...

Implementors

Loading content...