generated from PolymeshAssociation/typescript-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 11
/
types.ts
43 lines (35 loc) · 873 Bytes
/
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 { Identity } from '~/internal';
import { Modify } from '~/types/utils';
export enum TargetTreatment {
Include = 'Include',
Exclude = 'Exclude',
}
export interface CorporateActionTargets {
identities: Identity[];
treatment: TargetTreatment;
}
export interface TaxWithholding {
identity: Identity;
percentage: BigNumber;
}
export type InputTargets = Modify<
CorporateActionTargets,
{
identities: (string | Identity)[];
}
>;
export type InputTaxWithholding = Modify<
TaxWithholding,
{
identity: string | Identity;
}
>;
export enum CorporateActionKind {
PredictableBenefit = 'PredictableBenefit',
UnpredictableBenefit = 'UnpredictableBenefit',
IssuerNotice = 'IssuerNotice',
Reorganization = 'Reorganization',
Other = 'Other',
}
export { Params as CorporateActionParams } from '.';