[][src]Trait sunshine_util::traits::WeightedShareWrapper

pub trait WeightedShareWrapper<OrgId, WeightedShareId, AccountId> {
    type Shares: Parameter + Member + AtLeast32Bit + Codec;
    type Profile: AccessProfile<Self::Shares>;
    type Genesis;
    fn get_member_share_profile(
        organization: OrgId,
        share_id: WeightedShareId,
        member: &AccountId
    ) -> Option<Self::Profile>;
fn get_weighted_share_group(
        organization: OrgId,
        share_id: WeightedShareId
    ) -> Result<Self::Genesis, DispatchError>;
fn get_outstanding_weighted_shares(
        organization: OrgId,
        share_id: WeightedShareId
    ) -> Option<Self::Shares>;
fn generate_unique_weighted_share_id(organization: OrgId) -> WeightedShareId; }

Associated Types

type Shares: Parameter + Member + AtLeast32Bit + Codec

type Profile: AccessProfile<Self::Shares>

type Genesis

Loading content...

Required methods

fn get_member_share_profile(
    organization: OrgId,
    share_id: WeightedShareId,
    member: &AccountId
) -> Option<Self::Profile>

fn get_weighted_share_group(
    organization: OrgId,
    share_id: WeightedShareId
) -> Result<Self::Genesis, DispatchError>

fn get_outstanding_weighted_shares(
    organization: OrgId,
    share_id: WeightedShareId
) -> Option<Self::Shares>

fn generate_unique_weighted_share_id(organization: OrgId) -> WeightedShareId

Loading content...

Implementors

Loading content...