-
Notifications
You must be signed in to change notification settings - Fork 6
/
token.config.js
103 lines (93 loc) · 2.58 KB
/
token.config.js
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
const USDx = {
// Ensure these values are ordered in the object for the respective param list
// index in the erc20 contract setPrams() method.
tokenName: 'TokenX USD', // tokenName
tokenSymbol: 'USDx', // tokenSymbol
tokenTLA: 'USD', // tokenTLA
tokenVersion: 'v0.3.0', // tokenVersion
tokenDecimals: 2, // tokenDecimals
feeContract: "0x0", // fee account
fxBPSRate: 10000
}
const MXNx = {
// Ensure these values are ordered in the object for the respective param list
// index in the erc20 contract setPrams() method.
tokenName: 'TokenX MXN', // tokenName
tokenSymbol: 'MXNx', // tokenSymbol
tokenTLA: 'MXN', // tokenTLA
tokenVersion: 'v0.3.0', // tokenVersion
tokenDecimals: 2, // tokenDecimals
feeContract: "0x0", // fee account
fxBPSRate: 510
}
const GBPx = {
// Ensure these values are ordered in the object for the respective param list
// index in the erc20 contract setPrams() method.
tokenName: 'TokenX GBP', // tokenName
tokenSymbol: 'GBPx', // tokenSymbol
tokenTLA: 'GBP', // tokenTLA
tokenVersion: 'v0.3.0', // tokenVersion
tokenDecimals: 2, // tokenDecimals
feeContract: "0x0", // fee account
fxBPSRate: 13200
}
const JPYx = {
// Ensure these values are ordered in the object for the respective param list
// index in the erc20 contract setPrams() method.
tokenName: 'TokenX JPY', // tokenName
tokenSymbol: 'JPYx', // tokenSymbol
tokenTLA: 'JPY', // tokenTLA
tokenVersion: 'v0.3.0', // tokenVersion
tokenDecimals: 0, // tokenDecimals
feeContract: "0x0", // fee account
fxBPSRate: 90
}
const EURx = {
// Ensure these values are ordered in the object for the respective param list
// index in the erc20 contract setPrams() method.
tokenName: 'TokenX EUR', // tokenName
tokenSymbol: 'EURx', // tokenSymbol
tokenTLA: 'EUR', // tokenTLA
tokenVersion: 'v0.3.0', // tokenVersion
tokenDecimals: 2, // tokenDecimals
feeContract: "0x0", // fee account
fxBPSRate: 11700
}
const TOKEN_DETAILS = {
USDx,
EURx,
// MXNx,
// GBPx,
// JPYx,
};
const AUTHORITY_DETAILS = {
firmName: "Token, Inc.",
authorityAddress: "0x8cb2cebb0070b231d4ba4d3b747acaebdfbbd142"
}
const FEE_PARAMS = {
feeBps: 2, // bps fee
feeMin: 0, // min fee
feeMax: 100, // max fee
feeFlat: 2, // flat fee
feeMsg: "0x547846656573"
}
module.exports = {
mode: 'production',
development: {
TOKEN_DETAILS,
AUTHORITY_DETAILS,
FEE_PARAMS
},
production: {
TOKEN_DETAILS,
AUTHORITY_DETAILS,
FEE_PARAMS
}
}
// "Token USD",
// "USDx",
// "USD",
// "v0.1.2",
// 2,
// "0x310bd4225ecef15ba21bab3fce87289ee6568f4f",
// 10000