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

25 lines
501 B
TypeScript
Raw Normal View History

import { Zat } from 'utils/units';
import { Proposal } from 'types';
export interface Contribution {
id: string;
txId: string;
amount: string;
dateCreated: number;
status: 'PENDING' | 'CONFIRMED';
}
export interface ContributionWithAddresses extends Contribution {
addresses: {
sprout: string;
transparent: string;
memo: string;
};
}
export interface UserContribution extends Omit<Contribution, 'amount' | 'txId'> {
amount: Zat;
txId?: string;
proposal: Proposal;
}