[][src]Trait sunshine_util::traits::ShareBank

pub trait ShareBank<AccountId>: WeightedShareGroup<AccountId> {
    fn issue(
        organization: u32,
        share_id: u32,
        new_owner: AccountId,
        amount: Self::Shares,
        batch: bool
    ) -> DispatchResult;
fn burn(
        organization: u32,
        share_id: u32,
        old_owner: AccountId,
        amount: Self::Shares,
        batch: bool
    ) -> DispatchResult;
fn batch_issue(
        organization: u32,
        share_id: u32,
        genesis: Self::Genesis
    ) -> DispatchResult;
fn batch_burn(
        organization: u32,
        share_id: u32,
        genesis: Self::Genesis
    ) -> DispatchResult; }

Issuance logic for existing shares (not new shares)

Required methods

fn issue(
    organization: u32,
    share_id: u32,
    new_owner: AccountId,
    amount: Self::Shares,
    batch: bool
) -> DispatchResult

fn burn(
    organization: u32,
    share_id: u32,
    old_owner: AccountId,
    amount: Self::Shares,
    batch: bool
) -> DispatchResult

fn batch_issue(
    organization: u32,
    share_id: u32,
    genesis: Self::Genesis
) -> DispatchResult

fn batch_burn(
    organization: u32,
    share_id: u32,
    genesis: Self::Genesis
) -> DispatchResult

Loading content...

Implementors

Loading content...