[][src]Trait sunshine_util::traits::ShareInformation

pub trait ShareInformation<OrgId, AccountId, Shares> {
    type Profile: AccessProfile<Shares>;
    type Genesis: From<Vec<(AccountId, Shares)>> + Into<SimpleShareGenesis<AccountId, Shares>> + VerifyShape + AccessGenesis<AccountId, Shares>;
    fn outstanding_shares(organization: OrgId) -> Shares;
fn get_share_profile(
        organization: OrgId,
        who: &AccountId
    ) -> Option<Self::Profile>;
fn get_membership_with_shape(organization: OrgId) -> Option<Self::Genesis>; }

Associated Types

type Profile: AccessProfile<Shares>

type Genesis: From<Vec<(AccountId, Shares)>> + Into<SimpleShareGenesis<AccountId, Shares>> + VerifyShape + AccessGenesis<AccountId, Shares>

Loading content...

Required methods

fn outstanding_shares(organization: OrgId) -> Shares

Gets the total number of shares issued for an organization's share identifier

fn get_share_profile(
    organization: OrgId,
    who: &AccountId
) -> Option<Self::Profile>

fn get_membership_with_shape(organization: OrgId) -> Option<Self::Genesis>

Returns the entire membership group associated with a share identifier, fallible bc checks existence

Loading content...

Implementors

Loading content...