[][src]Trait sunshine_util::traits::SubmitMilestone

pub trait SubmitMilestone<Currency, AccountId, Hash>: SuperviseGrantApplication<Currency, AccountId, Hash> {
    type Milestone: StartReview<Self::MultiVoteId> + ApproveWithoutTransfer + SetMakeTransfer<Self::BankId, u32>;
    type MilestoneState;
    fn submit_milestone(
        caller: AccountId,
        bounty_id: u32,
        application_id: u32,
        team_id: Self::TeamId,
        submission_reference: Hash,
        amount_requested: Currency
    ) -> Result<u32, DispatchError>;
fn trigger_milestone_review(
        caller: AccountId,
        bounty_id: u32,
        milestone_id: u32
    ) -> Result<Self::MilestoneState, DispatchError>;
fn sudo_approves_milestone(
        caller: AccountId,
        bounty_id: u32,
        milestone_id: u32
    ) -> Result<Self::MilestoneState, DispatchError>;
fn poll_milestone(
        caller: AccountId,
        bounty_id: u32,
        milestone_id: u32
    ) -> Result<Self::MilestoneState, DispatchError>; }

Associated Types

Loading content...

Required methods

fn submit_milestone(
    caller: AccountId,
    bounty_id: u32,
    application_id: u32,
    team_id: Self::TeamId,
    submission_reference: Hash,
    amount_requested: Currency
) -> Result<u32, DispatchError>

fn trigger_milestone_review(
    caller: AccountId,
    bounty_id: u32,
    milestone_id: u32
) -> Result<Self::MilestoneState, DispatchError>

fn sudo_approves_milestone(
    caller: AccountId,
    bounty_id: u32,
    milestone_id: u32
) -> Result<Self::MilestoneState, DispatchError>

fn poll_milestone(
    caller: AccountId,
    bounty_id: u32,
    milestone_id: u32
) -> Result<Self::MilestoneState, DispatchError>

Loading content...

Implementors

Loading content...