[][src]Trait sunshine_util::traits::CreateBounty

pub trait CreateBounty<Currency, AccountId, Hash>: RegisterFoundation<Currency, AccountId> {
    type BountyInfo;
    type ReviewCommittee;
    fn screen_bounty_creation(
        foundation: Self::OrgId,
        caller: AccountId,
        bank_account: Self::BankId,
        description: Hash,
        amount_reserved_for_bounty: Currency,
        amount_claimed_available: Currency,
        acceptance_committee: Self::ReviewCommittee,
        supervision_committee: Option<Self::ReviewCommittee>
    ) -> Result<Self::BountyInfo, DispatchError>;
fn create_bounty(
        foundation: Self::OrgId,
        caller: AccountId,
        bank_account: Self::BankId,
        description: Hash,
        amount_reserved_for_bounty: Currency,
        amount_claimed_available: Currency,
        acceptance_committee: Self::ReviewCommittee,
        supervision_committee: Option<Self::ReviewCommittee>
    ) -> Result<Self::BountyId, DispatchError>; }

Associated Types

Loading content...

Required methods

fn screen_bounty_creation(
    foundation: Self::OrgId,
    caller: AccountId,
    bank_account: Self::BankId,
    description: Hash,
    amount_reserved_for_bounty: Currency,
    amount_claimed_available: Currency,
    acceptance_committee: Self::ReviewCommittee,
    supervision_committee: Option<Self::ReviewCommittee>
) -> Result<Self::BountyInfo, DispatchError>

fn create_bounty(
    foundation: Self::OrgId,
    caller: AccountId,
    bank_account: Self::BankId,
    description: Hash,
    amount_reserved_for_bounty: Currency,
    amount_claimed_available: Currency,
    acceptance_committee: Self::ReviewCommittee,
    supervision_committee: Option<Self::ReviewCommittee>
) -> Result<Self::BountyId, DispatchError>

Loading content...

Implementors

Loading content...