-
Notifications
You must be signed in to change notification settings - Fork 211
/
types.ts
74 lines (68 loc) · 1.47 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import EVM from './vms/evm'
export type SendTokenResponse = {
status: number,
message: string,
txHash?: string
}
export type RateLimiterConfig = {
[key: string]: any,
RATELIMIT: {
REVERSE_PROXIES?: number,
MAX_LIMIT: number,
WINDOW_SIZE: number,
PATH?: string,
SKIP_FAILED_REQUESTS?: boolean,
[key: string]: any
}
}
export type EVMInstanceAndConfig = {
config: ChainType,
instance: EVM
}
export type ChainType = {
ID: string,
NAME: string,
TOKEN: string,
RPC: string,
CHAINID: number,
EXPLORER: string,
IMAGE: string,
DECIMALS?: number,
MAX_PRIORITY_FEE: string,
MAX_FEE: string,
DRIP_AMOUNT: number,
RECALIBRATE?: number,
COUPON_REQUIRED?: boolean,
MAINNET_BALANCE_CHECK_ENABLED?: boolean,
RATELIMIT: {
WINDOW_SIZE: number,
MAX_LIMIT: number
}
}
export type ERC20Type = {
ID: string,
NAME: string,
TOKEN: string,
HOSTID: string,
CONTRACTADDRESS: string,
GASLIMIT: string,
DRIP_AMOUNT: number,
DECIMALS: number,
RATELIMIT: {
WINDOW_SIZE: number,
MAX_LIMIT: number
},
IMAGE?: string,
RECALIBRATE?: number,
RPC?: string,
CHAINID?: number,
EXPLORER?: string,
MAX_PRIORITY_FEE?: string,
MAX_FEE?: string,
COUPON_REQUIRED?: boolean,
MAINNET_BALANCE_CHECK_ENABLED?: boolean,
}
export type CouponValidity = {
isValid: boolean,
amount: number,
}