@gainsnetwork/sdk 0.0.51-multi-collat-rc4 → 0.0.52
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/README.md +11 -11
- package/lib/constants.d.ts +221 -220
- package/lib/constants.js +238 -237
- package/lib/contracts/addresses.d.ts +2 -2
- package/lib/contracts/addresses.js +15 -19
- package/lib/contracts/addresses.json +35 -70
- package/lib/contracts/index.d.ts +6 -6
- package/lib/contracts/index.js +35 -34
- package/lib/contracts/types/generated/GFarmTradingStorageV5.d.ts +1911 -1911
- package/lib/contracts/types/generated/GFarmTradingStorageV5.js +2 -2
- package/lib/contracts/types/generated/GNSBorrowingFees.d.ts +1341 -1067
- package/lib/contracts/types/generated/GNSBorrowingFees.js +2 -2
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.d.ts +1058 -0
- package/lib/contracts/types/generated/{GNSTradingCallbacks.js → GNSBorrowingFeesV6_4.js} +2 -2
- package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +533 -533
- package/lib/contracts/types/generated/GNSNftRewardsV6.js +2 -2
- package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +613 -613
- package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +2 -2
- package/lib/contracts/types/generated/GNSPairInfosV6_1.d.ts +911 -0
- package/lib/contracts/types/generated/{GNSMultiCollatDiamond.js → GNSPairInfosV6_1.js} +2 -2
- package/lib/contracts/types/generated/GNSPairsStorageV6.d.ts +660 -0
- package/lib/contracts/types/generated/{GNSTradingStorage.js → GNSPairsStorageV6.js} +2 -2
- package/lib/contracts/types/generated/{GNSTradingCallbacks.d.ts → GNSTradingCallbacksV6_4.d.ts} +821 -875
- package/lib/contracts/types/generated/{GNSTrading.js → GNSTradingCallbacksV6_4.js} +2 -2
- package/lib/contracts/types/generated/GTokenOpenPnlFeed.d.ts +557 -557
- package/lib/contracts/types/generated/GTokenOpenPnlFeed.js +2 -2
- package/lib/contracts/types/generated/GTokenV6_3_2.d.ts +1838 -1838
- package/lib/contracts/types/generated/GTokenV6_3_2.js +2 -2
- package/lib/contracts/types/generated/common.d.ts +22 -22
- package/lib/contracts/types/generated/common.js +2 -2
- package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +83 -83
- package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +2691 -2691
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.d.ts +113 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.js +1742 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +128 -124
- package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +2206 -1789
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +100 -100
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +1116 -1116
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +100 -100
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +1003 -1003
- package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.d.ts +98 -0
- package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.js +1485 -0
- package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.d.ts +117 -0
- package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.js +1265 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.d.ts +82 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.js +1326 -0
- package/lib/contracts/types/generated/factories/GTokenOpenPnlFeed__factory.d.ts +59 -59
- package/lib/contracts/types/generated/factories/GTokenOpenPnlFeed__factory.js +765 -765
- package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.d.ts +110 -110
- package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.js +2682 -2682
- package/lib/contracts/types/generated/factories/index.d.ts +9 -10
- package/lib/contracts/types/generated/factories/index.js +24 -26
- package/lib/contracts/types/generated/index.d.ts +19 -21
- package/lib/contracts/types/generated/index.js +45 -47
- package/lib/contracts/types/index.d.ts +23 -27
- package/lib/contracts/types/index.js +2 -10
- package/lib/contracts/utils/borrowingFees.d.ts +8 -8
- package/lib/contracts/utils/borrowingFees.js +28 -28
- package/lib/contracts/utils/index.d.ts +4 -4
- package/lib/contracts/utils/index.js +20 -20
- package/lib/contracts/utils/openLimitOrders.d.ts +8 -8
- package/lib/contracts/utils/openLimitOrders.js +88 -88
- package/lib/contracts/utils/openTrades.d.ts +9 -9
- package/lib/contracts/utils/openTrades.js +172 -186
- package/lib/contracts/utils/pairs.d.ts +7 -6
- package/lib/contracts/utils/pairs.js +115 -94
- package/lib/index.d.ts +7 -7
- package/lib/index.js +24 -24
- package/lib/markets/commodities.d.ts +1 -1
- package/lib/markets/commodities.js +31 -31
- package/lib/markets/crypto.d.ts +1 -1
- package/lib/markets/crypto.js +6 -6
- package/lib/markets/forex.d.ts +2 -2
- package/lib/markets/forex.js +38 -38
- package/lib/markets/index.d.ts +5 -5
- package/lib/markets/index.js +21 -21
- package/lib/markets/indices.d.ts +1 -1
- package/lib/markets/indices.js +6 -6
- package/lib/markets/stocks.d.ts +3 -3
- package/lib/markets/stocks.js +54 -54
- package/lib/trade/fees/borrowing/converter.d.ts +13 -13
- package/lib/trade/fees/borrowing/converter.js +41 -41
- package/lib/trade/fees/borrowing/index.d.ts +55 -55
- package/lib/trade/fees/borrowing/index.js +171 -171
- package/lib/trade/fees/borrowing/types.d.ts +36 -36
- package/lib/trade/fees/borrowing/types.js +2 -2
- package/lib/trade/fees/index.d.ts +16 -3
- package/lib/trade/fees/index.js +60 -29
- package/lib/trade/fees.d.ts +15 -0
- package/lib/trade/fees.js +45 -0
- package/lib/trade/index.d.ts +8 -8
- package/lib/trade/index.js +24 -24
- package/lib/trade/liquidation.d.ts +7 -3
- package/lib/trade/liquidation.js +18 -16
- package/lib/trade/oiWindows.d.ts +3 -3
- package/lib/trade/oiWindows.js +19 -20
- package/lib/trade/openLimitOrder.d.ts +2 -2
- package/lib/trade/openLimitOrder.js +24 -23
- package/lib/trade/pnl.d.ts +9 -7
- package/lib/trade/pnl.js +44 -33
- package/lib/trade/spread.d.ts +3 -2
- package/lib/trade/spread.js +32 -22
- package/lib/trade/types.d.ts +185 -181
- package/lib/trade/types.js +14 -14
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +17 -17
- package/lib/utils/packing.d.ts +2 -2
- package/lib/utils/packing.js +39 -39
- package/lib/vault/index.d.ts +7 -8
- package/lib/vault/index.js +11 -10
- package/package.json +104 -104
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +0 -1740
- package/lib/contracts/types/generated/GNSTrading.d.ts +0 -758
- package/lib/contracts/types/generated/GNSTradingStorage.d.ts +0 -1387
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +0 -144
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +0 -3094
- package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +0 -113
- package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +0 -1428
- package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +0 -96
- package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +0 -2241
- package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +0 -95
- package/lib/contracts/types/generated/factories/GNSTrading__factory.js +0 -1071
|
@@ -1,1789 +1,2206 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GNSBorrowingFees__factory = void 0;
|
|
4
|
-
/* Autogenerated file. Do not edit manually. */
|
|
5
|
-
/* tslint:disable */
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
const ethers_1 = require("ethers");
|
|
8
|
-
const _abi = [
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
{
|
|
144
|
-
indexed:
|
|
145
|
-
internalType: "
|
|
146
|
-
name: "
|
|
147
|
-
type: "
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
indexed: false,
|
|
151
|
-
internalType: "
|
|
152
|
-
name: "
|
|
153
|
-
type: "
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
{
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
internalType: "
|
|
480
|
-
name: "",
|
|
481
|
-
type: "
|
|
482
|
-
},
|
|
483
|
-
],
|
|
484
|
-
|
|
485
|
-
type: "
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
inputs: [
|
|
489
|
-
{
|
|
490
|
-
internalType: "uint256",
|
|
491
|
-
name: "
|
|
492
|
-
type: "uint256",
|
|
493
|
-
},
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
{
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
{
|
|
776
|
-
internalType: "
|
|
777
|
-
name: "
|
|
778
|
-
type: "
|
|
779
|
-
},
|
|
780
|
-
{
|
|
781
|
-
internalType: "
|
|
782
|
-
name: "
|
|
783
|
-
type: "
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
internalType: "
|
|
787
|
-
name: "
|
|
788
|
-
type: "
|
|
789
|
-
},
|
|
790
|
-
{
|
|
791
|
-
internalType: "
|
|
792
|
-
name: "
|
|
793
|
-
type: "
|
|
794
|
-
},
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
],
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
{
|
|
891
|
-
components: [
|
|
892
|
-
{
|
|
893
|
-
internalType: "
|
|
894
|
-
name: "
|
|
895
|
-
type: "
|
|
896
|
-
},
|
|
897
|
-
{
|
|
898
|
-
internalType: "
|
|
899
|
-
name: "
|
|
900
|
-
type: "
|
|
901
|
-
},
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
{
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
{
|
|
1259
|
-
internalType: "uint256",
|
|
1260
|
-
name: "",
|
|
1261
|
-
type: "uint256",
|
|
1262
|
-
},
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
{
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
internalType: "
|
|
1613
|
-
name: "
|
|
1614
|
-
type: "
|
|
1615
|
-
},
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
{
|
|
1625
|
-
internalType: "uint256",
|
|
1626
|
-
name: "
|
|
1627
|
-
type: "uint256",
|
|
1628
|
-
},
|
|
1629
|
-
{
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
const _bytecode = "0x608060405234801561001057600080fd5b50614833806100206000396000f3fe608060405234801561001057600080fd5b50600436106101cb5760003560e01c80638f6942381161010a578063bcb78871116100ad578063ce67edfb1161007c578063ce67edfb1461079b578063d6274505146107ae578063e3e98a75146107d1578063f800ece914610810578063ff933fc41461082657600080fd5b8063bcb7887114610741578063bdf391cc14610754578063c39e1a8b14610775578063c4d66de81461078857600080fd5b80638f694238146104cf57806390895ff1146104f5578063930842aa1461059e578063b0baf5d4146105b1578063b2c9dd8b146105c4578063b91ac788146105d7578063b94ffa1c1461068d578063bb219c75146106bd57600080fd5b8063358129601161017257806335812960146102e95780633979324d146102fc5780634c67cfa0146103f35780635c0ab4de1461041b578063651501b514610459578063706faf3a1461046c5780637b64112b1461047f5780638ee1caa71461049257600080fd5b80630a6c9b3b146101d05780630f8df7e0146101f65780631346b0ff1461023157806316fff0741461025c5780631ab5911a1461027557806322005202146102a05780632d28a817146102c15780633101cfcb146102d4575b600080fd5b6101e36101de366004613791565b610847565b6040519081526020015b60405180910390f35b610209610204366004613937565b610894565b604080516001600160401b0394851681529390921660208401521515908201526060016101ed565b600154610244906001600160a01b031681565b6040516001600160a01b0390911681526020016101ed565b600054610244906201000090046001600160a01b031681565b610288610283366004613ac7565b610a14565b6040516001600160401b0390911681526020016101ed565b6102b36102ae366004613b4b565b610a41565b6040516101ed929190613c12565b6101e36102cf366004613cb5565b610c6d565b6102e76102e2366004613d3f565b610f87565b005b600a54610244906001600160a01b031681565b61038861030a366004613d5c565b60026020819052600091825260409091208054600182015491909201546001600160701b0380841693600160701b810490911692600160e01b90910463ffffffff16916001600160401b0380831692600160401b810490911691600160801b820465ffffffffffff1691600160b01b90046001600160501b03169088565b604080516001600160701b03998a16815298909716602089015263ffffffff909516958701959095526001600160401b0392831660608701529116608085015265ffffffffffff1660a08401526001600160501b0390911660c083015260e0820152610100016101ed565b610406610401366004613791565b611113565b604080519283526020830191909152016101ed565b600954610439906001600160801b0380821691600160801b90041682565b604080516001600160801b039384168152929091166020830152016101ed565b6102e7610467366004613d77565b611210565b6101e361047a366004613e10565b611316565b61028861048d366004613e28565b61143c565b6104a56104a0366004613e56565b611447565b604080516001600160401b03948516815292841660208401529216918101919091526060016101ed565b6104e26104dd366004613791565b611674565b60405161ffff90911681526020016101ed565b61055d610503366004613e78565b60046020908152600093845260408085208252928452828420905282529020546001600160401b0380821691600160401b810490911690600160801b810465ffffffffffff1690600160b01b90046001600160501b031684565b604080516001600160401b03958616815294909316602085015265ffffffffffff909116918301919091526001600160501b031660608201526080016101ed565b6102e76105ac366004613ead565b611796565b6102e76105bf366004613eec565b611835565b6102e76105d2366004613f16565b6118d0565b6106416105e5366004613791565b6003602052600090815260409020600181015460029091015463ffffffff8216916001600160401b03600160201b8204811692600160601b83049091169165ffffffffffff600160a01b8204811692600160d01b909204169086565b6040805163ffffffff9790971687526001600160401b039586166020880152939094169285019290925265ffffffffffff908116606085015216608083015260a082015260c0016101ed565b6101e361069b366004613791565b600090815260056020526040902054600160901b90046001600160481b031690565b61070a6106cb366004613791565b6005602052600090815260409020546001600160481b0380821691600160481b8104821691600160901b82041690600160d81b900464ffffffffff1684565b604080516001600160481b0395861681529385166020850152919093169082015264ffffffffff90911660608201526080016101ed565b6104a561074f366004613fa0565b6119dc565b610767610762366004613791565b611b97565b6040516101ed92919061413d565b6104a56107833660046141a1565b611d84565b6102e7610796366004613d3f565b611e0e565b6102e76107a936600461424d565b611f12565b6107c16107bc3660046142b4565b612244565b60405190151581526020016101ed565b6107f96107df366004613791565b60066020526000908152604090205465ffffffffffff1681565b60405165ffffffffffff90911681526020016101ed565b610818612370565b6040516101ed9291906142ec565b610839610834366004613d5c565b6126c0565b6040516101ed929190614391565b6000818152600560205260408120546009546402540be4009161088491600160901b9091046001600160481b0316906001600160801b03166143cc565b61088e91906143e3565b92915050565b600080600080888a815181106108ac576108ac614405565b60200260200101519050876040015165ffffffffffff16816020015165ffffffffffff16109150600189516108e1919061441b565b8a036109085780516108f4908688610a14565b935061090187868861143c565b9250610998565b6000896109168c600161442e565b8151811061092657610926614405565b602002602001015190508280156109555750886040015165ffffffffffff16816020015165ffffffffffff1611155b1561096857600080945094505050610a08565b86610977578060a0015161097d565b80608001515b94508661098e578060e00151610994565b8060c001515b9350505b81156109c35760208801516109ad9085614441565b88519094506109bc9084614441565b9250610a06565b856109d25780606001516109d8565b80604001515b6109e29085614441565b9350856109f3578060e001516109f9565b8060c001515b610a039084614441565b92505b505b96509650969350505050565b6000806000610a2386866119dc565b509150915083610a335780610a35565b815b925050505b9392505050565b6060806000836001600160401b03811115610a5e57610a5e6137aa565b604051908082528060200260200182016040528015610a9757816020015b610a84613711565b815260200190600190039081610a7c5790505b5090506000846001600160401b03811115610ab457610ab46137aa565b604051908082528060200260200182016040528015610add578160200160208202803683370190505b5090508460005b81811015610c5e5760026000898984818110610b0257610b02614405565b9050602002016020810190610b179190613d5c565b61ffff168152602080820192909252604090810160002081516101008101835281546001600160701b038082168352600160701b82041694820194909452600160e01b90930463ffffffff169183019190915260018101546001600160401b038082166060850152600160401b8204166080840152600160801b810465ffffffffffff1660a0840152600160b01b90046001600160501b031660c08301526002015460e08201528451859083908110610bd257610bd2614405565b602002602001018190525060066000898984818110610bf357610bf3614405565b9050602002016020810190610c089190613d5c565b61ffff16815260200190815260200160002060009054906101000a900465ffffffffffff16838281518110610c3f57610c3f614405565b65ffffffffffff90921660209283029190910190910152600101610ae4565b509193509150505b9250929050565b80516001600160a01b03166000908152600460209081526040808320828501805185529083528184208286015185528352818420825160808101845290546001600160401b038082168352600160401b82041682860152600160801b810465ffffffffffff1682850152600160b01b90046001600160501b0316606082015290518452600383528184208054835181860281018601909452808452919385939290849084015b82821015610dc4576000848152602090819020604080516101208101825260028602909201805461ffff8116845265ffffffffffff62010000820416848601526001600160401b03600160401b808304821694860194909452600160801b80830482166060870152600160c01b928390048216608087015260019384015480831660a0880152948504821660c08701528404811660e086015292049091166101008301529083529092019101610d13565b5050505090506000610dd4612780565b6040805161012081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810191909152909150825115610e455782600081518110610e3a57610e3a614405565b602002602001015190505b82511580610e6a5750836040015165ffffffffffff16816020015165ffffffffffff16115b15610ebe578351835115610e95578660600151610e8b578160e00151610ea8565b8160c00151610ea8565b610ea8876020015184896060015161143c565b610eb29190614441565b6001600160401b031694505b82515b8015610f415760008080610eeb610ed960018661441b565b888a8d602001518e606001518b610894565b925092509250816001600160401b0316836001600160401b031611610f105781610f12565b825b610f25906001600160401b03168a61442e565b98508015610f3557505050610f41565b50505060001901610ec1565b5060646402540be400868860a001518960800151610f5f91906143cc565b610f6991906143cc565b610f7391906143e3565b610f7d91906143e3565b9695505050505050565b600054600390610100900460ff16158015610fa9575060005460ff8083169116105b610fce5760405162461bcd60e51b8152600401610fc590614468565b60405180910390fd5b6000805461ffff191660ff8316176101001790556001600160a01b03821661100957604051635863f78960e01b815260040160405180910390fd5b600180546001600160a01b03191690556000546040805163f4b9fa7560e01b81529051611093926201000090046001600160a01b03169163f4b9fa759160048083019260209291908290030181865afa15801561106a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061108e91906144b6565b612806565b80516020918201516001600160801b03908116600160801b02911617600955600a80546001600160a01b0385166001600160a01b03199091161790556000805461ff001916905560405160ff831681527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249891015b60405180910390a15050565b600080546040516328daca2160e01b8152600481018490526024810183905282916201000090046001600160a01b0316906328daca2190604401602060405180830381865afa15801561116a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061118e91906144d3565b6000546040516328daca2160e01b81526004810186905260016024820152620100009091046001600160a01b0316906328daca2190604401602060405180830381865afa1580156111e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061120791906144d3565b91509150915091565b600a546040516395a8c58d60e01b81526001600160a01b03909116906395a8c58d906112439033906005906004016144ec565b602060405180830381865afa158015611260573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112849190614527565b6112a157604051631b17ff5560e21b815260040160405180910390fd5b828181146112c2576040516349552d5960e11b815260040160405180910390fd5b60005b8181101561130e576113068686838181106112e2576112e2614405565b905060200201358585848181106112fb576112fb614405565b9050608002016128c3565b6001016112c5565b505050505050565b600073__$80699a18f5fb835ede6cb415cbdea2f026$__63a80896d2606084013561134760a0860160808701614544565b8560a001358660c001356113c26040518060c001604052808a60000160208101906113729190613d3f565b6001600160a01b0316815260208b810135908201526040808c0135908201526060016113a460a08c0160808d01614544565b151581526020018a60a0013581526020018a60c00135815250610c6d565b6040516001600160e01b031960e088901b1681526004810195909552921515602485015260448401919091526064830152608482015260a401602060405180830381865af4158015611418573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088e91906144d3565b6000806000610a2386865b6000828152600360209081526040808320815181546101009481028201850190935260e0810183815285948594859492849290918491879085015b82821015611533576000848152602090819020604080516101208101825260028602909201805461ffff8116845265ffffffffffff62010000820416848601526001600160401b03600160401b808304821694860194909452600160801b80830482166060870152600160c01b928390048216608087015260019384015480831660a0880152948504821660c08701528404811660e086015292049091166101008301529083529092019101611482565b50505090825250600182015463ffffffff811660208301526001600160401b03600160201b820481166040840152600160601b820416606083015265ffffffffffff600160a01b820481166080840152600160d01b9091041660a082015260029091015460c09091015290506000806115ab88611113565b6040805161014081018252868201516001600160401b0390811682526060808901519091166020808401919091528284018690529082018490528088015163ffffffff1660808084019190915260a08084018e90529089015165ffffffffffff90811660c085015260008f815260059093529390912054600160901b90046001600160481b031660e08301528701519091166101008201526009546001600160801b0316610120820152919350915061166390611d84565b919a90995090975095505050505050565b600081815260036020908152604080832080548251818502810185019093528083528493849084015b8282101561174e576000848152602090819020604080516101208101825260028602909201805461ffff8116845265ffffffffffff62010000820416848601526001600160401b03600160401b808304821694860194909452600160801b80830482166060870152600160c01b928390048216608087015260019384015480831660a0880152948504821660c08701528404811660e08601529204909116610100830152908352909201910161169d565b505050509050805160001461178d57806001825161176c919061441b565b8151811061177c5761177c614405565b602002602001015160000151610a3a565b60009392505050565b600a546040516395a8c58d60e01b81526001600160a01b03909116906395a8c58d906117c99033906005906004016144ec565b602060405180830381865afa1580156117e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180a9190614527565b61182757604051631b17ff5560e21b815260040160405180910390fd5b6118318282613117565b5050565b600a546040516395a8c58d60e01b81526001600160a01b03909116906395a8c58d906118689033906005906004016144ec565b602060405180830381865afa158015611885573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a99190614527565b6118c657604051631b17ff5560e21b815260040160405180910390fd5b61183182826128c3565b600a546040516395a8c58d60e01b81526001600160a01b03909116906395a8c58d906119039033906005906004016144ec565b602060405180830381865afa158015611920573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119449190614527565b61196157604051631b17ff5560e21b815260040160405180910390fd5b82818114611982576040516349552d5960e11b815260040160405180910390fd5b60005b8181101561130e576119d48686838181106119a2576119a2614405565b90506020020160208101906119b79190613d5c565b8585848181106119c9576119c9614405565b905060600201613117565b600101611985565b61ffff8216600090815260026020818152604080842081516101008101835281546001600160701b038082168352600160701b8204811683870152600160e01b90910463ffffffff168285015260018301546001600160401b0380821660608501908152600160401b8304821660808601908152600160801b840465ffffffffffff1660a0870152600160b01b9093046001600160501b031660c0860152949097015460e084015260095485516101408101875294518816855290519096169483019490945280518695869592946001600160801b0390911693611b87939092918301916402540be40091611ad3918791166143cc565b611add91906143e3565b81526020016402540be400846001600160801b031686602001516001600160701b0316611b0a91906143cc565b611b1491906143e3565b815260408086015163ffffffff166020808401919091528183018b905260a08088015165ffffffffffff908116606086015260c0808a01516001600160481b0316608087015261ffff8f16600090815260069094529390922054909116908301526001600160801b038516910152611d84565b9199909850909650945050505050565b611b9f613755565b6040805160808101825260008082526020808301829052828401829052606083018290528582526003815283822060058252848320855182546101009481028201850190975260e0810187815295969295919490938693859392859285015b82821015611caf576000848152602090819020604080516101208101825260028602909201805461ffff8116845265ffffffffffff62010000820416848601526001600160401b03600160401b808304821694860194909452600160801b80830482166060870152600160c01b928390048216608087015260019384015480831660a0880152948504821660c08701528404811660e086015292049091166101008301529083529092019101611bfe565b50505090825250600182015463ffffffff8116602080840191909152600160201b82046001600160401b03908116604080860191909152600160601b8404909116606080860191909152600160a01b840465ffffffffffff908116608080880191909152600160d01b9095041660a086015260029095015460c0909401939093528251918201835294546001600160481b038082168352600160481b8204811696830196909652600160901b810490951691810191909152600160d81b90930464ffffffffff16908301529590945092505050565b600080600073__$80699a18f5fb835ede6cb415cbdea2f026$__63229745ad856040518263ffffffff1660e01b8152600401611dc09190614561565b606060405180830381865af4158015611ddd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e019190614617565b9250925092509193909250565b600054610100900460ff1615808015611e2e5750600054600160ff909116105b80611e485750303b158015611e48575060005460ff166001145b611e645760405162461bcd60e51b8152600401610fc590614468565b6000805460ff191660011790558015611e87576000805461ff0019166101001790555b6001600160a01b038216611eae57604051635863f78960e01b815260040160405180910390fd5b6000805462010000600160b01b031916620100006001600160a01b038516021790558015611831576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602001611107565b600060029054906101000a90046001600160a01b03166001600160a01b031662b127836040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8891906144b6565b6001600160a01b0316336001600160a01b031614611fb957604051631b17ff5560e21b815260040160405180910390fd5b6000611fc486611674565b90506000611fd0612780565b9050600080611fdf89846132ef565b91509150600080611ff086866133f3565b9150915061200086888a8c6134e0565b87156121d657600060405180608001604052808961201e5785612020565b865b6001600160401b0316815260200189612039578361203b565b845b6001600160401b03168152602001612052886136e4565b65ffffffffffff16815260200160006001600160501b0316815250905080600460008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008d815260200190815260200160002060008201518160000160006101000a8154816001600160401b0302191690836001600160401b0316021790555060208201518160000160086101000a8154816001600160401b0302191690836001600160401b0316021790555060408201518160000160106101000a81548165ffffffffffff021916908365ffffffffffff16021790555060608201518160000160166101000a8154816001600160501b0302191690836001600160501b031602179055509050508b8d6001600160a01b03167faa00ca5c6f282cb9f35953ecb0eaf8e39c95b7c8df114efac12162a85c085e608d846000015185602001516040516121cc939291909283526001600160401b03918216602084015216604082015260600190565b60405180910390a3505b8a8c6001600160a01b03167f66baa1848f5d4d14567e9bc527e5608778c86e512490d413cfafc9250327308f8c8b8b8e60405161222e9493929190938452911515602084015215156040830152606082015260800190565b60405180910390a3505050505050505050505050565b6000806002600061225487611674565b61ffff168152602080820192909252604090810160002081516101008101835281546001600160701b038082168352600160701b82041694820194909452600160e01b90930463ffffffff169183019190915260018101546001600160401b038082166060850152600160401b8204166080840152600160801b810465ffffffffffff1660a0840152600160b01b90046001600160501b031660c0830181905260029091015460e08301529091501580612367575060c08101516009546001600160501b03909116906001600160801b03166123356402540be400866143cc565b61233f91906143e3565b8561234e578260200151612351565b82515b6001600160701b0316612364919061442e565b11155b95945050505050565b6060806000600a60009054906101000a90046001600160a01b03166001600160a01b031663b81b2b716040518163ffffffff1660e01b8152600401602060405180830381865afa1580156123c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ec91906144d3565b90506000816001600160401b03811115612408576124086137aa565b60405190808252806020026020018201604052801561244157816020015b61242e613755565b8152602001906001900390816124265790505b5090506000826001600160401b0381111561245e5761245e6137aa565b6040519080825280602002602001820160405280156124b057816020015b60408051608081018252600080825260208083018290529282018190526060820152825260001990920191018161247c5790505b50905060005b838110156126b5576000818152600360209081526040808320815181546101009481028201850190935260e08101838152909491938593919285929185015b828210156125a6576000848152602090819020604080516101208101825260028602909201805461ffff8116845265ffffffffffff62010000820416848601526001600160401b03600160401b808304821694860194909452600160801b80830482166060870152600160c01b928390048216608087015260019384015480831660a0880152948504821660c08701528404811660e0860152920490911661010083015290835290920191016124f5565b50505090825250600182015463ffffffff811660208301526001600160401b03600160201b820481166040840152600160601b820416606083015265ffffffffffff600160a01b820481166080840152600160d01b9091041660a082015260029091015460c090910152835184908390811061262457612624614405565b602090810291909101810191909152600082815260058252604090819020815160808101835290546001600160481b038082168352600160481b8204811694830194909452600160901b810490931691810191909152600160d81b90910464ffffffffff16606082015282518390839081106126a2576126a2614405565b60209081029190910101526001016124b6565b509094909350915050565b6126c8613711565b5061ffff16600090815260026020818152604080842060068352938190205481516101008101835285546001600160701b038082168352600160701b82041694820194909452600160e01b90930463ffffffff169183019190915260018401546001600160401b038082166060850152600160401b820416608084015265ffffffffffff600160801b8204811660a0850152600160b01b9091046001600160501b031660c0840152939092015460e082015292911690565b600061a4b1461480612794575062066eee46145b156128015760646001600160a01b031663a3b1b31d6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156127d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127fc91906144d3565b905090565b504390565b60408051808201909152600080825260208201526000826001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561285a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061287e9190614659565b60ff16905061288e81600a614760565b6001600160801b031682526128a481601261441b565b6128af90600a614760565b6001600160801b0316602083015250919050565b60016128d5606083016040840161476c565b65ffffffffffff161080612900575060036128f6606083016040840161476c565b65ffffffffffff16115b1561291e57604051633951a25360e01b815260040160405180910390fd5b60008281526003602052604081209061293684611674565b90506000612942612780565b905061294e85826132ef565b505061ffff82166129626020860186613d5c565b61ffff1614612fc85761297582826133f3565b5061298e90506129886020860186613d5c565b826133f3565b505060008061299c87611113565b915091506129ae8460016000856134e0565b6129bb84600080846134e0565b6129d46129cb6020880188613d5c565b600180856134e0565b6129ee6129e46020880188613d5c565b60006001846134e0565b6000600281612a0060208a018a613d5c565b61ffff1661ffff168152602001908152602001600020604051806101000160405290816000820160009054906101000a90046001600160701b03166001600160701b03166001600160701b0316815260200160008201600e9054906101000a90046001600160701b03166001600160701b03166001600160701b0316815260200160008201601c9054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016001820160009054906101000a90046001600160401b03166001600160401b03166001600160401b031681526020016001820160089054906101000a90046001600160401b03166001600160401b03166001600160401b031681526020016001820160109054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016001820160169054906101000a90046001600160501b03166001600160501b03166001600160501b0316815260200160028201548152505090506000600260008761ffff1661ffff168152602001908152602001600020604051806101000160405290816000820160009054906101000a90046001600160701b03166001600160701b03166001600160701b0316815260200160008201600e9054906101000a90046001600160701b03166001600160701b03166001600160701b0316815260200160008201601c9054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016001820160009054906101000a90046001600160401b03166001600160401b03166001600160401b031681526020016001820160089054906101000a90046001600160401b03166001600160401b03166001600160401b031681526020016001820160109054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016001820160169054906101000a90046001600160501b03166001600160501b03166001600160501b031681526020016002820154815250509050866000016040518061012001604052808a6000016020810190612d009190613d5c565b61ffff168152602001612d12886136e4565b65ffffffffffff16815260200184606001516001600160401b0316815260200184608001516001600160401b0316815260200183606001516001600160401b0316815260200183608001516001600160401b031681526020018960010160049054906101000a90046001600160401b03166001600160401b0316815260200189600101600c9054906101000a90046001600160401b03166001600160401b0316815260200160006001600160401b0316815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548165ffffffffffff021916908365ffffffffffff16021790555060408201518160000160086101000a8154816001600160401b0302191690836001600160401b0316021790555060608201518160000160106101000a8154816001600160401b0302191690836001600160401b0316021790555060808201518160000160186101000a8154816001600160401b0302191690836001600160401b0316021790555060a08201518160010160006101000a8154816001600160401b0302191690836001600160401b0316021790555060c08201518160010160086101000a8154816001600160401b0302191690836001600160401b0316021790555060e08201518160010160106101000a8154816001600160401b0302191690836001600160401b031602179055506101008201518160010160186101000a8154816001600160401b0302191690836001600160401b031602179055505050876000016020810190612f8d9190613d5c565b61ffff168661ffff168a7f5beb7d73e1c3cd532d47c9e896931df26d9be450a833bd5fe1ace6bf5690d46860405160405180910390a4505050505b612fd86040850160208601614787565b60018401805463ffffffff191663ffffffff92909216919091179055613004606085016040860161476c565b60018401805465ffffffffffff92909216600160d01b026001600160d01b0390921691909117905561303c60808501606086016147a2565b600086815260056020908152604090912080546001600160481b0393909316600160901b0268ffffffffffffffffff60901b199093169290921790915561308590850185613d5c565b61ffff16857f1caa8de744ea74fb9e0c2f32b7fed3b30ea426105a6b73926010be6372458ef46130bb6040880160208901614787565b6130cb6060890160408a0161476c565b6130db60808a0160608b016147a2565b6040805163ffffffff909416845265ffffffffffff90921660208401526001600160481b03169082015260600160405180910390a35050505050565b8161ffff1660000361313c57604051630d24975d60e21b815260040160405180910390fd5b600161314e606083016040840161476c565b65ffffffffffff1610806131795750600361316f606083016040840161476c565b65ffffffffffff16115b1561319757604051633951a25360e01b815260040160405180910390fd5b6131a8826131a3612780565b6133f3565b505061ffff82166000908152600260209081526040909120906131cd90830183614787565b815463ffffffff91909116600160e01b026001600160e01b039091161781556131fc60408301602084016147a2565b6001820180546001600160b01b03166001600160481b0392909216600160b01b02919091179055613233606083016040840161476c565b61ffff84166000818152600660209081526040909120805465ffffffffffff191665ffffffffffff9490941693909317909255907ffe3f382c07994321b091a508fb27d2cec41f6dfa9f52b97a01af5b992fdc16819061329590850185614787565b6132a560408601602087016147a2565b6132b5606087016040880161476c565b6040805163ffffffff90941684526001600160481b03909216602084015265ffffffffffff169082015260600160405180910390a2505050565b6000806132fc8484611447565b5060008681526003602052604090206001810180546001600160401b03808616600160201b026bffffffffffffffff0000000019918616600160601b0291909116640100000000600160a01b0319909216919091171790559193509150613362846136e4565b60018201805465ffffffffffff92909216600160a01b0265ffffffffffff60a01b199092169190911790819055604080518681526001600160401b03600160201b840481166020830152600160601b9093049092169082015285907ffc346088168e874385f54275cfc143d52a459a0fdc016c1bb6c237097ef27bf4906060015b60405180910390a2509250929050565b60008061340084846119dc565b5061ffff861660009081526002602052604090206001810180546001600160801b031916600160401b6001600160401b038581169190910267ffffffffffffffff191691909117908516179055919350915061345b846136e4565b60018201805465ffffffffffff92909216600160801b0265ffffffffffff60801b198316811791829055604080518881526001600160401b03928316948316949094176020850152600160401b909204169082015261ffff8616907fd246da22fc6064e2fae4f4affdb9425eac12bebcf4f08fb3892f08480513752e906060016133e3565b61ffff841660008181526002602052604081209115613677576009546001600160801b03166135146402540be400856143cc565b61351e91906143e3565b92506001600160701b0383111561354857604051631a93c68960e11b815260040160405180910390fd5b508184156135d257836135955781546001600160701b038083169116116135795781546001600160701b031661357b565b805b825461359091906001600160701b03166147bd565b6135ab565b81546135ab9082906001600160701b03166147dd565b82546dffffffffffffffffffffffffffff19166001600160701b0391909116178255613677565b8361362c5781546001600160701b03808316600160701b9092041611613609578154600160701b90046001600160701b031661360b565b805b82546136279190600160701b90046001600160701b03166147bd565b613649565b8154613649908290600160701b90046001600160701b03166147dd565b82546001600160701b0391909116600160701b026dffffffffffffffffffffffffffff60701b199091161782555b8154604080516001600160701b0380851682528084166020830152600160701b90930490921690820152841515908615159061ffff8916907f946036ec838a96db6089510038e2de4a934fb985f2ba9ef85dd4166f622db2339060600160405180910390a4505050505050565b600065ffffffffffff82111561370d57604051631a93c68960e11b815260040160405180910390fd5b5090565b6040805161010081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081019190915290565b6040805160e081018252606080825260006020830181905292820183905281018290526080810182905260a0810182905260c081019190915290565b6000602082840312156137a357600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b03811182821017156137e3576137e36137aa565b60405290565b60405161014081016001600160401b03811182821017156137e3576137e36137aa565b604051601f8201601f191681016001600160401b0381118282101715613834576138346137aa565b604052919050565b803561ffff8116811461384e57600080fd5b919050565b803565ffffffffffff8116811461384e57600080fd5b6001600160401b038116811461387e57600080fd5b50565b803561384e81613869565b60006080828403121561389e57600080fd5b604051608081018181106001600160401b03821117156138c0576138c06137aa565b60405290508082356138d181613869565b815260208301356138e181613869565b60208201526138f260408401613853565b604082015260608301356001600160501b038116811461391157600080fd5b6060919091015292915050565b801515811461387e57600080fd5b803561384e8161391e565b60008060008060008061012080888a03121561395257600080fd5b873596506020808901356001600160401b038082111561397157600080fd5b818b0191508b601f83011261398557600080fd5b813581811115613997576139976137aa565b6139a5848260051b0161380c565b818152848101925090850283018401908d8211156139c257600080fd5b928401925b81841015613a885785848f0312156139df5760008081fd5b6139e76137c0565b6139f08561383c565b81526139fd868601613853565b868201526040613a0e818701613881565b908201526060613a1f868201613881565b908201526080613a30868201613881565b9082015260a0613a41868201613881565b9082015260c0613a52868201613881565b9082015260e0613a63868201613881565b90820152610100613a75868201613881565b90820152835292850192918401916139c7565b809a50505050505050613a9e886040890161388c565b935060c08701359250613ab360e0880161392c565b915061010087013590509295509295509295565b600080600060608486031215613adc57600080fd5b613ae58461383c565b9250602084013591506040840135613afc8161391e565b809150509250925092565b60008083601f840112613b1957600080fd5b5081356001600160401b03811115613b3057600080fd5b6020830191508360208260051b8501011115610c6657600080fd5b60008060208385031215613b5e57600080fd5b82356001600160401b03811115613b7457600080fd5b613b8085828601613b07565b90969095509350505050565b6001600160701b038082511683528060208301511660208401525063ffffffff604082015116604083015260608101516001600160401b038082166060850152806080840151166080850152505065ffffffffffff60a08201511660a083015260c0810151613c0660c08401826001600160501b03169052565b5060e090810151910152565b604080825283519082018190526000906020906060840190828701845b82811015613c5657613c42848351613b8c565b610100939093019290840190600101613c2f565b5050508381038285015284518082528583019183019060005b81811015613c9357835165ffffffffffff1683529284019291840191600101613c6f565b5090979650505050505050565b6001600160a01b038116811461387e57600080fd5b600060c08284031215613cc757600080fd5b60405160c081018181106001600160401b0382111715613ce957613ce96137aa565b6040528235613cf781613ca0565b8082525060208301356020820152604083013560408201526060830135613d1d8161391e565b60608201526080838101359082015260a0928301359281019290925250919050565b600060208284031215613d5157600080fd5b8135610a3a81613ca0565b600060208284031215613d6e57600080fd5b610a3a8261383c565b60008060008060408587031215613d8d57600080fd5b84356001600160401b0380821115613da457600080fd5b613db088838901613b07565b90965094506020870135915080821115613dc957600080fd5b818701915087601f830112613ddd57600080fd5b813581811115613dec57600080fd5b8860208260071b8501011115613e0157600080fd5b95989497505060200194505050565b600060e08284031215613e2257600080fd5b50919050565b600080600060608486031215613e3d57600080fd5b83359250602084013591506040840135613afc8161391e565b60008060408385031215613e6957600080fd5b50508035926020909101359150565b600080600060608486031215613e8d57600080fd5b8335613e9881613ca0565b95602085013595506040909401359392505050565b6000808284036080811215613ec157600080fd5b613eca8461383c565b92506060601f1982011215613ede57600080fd5b506020830190509250929050565b60008082840360a0811215613f0057600080fd5b833592506080601f1982011215613ede57600080fd5b60008060008060408587031215613f2c57600080fd5b84356001600160401b0380821115613f4357600080fd5b613f4f88838901613b07565b90965094506020870135915080821115613f6857600080fd5b818701915087601f830112613f7c57600080fd5b813581811115613f8b57600080fd5b886020606083028501011115613e0157600080fd5b60008060408385031215613fb357600080fd5b613fbc8361383c565b946020939093013593505050565b805160e08084528151848201819052600092610100916020918201918388019190865b8281101561407d578451805161ffff1685528281015165ffffffffffff16838601526040808201516001600160401b039081169187019190915260608083015182169087015260808083015182169087015260a08083015182169087015260c080830151821690870152888201518116898701529087015116868501529381019361012090930192600101613fed565b508781015163ffffffff1690890152506040808701516001600160401b0390811691890191909152606080880151918216908901529350608086015193506140cf608088018565ffffffffffff169052565b60a086015193506140ea60a088018565ffffffffffff169052565b60c086015160c08801528094505050505092915050565b6001600160481b038082511683528060208301511660208401528060408301511660408401525064ffffffffff60608201511660608301525050565b60a08152600061415060a0830185613fca565b9050610a3a6020830184614101565b803563ffffffff8116811461384e57600080fd5b80356001600160481b038116811461384e57600080fd5b80356001600160801b038116811461384e57600080fd5b600061014082840312156141b457600080fd5b6141bc6137e9565b6141c583613881565b81526141d360208401613881565b602082015260408301356040820152606083013560608201526141f86080840161415f565b608082015260a083013560a082015260c083013560c082015261421d60e08401614173565b60e0820152610100614230818501613853565b9082015261012061424284820161418a565b908201529392505050565b60008060008060008060c0878903121561426657600080fd5b863561427181613ca0565b955060208701359450604087013593506060870135925060808701356142968161391e565b915060a08701356142a68161391e565b809150509295509295509295565b6000806000606084860312156142c957600080fd5b8335925060208401356142db8161391e565b929592945050506040919091013590565b6000604082016040835280855180835260608501915060608160051b8601019250602080880160005b8381101561434357605f19888703018552614331868351613fca565b95509382019390820190600101614315565b50508584038187015286518085528782019482019350915060005b8281101561438457614371848651614101565b938101936080939093019260010161435e565b5091979650505050505050565b61012081016143a08285613b8c565b65ffffffffffff83166101008301529392505050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761088e5761088e6143b6565b60008261440057634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b8181038181111561088e5761088e6143b6565b8082018082111561088e5761088e6143b6565b6001600160401b03828116828216039080821115614461576144616143b6565b5092915050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6000602082840312156144c857600080fd5b8151610a3a81613ca0565b6000602082840312156144e557600080fd5b5051919050565b6001600160a01b0383168152604081016006831061451a57634e487b7160e01b600052602160045260246000fd5b8260208301529392505050565b60006020828403121561453957600080fd5b8151610a3a8161391e565b60006020828403121561455657600080fd5b8135610a3a8161391e565b81516001600160401b031681526101408101602083015161458d60208401826001600160401b03169052565b50604083015160408301526060830151606083015260808301516145b9608084018263ffffffff169052565b5060a083015160a083015260c083015160c083015260e08301516145e860e08401826001600160481b03169052565b506101008381015165ffffffffffff1690830152610120928301516001600160801b0316929091019190915290565b60008060006060848603121561462c57600080fd5b835161463781613869565b602085015190935061464881613869565b6040850151909250613afc81613869565b60006020828403121561466b57600080fd5b815160ff81168114610a3a57600080fd5b600181815b808511156146b757816000190482111561469d5761469d6143b6565b808516156146aa57918102915b93841c9390800290614681565b509250929050565b6000826146ce5750600161088e565b816146db5750600061088e565b81600181146146f157600281146146fb57614717565b600191505061088e565b60ff84111561470c5761470c6143b6565b50506001821b61088e565b5060208310610133831016604e8410600b841016171561473a575081810a61088e565b614744838361467c565b8060001904821115614758576147586143b6565b029392505050565b6000610a3a83836146bf565b60006020828403121561477e57600080fd5b610a3a82613853565b60006020828403121561479957600080fd5b610a3a8261415f565b6000602082840312156147b457600080fd5b610a3a82614173565b6001600160701b03828116828216039080821115614461576144616143b6565b6001600160701b03818116838216019080821115614461576144616143b656fea26469706673582212205ae53779445344e273896c45609252ef8d5a712c628499d8c318390ae2b7aa8564736f6c63430008110033";
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GNSBorrowingFees__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
anonymous: false,
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
indexed: true,
|
|
14
|
+
internalType: "uint16",
|
|
15
|
+
name: "groupIndex",
|
|
16
|
+
type: "uint16",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
indexed: false,
|
|
20
|
+
internalType: "uint256",
|
|
21
|
+
name: "currentBlock",
|
|
22
|
+
type: "uint256",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
indexed: false,
|
|
26
|
+
internalType: "uint64",
|
|
27
|
+
name: "accFeeLong",
|
|
28
|
+
type: "uint64",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
indexed: false,
|
|
32
|
+
internalType: "uint64",
|
|
33
|
+
name: "accFeeShort",
|
|
34
|
+
type: "uint64",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
name: "GroupAccFeesUpdated",
|
|
38
|
+
type: "event",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
anonymous: false,
|
|
42
|
+
inputs: [
|
|
43
|
+
{
|
|
44
|
+
indexed: true,
|
|
45
|
+
internalType: "uint16",
|
|
46
|
+
name: "groupIndex",
|
|
47
|
+
type: "uint16",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
indexed: true,
|
|
51
|
+
internalType: "bool",
|
|
52
|
+
name: "long",
|
|
53
|
+
type: "bool",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
indexed: true,
|
|
57
|
+
internalType: "bool",
|
|
58
|
+
name: "increase",
|
|
59
|
+
type: "bool",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
indexed: false,
|
|
63
|
+
internalType: "uint112",
|
|
64
|
+
name: "amount",
|
|
65
|
+
type: "uint112",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
indexed: false,
|
|
69
|
+
internalType: "uint112",
|
|
70
|
+
name: "oiLong",
|
|
71
|
+
type: "uint112",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
indexed: false,
|
|
75
|
+
internalType: "uint112",
|
|
76
|
+
name: "oiShort",
|
|
77
|
+
type: "uint112",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
name: "GroupOiUpdated",
|
|
81
|
+
type: "event",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
anonymous: false,
|
|
85
|
+
inputs: [
|
|
86
|
+
{
|
|
87
|
+
indexed: true,
|
|
88
|
+
internalType: "uint16",
|
|
89
|
+
name: "groupIndex",
|
|
90
|
+
type: "uint16",
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
indexed: false,
|
|
94
|
+
internalType: "uint32",
|
|
95
|
+
name: "feePerBlock",
|
|
96
|
+
type: "uint32",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
indexed: false,
|
|
100
|
+
internalType: "uint72",
|
|
101
|
+
name: "maxOi",
|
|
102
|
+
type: "uint72",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
indexed: false,
|
|
106
|
+
internalType: "uint48",
|
|
107
|
+
name: "feeExponent",
|
|
108
|
+
type: "uint48",
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
name: "GroupUpdated",
|
|
112
|
+
type: "event",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
anonymous: false,
|
|
116
|
+
inputs: [
|
|
117
|
+
{
|
|
118
|
+
indexed: false,
|
|
119
|
+
internalType: "uint8",
|
|
120
|
+
name: "version",
|
|
121
|
+
type: "uint8",
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
name: "Initialized",
|
|
125
|
+
type: "event",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
anonymous: false,
|
|
129
|
+
inputs: [
|
|
130
|
+
{
|
|
131
|
+
indexed: true,
|
|
132
|
+
internalType: "uint48",
|
|
133
|
+
name: "windowsDuration",
|
|
134
|
+
type: "uint48",
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
name: "OiWindowsSettingsInitialized",
|
|
138
|
+
type: "event",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
anonymous: false,
|
|
142
|
+
inputs: [
|
|
143
|
+
{
|
|
144
|
+
indexed: true,
|
|
145
|
+
internalType: "uint256",
|
|
146
|
+
name: "pairIndex",
|
|
147
|
+
type: "uint256",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
indexed: false,
|
|
151
|
+
internalType: "uint256",
|
|
152
|
+
name: "currentBlock",
|
|
153
|
+
type: "uint256",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
indexed: false,
|
|
157
|
+
internalType: "uint64",
|
|
158
|
+
name: "accFeeLong",
|
|
159
|
+
type: "uint64",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
indexed: false,
|
|
163
|
+
internalType: "uint64",
|
|
164
|
+
name: "accFeeShort",
|
|
165
|
+
type: "uint64",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
name: "PairAccFeesUpdated",
|
|
169
|
+
type: "event",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
anonymous: false,
|
|
173
|
+
inputs: [
|
|
174
|
+
{
|
|
175
|
+
indexed: true,
|
|
176
|
+
internalType: "uint256",
|
|
177
|
+
name: "pairIndex",
|
|
178
|
+
type: "uint256",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
indexed: true,
|
|
182
|
+
internalType: "uint16",
|
|
183
|
+
name: "prevGroupIndex",
|
|
184
|
+
type: "uint16",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
indexed: true,
|
|
188
|
+
internalType: "uint16",
|
|
189
|
+
name: "newGroupIndex",
|
|
190
|
+
type: "uint16",
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
name: "PairGroupUpdated",
|
|
194
|
+
type: "event",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
anonymous: false,
|
|
198
|
+
inputs: [
|
|
199
|
+
{
|
|
200
|
+
indexed: true,
|
|
201
|
+
internalType: "uint256",
|
|
202
|
+
name: "pairIndex",
|
|
203
|
+
type: "uint256",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
indexed: true,
|
|
207
|
+
internalType: "uint16",
|
|
208
|
+
name: "groupIndex",
|
|
209
|
+
type: "uint16",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
indexed: false,
|
|
213
|
+
internalType: "uint32",
|
|
214
|
+
name: "feePerBlock",
|
|
215
|
+
type: "uint32",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
indexed: false,
|
|
219
|
+
internalType: "uint48",
|
|
220
|
+
name: "feeExponent",
|
|
221
|
+
type: "uint48",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
indexed: false,
|
|
225
|
+
internalType: "uint72",
|
|
226
|
+
name: "maxOi",
|
|
227
|
+
type: "uint72",
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
name: "PairParamsUpdated",
|
|
231
|
+
type: "event",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
anonymous: false,
|
|
235
|
+
inputs: [
|
|
236
|
+
{
|
|
237
|
+
indexed: true,
|
|
238
|
+
internalType: "uint256",
|
|
239
|
+
name: "pairIndex",
|
|
240
|
+
type: "uint256",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
components: [
|
|
244
|
+
{
|
|
245
|
+
internalType: "uint128",
|
|
246
|
+
name: "long",
|
|
247
|
+
type: "uint128",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
internalType: "uint128",
|
|
251
|
+
name: "short",
|
|
252
|
+
type: "uint128",
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
indexed: false,
|
|
256
|
+
internalType: "struct PriceImpactUtils.PairOi",
|
|
257
|
+
name: "totalPairOi",
|
|
258
|
+
type: "tuple",
|
|
259
|
+
},
|
|
260
|
+
],
|
|
261
|
+
name: "PriceImpactOiTransferredPair",
|
|
262
|
+
type: "event",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
anonymous: false,
|
|
266
|
+
inputs: [
|
|
267
|
+
{
|
|
268
|
+
indexed: false,
|
|
269
|
+
internalType: "uint256",
|
|
270
|
+
name: "pairsCount",
|
|
271
|
+
type: "uint256",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
indexed: false,
|
|
275
|
+
internalType: "uint256",
|
|
276
|
+
name: "prevCurrentWindowId",
|
|
277
|
+
type: "uint256",
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
indexed: false,
|
|
281
|
+
internalType: "uint256",
|
|
282
|
+
name: "prevEarliestWindowId",
|
|
283
|
+
type: "uint256",
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
indexed: false,
|
|
287
|
+
internalType: "uint256",
|
|
288
|
+
name: "newCurrentWindowId",
|
|
289
|
+
type: "uint256",
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
name: "PriceImpactOiTransferredPairs",
|
|
293
|
+
type: "event",
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
anonymous: false,
|
|
297
|
+
inputs: [
|
|
298
|
+
{
|
|
299
|
+
components: [
|
|
300
|
+
{
|
|
301
|
+
internalType: "uint48",
|
|
302
|
+
name: "windowsDuration",
|
|
303
|
+
type: "uint48",
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
internalType: "uint256",
|
|
307
|
+
name: "pairIndex",
|
|
308
|
+
type: "uint256",
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
internalType: "uint256",
|
|
312
|
+
name: "windowId",
|
|
313
|
+
type: "uint256",
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
internalType: "bool",
|
|
317
|
+
name: "long",
|
|
318
|
+
type: "bool",
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
internalType: "uint128",
|
|
322
|
+
name: "openInterest",
|
|
323
|
+
type: "uint128",
|
|
324
|
+
},
|
|
325
|
+
],
|
|
326
|
+
indexed: false,
|
|
327
|
+
internalType: "struct PriceImpactUtils.OiWindowUpdate",
|
|
328
|
+
name: "oiWindowUpdate",
|
|
329
|
+
type: "tuple",
|
|
330
|
+
},
|
|
331
|
+
],
|
|
332
|
+
name: "PriceImpactOpenInterestAdded",
|
|
333
|
+
type: "event",
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
anonymous: false,
|
|
337
|
+
inputs: [
|
|
338
|
+
{
|
|
339
|
+
components: [
|
|
340
|
+
{
|
|
341
|
+
internalType: "uint48",
|
|
342
|
+
name: "windowsDuration",
|
|
343
|
+
type: "uint48",
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
internalType: "uint256",
|
|
347
|
+
name: "pairIndex",
|
|
348
|
+
type: "uint256",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
internalType: "uint256",
|
|
352
|
+
name: "windowId",
|
|
353
|
+
type: "uint256",
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
internalType: "bool",
|
|
357
|
+
name: "long",
|
|
358
|
+
type: "bool",
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
internalType: "uint128",
|
|
362
|
+
name: "openInterest",
|
|
363
|
+
type: "uint128",
|
|
364
|
+
},
|
|
365
|
+
],
|
|
366
|
+
indexed: false,
|
|
367
|
+
internalType: "struct PriceImpactUtils.OiWindowUpdate",
|
|
368
|
+
name: "oiWindowUpdate",
|
|
369
|
+
type: "tuple",
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
indexed: false,
|
|
373
|
+
internalType: "bool",
|
|
374
|
+
name: "notOutdated",
|
|
375
|
+
type: "bool",
|
|
376
|
+
},
|
|
377
|
+
],
|
|
378
|
+
name: "PriceImpactOpenInterestRemoved",
|
|
379
|
+
type: "event",
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
anonymous: false,
|
|
383
|
+
inputs: [
|
|
384
|
+
{
|
|
385
|
+
indexed: true,
|
|
386
|
+
internalType: "uint48",
|
|
387
|
+
name: "windowsCount",
|
|
388
|
+
type: "uint48",
|
|
389
|
+
},
|
|
390
|
+
],
|
|
391
|
+
name: "PriceImpactWindowsCountUpdated",
|
|
392
|
+
type: "event",
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
anonymous: false,
|
|
396
|
+
inputs: [
|
|
397
|
+
{
|
|
398
|
+
indexed: true,
|
|
399
|
+
internalType: "uint48",
|
|
400
|
+
name: "windowsDuration",
|
|
401
|
+
type: "uint48",
|
|
402
|
+
},
|
|
403
|
+
],
|
|
404
|
+
name: "PriceImpactWindowsDurationUpdated",
|
|
405
|
+
type: "event",
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
anonymous: false,
|
|
409
|
+
inputs: [
|
|
410
|
+
{
|
|
411
|
+
indexed: true,
|
|
412
|
+
internalType: "address",
|
|
413
|
+
name: "trader",
|
|
414
|
+
type: "address",
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
indexed: true,
|
|
418
|
+
internalType: "uint256",
|
|
419
|
+
name: "pairIndex",
|
|
420
|
+
type: "uint256",
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
indexed: false,
|
|
424
|
+
internalType: "uint256",
|
|
425
|
+
name: "index",
|
|
426
|
+
type: "uint256",
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
indexed: false,
|
|
430
|
+
internalType: "bool",
|
|
431
|
+
name: "open",
|
|
432
|
+
type: "bool",
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
indexed: false,
|
|
436
|
+
internalType: "bool",
|
|
437
|
+
name: "long",
|
|
438
|
+
type: "bool",
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
indexed: false,
|
|
442
|
+
internalType: "uint256",
|
|
443
|
+
name: "positionSizeDai",
|
|
444
|
+
type: "uint256",
|
|
445
|
+
},
|
|
446
|
+
],
|
|
447
|
+
name: "TradeActionHandled",
|
|
448
|
+
type: "event",
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
anonymous: false,
|
|
452
|
+
inputs: [
|
|
453
|
+
{
|
|
454
|
+
indexed: true,
|
|
455
|
+
internalType: "address",
|
|
456
|
+
name: "trader",
|
|
457
|
+
type: "address",
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
indexed: true,
|
|
461
|
+
internalType: "uint256",
|
|
462
|
+
name: "pairIndex",
|
|
463
|
+
type: "uint256",
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
indexed: false,
|
|
467
|
+
internalType: "uint256",
|
|
468
|
+
name: "index",
|
|
469
|
+
type: "uint256",
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
indexed: false,
|
|
473
|
+
internalType: "uint64",
|
|
474
|
+
name: "initialPairAccFee",
|
|
475
|
+
type: "uint64",
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
indexed: false,
|
|
479
|
+
internalType: "uint64",
|
|
480
|
+
name: "initialGroupAccFee",
|
|
481
|
+
type: "uint64",
|
|
482
|
+
},
|
|
483
|
+
],
|
|
484
|
+
name: "TradeInitialAccFeesStored",
|
|
485
|
+
type: "event",
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
inputs: [
|
|
489
|
+
{
|
|
490
|
+
internalType: "uint256",
|
|
491
|
+
name: "_openInterest",
|
|
492
|
+
type: "uint256",
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
internalType: "uint256",
|
|
496
|
+
name: "_pairIndex",
|
|
497
|
+
type: "uint256",
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
internalType: "bool",
|
|
501
|
+
name: "_long",
|
|
502
|
+
type: "bool",
|
|
503
|
+
},
|
|
504
|
+
],
|
|
505
|
+
name: "addPriceImpactOpenInterest",
|
|
506
|
+
outputs: [],
|
|
507
|
+
stateMutability: "nonpayable",
|
|
508
|
+
type: "function",
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
inputs: [],
|
|
512
|
+
name: "getAllPairs",
|
|
513
|
+
outputs: [
|
|
514
|
+
{
|
|
515
|
+
components: [
|
|
516
|
+
{
|
|
517
|
+
components: [
|
|
518
|
+
{
|
|
519
|
+
internalType: "uint16",
|
|
520
|
+
name: "groupIndex",
|
|
521
|
+
type: "uint16",
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
internalType: "uint48",
|
|
525
|
+
name: "block",
|
|
526
|
+
type: "uint48",
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
internalType: "uint64",
|
|
530
|
+
name: "initialAccFeeLong",
|
|
531
|
+
type: "uint64",
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
internalType: "uint64",
|
|
535
|
+
name: "initialAccFeeShort",
|
|
536
|
+
type: "uint64",
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
internalType: "uint64",
|
|
540
|
+
name: "prevGroupAccFeeLong",
|
|
541
|
+
type: "uint64",
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
internalType: "uint64",
|
|
545
|
+
name: "prevGroupAccFeeShort",
|
|
546
|
+
type: "uint64",
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
internalType: "uint64",
|
|
550
|
+
name: "pairAccFeeLong",
|
|
551
|
+
type: "uint64",
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
internalType: "uint64",
|
|
555
|
+
name: "pairAccFeeShort",
|
|
556
|
+
type: "uint64",
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
internalType: "uint64",
|
|
560
|
+
name: "_placeholder",
|
|
561
|
+
type: "uint64",
|
|
562
|
+
},
|
|
563
|
+
],
|
|
564
|
+
internalType: "struct IGNSBorrowingFees.PairGroup[]",
|
|
565
|
+
name: "groups",
|
|
566
|
+
type: "tuple[]",
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
internalType: "uint32",
|
|
570
|
+
name: "feePerBlock",
|
|
571
|
+
type: "uint32",
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
internalType: "uint64",
|
|
575
|
+
name: "accFeeLong",
|
|
576
|
+
type: "uint64",
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
internalType: "uint64",
|
|
580
|
+
name: "accFeeShort",
|
|
581
|
+
type: "uint64",
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
internalType: "uint48",
|
|
585
|
+
name: "accLastUpdatedBlock",
|
|
586
|
+
type: "uint48",
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
internalType: "uint48",
|
|
590
|
+
name: "feeExponent",
|
|
591
|
+
type: "uint48",
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
internalType: "uint256",
|
|
595
|
+
name: "lastAccBlockWeightedMarketCap",
|
|
596
|
+
type: "uint256",
|
|
597
|
+
},
|
|
598
|
+
],
|
|
599
|
+
internalType: "struct IGNSBorrowingFees.Pair[]",
|
|
600
|
+
name: "",
|
|
601
|
+
type: "tuple[]",
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
components: [
|
|
605
|
+
{
|
|
606
|
+
internalType: "uint72",
|
|
607
|
+
name: "long",
|
|
608
|
+
type: "uint72",
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
internalType: "uint72",
|
|
612
|
+
name: "short",
|
|
613
|
+
type: "uint72",
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
internalType: "uint72",
|
|
617
|
+
name: "max",
|
|
618
|
+
type: "uint72",
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
internalType: "uint40",
|
|
622
|
+
name: "_placeholder",
|
|
623
|
+
type: "uint40",
|
|
624
|
+
},
|
|
625
|
+
],
|
|
626
|
+
internalType: "struct IGNSBorrowingFees.PairOi[]",
|
|
627
|
+
name: "",
|
|
628
|
+
type: "tuple[]",
|
|
629
|
+
},
|
|
630
|
+
],
|
|
631
|
+
stateMutability: "view",
|
|
632
|
+
type: "function",
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
inputs: [
|
|
636
|
+
{
|
|
637
|
+
internalType: "uint16",
|
|
638
|
+
name: "groupIndex",
|
|
639
|
+
type: "uint16",
|
|
640
|
+
},
|
|
641
|
+
],
|
|
642
|
+
name: "getGroup",
|
|
643
|
+
outputs: [
|
|
644
|
+
{
|
|
645
|
+
components: [
|
|
646
|
+
{
|
|
647
|
+
internalType: "uint112",
|
|
648
|
+
name: "oiLong",
|
|
649
|
+
type: "uint112",
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
internalType: "uint112",
|
|
653
|
+
name: "oiShort",
|
|
654
|
+
type: "uint112",
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
internalType: "uint32",
|
|
658
|
+
name: "feePerBlock",
|
|
659
|
+
type: "uint32",
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
internalType: "uint64",
|
|
663
|
+
name: "accFeeLong",
|
|
664
|
+
type: "uint64",
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
internalType: "uint64",
|
|
668
|
+
name: "accFeeShort",
|
|
669
|
+
type: "uint64",
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
internalType: "uint48",
|
|
673
|
+
name: "accLastUpdatedBlock",
|
|
674
|
+
type: "uint48",
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
internalType: "uint80",
|
|
678
|
+
name: "maxOi",
|
|
679
|
+
type: "uint80",
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
internalType: "uint256",
|
|
683
|
+
name: "lastAccBlockWeightedMarketCap",
|
|
684
|
+
type: "uint256",
|
|
685
|
+
},
|
|
686
|
+
],
|
|
687
|
+
internalType: "struct IGNSBorrowingFees.Group",
|
|
688
|
+
name: "",
|
|
689
|
+
type: "tuple",
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
internalType: "uint48",
|
|
693
|
+
name: "",
|
|
694
|
+
type: "uint48",
|
|
695
|
+
},
|
|
696
|
+
],
|
|
697
|
+
stateMutability: "view",
|
|
698
|
+
type: "function",
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
inputs: [
|
|
702
|
+
{
|
|
703
|
+
internalType: "uint16",
|
|
704
|
+
name: "groupIndex",
|
|
705
|
+
type: "uint16",
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
internalType: "uint256",
|
|
709
|
+
name: "currentBlock",
|
|
710
|
+
type: "uint256",
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
internalType: "bool",
|
|
714
|
+
name: "long",
|
|
715
|
+
type: "bool",
|
|
716
|
+
},
|
|
717
|
+
],
|
|
718
|
+
name: "getGroupPendingAccFee",
|
|
719
|
+
outputs: [
|
|
720
|
+
{
|
|
721
|
+
internalType: "uint64",
|
|
722
|
+
name: "accFee",
|
|
723
|
+
type: "uint64",
|
|
724
|
+
},
|
|
725
|
+
],
|
|
726
|
+
stateMutability: "view",
|
|
727
|
+
type: "function",
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
inputs: [
|
|
731
|
+
{
|
|
732
|
+
internalType: "uint16",
|
|
733
|
+
name: "groupIndex",
|
|
734
|
+
type: "uint16",
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
internalType: "uint256",
|
|
738
|
+
name: "currentBlock",
|
|
739
|
+
type: "uint256",
|
|
740
|
+
},
|
|
741
|
+
],
|
|
742
|
+
name: "getGroupPendingAccFees",
|
|
743
|
+
outputs: [
|
|
744
|
+
{
|
|
745
|
+
internalType: "uint64",
|
|
746
|
+
name: "accFeeLong",
|
|
747
|
+
type: "uint64",
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
internalType: "uint64",
|
|
751
|
+
name: "accFeeShort",
|
|
752
|
+
type: "uint64",
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
internalType: "uint64",
|
|
756
|
+
name: "groupAccFeeDelta",
|
|
757
|
+
type: "uint64",
|
|
758
|
+
},
|
|
759
|
+
],
|
|
760
|
+
stateMutability: "view",
|
|
761
|
+
type: "function",
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
inputs: [
|
|
765
|
+
{
|
|
766
|
+
internalType: "uint16[]",
|
|
767
|
+
name: "indices",
|
|
768
|
+
type: "uint16[]",
|
|
769
|
+
},
|
|
770
|
+
],
|
|
771
|
+
name: "getGroups",
|
|
772
|
+
outputs: [
|
|
773
|
+
{
|
|
774
|
+
components: [
|
|
775
|
+
{
|
|
776
|
+
internalType: "uint112",
|
|
777
|
+
name: "oiLong",
|
|
778
|
+
type: "uint112",
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
internalType: "uint112",
|
|
782
|
+
name: "oiShort",
|
|
783
|
+
type: "uint112",
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
internalType: "uint32",
|
|
787
|
+
name: "feePerBlock",
|
|
788
|
+
type: "uint32",
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
internalType: "uint64",
|
|
792
|
+
name: "accFeeLong",
|
|
793
|
+
type: "uint64",
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
internalType: "uint64",
|
|
797
|
+
name: "accFeeShort",
|
|
798
|
+
type: "uint64",
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
internalType: "uint48",
|
|
802
|
+
name: "accLastUpdatedBlock",
|
|
803
|
+
type: "uint48",
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
internalType: "uint80",
|
|
807
|
+
name: "maxOi",
|
|
808
|
+
type: "uint80",
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
internalType: "uint256",
|
|
812
|
+
name: "lastAccBlockWeightedMarketCap",
|
|
813
|
+
type: "uint256",
|
|
814
|
+
},
|
|
815
|
+
],
|
|
816
|
+
internalType: "struct IGNSBorrowingFees.Group[]",
|
|
817
|
+
name: "",
|
|
818
|
+
type: "tuple[]",
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
internalType: "uint48[]",
|
|
822
|
+
name: "",
|
|
823
|
+
type: "uint48[]",
|
|
824
|
+
},
|
|
825
|
+
],
|
|
826
|
+
stateMutability: "view",
|
|
827
|
+
type: "function",
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
inputs: [
|
|
831
|
+
{
|
|
832
|
+
internalType: "uint48",
|
|
833
|
+
name: "_windowsDuration",
|
|
834
|
+
type: "uint48",
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
internalType: "uint256",
|
|
838
|
+
name: "_pairIndex",
|
|
839
|
+
type: "uint256",
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
internalType: "uint256",
|
|
843
|
+
name: "_windowId",
|
|
844
|
+
type: "uint256",
|
|
845
|
+
},
|
|
846
|
+
],
|
|
847
|
+
name: "getOiWindow",
|
|
848
|
+
outputs: [
|
|
849
|
+
{
|
|
850
|
+
components: [
|
|
851
|
+
{
|
|
852
|
+
internalType: "uint128",
|
|
853
|
+
name: "long",
|
|
854
|
+
type: "uint128",
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
internalType: "uint128",
|
|
858
|
+
name: "short",
|
|
859
|
+
type: "uint128",
|
|
860
|
+
},
|
|
861
|
+
],
|
|
862
|
+
internalType: "struct PriceImpactUtils.PairOi",
|
|
863
|
+
name: "",
|
|
864
|
+
type: "tuple",
|
|
865
|
+
},
|
|
866
|
+
],
|
|
867
|
+
stateMutability: "view",
|
|
868
|
+
type: "function",
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
inputs: [
|
|
872
|
+
{
|
|
873
|
+
internalType: "uint48",
|
|
874
|
+
name: "_windowsDuration",
|
|
875
|
+
type: "uint48",
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
internalType: "uint256",
|
|
879
|
+
name: "_pairIndex",
|
|
880
|
+
type: "uint256",
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
internalType: "uint256[]",
|
|
884
|
+
name: "_windowIds",
|
|
885
|
+
type: "uint256[]",
|
|
886
|
+
},
|
|
887
|
+
],
|
|
888
|
+
name: "getOiWindows",
|
|
889
|
+
outputs: [
|
|
890
|
+
{
|
|
891
|
+
components: [
|
|
892
|
+
{
|
|
893
|
+
internalType: "uint128",
|
|
894
|
+
name: "long",
|
|
895
|
+
type: "uint128",
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
internalType: "uint128",
|
|
899
|
+
name: "short",
|
|
900
|
+
type: "uint128",
|
|
901
|
+
},
|
|
902
|
+
],
|
|
903
|
+
internalType: "struct PriceImpactUtils.PairOi[]",
|
|
904
|
+
name: "",
|
|
905
|
+
type: "tuple[]",
|
|
906
|
+
},
|
|
907
|
+
],
|
|
908
|
+
stateMutability: "view",
|
|
909
|
+
type: "function",
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
inputs: [],
|
|
913
|
+
name: "getOiWindowsSettings",
|
|
914
|
+
outputs: [
|
|
915
|
+
{
|
|
916
|
+
components: [
|
|
917
|
+
{
|
|
918
|
+
internalType: "uint48",
|
|
919
|
+
name: "startTs",
|
|
920
|
+
type: "uint48",
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
internalType: "uint48",
|
|
924
|
+
name: "windowsDuration",
|
|
925
|
+
type: "uint48",
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
internalType: "uint48",
|
|
929
|
+
name: "windowsCount",
|
|
930
|
+
type: "uint48",
|
|
931
|
+
},
|
|
932
|
+
],
|
|
933
|
+
internalType: "struct PriceImpactUtils.OiWindowsSettings",
|
|
934
|
+
name: "",
|
|
935
|
+
type: "tuple",
|
|
936
|
+
},
|
|
937
|
+
],
|
|
938
|
+
stateMutability: "view",
|
|
939
|
+
type: "function",
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
inputs: [
|
|
943
|
+
{
|
|
944
|
+
internalType: "uint256",
|
|
945
|
+
name: "pairIndex",
|
|
946
|
+
type: "uint256",
|
|
947
|
+
},
|
|
948
|
+
],
|
|
949
|
+
name: "getPair",
|
|
950
|
+
outputs: [
|
|
951
|
+
{
|
|
952
|
+
components: [
|
|
953
|
+
{
|
|
954
|
+
components: [
|
|
955
|
+
{
|
|
956
|
+
internalType: "uint16",
|
|
957
|
+
name: "groupIndex",
|
|
958
|
+
type: "uint16",
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
internalType: "uint48",
|
|
962
|
+
name: "block",
|
|
963
|
+
type: "uint48",
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
internalType: "uint64",
|
|
967
|
+
name: "initialAccFeeLong",
|
|
968
|
+
type: "uint64",
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
internalType: "uint64",
|
|
972
|
+
name: "initialAccFeeShort",
|
|
973
|
+
type: "uint64",
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
internalType: "uint64",
|
|
977
|
+
name: "prevGroupAccFeeLong",
|
|
978
|
+
type: "uint64",
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
internalType: "uint64",
|
|
982
|
+
name: "prevGroupAccFeeShort",
|
|
983
|
+
type: "uint64",
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
internalType: "uint64",
|
|
987
|
+
name: "pairAccFeeLong",
|
|
988
|
+
type: "uint64",
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
internalType: "uint64",
|
|
992
|
+
name: "pairAccFeeShort",
|
|
993
|
+
type: "uint64",
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
internalType: "uint64",
|
|
997
|
+
name: "_placeholder",
|
|
998
|
+
type: "uint64",
|
|
999
|
+
},
|
|
1000
|
+
],
|
|
1001
|
+
internalType: "struct IGNSBorrowingFees.PairGroup[]",
|
|
1002
|
+
name: "groups",
|
|
1003
|
+
type: "tuple[]",
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
internalType: "uint32",
|
|
1007
|
+
name: "feePerBlock",
|
|
1008
|
+
type: "uint32",
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
internalType: "uint64",
|
|
1012
|
+
name: "accFeeLong",
|
|
1013
|
+
type: "uint64",
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
internalType: "uint64",
|
|
1017
|
+
name: "accFeeShort",
|
|
1018
|
+
type: "uint64",
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
internalType: "uint48",
|
|
1022
|
+
name: "accLastUpdatedBlock",
|
|
1023
|
+
type: "uint48",
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
internalType: "uint48",
|
|
1027
|
+
name: "feeExponent",
|
|
1028
|
+
type: "uint48",
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
internalType: "uint256",
|
|
1032
|
+
name: "lastAccBlockWeightedMarketCap",
|
|
1033
|
+
type: "uint256",
|
|
1034
|
+
},
|
|
1035
|
+
],
|
|
1036
|
+
internalType: "struct IGNSBorrowingFees.Pair",
|
|
1037
|
+
name: "",
|
|
1038
|
+
type: "tuple",
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
components: [
|
|
1042
|
+
{
|
|
1043
|
+
internalType: "uint72",
|
|
1044
|
+
name: "long",
|
|
1045
|
+
type: "uint72",
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
internalType: "uint72",
|
|
1049
|
+
name: "short",
|
|
1050
|
+
type: "uint72",
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
internalType: "uint72",
|
|
1054
|
+
name: "max",
|
|
1055
|
+
type: "uint72",
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
internalType: "uint40",
|
|
1059
|
+
name: "_placeholder",
|
|
1060
|
+
type: "uint40",
|
|
1061
|
+
},
|
|
1062
|
+
],
|
|
1063
|
+
internalType: "struct IGNSBorrowingFees.PairOi",
|
|
1064
|
+
name: "",
|
|
1065
|
+
type: "tuple",
|
|
1066
|
+
},
|
|
1067
|
+
],
|
|
1068
|
+
stateMutability: "view",
|
|
1069
|
+
type: "function",
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
inputs: [
|
|
1073
|
+
{
|
|
1074
|
+
internalType: "uint256",
|
|
1075
|
+
name: "i",
|
|
1076
|
+
type: "uint256",
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
components: [
|
|
1080
|
+
{
|
|
1081
|
+
internalType: "uint16",
|
|
1082
|
+
name: "groupIndex",
|
|
1083
|
+
type: "uint16",
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
internalType: "uint48",
|
|
1087
|
+
name: "block",
|
|
1088
|
+
type: "uint48",
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
internalType: "uint64",
|
|
1092
|
+
name: "initialAccFeeLong",
|
|
1093
|
+
type: "uint64",
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
internalType: "uint64",
|
|
1097
|
+
name: "initialAccFeeShort",
|
|
1098
|
+
type: "uint64",
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
internalType: "uint64",
|
|
1102
|
+
name: "prevGroupAccFeeLong",
|
|
1103
|
+
type: "uint64",
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
internalType: "uint64",
|
|
1107
|
+
name: "prevGroupAccFeeShort",
|
|
1108
|
+
type: "uint64",
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
internalType: "uint64",
|
|
1112
|
+
name: "pairAccFeeLong",
|
|
1113
|
+
type: "uint64",
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
internalType: "uint64",
|
|
1117
|
+
name: "pairAccFeeShort",
|
|
1118
|
+
type: "uint64",
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
internalType: "uint64",
|
|
1122
|
+
name: "_placeholder",
|
|
1123
|
+
type: "uint64",
|
|
1124
|
+
},
|
|
1125
|
+
],
|
|
1126
|
+
internalType: "struct IGNSBorrowingFees.PairGroup[]",
|
|
1127
|
+
name: "pairGroups",
|
|
1128
|
+
type: "tuple[]",
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
components: [
|
|
1132
|
+
{
|
|
1133
|
+
internalType: "uint64",
|
|
1134
|
+
name: "accPairFee",
|
|
1135
|
+
type: "uint64",
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
internalType: "uint64",
|
|
1139
|
+
name: "accGroupFee",
|
|
1140
|
+
type: "uint64",
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
internalType: "uint48",
|
|
1144
|
+
name: "block",
|
|
1145
|
+
type: "uint48",
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
internalType: "uint80",
|
|
1149
|
+
name: "_placeholder",
|
|
1150
|
+
type: "uint80",
|
|
1151
|
+
},
|
|
1152
|
+
],
|
|
1153
|
+
internalType: "struct IGNSBorrowingFees.InitialAccFees",
|
|
1154
|
+
name: "initialFees",
|
|
1155
|
+
type: "tuple",
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
internalType: "uint256",
|
|
1159
|
+
name: "pairIndex",
|
|
1160
|
+
type: "uint256",
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
internalType: "bool",
|
|
1164
|
+
name: "long",
|
|
1165
|
+
type: "bool",
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
internalType: "uint256",
|
|
1169
|
+
name: "currentBlock",
|
|
1170
|
+
type: "uint256",
|
|
1171
|
+
},
|
|
1172
|
+
],
|
|
1173
|
+
name: "getPairGroupAccFeesDeltas",
|
|
1174
|
+
outputs: [
|
|
1175
|
+
{
|
|
1176
|
+
internalType: "uint64",
|
|
1177
|
+
name: "deltaGroup",
|
|
1178
|
+
type: "uint64",
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
internalType: "uint64",
|
|
1182
|
+
name: "deltaPair",
|
|
1183
|
+
type: "uint64",
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
internalType: "bool",
|
|
1187
|
+
name: "beforeTradeOpen",
|
|
1188
|
+
type: "bool",
|
|
1189
|
+
},
|
|
1190
|
+
],
|
|
1191
|
+
stateMutability: "view",
|
|
1192
|
+
type: "function",
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
inputs: [
|
|
1196
|
+
{
|
|
1197
|
+
internalType: "uint256",
|
|
1198
|
+
name: "pairIndex",
|
|
1199
|
+
type: "uint256",
|
|
1200
|
+
},
|
|
1201
|
+
],
|
|
1202
|
+
name: "getPairGroupIndex",
|
|
1203
|
+
outputs: [
|
|
1204
|
+
{
|
|
1205
|
+
internalType: "uint16",
|
|
1206
|
+
name: "groupIndex",
|
|
1207
|
+
type: "uint16",
|
|
1208
|
+
},
|
|
1209
|
+
],
|
|
1210
|
+
stateMutability: "view",
|
|
1211
|
+
type: "function",
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
inputs: [
|
|
1215
|
+
{
|
|
1216
|
+
internalType: "uint256",
|
|
1217
|
+
name: "pairIndex",
|
|
1218
|
+
type: "uint256",
|
|
1219
|
+
},
|
|
1220
|
+
],
|
|
1221
|
+
name: "getPairMaxOi",
|
|
1222
|
+
outputs: [
|
|
1223
|
+
{
|
|
1224
|
+
internalType: "uint256",
|
|
1225
|
+
name: "",
|
|
1226
|
+
type: "uint256",
|
|
1227
|
+
},
|
|
1228
|
+
],
|
|
1229
|
+
stateMutability: "view",
|
|
1230
|
+
type: "function",
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
inputs: [
|
|
1234
|
+
{
|
|
1235
|
+
internalType: "uint256",
|
|
1236
|
+
name: "pairIndex",
|
|
1237
|
+
type: "uint256",
|
|
1238
|
+
},
|
|
1239
|
+
],
|
|
1240
|
+
name: "getPairOpenInterestDai",
|
|
1241
|
+
outputs: [
|
|
1242
|
+
{
|
|
1243
|
+
internalType: "uint256",
|
|
1244
|
+
name: "",
|
|
1245
|
+
type: "uint256",
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
internalType: "uint256",
|
|
1249
|
+
name: "",
|
|
1250
|
+
type: "uint256",
|
|
1251
|
+
},
|
|
1252
|
+
],
|
|
1253
|
+
stateMutability: "view",
|
|
1254
|
+
type: "function",
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
inputs: [
|
|
1258
|
+
{
|
|
1259
|
+
internalType: "uint256",
|
|
1260
|
+
name: "pairIndex",
|
|
1261
|
+
type: "uint256",
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
internalType: "uint256",
|
|
1265
|
+
name: "currentBlock",
|
|
1266
|
+
type: "uint256",
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
internalType: "bool",
|
|
1270
|
+
name: "long",
|
|
1271
|
+
type: "bool",
|
|
1272
|
+
},
|
|
1273
|
+
],
|
|
1274
|
+
name: "getPairPendingAccFee",
|
|
1275
|
+
outputs: [
|
|
1276
|
+
{
|
|
1277
|
+
internalType: "uint64",
|
|
1278
|
+
name: "accFee",
|
|
1279
|
+
type: "uint64",
|
|
1280
|
+
},
|
|
1281
|
+
],
|
|
1282
|
+
stateMutability: "view",
|
|
1283
|
+
type: "function",
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
inputs: [
|
|
1287
|
+
{
|
|
1288
|
+
internalType: "uint256",
|
|
1289
|
+
name: "pairIndex",
|
|
1290
|
+
type: "uint256",
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
internalType: "uint256",
|
|
1294
|
+
name: "currentBlock",
|
|
1295
|
+
type: "uint256",
|
|
1296
|
+
},
|
|
1297
|
+
],
|
|
1298
|
+
name: "getPairPendingAccFees",
|
|
1299
|
+
outputs: [
|
|
1300
|
+
{
|
|
1301
|
+
internalType: "uint64",
|
|
1302
|
+
name: "accFeeLong",
|
|
1303
|
+
type: "uint64",
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
internalType: "uint64",
|
|
1307
|
+
name: "accFeeShort",
|
|
1308
|
+
type: "uint64",
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
internalType: "uint64",
|
|
1312
|
+
name: "pairAccFeeDelta",
|
|
1313
|
+
type: "uint64",
|
|
1314
|
+
},
|
|
1315
|
+
],
|
|
1316
|
+
stateMutability: "view",
|
|
1317
|
+
type: "function",
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
inputs: [
|
|
1321
|
+
{
|
|
1322
|
+
components: [
|
|
1323
|
+
{
|
|
1324
|
+
internalType: "uint64",
|
|
1325
|
+
name: "accFeeLong",
|
|
1326
|
+
type: "uint64",
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
internalType: "uint64",
|
|
1330
|
+
name: "accFeeShort",
|
|
1331
|
+
type: "uint64",
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
internalType: "uint256",
|
|
1335
|
+
name: "oiLong",
|
|
1336
|
+
type: "uint256",
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
internalType: "uint256",
|
|
1340
|
+
name: "oiShort",
|
|
1341
|
+
type: "uint256",
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
internalType: "uint32",
|
|
1345
|
+
name: "feePerBlock",
|
|
1346
|
+
type: "uint32",
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
internalType: "uint256",
|
|
1350
|
+
name: "currentBlock",
|
|
1351
|
+
type: "uint256",
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
internalType: "uint256",
|
|
1355
|
+
name: "accLastUpdatedBlock",
|
|
1356
|
+
type: "uint256",
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
internalType: "uint72",
|
|
1360
|
+
name: "maxOi",
|
|
1361
|
+
type: "uint72",
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
internalType: "uint48",
|
|
1365
|
+
name: "feeExponent",
|
|
1366
|
+
type: "uint48",
|
|
1367
|
+
},
|
|
1368
|
+
],
|
|
1369
|
+
internalType: "struct IGNSBorrowingFees.PendingAccFeesInput",
|
|
1370
|
+
name: "input",
|
|
1371
|
+
type: "tuple",
|
|
1372
|
+
},
|
|
1373
|
+
],
|
|
1374
|
+
name: "getPendingAccFees",
|
|
1375
|
+
outputs: [
|
|
1376
|
+
{
|
|
1377
|
+
internalType: "uint64",
|
|
1378
|
+
name: "newAccFeeLong",
|
|
1379
|
+
type: "uint64",
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
internalType: "uint64",
|
|
1383
|
+
name: "newAccFeeShort",
|
|
1384
|
+
type: "uint64",
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
internalType: "uint64",
|
|
1388
|
+
name: "delta",
|
|
1389
|
+
type: "uint64",
|
|
1390
|
+
},
|
|
1391
|
+
],
|
|
1392
|
+
stateMutability: "pure",
|
|
1393
|
+
type: "function",
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
inputs: [
|
|
1397
|
+
{
|
|
1398
|
+
internalType: "uint256",
|
|
1399
|
+
name: "_pairIndex",
|
|
1400
|
+
type: "uint256",
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
internalType: "bool",
|
|
1404
|
+
name: "_long",
|
|
1405
|
+
type: "bool",
|
|
1406
|
+
},
|
|
1407
|
+
],
|
|
1408
|
+
name: "getPriceImpactOi",
|
|
1409
|
+
outputs: [
|
|
1410
|
+
{
|
|
1411
|
+
internalType: "uint256",
|
|
1412
|
+
name: "activeOi",
|
|
1413
|
+
type: "uint256",
|
|
1414
|
+
},
|
|
1415
|
+
],
|
|
1416
|
+
stateMutability: "view",
|
|
1417
|
+
type: "function",
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
inputs: [
|
|
1421
|
+
{
|
|
1422
|
+
components: [
|
|
1423
|
+
{
|
|
1424
|
+
internalType: "address",
|
|
1425
|
+
name: "trader",
|
|
1426
|
+
type: "address",
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
internalType: "uint256",
|
|
1430
|
+
name: "pairIndex",
|
|
1431
|
+
type: "uint256",
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
internalType: "uint256",
|
|
1435
|
+
name: "index",
|
|
1436
|
+
type: "uint256",
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
internalType: "bool",
|
|
1440
|
+
name: "long",
|
|
1441
|
+
type: "bool",
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
internalType: "uint256",
|
|
1445
|
+
name: "collateral",
|
|
1446
|
+
type: "uint256",
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
internalType: "uint256",
|
|
1450
|
+
name: "leverage",
|
|
1451
|
+
type: "uint256",
|
|
1452
|
+
},
|
|
1453
|
+
],
|
|
1454
|
+
internalType: "struct IGNSBorrowingFees.BorrowingFeeInput",
|
|
1455
|
+
name: "input",
|
|
1456
|
+
type: "tuple",
|
|
1457
|
+
},
|
|
1458
|
+
],
|
|
1459
|
+
name: "getTradeBorrowingFee",
|
|
1460
|
+
outputs: [
|
|
1461
|
+
{
|
|
1462
|
+
internalType: "uint256",
|
|
1463
|
+
name: "fee",
|
|
1464
|
+
type: "uint256",
|
|
1465
|
+
},
|
|
1466
|
+
],
|
|
1467
|
+
stateMutability: "view",
|
|
1468
|
+
type: "function",
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
inputs: [
|
|
1472
|
+
{
|
|
1473
|
+
internalType: "address",
|
|
1474
|
+
name: "trader",
|
|
1475
|
+
type: "address",
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
internalType: "uint256",
|
|
1479
|
+
name: "pairIndex",
|
|
1480
|
+
type: "uint256",
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
internalType: "uint256",
|
|
1484
|
+
name: "index",
|
|
1485
|
+
type: "uint256",
|
|
1486
|
+
},
|
|
1487
|
+
],
|
|
1488
|
+
name: "getTradeInitialAccFees",
|
|
1489
|
+
outputs: [
|
|
1490
|
+
{
|
|
1491
|
+
components: [
|
|
1492
|
+
{
|
|
1493
|
+
internalType: "uint64",
|
|
1494
|
+
name: "accPairFee",
|
|
1495
|
+
type: "uint64",
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
internalType: "uint64",
|
|
1499
|
+
name: "accGroupFee",
|
|
1500
|
+
type: "uint64",
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
internalType: "uint48",
|
|
1504
|
+
name: "block",
|
|
1505
|
+
type: "uint48",
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
internalType: "uint80",
|
|
1509
|
+
name: "_placeholder",
|
|
1510
|
+
type: "uint80",
|
|
1511
|
+
},
|
|
1512
|
+
],
|
|
1513
|
+
internalType: "struct IGNSBorrowingFees.InitialAccFees",
|
|
1514
|
+
name: "borrowingFees",
|
|
1515
|
+
type: "tuple",
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
components: [
|
|
1519
|
+
{
|
|
1520
|
+
internalType: "uint256",
|
|
1521
|
+
name: "rollover",
|
|
1522
|
+
type: "uint256",
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
internalType: "int256",
|
|
1526
|
+
name: "funding",
|
|
1527
|
+
type: "int256",
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
internalType: "bool",
|
|
1531
|
+
name: "openedAfterUpdate",
|
|
1532
|
+
type: "bool",
|
|
1533
|
+
},
|
|
1534
|
+
],
|
|
1535
|
+
internalType: "struct IGNSPairInfos.TradeInitialAccFees",
|
|
1536
|
+
name: "otherFees",
|
|
1537
|
+
type: "tuple",
|
|
1538
|
+
},
|
|
1539
|
+
],
|
|
1540
|
+
stateMutability: "view",
|
|
1541
|
+
type: "function",
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
inputs: [
|
|
1545
|
+
{
|
|
1546
|
+
components: [
|
|
1547
|
+
{
|
|
1548
|
+
internalType: "address",
|
|
1549
|
+
name: "trader",
|
|
1550
|
+
type: "address",
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
internalType: "uint256",
|
|
1554
|
+
name: "pairIndex",
|
|
1555
|
+
type: "uint256",
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
internalType: "uint256",
|
|
1559
|
+
name: "index",
|
|
1560
|
+
type: "uint256",
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
internalType: "uint256",
|
|
1564
|
+
name: "openPrice",
|
|
1565
|
+
type: "uint256",
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
internalType: "bool",
|
|
1569
|
+
name: "long",
|
|
1570
|
+
type: "bool",
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
internalType: "uint256",
|
|
1574
|
+
name: "collateral",
|
|
1575
|
+
type: "uint256",
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
internalType: "uint256",
|
|
1579
|
+
name: "leverage",
|
|
1580
|
+
type: "uint256",
|
|
1581
|
+
},
|
|
1582
|
+
],
|
|
1583
|
+
internalType: "struct IGNSBorrowingFees.LiqPriceInput",
|
|
1584
|
+
name: "input",
|
|
1585
|
+
type: "tuple",
|
|
1586
|
+
},
|
|
1587
|
+
],
|
|
1588
|
+
name: "getTradeLiquidationPrice",
|
|
1589
|
+
outputs: [
|
|
1590
|
+
{
|
|
1591
|
+
internalType: "uint256",
|
|
1592
|
+
name: "",
|
|
1593
|
+
type: "uint256",
|
|
1594
|
+
},
|
|
1595
|
+
],
|
|
1596
|
+
stateMutability: "view",
|
|
1597
|
+
type: "function",
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
inputs: [
|
|
1601
|
+
{
|
|
1602
|
+
internalType: "uint256",
|
|
1603
|
+
name: "_openPrice",
|
|
1604
|
+
type: "uint256",
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
internalType: "uint256",
|
|
1608
|
+
name: "_pairIndex",
|
|
1609
|
+
type: "uint256",
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
internalType: "bool",
|
|
1613
|
+
name: "_long",
|
|
1614
|
+
type: "bool",
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
internalType: "uint256",
|
|
1618
|
+
name: "_tradeOpenInterest",
|
|
1619
|
+
type: "uint256",
|
|
1620
|
+
},
|
|
1621
|
+
],
|
|
1622
|
+
name: "getTradePriceImpact",
|
|
1623
|
+
outputs: [
|
|
1624
|
+
{
|
|
1625
|
+
internalType: "uint256",
|
|
1626
|
+
name: "priceImpactP",
|
|
1627
|
+
type: "uint256",
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
internalType: "uint256",
|
|
1631
|
+
name: "priceAfterImpact",
|
|
1632
|
+
type: "uint256",
|
|
1633
|
+
},
|
|
1634
|
+
],
|
|
1635
|
+
stateMutability: "view",
|
|
1636
|
+
type: "function",
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
inputs: [
|
|
1640
|
+
{
|
|
1641
|
+
internalType: "uint256",
|
|
1642
|
+
name: "",
|
|
1643
|
+
type: "uint256",
|
|
1644
|
+
},
|
|
1645
|
+
],
|
|
1646
|
+
name: "groupFeeExponents",
|
|
1647
|
+
outputs: [
|
|
1648
|
+
{
|
|
1649
|
+
internalType: "uint48",
|
|
1650
|
+
name: "",
|
|
1651
|
+
type: "uint48",
|
|
1652
|
+
},
|
|
1653
|
+
],
|
|
1654
|
+
stateMutability: "view",
|
|
1655
|
+
type: "function",
|
|
1656
|
+
},
|
|
1657
|
+
{
|
|
1658
|
+
inputs: [
|
|
1659
|
+
{
|
|
1660
|
+
internalType: "uint16",
|
|
1661
|
+
name: "",
|
|
1662
|
+
type: "uint16",
|
|
1663
|
+
},
|
|
1664
|
+
],
|
|
1665
|
+
name: "groups",
|
|
1666
|
+
outputs: [
|
|
1667
|
+
{
|
|
1668
|
+
internalType: "uint112",
|
|
1669
|
+
name: "oiLong",
|
|
1670
|
+
type: "uint112",
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
internalType: "uint112",
|
|
1674
|
+
name: "oiShort",
|
|
1675
|
+
type: "uint112",
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
internalType: "uint32",
|
|
1679
|
+
name: "feePerBlock",
|
|
1680
|
+
type: "uint32",
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
internalType: "uint64",
|
|
1684
|
+
name: "accFeeLong",
|
|
1685
|
+
type: "uint64",
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
internalType: "uint64",
|
|
1689
|
+
name: "accFeeShort",
|
|
1690
|
+
type: "uint64",
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
internalType: "uint48",
|
|
1694
|
+
name: "accLastUpdatedBlock",
|
|
1695
|
+
type: "uint48",
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
internalType: "uint80",
|
|
1699
|
+
name: "maxOi",
|
|
1700
|
+
type: "uint80",
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
internalType: "uint256",
|
|
1704
|
+
name: "lastAccBlockWeightedMarketCap",
|
|
1705
|
+
type: "uint256",
|
|
1706
|
+
},
|
|
1707
|
+
],
|
|
1708
|
+
stateMutability: "view",
|
|
1709
|
+
type: "function",
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
inputs: [
|
|
1713
|
+
{
|
|
1714
|
+
internalType: "address",
|
|
1715
|
+
name: "trader",
|
|
1716
|
+
type: "address",
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
internalType: "uint256",
|
|
1720
|
+
name: "pairIndex",
|
|
1721
|
+
type: "uint256",
|
|
1722
|
+
},
|
|
1723
|
+
{
|
|
1724
|
+
internalType: "uint256",
|
|
1725
|
+
name: "index",
|
|
1726
|
+
type: "uint256",
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
internalType: "uint256",
|
|
1730
|
+
name: "positionSizeDai",
|
|
1731
|
+
type: "uint256",
|
|
1732
|
+
},
|
|
1733
|
+
{
|
|
1734
|
+
internalType: "bool",
|
|
1735
|
+
name: "open",
|
|
1736
|
+
type: "bool",
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
internalType: "bool",
|
|
1740
|
+
name: "long",
|
|
1741
|
+
type: "bool",
|
|
1742
|
+
},
|
|
1743
|
+
],
|
|
1744
|
+
name: "handleTradeAction",
|
|
1745
|
+
outputs: [],
|
|
1746
|
+
stateMutability: "nonpayable",
|
|
1747
|
+
type: "function",
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
inputs: [
|
|
1751
|
+
{
|
|
1752
|
+
internalType: "address",
|
|
1753
|
+
name: "",
|
|
1754
|
+
type: "address",
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
internalType: "uint256",
|
|
1758
|
+
name: "",
|
|
1759
|
+
type: "uint256",
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
internalType: "uint256",
|
|
1763
|
+
name: "",
|
|
1764
|
+
type: "uint256",
|
|
1765
|
+
},
|
|
1766
|
+
],
|
|
1767
|
+
name: "initialAccFees",
|
|
1768
|
+
outputs: [
|
|
1769
|
+
{
|
|
1770
|
+
internalType: "uint64",
|
|
1771
|
+
name: "accPairFee",
|
|
1772
|
+
type: "uint64",
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
internalType: "uint64",
|
|
1776
|
+
name: "accGroupFee",
|
|
1777
|
+
type: "uint64",
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
internalType: "uint48",
|
|
1781
|
+
name: "block",
|
|
1782
|
+
type: "uint48",
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
internalType: "uint80",
|
|
1786
|
+
name: "_placeholder",
|
|
1787
|
+
type: "uint80",
|
|
1788
|
+
},
|
|
1789
|
+
],
|
|
1790
|
+
stateMutability: "view",
|
|
1791
|
+
type: "function",
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
inputs: [
|
|
1795
|
+
{
|
|
1796
|
+
internalType: "contract IGNSTradingStorage",
|
|
1797
|
+
name: "_storageT",
|
|
1798
|
+
type: "address",
|
|
1799
|
+
},
|
|
1800
|
+
{
|
|
1801
|
+
internalType: "contract IGNSPairInfos",
|
|
1802
|
+
name: "_pairInfos",
|
|
1803
|
+
type: "address",
|
|
1804
|
+
},
|
|
1805
|
+
],
|
|
1806
|
+
name: "initialize",
|
|
1807
|
+
outputs: [],
|
|
1808
|
+
stateMutability: "nonpayable",
|
|
1809
|
+
type: "function",
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
inputs: [
|
|
1813
|
+
{
|
|
1814
|
+
internalType: "uint48",
|
|
1815
|
+
name: "_windowsDuration",
|
|
1816
|
+
type: "uint48",
|
|
1817
|
+
},
|
|
1818
|
+
],
|
|
1819
|
+
name: "initializeV2",
|
|
1820
|
+
outputs: [],
|
|
1821
|
+
stateMutability: "nonpayable",
|
|
1822
|
+
type: "function",
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
inputs: [],
|
|
1826
|
+
name: "pairInfos",
|
|
1827
|
+
outputs: [
|
|
1828
|
+
{
|
|
1829
|
+
internalType: "contract IGNSPairInfos",
|
|
1830
|
+
name: "",
|
|
1831
|
+
type: "address",
|
|
1832
|
+
},
|
|
1833
|
+
],
|
|
1834
|
+
stateMutability: "view",
|
|
1835
|
+
type: "function",
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
inputs: [
|
|
1839
|
+
{
|
|
1840
|
+
internalType: "uint256",
|
|
1841
|
+
name: "",
|
|
1842
|
+
type: "uint256",
|
|
1843
|
+
},
|
|
1844
|
+
],
|
|
1845
|
+
name: "pairOis",
|
|
1846
|
+
outputs: [
|
|
1847
|
+
{
|
|
1848
|
+
internalType: "uint72",
|
|
1849
|
+
name: "long",
|
|
1850
|
+
type: "uint72",
|
|
1851
|
+
},
|
|
1852
|
+
{
|
|
1853
|
+
internalType: "uint72",
|
|
1854
|
+
name: "short",
|
|
1855
|
+
type: "uint72",
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
internalType: "uint72",
|
|
1859
|
+
name: "max",
|
|
1860
|
+
type: "uint72",
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
internalType: "uint40",
|
|
1864
|
+
name: "_placeholder",
|
|
1865
|
+
type: "uint40",
|
|
1866
|
+
},
|
|
1867
|
+
],
|
|
1868
|
+
stateMutability: "view",
|
|
1869
|
+
type: "function",
|
|
1870
|
+
},
|
|
1871
|
+
{
|
|
1872
|
+
inputs: [
|
|
1873
|
+
{
|
|
1874
|
+
internalType: "uint256",
|
|
1875
|
+
name: "",
|
|
1876
|
+
type: "uint256",
|
|
1877
|
+
},
|
|
1878
|
+
],
|
|
1879
|
+
name: "pairs",
|
|
1880
|
+
outputs: [
|
|
1881
|
+
{
|
|
1882
|
+
internalType: "uint32",
|
|
1883
|
+
name: "feePerBlock",
|
|
1884
|
+
type: "uint32",
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
internalType: "uint64",
|
|
1888
|
+
name: "accFeeLong",
|
|
1889
|
+
type: "uint64",
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
internalType: "uint64",
|
|
1893
|
+
name: "accFeeShort",
|
|
1894
|
+
type: "uint64",
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
internalType: "uint48",
|
|
1898
|
+
name: "accLastUpdatedBlock",
|
|
1899
|
+
type: "uint48",
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
internalType: "uint48",
|
|
1903
|
+
name: "feeExponent",
|
|
1904
|
+
type: "uint48",
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
internalType: "uint256",
|
|
1908
|
+
name: "lastAccBlockWeightedMarketCap",
|
|
1909
|
+
type: "uint256",
|
|
1910
|
+
},
|
|
1911
|
+
],
|
|
1912
|
+
stateMutability: "view",
|
|
1913
|
+
type: "function",
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
inputs: [
|
|
1917
|
+
{
|
|
1918
|
+
internalType: "uint256",
|
|
1919
|
+
name: "_openInterest",
|
|
1920
|
+
type: "uint256",
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
internalType: "uint256",
|
|
1924
|
+
name: "_pairIndex",
|
|
1925
|
+
type: "uint256",
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
internalType: "bool",
|
|
1929
|
+
name: "_long",
|
|
1930
|
+
type: "bool",
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
internalType: "uint48",
|
|
1934
|
+
name: "_addTs",
|
|
1935
|
+
type: "uint48",
|
|
1936
|
+
},
|
|
1937
|
+
],
|
|
1938
|
+
name: "removePriceImpactOpenInterest",
|
|
1939
|
+
outputs: [],
|
|
1940
|
+
stateMutability: "nonpayable",
|
|
1941
|
+
type: "function",
|
|
1942
|
+
},
|
|
1943
|
+
{
|
|
1944
|
+
inputs: [
|
|
1945
|
+
{
|
|
1946
|
+
internalType: "uint16",
|
|
1947
|
+
name: "groupIndex",
|
|
1948
|
+
type: "uint16",
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
components: [
|
|
1952
|
+
{
|
|
1953
|
+
internalType: "uint32",
|
|
1954
|
+
name: "feePerBlock",
|
|
1955
|
+
type: "uint32",
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
internalType: "uint72",
|
|
1959
|
+
name: "maxOi",
|
|
1960
|
+
type: "uint72",
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
internalType: "uint48",
|
|
1964
|
+
name: "feeExponent",
|
|
1965
|
+
type: "uint48",
|
|
1966
|
+
},
|
|
1967
|
+
],
|
|
1968
|
+
internalType: "struct IGNSBorrowingFees.GroupParams",
|
|
1969
|
+
name: "value",
|
|
1970
|
+
type: "tuple",
|
|
1971
|
+
},
|
|
1972
|
+
],
|
|
1973
|
+
name: "setGroupParams",
|
|
1974
|
+
outputs: [],
|
|
1975
|
+
stateMutability: "nonpayable",
|
|
1976
|
+
type: "function",
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
inputs: [
|
|
1980
|
+
{
|
|
1981
|
+
internalType: "uint16[]",
|
|
1982
|
+
name: "indices",
|
|
1983
|
+
type: "uint16[]",
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
components: [
|
|
1987
|
+
{
|
|
1988
|
+
internalType: "uint32",
|
|
1989
|
+
name: "feePerBlock",
|
|
1990
|
+
type: "uint32",
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
internalType: "uint72",
|
|
1994
|
+
name: "maxOi",
|
|
1995
|
+
type: "uint72",
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
internalType: "uint48",
|
|
1999
|
+
name: "feeExponent",
|
|
2000
|
+
type: "uint48",
|
|
2001
|
+
},
|
|
2002
|
+
],
|
|
2003
|
+
internalType: "struct IGNSBorrowingFees.GroupParams[]",
|
|
2004
|
+
name: "values",
|
|
2005
|
+
type: "tuple[]",
|
|
2006
|
+
},
|
|
2007
|
+
],
|
|
2008
|
+
name: "setGroupParamsArray",
|
|
2009
|
+
outputs: [],
|
|
2010
|
+
stateMutability: "nonpayable",
|
|
2011
|
+
type: "function",
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
inputs: [
|
|
2015
|
+
{
|
|
2016
|
+
internalType: "uint256",
|
|
2017
|
+
name: "pairIndex",
|
|
2018
|
+
type: "uint256",
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
components: [
|
|
2022
|
+
{
|
|
2023
|
+
internalType: "uint16",
|
|
2024
|
+
name: "groupIndex",
|
|
2025
|
+
type: "uint16",
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
internalType: "uint32",
|
|
2029
|
+
name: "feePerBlock",
|
|
2030
|
+
type: "uint32",
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
internalType: "uint48",
|
|
2034
|
+
name: "feeExponent",
|
|
2035
|
+
type: "uint48",
|
|
2036
|
+
},
|
|
2037
|
+
{
|
|
2038
|
+
internalType: "uint72",
|
|
2039
|
+
name: "maxOi",
|
|
2040
|
+
type: "uint72",
|
|
2041
|
+
},
|
|
2042
|
+
],
|
|
2043
|
+
internalType: "struct IGNSBorrowingFees.PairParams",
|
|
2044
|
+
name: "value",
|
|
2045
|
+
type: "tuple",
|
|
2046
|
+
},
|
|
2047
|
+
],
|
|
2048
|
+
name: "setPairParams",
|
|
2049
|
+
outputs: [],
|
|
2050
|
+
stateMutability: "nonpayable",
|
|
2051
|
+
type: "function",
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
inputs: [
|
|
2055
|
+
{
|
|
2056
|
+
internalType: "uint256[]",
|
|
2057
|
+
name: "indices",
|
|
2058
|
+
type: "uint256[]",
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
components: [
|
|
2062
|
+
{
|
|
2063
|
+
internalType: "uint16",
|
|
2064
|
+
name: "groupIndex",
|
|
2065
|
+
type: "uint16",
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
internalType: "uint32",
|
|
2069
|
+
name: "feePerBlock",
|
|
2070
|
+
type: "uint32",
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
internalType: "uint48",
|
|
2074
|
+
name: "feeExponent",
|
|
2075
|
+
type: "uint48",
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
internalType: "uint72",
|
|
2079
|
+
name: "maxOi",
|
|
2080
|
+
type: "uint72",
|
|
2081
|
+
},
|
|
2082
|
+
],
|
|
2083
|
+
internalType: "struct IGNSBorrowingFees.PairParams[]",
|
|
2084
|
+
name: "values",
|
|
2085
|
+
type: "tuple[]",
|
|
2086
|
+
},
|
|
2087
|
+
],
|
|
2088
|
+
name: "setPairParamsArray",
|
|
2089
|
+
outputs: [],
|
|
2090
|
+
stateMutability: "nonpayable",
|
|
2091
|
+
type: "function",
|
|
2092
|
+
},
|
|
2093
|
+
{
|
|
2094
|
+
inputs: [
|
|
2095
|
+
{
|
|
2096
|
+
internalType: "uint48",
|
|
2097
|
+
name: "_newWindowsCount",
|
|
2098
|
+
type: "uint48",
|
|
2099
|
+
},
|
|
2100
|
+
],
|
|
2101
|
+
name: "setPriceImpactWindowsCount",
|
|
2102
|
+
outputs: [],
|
|
2103
|
+
stateMutability: "nonpayable",
|
|
2104
|
+
type: "function",
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
inputs: [
|
|
2108
|
+
{
|
|
2109
|
+
internalType: "uint48",
|
|
2110
|
+
name: "_newWindowsDuration",
|
|
2111
|
+
type: "uint48",
|
|
2112
|
+
},
|
|
2113
|
+
],
|
|
2114
|
+
name: "setPriceImpactWindowsDuration",
|
|
2115
|
+
outputs: [],
|
|
2116
|
+
stateMutability: "nonpayable",
|
|
2117
|
+
type: "function",
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
inputs: [],
|
|
2121
|
+
name: "storageT",
|
|
2122
|
+
outputs: [
|
|
2123
|
+
{
|
|
2124
|
+
internalType: "contract IGNSTradingStorage",
|
|
2125
|
+
name: "",
|
|
2126
|
+
type: "address",
|
|
2127
|
+
},
|
|
2128
|
+
],
|
|
2129
|
+
stateMutability: "view",
|
|
2130
|
+
type: "function",
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
inputs: [
|
|
2134
|
+
{
|
|
2135
|
+
internalType: "uint256",
|
|
2136
|
+
name: "pairIndex",
|
|
2137
|
+
type: "uint256",
|
|
2138
|
+
},
|
|
2139
|
+
{
|
|
2140
|
+
internalType: "bool",
|
|
2141
|
+
name: "long",
|
|
2142
|
+
type: "bool",
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
internalType: "uint256",
|
|
2146
|
+
name: "positionSizeDai",
|
|
2147
|
+
type: "uint256",
|
|
2148
|
+
},
|
|
2149
|
+
],
|
|
2150
|
+
name: "withinMaxGroupOi",
|
|
2151
|
+
outputs: [
|
|
2152
|
+
{
|
|
2153
|
+
internalType: "bool",
|
|
2154
|
+
name: "",
|
|
2155
|
+
type: "bool",
|
|
2156
|
+
},
|
|
2157
|
+
],
|
|
2158
|
+
stateMutability: "view",
|
|
2159
|
+
type: "function",
|
|
2160
|
+
},
|
|
2161
|
+
];
|
|
2162
|
+
const _bytecode = "0x608060405234801561001057600080fd5b506158e780620000216000396000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c806390895ff11161013b578063bb219c75116100b8578063d01c92021161007c578063d01c920214610970578063d627450514610983578063e3e98a75146109a6578063f800ece9146109e5578063ff933fc4146109fb57600080fd5b8063bb219c7514610892578063bcb7887114610916578063bdf391cc14610929578063c06528241461094a578063ce67edfb1461095d57600080fd5b8063b2c9dd8b116100ff578063b2c9dd8b146106fa578063b56df6761461070d578063b6d92b0214610799578063b91ac788146107ac578063b94ffa1c1461086257600080fd5b806390895ff114610605578063930842aa146106ae57806393e0e533146106c157806396839490146106d4578063b0baf5d4146106e757600080fd5b8063485cc955116101c95780637cbd3c981161018d5780637cbd3c98146104f55780637ea95f321461056f578063823ef2ac146105825780638ee1caa7146105a25780638f694238146105df57600080fd5b8063485cc955146104815780634c67cfa014610494578063651501b5146104bc578063706faf3a146104cf5780637b64112b146104e257600080fd5b80631ab5911a116102105780631ab5911a1461030a57806322005202146103355780632d28a817146103565780633979324d1461037757806339b0fc821461046e57600080fd5b80630d12f7cb1461024d5780630f8df7e01461027657806310751b4f146102b15780631346b0ff146102c657806316fff074146102f1575b600080fd5b61026061025b3660046146ca565b610a1c565b60405161026d9190614723565b60405180910390f35b6102896102843660046148c8565b610b5e565b604080516001600160401b03948516815293909216602084015215159082015260600161026d565b6102c46102bf366004614a58565b610cde565b005b6001546102d9906001600160a01b031681565b6040516001600160a01b03909116815260200161026d565b6000546102d9906201000090046001600160a01b031681565b61031d610318366004614a73565b610dfc565b6040516001600160401b03909116815260200161026d565b610348610343366004614ab3565b610e29565b60405161026d929190614b7a565b610369610364366004614c1d565b611055565b60405190815260200161026d565b610403610385366004614ca7565b60026020819052600091825260409091208054600182015491909201546001600160701b0380841693600160701b810490911692600160e01b90910463ffffffff16916001600160401b0380831692600160401b810490911691600160801b820465ffffffffffff1691600160b01b90046001600160501b03169088565b604080516001600160701b03998a16815298909716602089015263ffffffff909516958701959095526001600160401b0392831660608701529116608085015265ffffffffffff1660a08401526001600160501b0390911660c083015260e08201526101000161026d565b6102c461047c366004614a58565b61136f565b6102c461048f366004614cc2565b61159a565b6104a76104a2366004614cfb565b6116fa565b6040805192835260208301919091520161026d565b6102c46104ca366004614d14565b6117f7565b6103696104dd366004614dad565b611912565b61031d6104f0366004614dc5565b611bb3565b610508610503366004614df3565b611bc2565b6040805183516001600160401b039081168252602080860151909116818301528483015165ffffffffffff16828401526060948501516001600160501b031694820194909452825160808201529282015160a08401520151151560c082015260e00161026d565b6104a761057d366004614e28565b611cf7565b610595610590366004614e67565b611e2b565b60405161026d9190614e85565b6105b56105b0366004614ea9565b611ec5565b604080516001600160401b039485168152928416602084015292169181019190915260600161026d565b6105f26105ed366004614cfb565b6120f4565b60405161ffff909116815260200161026d565b61066d610613366004614df3565b60046020908152600093845260408085208252928452828420905282529020546001600160401b0380821691600160401b810490911690600160801b810465ffffffffffff1690600160b01b90046001600160501b031684565b604080516001600160401b03958616815294909316602085015265ffffffffffff909116918301919091526001600160501b0316606082015260800161026d565b6102c46106bc366004614ecb565b612216565b6105b56106cf366004614f35565b6122cb565b6102c46106e2366004614dc5565b61248c565b6102c46106f5366004614fcf565b6125b1565b6102c4610708366004614ff9565b612662565b6107686040805160608101825260008082526020820181905291810191909152506040805160608101825260075465ffffffffffff8082168352600160301b820481166020840152600160601b909104169181019190915290565b60408051825165ffffffffffff9081168252602080850151821690830152928201519092169082015260600161026d565b6103696107a7366004615083565b612783565b6108166107ba366004614cfb565b6003602052600090815260409020600181015460029091015463ffffffff8216916001600160401b03600160201b8204811692600160601b83049091169165ffffffffffff600160a01b8204811692600160d01b909204169086565b6040805163ffffffff9790971687526001600160401b039586166020880152939094169285019290925265ffffffffffff908116606085015216608083015260a082015260c00161026d565b610369610870366004614cfb565b600090815260056020526040902054600160901b90046001600160481b031690565b6108df6108a0366004614cfb565b6005602052600090815260409020546001600160481b0380821691600160481b8104821691600160901b82041690600160d81b900464ffffffffff1684565b604080516001600160481b0395861681529385166020850152919093169082015264ffffffffff909116606082015260800161026d565b6105b56109243660046150a8565b612818565b61093c610937366004614cfb565b6129b7565b60405161026d929190615245565b6102c4610958366004614a58565b612ba4565b6102c461096b366004615267565b612ca5565b6102c461097e3660046152ce565b612fd6565b610996610991366004615316565b61310a565b604051901515815260200161026d565b6109ce6109b4366004614cfb565b60066020526000908152604090205465ffffffffffff1681565b60405165ffffffffffff909116815260200161026d565b6109ed613230565b60405161026d92919061534e565b610a0e610a09366004614ca7565b613641565b60405161026d9291906153e6565b60606000826001600160401b03811115610a3857610a38614786565b604051908082528060200260200182016040528015610a7d57816020015b6040805180820190915260008082526020820152815260200190600190039081610a565790505b50905060008665ffffffffffff1611610aa757600754600160301b900465ffffffffffff16610aa9565b855b955060005b83811015610b545765ffffffffffff87166000908152600860209081526040808320898452909152812090868684818110610aeb57610aeb61540b565b602090810292909201358352508181019290925260409081016000208151808301909252546001600160801b038082168352600160801b90910416918101919091528251839083908110610b4157610b4161540b565b6020908102919091010152600101610aae565b5095945050505050565b600080600080888a81518110610b7657610b7661540b565b60200260200101519050876040015165ffffffffffff16816020015165ffffffffffff1610915060018951610bab9190615437565b8a03610bd2578051610bbe908688610dfc565b9350610bcb878688611bb3565b9250610c62565b600089610be08c600161544a565b81518110610bf057610bf061540b565b60200260200101519050828015610c1f5750886040015165ffffffffffff16816020015165ffffffffffff1611155b15610c3257600080945094505050610cd2565b86610c41578060a00151610c47565b80608001515b945086610c58578060e00151610c5e565b8060c001515b9350505b8115610c8d576020880151610c77908561545d565b8851909450610c86908461545d565b9250610cd0565b85610c9c578060600151610ca2565b80604001515b610cac908561545d565b935085610cbd578060e00151610cc3565b8060c001515b610ccd908461545d565b92505b505b96509650969350505050565b600160009054906101000a90046001600160a01b03166001600160a01b031663481c6a756040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d559190615484565b6001600160a01b0316336001600160a01b031614610d8e5760405162461bcd60e51b8152600401610d85906154a1565b60405180910390fd5b6040516310751b4f60e01b815265ffffffffffff8216600482015273__$a828372db7642c41339011fca570451788$__906310751b4f906024015b60006040518083038186803b158015610de157600080fd5b505af4158015610df5573d6000803e3d6000fd5b5050505050565b6000806000610e0b8686612818565b509150915083610e1b5780610e1d565b815b925050505b9392505050565b6060806000836001600160401b03811115610e4657610e46614786565b604051908082528060200260200182016040528015610e7f57816020015b610e6c6145eb565b815260200190600190039081610e645790505b5090506000846001600160401b03811115610e9c57610e9c614786565b604051908082528060200260200182016040528015610ec5578160200160208202803683370190505b5090508460005b818110156110465760026000898984818110610eea57610eea61540b565b9050602002016020810190610eff9190614ca7565b61ffff168152602080820192909252604090810160002081516101008101835281546001600160701b038082168352600160701b82041694820194909452600160e01b90930463ffffffff169183019190915260018101546001600160401b038082166060850152600160401b8204166080840152600160801b810465ffffffffffff1660a0840152600160b01b90046001600160501b031660c08301526002015460e08201528451859083908110610fba57610fba61540b565b602002602001018190525060066000898984818110610fdb57610fdb61540b565b9050602002016020810190610ff09190614ca7565b61ffff16815260200190815260200160002060009054906101000a900465ffffffffffff168382815181106110275761102761540b565b65ffffffffffff90921660209283029190910190910152600101610ecc565b509193509150505b9250929050565b80516001600160a01b03166000908152600460209081526040808320828501805185529083528184208286015185528352818420825160808101845290546001600160401b038082168352600160401b82041682860152600160801b810465ffffffffffff1682850152600160b01b90046001600160501b0316606082015290518452600383528184208054835181860281018601909452808452919385939290849084015b828210156111ac576000848152602090819020604080516101208101825260028602909201805461ffff8116845265ffffffffffff62010000820416848601526001600160401b03600160401b808304821694860194909452600160801b80830482166060870152600160c01b928390048216608087015260019384015480831660a0880152948504821660c08701528404811660e0860152920490911661010083015290835290920191016110fb565b50505050905060006111bc613701565b6040805161012081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081019190915290915082511561122d57826000815181106112225761122261540b565b602002602001015190505b825115806112525750836040015165ffffffffffff16816020015165ffffffffffff16115b156112a657835183511561127d578660600151611273578160e00151611290565b8160c00151611290565b6112908760200151848960600151611bb3565b61129a919061545d565b6001600160401b031694505b82515b801561132957600080806112d36112c1600186615437565b888a8d602001518e606001518b610b5e565b925092509250816001600160401b0316836001600160401b0316116112f857816112fa565b825b61130d906001600160401b03168a61544a565b9850801561131d57505050611329565b505050600019016112a9565b5060646402540be400868860a00151896080015161134791906154c7565b61135191906154c7565b61135b91906154de565b61136591906154de565b9695505050505050565b600160009054906101000a90046001600160a01b03166001600160a01b031663481c6a756040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e69190615484565b6001600160a01b0316336001600160a01b0316146114165760405162461bcd60e51b8152600401610d85906154a1565b73__$a828372db7642c41339011fca570451788$__6321ee5d3e82600060029054906101000a90046001600160a01b03166001600160a01b0316633078fff56040518163ffffffff1660e01b8152600401602060405180830381865afa158015611484573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a89190615484565b6001600160a01b03166335b03c176040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115099190615484565b6001600160a01b031663b81b2b716040518163ffffffff1660e01b8152600401602060405180830381865afa158015611546573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156a9190615500565b6040516001600160e01b031960e085901b16815265ffffffffffff90921660048301526024820152604401610dc9565b600054610100900460ff16158080156115ba5750600054600160ff909116105b806115d45750303b1580156115d4575060005460ff166001145b6115f05760405162461bcd60e51b8152600401610d8590615519565b6000805460ff191660011790558015611613576000805461ff0019166101001790555b6001600160a01b0383161580159061163357506001600160a01b03821615155b61166e5760405162461bcd60e51b815260206004820152600c60248201526b57524f4e475f504152414d5360a01b6044820152606401610d85565b6000805462010000600160b01b031916620100006001600160a01b038681169190910291909117909155600180546001600160a01b03191691841691909117905580156116f5576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050565b600080546040516328daca2160e01b8152600481018490526024810183905282916201000090046001600160a01b0316906328daca2190604401602060405180830381865afa158015611751573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117759190615500565b6000546040516328daca2160e01b81526004810186905260016024820152620100009091046001600160a01b0316906328daca2190604401602060405180830381865afa1580156117ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117ee9190615500565b91509150915091565b600160009054906101000a90046001600160a01b03166001600160a01b031663481c6a756040518163ffffffff1660e01b8152600401602060405180830381865afa15801561184a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186e9190615484565b6001600160a01b0316336001600160a01b03161461189e5760405162461bcd60e51b8152600401610d85906154a1565b828181146118be5760405162461bcd60e51b8152600401610d8590615567565b60005b8181101561190a576119028686838181106118de576118de61540b565b905060200201358585848181106118f7576118f761540b565b905060800201613787565b6001016118c1565b505050505050565b6001546000906001600160a01b0316636bcbe860606084013561193b60a086016080870161558d565b8560a001358660c001356119b66040518060c001604052808a600001602081019061196691906155aa565b6001600160a01b0316815260208b810135908201526040808c01359082015260600161199860a08c0160808d0161558d565b151581526020018a60a0013581526020018a60c00135815250611055565b6001546001600160a01b03166358f796bc6119d460208c018c6155aa565b604080516001600160e01b031960e085901b1681526001600160a01b03909216600483015260208d013560248301528c0135604482015260a08c01356064820152608401602060405180830381865afa158015611a35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a599190615500565b611a63919061544a565b6001546001600160a01b031663f6c50efe611a8160208c018c6155aa565b8b602001358c604001358d6080016020810190611a9e919061558d565b6040516001600160e01b031960e087901b1681526001600160a01b039094166004850152602484019290925260448301521515606482015260a08c0135608482015260c08c013560a482015260c401602060405180830381865afa158015611b0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b2e9190615500565b6040516001600160e01b031960e089901b1681526004810196909652931515602486015260448501929092526064840152608483015260a482015260c401602060405180830381865afa158015611b89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bad9190615500565b92915050565b6000806000610e0b8686611ec5565b604080516080810182526000808252602080830182905282840182905260608084018390528451908101855282815290810182905292830152906001600160a01b0385811660008181526004602081815260408084208a85528252808420898552825292839020835160808101855290546001600160401b038082168352600160401b82041692820192909252600160801b820465ffffffffffff1681850152600160b01b9091046001600160501b031660608201526001549251632f6ac02760e11b815291820193909352602481018890526044810187905291945090911690635ed5804e90606401606060405180830381865afa158015611cc9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ced91906155c7565b9050935093915050565b6001546040516342dee1ad60e01b815260048101859052600091829182916001600160a01b0316906342dee1ad90602401608060405180830381865afa158015611d45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d699190615628565b905073__$a828372db7642c41339011fca570451788$__6372c2f2d28887611d918a8a612783565b888a611da1578660200151611da4565b86515b6040516001600160e01b031960e088901b1681526004810195909552921515602485015260448401919091526064830152608482015260a4016040805180830381865af4158015611df9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1d919061568d565b909890975095505050505050565b60408051808201909152600080825260208201526008600065ffffffffffff8616611e6757600754600160301b900465ffffffffffff16611e69565b855b65ffffffffffff16815260208082019290925260409081016000908120868252835281812085825283528190208151808301909252546001600160801b038082168352600160801b909104169181019190915290509392505050565b6000828152600360209081526040808320815181546101009481028201850190935260e0810183815285948594859492849290918491879085015b82821015611fb1576000848152602090819020604080516101208101825260028602909201805461ffff8116845265ffffffffffff62010000820416848601526001600160401b03600160401b808304821694860194909452600160801b80830482166060870152600160c01b928390048216608087015260019384015480831660a0880152948504821660c08701528404811660e086015292049091166101008301529083529092019101611f00565b50505090825250600182015463ffffffff811660208301526001600160401b03600160201b820481166040840152600160601b820416606083015265ffffffffffff600160a01b820481166080840152600160d01b9091041660a082015260029091015460c0909101529050600080612029886116fa565b915091506120e360405180610120016040528085604001516001600160401b0316815260200185606001516001600160401b03168152602001848152602001838152602001856020015163ffffffff168152602001898152602001856080015165ffffffffffff168152602001600560008c815260200190815260200160002060000160129054906101000a90046001600160481b03166001600160481b031681526020018560a0015165ffffffffffff168152506122cb565b919a90995090975095505050505050565b600081815260036020908152604080832080548251818502810185019093528083528493849084015b828210156121ce576000848152602090819020604080516101208101825260028602909201805461ffff8116845265ffffffffffff62010000820416848601526001600160401b03600160401b808304821694860194909452600160801b80830482166060870152600160c01b928390048216608087015260019384015480831660a0880152948504821660c08701528404811660e08601529204909116610100830152908352909201910161211d565b505050509050805160001461220d5780600182516121ec9190615437565b815181106121fc576121fc61540b565b602002602001015160000151610e22565b60009392505050565b600160009054906101000a90046001600160a01b03166001600160a01b031663481c6a756040518163ffffffff1660e01b8152600401602060405180830381865afa158015612269573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061228d9190615484565b6001600160a01b0316336001600160a01b0316146122bd5760405162461bcd60e51b8152600401610d85906154a1565b6122c78282613fdc565b5050565b60008060008360c001518460a0015110156123165760405162461bcd60e51b815260206004820152600b60248201526a212627a1a5afa7a92222a960a91b6044820152606401610d85565b6060840151604085015110600081612341578560600151866040015161233c9190615437565b612355565b856040015186606001516123559190615437565b90506000808760e001516001600160481b03161180156123825750600087610100015165ffffffffffff16115b61238d576000612419565b6101008701516123a590670de0b6b3a7640000615795565b61010088015160e08901516001600160481b03166123c8856402540be4006154c7565b6123d291906154de565b6123dc9190615795565b886080015163ffffffff168960c001518a60a001516123fb9190615437565b61240591906154c7565b61240f91906154c7565b61241991906154de565b90506001600160401b038111156124425760405162461bcd60e51b8152600401610d85906157a9565b8093508261245c5786516124579085906157cb565b61245f565b86515b955082612470578660200151612480565b83876020015161248091906157cb565b94505050509193909250565b600060029054906101000a90046001600160a01b03166001600160a01b031662b127836040518163ffffffff1660e01b8152600401602060405180830381865afa1580156124de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125029190615484565b6001600160a01b0316336001600160a01b0316146125325760405162461bcd60e51b8152600401610d85906157eb565b604051636922f75760e01b81526001600160801b038416600482015260248101839052811515604482015273__$a828372db7642c41339011fca570451788$__90636922f7579060640160006040518083038186803b15801561259457600080fd5b505af41580156125a8573d6000803e3d6000fd5b50505050505050565b600160009054906101000a90046001600160a01b03166001600160a01b031663481c6a756040518163ffffffff1660e01b8152600401602060405180830381865afa158015612604573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126289190615484565b6001600160a01b0316336001600160a01b0316146126585760405162461bcd60e51b8152600401610d85906154a1565b6122c78282613787565b600160009054906101000a90046001600160a01b03166001600160a01b031663481c6a756040518163ffffffff1660e01b8152600401602060405180830381865afa1580156126b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126d99190615484565b6001600160a01b0316336001600160a01b0316146127095760405162461bcd60e51b8152600401610d85906154a1565b828181146127295760405162461bcd60e51b8152600401610d8590615567565b60005b8181101561190a5761277b8686838181106127495761274961540b565b905060200201602081019061275e9190614ca7565b8585848181106127705761277061540b565b905060600201613fdc565b60010161272c565b60008054604051636c216a1b60e01b8152600481018590528315156024820152620100009091046001600160a01b0316604482015273__$a828372db7642c41339011fca570451788$__90636c216a1b90606401602060405180830381865af41580156127f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e229190615500565b61ffff8216600090815260026020818152604080842081516101008101835281546001600160701b038082168352600160701b8204811683870152600160e01b90910463ffffffff168285015260018301546001600160401b0380821660608501908152600160401b8304821660808601908152600160801b840465ffffffffffff1660a0870152600160b01b9093046001600160501b031660c0860152949097015460e08401528451610120810186529351871684525190951693820193909352825185948594936129a89392908301916402540be400916129049116670de0b6b3a76400006154c7565b61290e91906154de565b81526020016402540be40084602001516001600160701b0316670de0b6b3a764000061293a91906154c7565b61294491906154de565b815260408085015163ffffffff166020808401919091528183018a905260a08087015165ffffffffffff908116606086015260c08801516001600160481b0316608086015261ffff8d166000908152600690935292909120549091169101526122cb565b91989097509095509350505050565b6129bf61462f565b6040805160808101825260008082526020808301829052828401829052606083018290528582526003815283822060058252848320855182546101009481028201850190975260e0810187815295969295919490938693859392859285015b82821015612acf576000848152602090819020604080516101208101825260028602909201805461ffff8116845265ffffffffffff62010000820416848601526001600160401b03600160401b808304821694860194909452600160801b80830482166060870152600160c01b928390048216608087015260019384015480831660a0880152948504821660c08701528404811660e086015292049091166101008301529083529092019101612a1e565b50505090825250600182015463ffffffff8116602080840191909152600160201b82046001600160401b03908116604080860191909152600160601b8404909116606080860191909152600160a01b840465ffffffffffff908116608080880191909152600160d01b9095041660a086015260029095015460c0909401939093528251918201835294546001600160481b038082168352600160481b8204811696830196909652600160901b810490951691810191909152600160d81b90930464ffffffffff16908301529590945092505050565b600054600290610100900460ff16158015612bc6575060005460ff8083169116105b612be25760405162461bcd60e51b8152600401610d8590615519565b6000805461ffff191660ff831617610100179055604051631104563760e31b815265ffffffffffff8316600482015273__$a828372db7642c41339011fca570451788$__90638822b1b89060240160006040518083038186803b158015612c4857600080fd5b505af4158015612c5c573d6000803e3d6000fd5b50506000805461ff0019169055505060405160ff821681527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b600060029054906101000a90046001600160a01b03166001600160a01b031662b127836040518163ffffffff1660e01b8152600401602060405180830381865afa158015612cf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d1b9190615484565b6001600160a01b0316336001600160a01b031614612d4b5760405162461bcd60e51b8152600401610d85906157eb565b6000612d56866120f4565b90506000612d62613701565b9050600080612d7189846141ce565b91509150600080612d8286866142d2565b91509150612d9286888a8c6143bf565b8715612f68576000604051806080016040528089612db05785612db2565b865b6001600160401b0316815260200189612dcb5783612dcd565b845b6001600160401b03168152602001612de4886145bf565b65ffffffffffff16815260200160006001600160501b0316815250905080600460008f6001600160a01b03166001600160a01b0316815260200190815260200160002060008e815260200190815260200160002060008d815260200190815260200160002060008201518160000160006101000a8154816001600160401b0302191690836001600160401b0316021790555060208201518160000160086101000a8154816001600160401b0302191690836001600160401b0316021790555060408201518160000160106101000a81548165ffffffffffff021916908365ffffffffffff16021790555060608201518160000160166101000a8154816001600160501b0302191690836001600160501b031602179055509050508b8d6001600160a01b03167faa00ca5c6f282cb9f35953ecb0eaf8e39c95b7c8df114efac12162a85c085e608d84600001518560200151604051612f5e939291909283526001600160401b03918216602084015216604082015260600190565b60405180910390a3505b8a8c6001600160a01b03167f66baa1848f5d4d14567e9bc527e5608778c86e512490d413cfafc9250327308f8c8b8b8e604051612fc09493929190938452911515602084015215156040830152606082015260800190565b60405180910390a3505050505050505050505050565b600060029054906101000a90046001600160a01b03166001600160a01b031662b127836040518163ffffffff1660e01b8152600401602060405180830381865afa158015613028573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061304c9190615484565b6001600160a01b0316336001600160a01b03161461307c5760405162461bcd60e51b8152600401610d85906157eb565b60405163e1e3156160e01b81526001600160801b038516600482015260248101849052821515604482015265ffffffffffff8216606482015273__$a828372db7642c41339011fca570451788$__9063e1e315619060840160006040518083038186803b1580156130ec57600080fd5b505af4158015613100573d6000803e3d6000fd5b5050505050505050565b6000806002600061311a876120f4565b61ffff168152602080820192909252604090810160002081516101008101835281546001600160701b038082168352600160701b82041694820194909452600160e01b90930463ffffffff169183019190915260018101546001600160401b038082166060850152600160401b8204166080840152600160801b810465ffffffffffff1660a0840152600160b01b90046001600160501b031660c0830181905260029091015460e08301529091501580613227575060c08101516001600160501b0316670de0b6b3a76400006131f56402540be400866154c7565b6131ff91906154de565b8561320e578260200151613211565b82515b6001600160701b0316613224919061544a565b11155b95945050505050565b60608060008060029054906101000a90046001600160a01b03166001600160a01b0316633078fff56040518163ffffffff1660e01b8152600401602060405180830381865afa158015613287573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132ab9190615484565b6001600160a01b03166335b03c176040518163ffffffff1660e01b8152600401602060405180830381865afa1580156132e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061330c9190615484565b6001600160a01b031663b81b2b716040518163ffffffff1660e01b8152600401602060405180830381865afa158015613349573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061336d9190615500565b90506000816001600160401b0381111561338957613389614786565b6040519080825280602002602001820160405280156133c257816020015b6133af61462f565b8152602001906001900390816133a75790505b5090506000826001600160401b038111156133df576133df614786565b60405190808252806020026020018201604052801561343157816020015b6040805160808101825260008082526020808301829052928201819052606082015282526000199092019101816133fd5790505b50905060005b83811015613636576000818152600360209081526040808320815181546101009481028201850190935260e08101838152909491938593919285929185015b82821015613527576000848152602090819020604080516101208101825260028602909201805461ffff8116845265ffffffffffff62010000820416848601526001600160401b03600160401b808304821694860194909452600160801b80830482166060870152600160c01b928390048216608087015260019384015480831660a0880152948504821660c08701528404811660e086015292049091166101008301529083529092019101613476565b50505090825250600182015463ffffffff811660208301526001600160401b03600160201b820481166040840152600160601b820416606083015265ffffffffffff600160a01b820481166080840152600160d01b9091041660a082015260029091015460c09091015283518490839081106135a5576135a561540b565b602090810291909101810191909152600082815260058252604090819020815160808101835290546001600160481b038082168352600160481b8204811694830194909452600160901b810490931691810191909152600160d81b90910464ffffffffff16606082015282518390839081106136235761362361540b565b6020908102919091010152600101613437565b509094909350915050565b6136496145eb565b5061ffff16600090815260026020818152604080842060068352938190205481516101008101835285546001600160701b038082168352600160701b82041694820194909452600160e01b90930463ffffffff169183019190915260018401546001600160401b038082166060850152600160401b820416608084015265ffffffffffff600160801b8204811660a0850152600160b01b9091046001600160501b031660c0840152939092015460e082015292911690565b600061a4b1461480613715575062066eed46145b156137825760646001600160a01b031663a3b1b31d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613759573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061377d9190615500565b905090565b504390565b60016137996060830160408401614a58565b65ffffffffffff16101580156137c7575060036137bc6060830160408401614a58565b65ffffffffffff1611155b6137e35760405162461bcd60e51b8152600401610d8590615813565b6000828152600360205260408120906137fb846120f4565b90506000613807613701565b905061381385826141ce565b505061ffff82166138276020860186614ca7565b61ffff1614613e8d5761383a82826142d2565b50613853905061384d6020860186614ca7565b826142d2565b5050600080613861876116fa565b915091506138738460016000856143bf565b61388084600080846143bf565b6138996138906020880188614ca7565b600180856143bf565b6138b36138a96020880188614ca7565b60006001846143bf565b60006002816138c560208a018a614ca7565b61ffff1661ffff168152602001908152602001600020604051806101000160405290816000820160009054906101000a90046001600160701b03166001600160701b03166001600160701b0316815260200160008201600e9054906101000a90046001600160701b03166001600160701b03166001600160701b0316815260200160008201601c9054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016001820160009054906101000a90046001600160401b03166001600160401b03166001600160401b031681526020016001820160089054906101000a90046001600160401b03166001600160401b03166001600160401b031681526020016001820160109054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016001820160169054906101000a90046001600160501b03166001600160501b03166001600160501b0316815260200160028201548152505090506000600260008761ffff1661ffff168152602001908152602001600020604051806101000160405290816000820160009054906101000a90046001600160701b03166001600160701b03166001600160701b0316815260200160008201600e9054906101000a90046001600160701b03166001600160701b03166001600160701b0316815260200160008201601c9054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016001820160009054906101000a90046001600160401b03166001600160401b03166001600160401b031681526020016001820160089054906101000a90046001600160401b03166001600160401b03166001600160401b031681526020016001820160109054906101000a900465ffffffffffff1665ffffffffffff1665ffffffffffff1681526020016001820160169054906101000a90046001600160501b03166001600160501b03166001600160501b031681526020016002820154815250509050866000016040518061012001604052808a6000016020810190613bc59190614ca7565b61ffff168152602001613bd7886145bf565b65ffffffffffff16815260200184606001516001600160401b0316815260200184608001516001600160401b0316815260200183606001516001600160401b0316815260200183608001516001600160401b031681526020018960010160049054906101000a90046001600160401b03166001600160401b0316815260200189600101600c9054906101000a90046001600160401b03166001600160401b0316815260200160006001600160401b0316815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548165ffffffffffff021916908365ffffffffffff16021790555060408201518160000160086101000a8154816001600160401b0302191690836001600160401b0316021790555060608201518160000160106101000a8154816001600160401b0302191690836001600160401b0316021790555060808201518160000160186101000a8154816001600160401b0302191690836001600160401b0316021790555060a08201518160010160006101000a8154816001600160401b0302191690836001600160401b0316021790555060c08201518160010160086101000a8154816001600160401b0302191690836001600160401b0316021790555060e08201518160010160106101000a8154816001600160401b0302191690836001600160401b031602179055506101008201518160010160186101000a8154816001600160401b0302191690836001600160401b031602179055505050876000016020810190613e529190614ca7565b61ffff168661ffff168a7f5beb7d73e1c3cd532d47c9e896931df26d9be450a833bd5fe1ace6bf5690d46860405160405180910390a4505050505b613e9d604085016020860161583b565b60018401805463ffffffff191663ffffffff92909216919091179055613ec96060850160408601614a58565b60018401805465ffffffffffff92909216600160d01b026001600160d01b03909216919091179055613f016080850160608601615856565b600086815260056020908152604090912080546001600160481b0393909316600160901b0268ffffffffffffffffff60901b1990931692909217909155613f4a90850185614ca7565b61ffff16857f1caa8de744ea74fb9e0c2f32b7fed3b30ea426105a6b73926010be6372458ef4613f80604088016020890161583b565b613f906060890160408a01614a58565b613fa060808a0160608b01615856565b6040805163ffffffff909416845265ffffffffffff90921660208401526001600160481b03169082015260600160405180910390a35050505050565b60008261ffff161161401a5760405162461bcd60e51b8152602060048201526007602482015266047524f55505f360cc1b6044820152606401610d85565b600161402c6060830160408401614a58565b65ffffffffffff161015801561405a5750600361404f6060830160408401614a58565b65ffffffffffff1611155b6140765760405162461bcd60e51b8152600401610d8590615813565b61408782614082613701565b6142d2565b505061ffff82166000908152600260209081526040909120906140ac9083018361583b565b815463ffffffff91909116600160e01b026001600160e01b039091161781556140db6040830160208401615856565b6001820180546001600160b01b03166001600160481b0392909216600160b01b029190911790556141126060830160408401614a58565b61ffff84166000818152600660209081526040909120805465ffffffffffff191665ffffffffffff9490941693909317909255907ffe3f382c07994321b091a508fb27d2cec41f6dfa9f52b97a01af5b992fdc1681906141749085018561583b565b6141846040860160208701615856565b6141946060870160408801614a58565b6040805163ffffffff90941684526001600160481b03909216602084015265ffffffffffff169082015260600160405180910390a2505050565b6000806141db8484611ec5565b5060008681526003602052604090206001810180546001600160401b03808616600160201b026bffffffffffffffff0000000019918616600160601b0291909116640100000000600160a01b0319909216919091171790559193509150614241846145bf565b60018201805465ffffffffffff92909216600160a01b0265ffffffffffff60a01b199092169190911790819055604080518681526001600160401b03600160201b840481166020830152600160601b9093049092169082015285907ffc346088168e874385f54275cfc143d52a459a0fdc016c1bb6c237097ef27bf4906060015b60405180910390a2509250929050565b6000806142df8484612818565b5061ffff861660009081526002602052604090206001810180546001600160801b031916600160401b6001600160401b038581169190910267ffffffffffffffff191691909117908516179055919350915061433a846145bf565b60018201805465ffffffffffff92909216600160801b0265ffffffffffff60801b198316811791829055604080518881526001600160401b03928316948316949094176020850152600160401b909204169082015261ffff8616907fd246da22fc6064e2fae4f4affdb9425eac12bebcf4f08fb3892f08480513752e906060016142c2565b61ffff84166000818152600260205260408120911561455257670de0b6b3a76400006143f06402540be400856154c7565b6143fa91906154de565b92506001600160701b038311156144235760405162461bcd60e51b8152600401610d85906157a9565b508184156144ad57836144705781546001600160701b038083169116116144545781546001600160701b0316614456565b805b825461446b91906001600160701b0316615871565b614486565b81546144869082906001600160701b0316615891565b82546dffffffffffffffffffffffffffff19166001600160701b0391909116178255614552565b836145075781546001600160701b03808316600160701b90920416116144e4578154600160701b90046001600160701b03166144e6565b805b82546145029190600160701b90046001600160701b0316615871565b614524565b8154614524908290600160701b90046001600160701b0316615891565b82546001600160701b0391909116600160701b026dffffffffffffffffffffffffffff60701b199091161782555b8154604080516001600160701b0380851682528084166020830152600160701b90930490921690820152841515908615159061ffff8916907f946036ec838a96db6089510038e2de4a934fb985f2ba9ef85dd4166f622db2339060600160405180910390a4505050505050565b600065ffffffffffff8211156145e75760405162461bcd60e51b8152600401610d85906157a9565b5090565b6040805161010081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081019190915290565b6040805160e081018252606080825260006020830181905292820183905281018290526080810182905260a0810182905260c081019190915290565b803565ffffffffffff8116811461468157600080fd5b919050565b60008083601f84011261469857600080fd5b5081356001600160401b038111156146af57600080fd5b6020830191508360208260051b850101111561104e57600080fd5b600080600080606085870312156146e057600080fd5b6146e98561466b565b93506020850135925060408501356001600160401b0381111561470b57600080fd5b61471787828801614686565b95989497509550505050565b602080825282518282018190526000919060409081850190868401855b828110156147795761476984835180516001600160801b03908116835260209182015116910152565b9284019290850190600101614740565b5091979650505050505050565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b03811182821017156147bf576147bf614786565b60405290565b604051601f8201601f191681016001600160401b03811182821017156147ed576147ed614786565b604052919050565b803561ffff8116811461468157600080fd5b80356001600160401b038116811461468157600080fd5b60006080828403121561483057600080fd5b604051608081018181106001600160401b038211171561485257614852614786565b60405290508061486183614807565b815261486f60208401614807565b60208201526148806040840161466b565b604082015260608301356001600160501b038116811461489f57600080fd5b6060919091015292915050565b80151581146148ba57600080fd5b50565b8035614681816148ac565b60008060008060008061012080888a0312156148e357600080fd5b873596506020808901356001600160401b038082111561490257600080fd5b818b0191508b601f83011261491657600080fd5b81358181111561492857614928614786565b614936848260051b016147c5565b818152848101925090850283018401908d82111561495357600080fd5b928401925b81841015614a195785848f0312156149705760008081fd5b61497861479c565b614981856147f5565b815261498e86860161466b565b86820152604061499f818701614807565b9082015260606149b0868201614807565b9082015260806149c1868201614807565b9082015260a06149d2868201614807565b9082015260c06149e3868201614807565b9082015260e06149f4868201614807565b90820152610100614a06868201614807565b9082015283529285019291840191614958565b809a50505050505050614a2f886040890161481e565b935060c08701359250614a4460e088016148bd565b915061010087013590509295509295509295565b600060208284031215614a6a57600080fd5b610e228261466b565b600080600060608486031215614a8857600080fd5b614a91846147f5565b9250602084013591506040840135614aa8816148ac565b809150509250925092565b60008060208385031215614ac657600080fd5b82356001600160401b03811115614adc57600080fd5b614ae885828601614686565b90969095509350505050565b6001600160701b038082511683528060208301511660208401525063ffffffff604082015116604083015260608101516001600160401b038082166060850152806080840151166080850152505065ffffffffffff60a08201511660a083015260c0810151614b6e60c08401826001600160501b03169052565b5060e090810151910152565b604080825283519082018190526000906020906060840190828701845b82811015614bbe57614baa848351614af4565b610100939093019290840190600101614b97565b5050508381038285015284518082528583019183019060005b81811015614bfb57835165ffffffffffff1683529284019291840191600101614bd7565b5090979650505050505050565b6001600160a01b03811681146148ba57600080fd5b600060c08284031215614c2f57600080fd5b60405160c081018181106001600160401b0382111715614c5157614c51614786565b6040528235614c5f81614c08565b8082525060208301356020820152604083013560408201526060830135614c85816148ac565b60608201526080838101359082015260a0928301359281019290925250919050565b600060208284031215614cb957600080fd5b610e22826147f5565b60008060408385031215614cd557600080fd5b8235614ce081614c08565b91506020830135614cf081614c08565b809150509250929050565b600060208284031215614d0d57600080fd5b5035919050565b60008060008060408587031215614d2a57600080fd5b84356001600160401b0380821115614d4157600080fd5b614d4d88838901614686565b90965094506020870135915080821115614d6657600080fd5b818701915087601f830112614d7a57600080fd5b813581811115614d8957600080fd5b8860208260071b8501011115614d9e57600080fd5b95989497505060200194505050565b600060e08284031215614dbf57600080fd5b50919050565b600080600060608486031215614dda57600080fd5b83359250602084013591506040840135614aa8816148ac565b600080600060608486031215614e0857600080fd5b8335614e1381614c08565b95602085013595506040909401359392505050565b60008060008060808587031215614e3e57600080fd5b84359350602085013592506040850135614e57816148ac565b9396929550929360600135925050565b600080600060608486031215614e7c57600080fd5b614e138461466b565b60408101611bad828480516001600160801b03908116835260209182015116910152565b60008060408385031215614ebc57600080fd5b50508035926020909101359150565b6000808284036080811215614edf57600080fd5b614ee8846147f5565b92506060601f1982011215614efc57600080fd5b506020830190509250929050565b803563ffffffff8116811461468157600080fd5b80356001600160481b038116811461468157600080fd5b60006101208284031215614f4857600080fd5b614f5061479c565b614f5983614807565b8152614f6760208401614807565b60208201526040830135604082015260608301356060820152614f8c60808401614f0a565b608082015260a083013560a082015260c083013560c0820152614fb160e08401614f1e565b60e0820152610100614fc481850161466b565b908201529392505050565b60008082840360a0811215614fe357600080fd5b833592506080601f1982011215614efc57600080fd5b6000806000806040858703121561500f57600080fd5b84356001600160401b038082111561502657600080fd5b61503288838901614686565b9096509450602087013591508082111561504b57600080fd5b818701915087601f83011261505f57600080fd5b81358181111561506e57600080fd5b886020606083028501011115614d9e57600080fd5b6000806040838503121561509657600080fd5b823591506020830135614cf0816148ac565b600080604083850312156150bb57600080fd5b6150c4836147f5565b946020939093013593505050565b805160e08084528151848201819052600092610100916020918201918388019190865b82811015615185578451805161ffff1685528281015165ffffffffffff16838601526040808201516001600160401b039081169187019190915260608083015182169087015260808083015182169087015260a08083015182169087015260c0808301518216908701528882015181168987015290870151168685015293810193610120909301926001016150f5565b508781015163ffffffff1690890152506040808701516001600160401b0390811691890191909152606080880151918216908901529350608086015193506151d7608088018565ffffffffffff169052565b60a086015193506151f260a088018565ffffffffffff169052565b60c086015160c08801528094505050505092915050565b6001600160481b038082511683528060208301511660208401528060408301511660408401525064ffffffffff60608201511660608301525050565b60a08152600061525860a08301856150d2565b9050610e226020830184615209565b60008060008060008060c0878903121561528057600080fd5b863561528b81614c08565b955060208701359450604087013593506060870135925060808701356152b0816148ac565b915060a08701356152c0816148ac565b809150509295509295509295565b600080600080608085870312156152e457600080fd5b843593506020850135925060408501356152fd816148ac565b915061530b6060860161466b565b905092959194509250565b60008060006060848603121561532b57600080fd5b83359250602084013561533d816148ac565b929592945050506040919091013590565b6000604082016040835280855180835260608501915060608160051b8601019250602080880160005b838110156153a557605f198887030185526153938683516150d2565b95509382019390820190600101615377565b50508584038187015286518085528782019482019350915060005b82811015614779576153d3848651615209565b93810193608093909301926001016153c0565b61012081016153f58285614af4565b65ffffffffffff83166101008301529392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115611bad57611bad615421565b80820180821115611bad57611bad615421565b6001600160401b0382811682821603908082111561547d5761547d615421565b5092915050565b60006020828403121561549657600080fd5b8151610e2281614c08565b6020808252600c908201526b4d414e414745525f4f4e4c5960a01b604082015260600190565b8082028115828204841417611bad57611bad615421565b6000826154fb57634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561551257600080fd5b5051919050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252600c908201526b0aea49e9c8ebe988a9c8ea8960a31b604082015260600190565b60006020828403121561559f57600080fd5b8135610e22816148ac565b6000602082840312156155bc57600080fd5b8135610e2281614c08565b6000606082840312156155d957600080fd5b604051606081018181106001600160401b03821117156155fb576155fb614786565b80604052508251815260208301516020820152604083015161561c816148ac565b60408201529392505050565b60006080828403121561563a57600080fd5b604051608081018181106001600160401b038211171561565c5761565c614786565b8060405250825181526020830151602082015260408301516040820152606083015160608201528091505092915050565b600080604083850312156156a057600080fd5b505080516020909101519092909150565b600181815b808511156156ec5781600019048211156156d2576156d2615421565b808516156156df57918102915b93841c93908002906156b6565b509250929050565b60008261570357506001611bad565b8161571057506000611bad565b816001811461572657600281146157305761574c565b6001915050611bad565b60ff84111561574157615741615421565b50506001821b611bad565b5060208310610133831016604e8410600b841016171561576f575081810a611bad565b61577983836156b1565b806000190482111561578d5761578d615421565b029392505050565b6000610e2265ffffffffffff8416836156f4565b6020808252600890820152674f564552464c4f5760c01b604082015260600190565b6001600160401b0381811683821601908082111561547d5761547d615421565b6020808252600e908201526d43414c4c4241434b535f4f4e4c5960901b604082015260600190565b6020808252600e908201526d15d493d391d7d1561413d391539560921b604082015260600190565b60006020828403121561584d57600080fd5b610e2282614f0a565b60006020828403121561586857600080fd5b610e2282614f1e565b6001600160701b0382811682821603908082111561547d5761547d615421565b6001600160701b0381811683821601908082111561547d5761547d61542156fea2646970667358221220fbe559919821f4ea1aaaf58e211913c1ab5e7b2903ecd0a506309eee10ed1a6a64736f6c63430008110033";
|
|
2163
|
+
const isSuperArgs = (xs) => {
|
|
2164
|
+
return (typeof xs[0] === "string" ||
|
|
2165
|
+
Array.isArray(xs[0]) ||
|
|
2166
|
+
"_isInterface" in xs[0]);
|
|
2167
|
+
};
|
|
2168
|
+
class GNSBorrowingFees__factory extends ethers_1.ContractFactory {
|
|
2169
|
+
constructor(...args) {
|
|
2170
|
+
if (isSuperArgs(args)) {
|
|
2171
|
+
super(...args);
|
|
2172
|
+
}
|
|
2173
|
+
else {
|
|
2174
|
+
const [linkLibraryAddresses, signer] = args;
|
|
2175
|
+
super(_abi, GNSBorrowingFees__factory.linkBytecode(linkLibraryAddresses), signer);
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
static linkBytecode(linkLibraryAddresses) {
|
|
2179
|
+
let linkedBytecode = _bytecode;
|
|
2180
|
+
linkedBytecode = linkedBytecode.replace(new RegExp("__\\$a828372db7642c41339011fca570451788\\$__", "g"), linkLibraryAddresses["contracts/libraries/PriceImpactUtils.sol:PriceImpactUtils"]
|
|
2181
|
+
.replace(/^0x/, "")
|
|
2182
|
+
.toLowerCase());
|
|
2183
|
+
return linkedBytecode;
|
|
2184
|
+
}
|
|
2185
|
+
deploy(overrides) {
|
|
2186
|
+
return super.deploy(overrides || {});
|
|
2187
|
+
}
|
|
2188
|
+
getDeployTransaction(overrides) {
|
|
2189
|
+
return super.getDeployTransaction(overrides || {});
|
|
2190
|
+
}
|
|
2191
|
+
attach(address) {
|
|
2192
|
+
return super.attach(address);
|
|
2193
|
+
}
|
|
2194
|
+
connect(signer) {
|
|
2195
|
+
return super.connect(signer);
|
|
2196
|
+
}
|
|
2197
|
+
static createInterface() {
|
|
2198
|
+
return new ethers_1.utils.Interface(_abi);
|
|
2199
|
+
}
|
|
2200
|
+
static connect(address, signerOrProvider) {
|
|
2201
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
exports.GNSBorrowingFees__factory = GNSBorrowingFees__factory;
|
|
2205
|
+
GNSBorrowingFees__factory.bytecode = _bytecode;
|
|
2206
|
+
GNSBorrowingFees__factory.abi = _abi;
|