zcash-grant-system/frontend/types/milestone.ts

37 lines
731 B
TypeScript
Raw Normal View History

2018-10-04 21:27:02 -07:00
import { Wei } from 'utils/units';
export enum MILESTONE_STATE {
WAITING = 'WAITING',
ACTIVE = 'ACTIVE',
REJECTED = 'REJECTED',
PAID = 'PAID',
}
export interface Milestone {
index: number;
state: MILESTONE_STATE;
amount: Wei;
amountAgainstPayout: Wei;
percentAgainstPayout: number;
payoutRequestVoteDeadline: number;
isPaid: boolean;
isImmediatePayout: boolean;
}
export interface ProposalMilestone extends Milestone {
content: string;
immediatePayout: boolean;
dateEstimated: string;
payoutPercent: string;
stage: string;
title: string;
}
export interface CreateMilestone {
title: string;
content: string;
dateEstimated: string;
payoutPercent: string;
2018-10-04 21:27:02 -07:00
immediatePayout: boolean;
}