[][src]Trait sunshine_util::traits::MintableSignal

pub trait MintableSignal<AccountId, BlockNumber, FineArithmetic: PerThing>: OpenShareGroupVote<AccountId, BlockNumber, FineArithmetic> {
    fn mint_custom_signal_for_account(
        vote_id: u32,
        who: &AccountId,
        signal: Self::Signal
    );
fn batch_mint_signal_for_1p1v_share_group(
        organization: u32,
        share_id: u32
    ) -> Result<(Self::VoteId, Self::Signal), DispatchError>;
fn batch_mint_signal_for_weighted_share_group(
        organization: u32,
        share_id: u32
    ) -> Result<(Self::VoteId, Self::Signal), DispatchError>; }

Define the rate at which signal is minted for shares in an organization

Required methods

fn mint_custom_signal_for_account(
    vote_id: u32,
    who: &AccountId,
    signal: Self::Signal
)

fn batch_mint_signal_for_1p1v_share_group(
    organization: u32,
    share_id: u32
) -> Result<(Self::VoteId, Self::Signal), DispatchError>

fn batch_mint_signal_for_weighted_share_group(
    organization: u32,
    share_id: u32
) -> Result<(Self::VoteId, Self::Signal), DispatchError>

Mints signal for all accounts participating in the vote based on group share allocation from the ShareData module

Loading content...

Implementors

Loading content...