@gmx-io/sdk 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/abis/CustomErrors.json +3196 -3196
- package/build/src/abis/DataStore.json +1335 -1335
- package/build/src/abis/ERC721.json +399 -399
- package/build/src/abis/EventEmitter.json +1967 -1967
- package/build/src/abis/ExchangeRouter.json +1461 -1461
- package/build/src/abis/GMT.json +478 -478
- package/build/src/abis/GlpManager.json +590 -589
- package/build/src/abis/GlvReader.json +1338 -1337
- package/build/src/abis/GlvRouter.json +595 -594
- package/build/src/abis/GmxMigrator.json +601 -601
- package/build/src/abis/GovToken.json +1040 -1040
- package/build/src/abis/MintableBaseToken.json +645 -645
- package/build/src/abis/Multicall.json +310 -310
- package/build/src/abis/OrderBook.json +1995 -1995
- package/build/src/abis/OrderBookReader.json +103 -103
- package/build/src/abis/OrderExecutor.json +108 -108
- package/build/src/abis/PositionManager.json +1162 -1162
- package/build/src/abis/PositionRouter.json +2028 -2028
- package/build/src/abis/Reader.json +328 -328
- package/build/src/abis/ReaderV2.json +628 -628
- package/build/src/abis/ReferralStorage.json +460 -460
- package/build/src/abis/RewardReader.json +78 -78
- package/build/src/abis/RewardRouter.json +767 -767
- package/build/src/abis/RewardTracker.json +848 -848
- package/build/src/abis/Router-v2.json +602 -602
- package/build/src/abis/Router.json +602 -602
- package/build/src/abis/SubaccountRouter.json +572 -572
- package/build/src/abis/SyntheticsReader.json +4238 -4238
- package/build/src/abis/SyntheticsRouter.json +67 -67
- package/build/src/abis/Timelock.json +1735 -1735
- package/build/src/abis/Token.json +311 -311
- package/build/src/abis/Treasury.json +375 -375
- package/build/src/abis/UniPool.json +81 -81
- package/build/src/abis/UniswapV2.json +1 -1
- package/build/src/abis/Vault.json +3218 -3218
- package/build/src/abis/VaultReader.json +81 -81
- package/build/src/abis/VaultV2.json +3017 -3017
- package/build/src/abis/VaultV2b.json +3218 -3218
- package/build/src/abis/Vester.json +942 -942
- package/build/src/abis/WETH.json +289 -289
- package/build/src/abis/YieldFarm.json +556 -556
- package/build/src/abis/YieldToken.json +512 -512
- package/build/src/prebuilt/hashedMarketConfigKeys.json +3656 -3656
- package/build/src/prebuilt/hashedMarketValuesKeys.json +1101 -1101
- package/package.json +2 -2
- package/build/abis/CustomErrors.json +0 -3254
- package/build/abis/DataStore.json +0 -1440
- package/build/abis/ERC721.json +0 -442
- package/build/abis/EventEmitter.json +0 -2065
- package/build/abis/ExchangeRouter.json +0 -1598
- package/build/abis/GMT.json +0 -522
- package/build/abis/GlpManager.json +0 -592
- package/build/abis/GlvReader.json +0 -1425
- package/build/abis/GlvRouter.json +0 -613
- package/build/abis/GmxMigrator.json +0 -657
- package/build/abis/GovToken.json +0 -1121
- package/build/abis/MintableBaseToken.json +0 -696
- package/build/abis/Multicall.json +0 -333
- package/build/abis/OrderBook.json +0 -1997
- package/build/abis/OrderBookReader.json +0 -111
- package/build/abis/OrderExecutor.json +0 -122
- package/build/abis/PositionManager.json +0 -1165
- package/build/abis/PositionRouter.json +0 -2030
- package/build/abis/Reader.json +0 -355
- package/build/abis/ReaderV2.json +0 -630
- package/build/abis/ReferralStorage.json +0 -507
- package/build/abis/RewardReader.json +0 -86
- package/build/abis/RewardRouter.json +0 -769
- package/build/abis/RewardTracker.json +0 -918
- package/build/abis/Router-v2.json +0 -605
- package/build/abis/Router.json +0 -605
- package/build/abis/SubaccountRouter.json +0 -648
- package/build/abis/SyntheticsReader.json +0 -4577
- package/build/abis/SyntheticsRouter.json +0 -77
- package/build/abis/Timelock.json +0 -1737
- package/build/abis/Token.json +0 -345
- package/build/abis/Treasury.json +0 -411
- package/build/abis/UniPool.json +0 -89
- package/build/abis/UniswapV2.json +0 -1
- package/build/abis/Vault.json +0 -3220
- package/build/abis/VaultReader.json +0 -87
- package/build/abis/VaultV2.json +0 -3019
- package/build/abis/VaultV2b.json +0 -3220
- package/build/abis/Vester.json +0 -1031
- package/build/abis/WETH.json +0 -320
- package/build/abis/YieldFarm.json +0 -599
- package/build/abis/YieldToken.json +0 -560
- package/build/prebuilt/hashedMarketConfigKeys.json +0 -3658
- package/build/prebuilt/hashedMarketValuesKeys.json +0 -1103
- /package/build/{prebuilt → src/prebuilt}/index.ts +0 -0
|
@@ -1,507 +1,507 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
"indexed": false,
|
|
11
|
-
"internalType": "bytes32",
|
|
12
|
-
"name": "code",
|
|
13
|
-
"type": "bytes32"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"indexed": false,
|
|
17
|
-
"internalType": "address",
|
|
18
|
-
"name": "newAccount",
|
|
19
|
-
"type": "address"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"name": "GovSetCodeOwner",
|
|
23
|
-
"type": "event"
|
|
24
|
-
},
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ReferralStorage",
|
|
4
|
+
"sourceName": "contracts/referrals/ReferralStorage.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"anonymous": false,
|
|
8
|
+
"inputs": [
|
|
25
9
|
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"internalType": "address",
|
|
31
|
-
"name": "account",
|
|
32
|
-
"type": "address"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"indexed": false,
|
|
36
|
-
"internalType": "bytes32",
|
|
37
|
-
"name": "code",
|
|
38
|
-
"type": "bytes32"
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
"name": "RegisterCode",
|
|
42
|
-
"type": "event"
|
|
10
|
+
"indexed": false,
|
|
11
|
+
"internalType": "bytes32",
|
|
12
|
+
"name": "code",
|
|
13
|
+
"type": "bytes32"
|
|
43
14
|
},
|
|
44
15
|
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"type": "address"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"indexed": false,
|
|
61
|
-
"internalType": "bytes32",
|
|
62
|
-
"name": "code",
|
|
63
|
-
"type": "bytes32"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
|
-
"name": "SetCodeOwner",
|
|
67
|
-
"type": "event"
|
|
68
|
-
},
|
|
16
|
+
"indexed": false,
|
|
17
|
+
"internalType": "address",
|
|
18
|
+
"name": "newAccount",
|
|
19
|
+
"type": "address"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"name": "GovSetCodeOwner",
|
|
23
|
+
"type": "event"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"anonymous": false,
|
|
27
|
+
"inputs": [
|
|
69
28
|
{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"internalType": "address",
|
|
75
|
-
"name": "handler",
|
|
76
|
-
"type": "address"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"indexed": false,
|
|
80
|
-
"internalType": "bool",
|
|
81
|
-
"name": "isActive",
|
|
82
|
-
"type": "bool"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
"name": "SetHandler",
|
|
86
|
-
"type": "event"
|
|
29
|
+
"indexed": false,
|
|
30
|
+
"internalType": "address",
|
|
31
|
+
"name": "account",
|
|
32
|
+
"type": "address"
|
|
87
33
|
},
|
|
88
34
|
{
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"type": "uint256"
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"name": "SetReferrerDiscountShare",
|
|
105
|
-
"type": "event"
|
|
106
|
-
},
|
|
35
|
+
"indexed": false,
|
|
36
|
+
"internalType": "bytes32",
|
|
37
|
+
"name": "code",
|
|
38
|
+
"type": "bytes32"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"name": "RegisterCode",
|
|
42
|
+
"type": "event"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"anonymous": false,
|
|
46
|
+
"inputs": [
|
|
107
47
|
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"internalType": "address",
|
|
113
|
-
"name": "referrer",
|
|
114
|
-
"type": "address"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"indexed": false,
|
|
118
|
-
"internalType": "uint256",
|
|
119
|
-
"name": "tierId",
|
|
120
|
-
"type": "uint256"
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
"name": "SetReferrerTier",
|
|
124
|
-
"type": "event"
|
|
48
|
+
"indexed": false,
|
|
49
|
+
"internalType": "address",
|
|
50
|
+
"name": "account",
|
|
51
|
+
"type": "address"
|
|
125
52
|
},
|
|
126
53
|
{
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"internalType": "uint256",
|
|
132
|
-
"name": "tierId",
|
|
133
|
-
"type": "uint256"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"indexed": false,
|
|
137
|
-
"internalType": "uint256",
|
|
138
|
-
"name": "totalRebate",
|
|
139
|
-
"type": "uint256"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"indexed": false,
|
|
143
|
-
"internalType": "uint256",
|
|
144
|
-
"name": "discountShare",
|
|
145
|
-
"type": "uint256"
|
|
146
|
-
}
|
|
147
|
-
],
|
|
148
|
-
"name": "SetTier",
|
|
149
|
-
"type": "event"
|
|
54
|
+
"indexed": false,
|
|
55
|
+
"internalType": "address",
|
|
56
|
+
"name": "newAccount",
|
|
57
|
+
"type": "address"
|
|
150
58
|
},
|
|
151
59
|
{
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"type": "bytes32"
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
"name": "SetTraderReferralCode",
|
|
168
|
-
"type": "event"
|
|
169
|
-
},
|
|
60
|
+
"indexed": false,
|
|
61
|
+
"internalType": "bytes32",
|
|
62
|
+
"name": "code",
|
|
63
|
+
"type": "bytes32"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"name": "SetCodeOwner",
|
|
67
|
+
"type": "event"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"anonymous": false,
|
|
71
|
+
"inputs": [
|
|
170
72
|
{
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
"internalType": "uint256",
|
|
176
|
-
"name": "",
|
|
177
|
-
"type": "uint256"
|
|
178
|
-
}
|
|
179
|
-
],
|
|
180
|
-
"stateMutability": "view",
|
|
181
|
-
"type": "function"
|
|
73
|
+
"indexed": false,
|
|
74
|
+
"internalType": "address",
|
|
75
|
+
"name": "handler",
|
|
76
|
+
"type": "address"
|
|
182
77
|
},
|
|
183
78
|
{
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
"type": "address"
|
|
197
|
-
}
|
|
198
|
-
],
|
|
199
|
-
"stateMutability": "view",
|
|
200
|
-
"type": "function"
|
|
201
|
-
},
|
|
79
|
+
"indexed": false,
|
|
80
|
+
"internalType": "bool",
|
|
81
|
+
"name": "isActive",
|
|
82
|
+
"type": "bool"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"name": "SetHandler",
|
|
86
|
+
"type": "event"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"anonymous": false,
|
|
90
|
+
"inputs": [
|
|
202
91
|
{
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
"type": "address"
|
|
208
|
-
}
|
|
209
|
-
],
|
|
210
|
-
"name": "getTraderReferralInfo",
|
|
211
|
-
"outputs": [
|
|
212
|
-
{
|
|
213
|
-
"internalType": "bytes32",
|
|
214
|
-
"name": "",
|
|
215
|
-
"type": "bytes32"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"internalType": "address",
|
|
219
|
-
"name": "",
|
|
220
|
-
"type": "address"
|
|
221
|
-
}
|
|
222
|
-
],
|
|
223
|
-
"stateMutability": "view",
|
|
224
|
-
"type": "function"
|
|
92
|
+
"indexed": false,
|
|
93
|
+
"internalType": "address",
|
|
94
|
+
"name": "referrer",
|
|
95
|
+
"type": "address"
|
|
225
96
|
},
|
|
226
97
|
{
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
98
|
+
"indexed": false,
|
|
99
|
+
"internalType": "uint256",
|
|
100
|
+
"name": "discountShare",
|
|
101
|
+
"type": "uint256"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"name": "SetReferrerDiscountShare",
|
|
105
|
+
"type": "event"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"anonymous": false,
|
|
109
|
+
"inputs": [
|
|
239
110
|
{
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
"type": "bytes32"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"internalType": "address",
|
|
248
|
-
"name": "_newAccount",
|
|
249
|
-
"type": "address"
|
|
250
|
-
}
|
|
251
|
-
],
|
|
252
|
-
"name": "govSetCodeOwner",
|
|
253
|
-
"outputs": [],
|
|
254
|
-
"stateMutability": "nonpayable",
|
|
255
|
-
"type": "function"
|
|
111
|
+
"indexed": false,
|
|
112
|
+
"internalType": "address",
|
|
113
|
+
"name": "referrer",
|
|
114
|
+
"type": "address"
|
|
256
115
|
},
|
|
257
116
|
{
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
"type": "bool"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
"stateMutability": "view",
|
|
274
|
-
"type": "function"
|
|
275
|
-
},
|
|
117
|
+
"indexed": false,
|
|
118
|
+
"internalType": "uint256",
|
|
119
|
+
"name": "tierId",
|
|
120
|
+
"type": "uint256"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"name": "SetReferrerTier",
|
|
124
|
+
"type": "event"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"anonymous": false,
|
|
128
|
+
"inputs": [
|
|
276
129
|
{
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
"type": "address"
|
|
282
|
-
}
|
|
283
|
-
],
|
|
284
|
-
"name": "referrerDiscountShares",
|
|
285
|
-
"outputs": [
|
|
286
|
-
{
|
|
287
|
-
"internalType": "uint256",
|
|
288
|
-
"name": "",
|
|
289
|
-
"type": "uint256"
|
|
290
|
-
}
|
|
291
|
-
],
|
|
292
|
-
"stateMutability": "view",
|
|
293
|
-
"type": "function"
|
|
130
|
+
"indexed": false,
|
|
131
|
+
"internalType": "uint256",
|
|
132
|
+
"name": "tierId",
|
|
133
|
+
"type": "uint256"
|
|
294
134
|
},
|
|
295
135
|
{
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
"type": "address"
|
|
301
|
-
}
|
|
302
|
-
],
|
|
303
|
-
"name": "referrerTiers",
|
|
304
|
-
"outputs": [
|
|
305
|
-
{
|
|
306
|
-
"internalType": "uint256",
|
|
307
|
-
"name": "",
|
|
308
|
-
"type": "uint256"
|
|
309
|
-
}
|
|
310
|
-
],
|
|
311
|
-
"stateMutability": "view",
|
|
312
|
-
"type": "function"
|
|
136
|
+
"indexed": false,
|
|
137
|
+
"internalType": "uint256",
|
|
138
|
+
"name": "totalRebate",
|
|
139
|
+
"type": "uint256"
|
|
313
140
|
},
|
|
314
141
|
{
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
142
|
+
"indexed": false,
|
|
143
|
+
"internalType": "uint256",
|
|
144
|
+
"name": "discountShare",
|
|
145
|
+
"type": "uint256"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"name": "SetTier",
|
|
149
|
+
"type": "event"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"anonymous": false,
|
|
153
|
+
"inputs": [
|
|
154
|
+
{
|
|
155
|
+
"indexed": false,
|
|
156
|
+
"internalType": "address",
|
|
157
|
+
"name": "account",
|
|
158
|
+
"type": "address"
|
|
326
159
|
},
|
|
327
160
|
{
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
161
|
+
"indexed": false,
|
|
162
|
+
"internalType": "bytes32",
|
|
163
|
+
"name": "code",
|
|
164
|
+
"type": "bytes32"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"name": "SetTraderReferralCode",
|
|
168
|
+
"type": "event"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"inputs": [],
|
|
172
|
+
"name": "BASIS_POINTS",
|
|
173
|
+
"outputs": [
|
|
174
|
+
{
|
|
175
|
+
"internalType": "uint256",
|
|
176
|
+
"name": "",
|
|
177
|
+
"type": "uint256"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"stateMutability": "view",
|
|
181
|
+
"type": "function"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"inputs": [
|
|
185
|
+
{
|
|
186
|
+
"internalType": "bytes32",
|
|
187
|
+
"name": "",
|
|
188
|
+
"type": "bytes32"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"name": "codeOwners",
|
|
192
|
+
"outputs": [
|
|
193
|
+
{
|
|
194
|
+
"internalType": "address",
|
|
195
|
+
"name": "",
|
|
196
|
+
"type": "address"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"stateMutability": "view",
|
|
200
|
+
"type": "function"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"inputs": [
|
|
204
|
+
{
|
|
205
|
+
"internalType": "address",
|
|
206
|
+
"name": "_account",
|
|
207
|
+
"type": "address"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"name": "getTraderReferralInfo",
|
|
211
|
+
"outputs": [
|
|
212
|
+
{
|
|
213
|
+
"internalType": "bytes32",
|
|
214
|
+
"name": "",
|
|
215
|
+
"type": "bytes32"
|
|
344
216
|
},
|
|
345
217
|
{
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
218
|
+
"internalType": "address",
|
|
219
|
+
"name": "",
|
|
220
|
+
"type": "address"
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"stateMutability": "view",
|
|
224
|
+
"type": "function"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"inputs": [],
|
|
228
|
+
"name": "gov",
|
|
229
|
+
"outputs": [
|
|
230
|
+
{
|
|
231
|
+
"internalType": "address",
|
|
232
|
+
"name": "",
|
|
233
|
+
"type": "address"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"stateMutability": "view",
|
|
237
|
+
"type": "function"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"inputs": [
|
|
241
|
+
{
|
|
242
|
+
"internalType": "bytes32",
|
|
243
|
+
"name": "_code",
|
|
244
|
+
"type": "bytes32"
|
|
357
245
|
},
|
|
358
246
|
{
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
247
|
+
"internalType": "address",
|
|
248
|
+
"name": "_newAccount",
|
|
249
|
+
"type": "address"
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"name": "govSetCodeOwner",
|
|
253
|
+
"outputs": [],
|
|
254
|
+
"stateMutability": "nonpayable",
|
|
255
|
+
"type": "function"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"inputs": [
|
|
259
|
+
{
|
|
260
|
+
"internalType": "address",
|
|
261
|
+
"name": "",
|
|
262
|
+
"type": "address"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"name": "isHandler",
|
|
266
|
+
"outputs": [
|
|
267
|
+
{
|
|
268
|
+
"internalType": "bool",
|
|
269
|
+
"name": "",
|
|
270
|
+
"type": "bool"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"stateMutability": "view",
|
|
274
|
+
"type": "function"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"inputs": [
|
|
278
|
+
{
|
|
279
|
+
"internalType": "address",
|
|
280
|
+
"name": "",
|
|
281
|
+
"type": "address"
|
|
282
|
+
}
|
|
283
|
+
],
|
|
284
|
+
"name": "referrerDiscountShares",
|
|
285
|
+
"outputs": [
|
|
286
|
+
{
|
|
287
|
+
"internalType": "uint256",
|
|
288
|
+
"name": "",
|
|
289
|
+
"type": "uint256"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"stateMutability": "view",
|
|
293
|
+
"type": "function"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"inputs": [
|
|
297
|
+
{
|
|
298
|
+
"internalType": "address",
|
|
299
|
+
"name": "",
|
|
300
|
+
"type": "address"
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
"name": "referrerTiers",
|
|
304
|
+
"outputs": [
|
|
305
|
+
{
|
|
306
|
+
"internalType": "uint256",
|
|
307
|
+
"name": "",
|
|
308
|
+
"type": "uint256"
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"stateMutability": "view",
|
|
312
|
+
"type": "function"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"inputs": [
|
|
316
|
+
{
|
|
317
|
+
"internalType": "bytes32",
|
|
318
|
+
"name": "_code",
|
|
319
|
+
"type": "bytes32"
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"name": "registerCode",
|
|
323
|
+
"outputs": [],
|
|
324
|
+
"stateMutability": "nonpayable",
|
|
325
|
+
"type": "function"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"inputs": [
|
|
329
|
+
{
|
|
330
|
+
"internalType": "bytes32",
|
|
331
|
+
"name": "_code",
|
|
332
|
+
"type": "bytes32"
|
|
375
333
|
},
|
|
376
334
|
{
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
335
|
+
"internalType": "address",
|
|
336
|
+
"name": "_newAccount",
|
|
337
|
+
"type": "address"
|
|
338
|
+
}
|
|
339
|
+
],
|
|
340
|
+
"name": "setCodeOwner",
|
|
341
|
+
"outputs": [],
|
|
342
|
+
"stateMutability": "nonpayable",
|
|
343
|
+
"type": "function"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"inputs": [
|
|
347
|
+
{
|
|
348
|
+
"internalType": "address",
|
|
349
|
+
"name": "_gov",
|
|
350
|
+
"type": "address"
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
"name": "setGov",
|
|
354
|
+
"outputs": [],
|
|
355
|
+
"stateMutability": "nonpayable",
|
|
356
|
+
"type": "function"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"inputs": [
|
|
360
|
+
{
|
|
361
|
+
"internalType": "address",
|
|
362
|
+
"name": "_handler",
|
|
363
|
+
"type": "address"
|
|
388
364
|
},
|
|
389
365
|
{
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
366
|
+
"internalType": "bool",
|
|
367
|
+
"name": "_isActive",
|
|
368
|
+
"type": "bool"
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
"name": "setHandler",
|
|
372
|
+
"outputs": [],
|
|
373
|
+
"stateMutability": "nonpayable",
|
|
374
|
+
"type": "function"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"inputs": [
|
|
378
|
+
{
|
|
379
|
+
"internalType": "uint256",
|
|
380
|
+
"name": "_discountShare",
|
|
381
|
+
"type": "uint256"
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
"name": "setReferrerDiscountShare",
|
|
385
|
+
"outputs": [],
|
|
386
|
+
"stateMutability": "nonpayable",
|
|
387
|
+
"type": "function"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"inputs": [
|
|
391
|
+
{
|
|
392
|
+
"internalType": "address",
|
|
393
|
+
"name": "_referrer",
|
|
394
|
+
"type": "address"
|
|
406
395
|
},
|
|
407
396
|
{
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
],
|
|
425
|
-
"name": "setTier",
|
|
426
|
-
"outputs": [],
|
|
427
|
-
"stateMutability": "nonpayable",
|
|
428
|
-
"type": "function"
|
|
397
|
+
"internalType": "uint256",
|
|
398
|
+
"name": "_tierId",
|
|
399
|
+
"type": "uint256"
|
|
400
|
+
}
|
|
401
|
+
],
|
|
402
|
+
"name": "setReferrerTier",
|
|
403
|
+
"outputs": [],
|
|
404
|
+
"stateMutability": "nonpayable",
|
|
405
|
+
"type": "function"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"inputs": [
|
|
409
|
+
{
|
|
410
|
+
"internalType": "uint256",
|
|
411
|
+
"name": "_tierId",
|
|
412
|
+
"type": "uint256"
|
|
429
413
|
},
|
|
430
414
|
{
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
"name": "_account",
|
|
435
|
-
"type": "address"
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
"internalType": "bytes32",
|
|
439
|
-
"name": "_code",
|
|
440
|
-
"type": "bytes32"
|
|
441
|
-
}
|
|
442
|
-
],
|
|
443
|
-
"name": "setTraderReferralCode",
|
|
444
|
-
"outputs": [],
|
|
445
|
-
"stateMutability": "nonpayable",
|
|
446
|
-
"type": "function"
|
|
415
|
+
"internalType": "uint256",
|
|
416
|
+
"name": "_totalRebate",
|
|
417
|
+
"type": "uint256"
|
|
447
418
|
},
|
|
448
419
|
{
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
420
|
+
"internalType": "uint256",
|
|
421
|
+
"name": "_discountShare",
|
|
422
|
+
"type": "uint256"
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
"name": "setTier",
|
|
426
|
+
"outputs": [],
|
|
427
|
+
"stateMutability": "nonpayable",
|
|
428
|
+
"type": "function"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"inputs": [
|
|
432
|
+
{
|
|
433
|
+
"internalType": "address",
|
|
434
|
+
"name": "_account",
|
|
435
|
+
"type": "address"
|
|
460
436
|
},
|
|
461
437
|
{
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
438
|
+
"internalType": "bytes32",
|
|
439
|
+
"name": "_code",
|
|
440
|
+
"type": "bytes32"
|
|
441
|
+
}
|
|
442
|
+
],
|
|
443
|
+
"name": "setTraderReferralCode",
|
|
444
|
+
"outputs": [],
|
|
445
|
+
"stateMutability": "nonpayable",
|
|
446
|
+
"type": "function"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"inputs": [
|
|
450
|
+
{
|
|
451
|
+
"internalType": "bytes32",
|
|
452
|
+
"name": "_code",
|
|
453
|
+
"type": "bytes32"
|
|
454
|
+
}
|
|
455
|
+
],
|
|
456
|
+
"name": "setTraderReferralCodeByUser",
|
|
457
|
+
"outputs": [],
|
|
458
|
+
"stateMutability": "nonpayable",
|
|
459
|
+
"type": "function"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"inputs": [
|
|
463
|
+
{
|
|
464
|
+
"internalType": "uint256",
|
|
465
|
+
"name": "",
|
|
466
|
+
"type": "uint256"
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
"name": "tiers",
|
|
470
|
+
"outputs": [
|
|
471
|
+
{
|
|
472
|
+
"internalType": "uint256",
|
|
473
|
+
"name": "totalRebate",
|
|
474
|
+
"type": "uint256"
|
|
484
475
|
},
|
|
485
476
|
{
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
477
|
+
"internalType": "uint256",
|
|
478
|
+
"name": "discountShare",
|
|
479
|
+
"type": "uint256"
|
|
480
|
+
}
|
|
481
|
+
],
|
|
482
|
+
"stateMutability": "view",
|
|
483
|
+
"type": "function"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"inputs": [
|
|
487
|
+
{
|
|
488
|
+
"internalType": "address",
|
|
489
|
+
"name": "",
|
|
490
|
+
"type": "address"
|
|
491
|
+
}
|
|
492
|
+
],
|
|
493
|
+
"name": "traderReferralCodes",
|
|
494
|
+
"outputs": [
|
|
495
|
+
{
|
|
496
|
+
"internalType": "bytes32",
|
|
497
|
+
"name": "",
|
|
498
|
+
"type": "bytes32"
|
|
499
|
+
}
|
|
500
|
+
],
|
|
501
|
+
"stateMutability": "view",
|
|
502
|
+
"type": "function"
|
|
503
|
+
}
|
|
504
|
+
],
|
|
505
|
+
"linkReferences": {},
|
|
506
|
+
"deployedLinkReferences": {}
|
|
507
507
|
}
|