[][src]Trait sunshine_util::traits::SubmitGrantApplication

pub trait SubmitGrantApplication<Currency, AccountId, Hash>: CreateBounty<Currency, AccountId, Hash> + UseTermsOfAgreement<AccountId> {
    type GrantApp: StartReview<Self::MultiVoteId> + StartTeamConsentPetition<Self::MultiShareId, Self::MultiVoteId> + ApproveGrant<Self::TeamId>;
    fn form_grant_application(
        caller: AccountId,
        bounty_id: u32,
        description: Hash,
        total_amount: Currency,
        terms_of_agreement: Self::TermsOfAgreement
    ) -> Result<Self::GrantApp, DispatchError>;
fn submit_grant_application(
        caller: AccountId,
        bounty_id: u32,
        description: Hash,
        total_amount: Currency,
        terms_of_agreement: Self::TermsOfAgreement
    ) -> Result<u32, DispatchError>; }

Associated Types

Loading content...

Required methods

fn form_grant_application(
    caller: AccountId,
    bounty_id: u32,
    description: Hash,
    total_amount: Currency,
    terms_of_agreement: Self::TermsOfAgreement
) -> Result<Self::GrantApp, DispatchError>

fn submit_grant_application(
    caller: AccountId,
    bounty_id: u32,
    description: Hash,
    total_amount: Currency,
    terms_of_agreement: Self::TermsOfAgreement
) -> Result<u32, DispatchError>

Loading content...

Implementors

Loading content...