2019-01-09 11:07:50 -08:00
|
|
|
import { Zat } from 'utils/units';
|
2019-01-09 12:48:41 -08:00
|
|
|
import { Proposal, User } from 'types';
|
2019-01-09 11:07:50 -08:00
|
|
|
|
2018-11-21 19:18:22 -08:00
|
|
|
export interface Contribution {
|
2019-01-09 14:26:28 -08:00
|
|
|
id: number;
|
2018-11-21 19:18:22 -08:00
|
|
|
txId: string;
|
|
|
|
amount: string;
|
|
|
|
dateCreated: number;
|
2019-01-09 11:07:50 -08:00
|
|
|
status: 'PENDING' | 'CONFIRMED';
|
2018-11-21 19:18:22 -08:00
|
|
|
}
|
2019-01-06 22:58:33 -08:00
|
|
|
|
|
|
|
export interface ContributionWithAddresses extends Contribution {
|
|
|
|
addresses: {
|
|
|
|
sprout: string;
|
|
|
|
transparent: string;
|
|
|
|
memo: string;
|
|
|
|
};
|
|
|
|
}
|
2019-01-09 11:07:50 -08:00
|
|
|
|
2019-01-09 12:48:41 -08:00
|
|
|
export interface ContributionWithUser extends Contribution {
|
|
|
|
user: User;
|
|
|
|
}
|
|
|
|
|
2019-01-09 11:07:50 -08:00
|
|
|
export interface UserContribution extends Omit<Contribution, 'amount' | 'txId'> {
|
|
|
|
amount: Zat;
|
|
|
|
txId?: string;
|
|
|
|
proposal: Proposal;
|
|
|
|
}
|