generated from PolymeshAssociation/typescript-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 11
/
types.ts
43 lines (40 loc) · 1.04 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import BigNumber from 'bignumber.js';
import { TxTag } from '~/types';
export enum ProposalStatus {
Invalid = 'Invalid',
Active = 'Active',
Expired = 'Expired',
Successful = 'ExecutionSuccessful',
Failed = 'ExecutionFailed',
Rejected = 'Rejected',
}
export interface MultiSigProposalDetails {
/**
* The number of approvals this proposal has received
*/
approvalAmount: BigNumber;
/**
* The number of rejections this proposal has received
*/
rejectionAmount: BigNumber;
/**
* The current status of the proposal
*/
status: ProposalStatus;
/**
* An optional time in which this proposal will expire if a decision isn't reached by then
*/
expiry: Date | null;
/**
* Determines if the proposal will automatically be closed once a threshold of reject votes has been reached
*/
autoClose: boolean;
/**
* The tag for the transaction being proposed for the MultiSig to execute
*/
txTag: TxTag;
/**
* The arguments to be passed to the transaction for this proposal
*/
args: string[];
}