[][src]Trait sunshine_util::traits::WeightedShareIssuanceWrapper

pub trait WeightedShareIssuanceWrapper<OrgId, WeightedShareId, AccountId, FineArithmetic>: WeightedShareWrapper<OrgId, WeightedShareId, AccountId> {
    fn issue_weighted_shares_from_accounts(
        organization: OrgId,
        members: Vec<(AccountId, Self::Shares)>
    ) -> Result<WeightedShareId, DispatchError>;
fn burn_weighted_shares_for_member(
        organization: OrgId,
        share_id: WeightedShareId,
        account: AccountId,
        amount_to_burn: Option<FineArithmetic>
    ) -> Result<Self::Shares, DispatchError>; }

Required methods

fn issue_weighted_shares_from_accounts(
    organization: OrgId,
    members: Vec<(AccountId, Self::Shares)>
) -> Result<WeightedShareId, DispatchError>

fn burn_weighted_shares_for_member(
    organization: OrgId,
    share_id: WeightedShareId,
    account: AccountId,
    amount_to_burn: Option<FineArithmetic>
) -> Result<Self::Shares, DispatchError>

Loading content...

Implementors

Loading content...