@gainsnetwork/sdk 1.6.8-rc1 → 1.6.9
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/lib/contracts/types/generated/GFarmTradingStorageV5.d.ts +1911 -0
- package/lib/contracts/types/generated/GFarmTradingStorageV5.js +2 -0
- package/lib/contracts/types/generated/GNSBorrowingFees.d.ts +1067 -0
- package/lib/contracts/types/generated/GNSBorrowingFees.js +2 -0
- package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +533 -0
- package/lib/contracts/types/generated/GNSNftRewardsV6.js +2 -0
- package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +613 -0
- package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +2 -0
- package/lib/contracts/types/generated/GNSTrading.d.ts +758 -0
- package/lib/contracts/types/generated/GNSTrading.js +2 -0
- package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +875 -0
- package/lib/contracts/types/generated/GNSTradingCallbacks.js +2 -0
- package/lib/contracts/types/generated/GNSTradingStorage.d.ts +1387 -0
- package/lib/contracts/types/generated/GNSTradingStorage.js +2 -0
- package/lib/contracts/types/generated/GTokenV6_3_2.d.ts +1838 -0
- package/lib/contracts/types/generated/GTokenV6_3_2.js +2 -0
- package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +83 -0
- package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +2691 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +124 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +1784 -0
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +100 -0
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +1116 -0
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +100 -0
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +1003 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +113 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +1428 -0
- package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +96 -0
- package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +2241 -0
- package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +95 -0
- package/lib/contracts/types/generated/factories/GNSTrading__factory.js +1071 -0
- package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.d.ts +110 -0
- package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.js +2682 -0
- package/lib/markets/schedules/builders.js +13 -11
- package/lib/markets/schedules/checkers.js +1 -1
- package/lib/markets/schedules/holidays.d.ts +3 -1
- package/lib/markets/schedules/holidays.js +58 -39
- package/lib/markets/schedules/index.d.ts +1 -0
- package/lib/markets/schedules/index.js +4 -1
- package/lib/markets/schedules/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1003 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GNSNftRewardsV6__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: false,
|
|
14
|
+
internalType: "uint8",
|
|
15
|
+
name: "version",
|
|
16
|
+
type: "uint8",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
name: "Initialized",
|
|
20
|
+
type: "event",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
anonymous: false,
|
|
24
|
+
inputs: [
|
|
25
|
+
{
|
|
26
|
+
indexed: false,
|
|
27
|
+
internalType: "string",
|
|
28
|
+
name: "name",
|
|
29
|
+
type: "string",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
indexed: false,
|
|
33
|
+
internalType: "uint256",
|
|
34
|
+
name: "value",
|
|
35
|
+
type: "uint256",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
name: "NumberUpdated",
|
|
39
|
+
type: "event",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
anonymous: false,
|
|
43
|
+
inputs: [
|
|
44
|
+
{
|
|
45
|
+
indexed: false,
|
|
46
|
+
internalType: "uint256",
|
|
47
|
+
name: "firstP",
|
|
48
|
+
type: "uint256",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
indexed: false,
|
|
52
|
+
internalType: "uint256",
|
|
53
|
+
name: "sameBlockP",
|
|
54
|
+
type: "uint256",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
indexed: false,
|
|
58
|
+
internalType: "uint256",
|
|
59
|
+
name: "poolP",
|
|
60
|
+
type: "uint256",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
name: "PercentagesUpdated",
|
|
64
|
+
type: "event",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
anonymous: false,
|
|
68
|
+
inputs: [
|
|
69
|
+
{
|
|
70
|
+
indexed: false,
|
|
71
|
+
internalType: "address",
|
|
72
|
+
name: "bot",
|
|
73
|
+
type: "address",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
indexed: false,
|
|
77
|
+
internalType: "uint256",
|
|
78
|
+
name: "fromRound",
|
|
79
|
+
type: "uint256",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
indexed: false,
|
|
83
|
+
internalType: "uint256",
|
|
84
|
+
name: "toRound",
|
|
85
|
+
type: "uint256",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
indexed: false,
|
|
89
|
+
internalType: "uint256",
|
|
90
|
+
name: "tokens",
|
|
91
|
+
type: "uint256",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
name: "PoolTokensClaimed",
|
|
95
|
+
type: "event",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
anonymous: false,
|
|
99
|
+
inputs: [
|
|
100
|
+
{
|
|
101
|
+
indexed: false,
|
|
102
|
+
internalType: "address",
|
|
103
|
+
name: "bot",
|
|
104
|
+
type: "address",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
indexed: false,
|
|
108
|
+
internalType: "uint256",
|
|
109
|
+
name: "tokens",
|
|
110
|
+
type: "uint256",
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
name: "TokensClaimed",
|
|
114
|
+
type: "event",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
anonymous: false,
|
|
118
|
+
inputs: [
|
|
119
|
+
{
|
|
120
|
+
components: [
|
|
121
|
+
{
|
|
122
|
+
internalType: "address",
|
|
123
|
+
name: "trader",
|
|
124
|
+
type: "address",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
internalType: "uint256",
|
|
128
|
+
name: "pairIndex",
|
|
129
|
+
type: "uint256",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
internalType: "uint256",
|
|
133
|
+
name: "index",
|
|
134
|
+
type: "uint256",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
internalType: "enum StorageInterfaceV5.LimitOrder",
|
|
138
|
+
name: "order",
|
|
139
|
+
type: "uint8",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
indexed: false,
|
|
143
|
+
internalType: "struct GNSNftRewardsV6.TriggeredLimitId",
|
|
144
|
+
name: "id",
|
|
145
|
+
type: "tuple",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
indexed: false,
|
|
149
|
+
internalType: "address",
|
|
150
|
+
name: "first",
|
|
151
|
+
type: "address",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
indexed: false,
|
|
155
|
+
internalType: "uint256",
|
|
156
|
+
name: "sameBlockCount",
|
|
157
|
+
type: "uint256",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
indexed: false,
|
|
161
|
+
internalType: "uint256",
|
|
162
|
+
name: "reward",
|
|
163
|
+
type: "uint256",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
name: "TriggerRewarded",
|
|
167
|
+
type: "event",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
anonymous: false,
|
|
171
|
+
inputs: [
|
|
172
|
+
{
|
|
173
|
+
components: [
|
|
174
|
+
{
|
|
175
|
+
internalType: "address",
|
|
176
|
+
name: "trader",
|
|
177
|
+
type: "address",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
internalType: "uint256",
|
|
181
|
+
name: "pairIndex",
|
|
182
|
+
type: "uint256",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
internalType: "uint256",
|
|
186
|
+
name: "index",
|
|
187
|
+
type: "uint256",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
internalType: "enum StorageInterfaceV5.LimitOrder",
|
|
191
|
+
name: "order",
|
|
192
|
+
type: "uint8",
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
indexed: false,
|
|
196
|
+
internalType: "struct GNSNftRewardsV6.TriggeredLimitId",
|
|
197
|
+
name: "id",
|
|
198
|
+
type: "tuple",
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
name: "TriggerUnregistered",
|
|
202
|
+
type: "event",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
anonymous: false,
|
|
206
|
+
inputs: [
|
|
207
|
+
{
|
|
208
|
+
components: [
|
|
209
|
+
{
|
|
210
|
+
internalType: "address",
|
|
211
|
+
name: "trader",
|
|
212
|
+
type: "address",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
internalType: "uint256",
|
|
216
|
+
name: "pairIndex",
|
|
217
|
+
type: "uint256",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
internalType: "uint256",
|
|
221
|
+
name: "index",
|
|
222
|
+
type: "uint256",
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
internalType: "enum StorageInterfaceV5.LimitOrder",
|
|
226
|
+
name: "order",
|
|
227
|
+
type: "uint8",
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
indexed: false,
|
|
231
|
+
internalType: "struct GNSNftRewardsV6.TriggeredLimitId",
|
|
232
|
+
name: "id",
|
|
233
|
+
type: "tuple",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
indexed: false,
|
|
237
|
+
internalType: "address",
|
|
238
|
+
name: "bot",
|
|
239
|
+
type: "address",
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
name: "TriggeredFirst",
|
|
243
|
+
type: "event",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
anonymous: false,
|
|
247
|
+
inputs: [
|
|
248
|
+
{
|
|
249
|
+
components: [
|
|
250
|
+
{
|
|
251
|
+
internalType: "address",
|
|
252
|
+
name: "trader",
|
|
253
|
+
type: "address",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
internalType: "uint256",
|
|
257
|
+
name: "pairIndex",
|
|
258
|
+
type: "uint256",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
internalType: "uint256",
|
|
262
|
+
name: "index",
|
|
263
|
+
type: "uint256",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
internalType: "enum StorageInterfaceV5.LimitOrder",
|
|
267
|
+
name: "order",
|
|
268
|
+
type: "uint8",
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
indexed: false,
|
|
272
|
+
internalType: "struct GNSNftRewardsV6.TriggeredLimitId",
|
|
273
|
+
name: "id",
|
|
274
|
+
type: "tuple",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
indexed: false,
|
|
278
|
+
internalType: "address",
|
|
279
|
+
name: "bot",
|
|
280
|
+
type: "address",
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
name: "TriggeredSameBlock",
|
|
284
|
+
type: "event",
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
inputs: [],
|
|
288
|
+
name: "currentOrder",
|
|
289
|
+
outputs: [
|
|
290
|
+
{
|
|
291
|
+
internalType: "uint256",
|
|
292
|
+
name: "",
|
|
293
|
+
type: "uint256",
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
stateMutability: "view",
|
|
297
|
+
type: "function",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
inputs: [],
|
|
301
|
+
name: "currentRound",
|
|
302
|
+
outputs: [
|
|
303
|
+
{
|
|
304
|
+
internalType: "uint256",
|
|
305
|
+
name: "",
|
|
306
|
+
type: "uint256",
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
stateMutability: "view",
|
|
310
|
+
type: "function",
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
inputs: [],
|
|
314
|
+
name: "firstP",
|
|
315
|
+
outputs: [
|
|
316
|
+
{
|
|
317
|
+
internalType: "uint256",
|
|
318
|
+
name: "",
|
|
319
|
+
type: "uint256",
|
|
320
|
+
},
|
|
321
|
+
],
|
|
322
|
+
stateMutability: "view",
|
|
323
|
+
type: "function",
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
inputs: [
|
|
327
|
+
{
|
|
328
|
+
internalType: "address",
|
|
329
|
+
name: "",
|
|
330
|
+
type: "address",
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
internalType: "uint256",
|
|
334
|
+
name: "",
|
|
335
|
+
type: "uint256",
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
internalType: "uint256",
|
|
339
|
+
name: "",
|
|
340
|
+
type: "uint256",
|
|
341
|
+
},
|
|
342
|
+
],
|
|
343
|
+
name: "openLimitOrderTypes",
|
|
344
|
+
outputs: [
|
|
345
|
+
{
|
|
346
|
+
internalType: "enum GNSNftRewardsV6.OpenLimitOrderType",
|
|
347
|
+
name: "",
|
|
348
|
+
type: "uint8",
|
|
349
|
+
},
|
|
350
|
+
],
|
|
351
|
+
stateMutability: "view",
|
|
352
|
+
type: "function",
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
inputs: [],
|
|
356
|
+
name: "poolP",
|
|
357
|
+
outputs: [
|
|
358
|
+
{
|
|
359
|
+
internalType: "uint256",
|
|
360
|
+
name: "",
|
|
361
|
+
type: "uint256",
|
|
362
|
+
},
|
|
363
|
+
],
|
|
364
|
+
stateMutability: "view",
|
|
365
|
+
type: "function",
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
inputs: [
|
|
369
|
+
{
|
|
370
|
+
internalType: "address",
|
|
371
|
+
name: "",
|
|
372
|
+
type: "address",
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
internalType: "uint256",
|
|
376
|
+
name: "",
|
|
377
|
+
type: "uint256",
|
|
378
|
+
},
|
|
379
|
+
],
|
|
380
|
+
name: "roundOrdersToClaim",
|
|
381
|
+
outputs: [
|
|
382
|
+
{
|
|
383
|
+
internalType: "uint256",
|
|
384
|
+
name: "",
|
|
385
|
+
type: "uint256",
|
|
386
|
+
},
|
|
387
|
+
],
|
|
388
|
+
stateMutability: "view",
|
|
389
|
+
type: "function",
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
inputs: [
|
|
393
|
+
{
|
|
394
|
+
internalType: "uint256",
|
|
395
|
+
name: "",
|
|
396
|
+
type: "uint256",
|
|
397
|
+
},
|
|
398
|
+
],
|
|
399
|
+
name: "roundTokens",
|
|
400
|
+
outputs: [
|
|
401
|
+
{
|
|
402
|
+
internalType: "uint256",
|
|
403
|
+
name: "",
|
|
404
|
+
type: "uint256",
|
|
405
|
+
},
|
|
406
|
+
],
|
|
407
|
+
stateMutability: "view",
|
|
408
|
+
type: "function",
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
inputs: [],
|
|
412
|
+
name: "sameBlockLimit",
|
|
413
|
+
outputs: [
|
|
414
|
+
{
|
|
415
|
+
internalType: "uint256",
|
|
416
|
+
name: "",
|
|
417
|
+
type: "uint256",
|
|
418
|
+
},
|
|
419
|
+
],
|
|
420
|
+
stateMutability: "view",
|
|
421
|
+
type: "function",
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
inputs: [],
|
|
425
|
+
name: "sameBlockP",
|
|
426
|
+
outputs: [
|
|
427
|
+
{
|
|
428
|
+
internalType: "uint256",
|
|
429
|
+
name: "",
|
|
430
|
+
type: "uint256",
|
|
431
|
+
},
|
|
432
|
+
],
|
|
433
|
+
stateMutability: "view",
|
|
434
|
+
type: "function",
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
inputs: [],
|
|
438
|
+
name: "storageT",
|
|
439
|
+
outputs: [
|
|
440
|
+
{
|
|
441
|
+
internalType: "contract StorageInterfaceV5",
|
|
442
|
+
name: "",
|
|
443
|
+
type: "address",
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
stateMutability: "view",
|
|
447
|
+
type: "function",
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
inputs: [
|
|
451
|
+
{
|
|
452
|
+
internalType: "address",
|
|
453
|
+
name: "",
|
|
454
|
+
type: "address",
|
|
455
|
+
},
|
|
456
|
+
],
|
|
457
|
+
name: "tokensClaimed",
|
|
458
|
+
outputs: [
|
|
459
|
+
{
|
|
460
|
+
internalType: "uint256",
|
|
461
|
+
name: "",
|
|
462
|
+
type: "uint256",
|
|
463
|
+
},
|
|
464
|
+
],
|
|
465
|
+
stateMutability: "view",
|
|
466
|
+
type: "function",
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
inputs: [],
|
|
470
|
+
name: "tokensClaimedTotal",
|
|
471
|
+
outputs: [
|
|
472
|
+
{
|
|
473
|
+
internalType: "uint256",
|
|
474
|
+
name: "",
|
|
475
|
+
type: "uint256",
|
|
476
|
+
},
|
|
477
|
+
],
|
|
478
|
+
stateMutability: "view",
|
|
479
|
+
type: "function",
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
inputs: [
|
|
483
|
+
{
|
|
484
|
+
internalType: "address",
|
|
485
|
+
name: "",
|
|
486
|
+
type: "address",
|
|
487
|
+
},
|
|
488
|
+
],
|
|
489
|
+
name: "tokensToClaim",
|
|
490
|
+
outputs: [
|
|
491
|
+
{
|
|
492
|
+
internalType: "uint256",
|
|
493
|
+
name: "",
|
|
494
|
+
type: "uint256",
|
|
495
|
+
},
|
|
496
|
+
],
|
|
497
|
+
stateMutability: "view",
|
|
498
|
+
type: "function",
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
inputs: [],
|
|
502
|
+
name: "triggerTimeout",
|
|
503
|
+
outputs: [
|
|
504
|
+
{
|
|
505
|
+
internalType: "uint256",
|
|
506
|
+
name: "",
|
|
507
|
+
type: "uint256",
|
|
508
|
+
},
|
|
509
|
+
],
|
|
510
|
+
stateMutability: "view",
|
|
511
|
+
type: "function",
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
inputs: [
|
|
515
|
+
{
|
|
516
|
+
internalType: "address",
|
|
517
|
+
name: "",
|
|
518
|
+
type: "address",
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
internalType: "uint256",
|
|
522
|
+
name: "",
|
|
523
|
+
type: "uint256",
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
internalType: "uint256",
|
|
527
|
+
name: "",
|
|
528
|
+
type: "uint256",
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
internalType: "enum StorageInterfaceV5.LimitOrder",
|
|
532
|
+
name: "",
|
|
533
|
+
type: "uint8",
|
|
534
|
+
},
|
|
535
|
+
],
|
|
536
|
+
name: "triggeredLimits",
|
|
537
|
+
outputs: [
|
|
538
|
+
{
|
|
539
|
+
internalType: "address",
|
|
540
|
+
name: "first",
|
|
541
|
+
type: "address",
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
internalType: "uint256",
|
|
545
|
+
name: "block",
|
|
546
|
+
type: "uint256",
|
|
547
|
+
},
|
|
548
|
+
],
|
|
549
|
+
stateMutability: "view",
|
|
550
|
+
type: "function",
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
inputs: [
|
|
554
|
+
{
|
|
555
|
+
internalType: "contract StorageInterfaceV5",
|
|
556
|
+
name: "_storageT",
|
|
557
|
+
type: "address",
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
internalType: "uint256",
|
|
561
|
+
name: "_triggerTimeout",
|
|
562
|
+
type: "uint256",
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
internalType: "uint256",
|
|
566
|
+
name: "_sameBlockLimit",
|
|
567
|
+
type: "uint256",
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
internalType: "uint256",
|
|
571
|
+
name: "_firstP",
|
|
572
|
+
type: "uint256",
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
internalType: "uint256",
|
|
576
|
+
name: "_sameBlockP",
|
|
577
|
+
type: "uint256",
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
internalType: "uint256",
|
|
581
|
+
name: "_poolP",
|
|
582
|
+
type: "uint256",
|
|
583
|
+
},
|
|
584
|
+
],
|
|
585
|
+
name: "initialize",
|
|
586
|
+
outputs: [],
|
|
587
|
+
stateMutability: "nonpayable",
|
|
588
|
+
type: "function",
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
inputs: [
|
|
592
|
+
{
|
|
593
|
+
internalType: "uint256",
|
|
594
|
+
name: "_triggerTimeout",
|
|
595
|
+
type: "uint256",
|
|
596
|
+
},
|
|
597
|
+
],
|
|
598
|
+
name: "updateTriggerTimeout",
|
|
599
|
+
outputs: [],
|
|
600
|
+
stateMutability: "nonpayable",
|
|
601
|
+
type: "function",
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
inputs: [
|
|
605
|
+
{
|
|
606
|
+
internalType: "uint256",
|
|
607
|
+
name: "_sameBlockLimit",
|
|
608
|
+
type: "uint256",
|
|
609
|
+
},
|
|
610
|
+
],
|
|
611
|
+
name: "updateSameBlockLimit",
|
|
612
|
+
outputs: [],
|
|
613
|
+
stateMutability: "nonpayable",
|
|
614
|
+
type: "function",
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
inputs: [
|
|
618
|
+
{
|
|
619
|
+
internalType: "uint256",
|
|
620
|
+
name: "_firstP",
|
|
621
|
+
type: "uint256",
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
internalType: "uint256",
|
|
625
|
+
name: "_sameBlockP",
|
|
626
|
+
type: "uint256",
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
internalType: "uint256",
|
|
630
|
+
name: "_poolP",
|
|
631
|
+
type: "uint256",
|
|
632
|
+
},
|
|
633
|
+
],
|
|
634
|
+
name: "updatePercentages",
|
|
635
|
+
outputs: [],
|
|
636
|
+
stateMutability: "nonpayable",
|
|
637
|
+
type: "function",
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
inputs: [
|
|
641
|
+
{
|
|
642
|
+
components: [
|
|
643
|
+
{
|
|
644
|
+
internalType: "address",
|
|
645
|
+
name: "trader",
|
|
646
|
+
type: "address",
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
internalType: "uint256",
|
|
650
|
+
name: "pairIndex",
|
|
651
|
+
type: "uint256",
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
internalType: "uint256",
|
|
655
|
+
name: "index",
|
|
656
|
+
type: "uint256",
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
internalType: "enum StorageInterfaceV5.LimitOrder",
|
|
660
|
+
name: "order",
|
|
661
|
+
type: "uint8",
|
|
662
|
+
},
|
|
663
|
+
],
|
|
664
|
+
internalType: "struct GNSNftRewardsV6.TriggeredLimitId",
|
|
665
|
+
name: "_id",
|
|
666
|
+
type: "tuple",
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
internalType: "address",
|
|
670
|
+
name: "_bot",
|
|
671
|
+
type: "address",
|
|
672
|
+
},
|
|
673
|
+
],
|
|
674
|
+
name: "storeFirstToTrigger",
|
|
675
|
+
outputs: [],
|
|
676
|
+
stateMutability: "nonpayable",
|
|
677
|
+
type: "function",
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
inputs: [
|
|
681
|
+
{
|
|
682
|
+
components: [
|
|
683
|
+
{
|
|
684
|
+
internalType: "address",
|
|
685
|
+
name: "trader",
|
|
686
|
+
type: "address",
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
internalType: "uint256",
|
|
690
|
+
name: "pairIndex",
|
|
691
|
+
type: "uint256",
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
internalType: "uint256",
|
|
695
|
+
name: "index",
|
|
696
|
+
type: "uint256",
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
internalType: "enum StorageInterfaceV5.LimitOrder",
|
|
700
|
+
name: "order",
|
|
701
|
+
type: "uint8",
|
|
702
|
+
},
|
|
703
|
+
],
|
|
704
|
+
internalType: "struct GNSNftRewardsV6.TriggeredLimitId",
|
|
705
|
+
name: "_id",
|
|
706
|
+
type: "tuple",
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
internalType: "address",
|
|
710
|
+
name: "_bot",
|
|
711
|
+
type: "address",
|
|
712
|
+
},
|
|
713
|
+
],
|
|
714
|
+
name: "storeTriggerSameBlock",
|
|
715
|
+
outputs: [],
|
|
716
|
+
stateMutability: "nonpayable",
|
|
717
|
+
type: "function",
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
inputs: [
|
|
721
|
+
{
|
|
722
|
+
components: [
|
|
723
|
+
{
|
|
724
|
+
internalType: "address",
|
|
725
|
+
name: "trader",
|
|
726
|
+
type: "address",
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
internalType: "uint256",
|
|
730
|
+
name: "pairIndex",
|
|
731
|
+
type: "uint256",
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
internalType: "uint256",
|
|
735
|
+
name: "index",
|
|
736
|
+
type: "uint256",
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
internalType: "enum StorageInterfaceV5.LimitOrder",
|
|
740
|
+
name: "order",
|
|
741
|
+
type: "uint8",
|
|
742
|
+
},
|
|
743
|
+
],
|
|
744
|
+
internalType: "struct GNSNftRewardsV6.TriggeredLimitId",
|
|
745
|
+
name: "_id",
|
|
746
|
+
type: "tuple",
|
|
747
|
+
},
|
|
748
|
+
],
|
|
749
|
+
name: "unregisterTrigger",
|
|
750
|
+
outputs: [],
|
|
751
|
+
stateMutability: "nonpayable",
|
|
752
|
+
type: "function",
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
inputs: [
|
|
756
|
+
{
|
|
757
|
+
components: [
|
|
758
|
+
{
|
|
759
|
+
internalType: "address",
|
|
760
|
+
name: "trader",
|
|
761
|
+
type: "address",
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
internalType: "uint256",
|
|
765
|
+
name: "pairIndex",
|
|
766
|
+
type: "uint256",
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
internalType: "uint256",
|
|
770
|
+
name: "index",
|
|
771
|
+
type: "uint256",
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
internalType: "enum StorageInterfaceV5.LimitOrder",
|
|
775
|
+
name: "order",
|
|
776
|
+
type: "uint8",
|
|
777
|
+
},
|
|
778
|
+
],
|
|
779
|
+
internalType: "struct GNSNftRewardsV6.TriggeredLimitId",
|
|
780
|
+
name: "_id",
|
|
781
|
+
type: "tuple",
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
internalType: "uint256",
|
|
785
|
+
name: "_reward",
|
|
786
|
+
type: "uint256",
|
|
787
|
+
},
|
|
788
|
+
],
|
|
789
|
+
name: "distributeNftReward",
|
|
790
|
+
outputs: [],
|
|
791
|
+
stateMutability: "nonpayable",
|
|
792
|
+
type: "function",
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
inputs: [
|
|
796
|
+
{
|
|
797
|
+
internalType: "uint256",
|
|
798
|
+
name: "_fromRound",
|
|
799
|
+
type: "uint256",
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
internalType: "uint256",
|
|
803
|
+
name: "_toRound",
|
|
804
|
+
type: "uint256",
|
|
805
|
+
},
|
|
806
|
+
],
|
|
807
|
+
name: "claimPoolTokens",
|
|
808
|
+
outputs: [],
|
|
809
|
+
stateMutability: "nonpayable",
|
|
810
|
+
type: "function",
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
inputs: [],
|
|
814
|
+
name: "claimTokens",
|
|
815
|
+
outputs: [],
|
|
816
|
+
stateMutability: "nonpayable",
|
|
817
|
+
type: "function",
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
inputs: [
|
|
821
|
+
{
|
|
822
|
+
internalType: "address",
|
|
823
|
+
name: "_trader",
|
|
824
|
+
type: "address",
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
internalType: "uint256",
|
|
828
|
+
name: "_pairIndex",
|
|
829
|
+
type: "uint256",
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
internalType: "uint256",
|
|
833
|
+
name: "_index",
|
|
834
|
+
type: "uint256",
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
internalType: "enum GNSNftRewardsV6.OpenLimitOrderType",
|
|
838
|
+
name: "_type",
|
|
839
|
+
type: "uint8",
|
|
840
|
+
},
|
|
841
|
+
],
|
|
842
|
+
name: "setOpenLimitOrderType",
|
|
843
|
+
outputs: [],
|
|
844
|
+
stateMutability: "nonpayable",
|
|
845
|
+
type: "function",
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
inputs: [
|
|
849
|
+
{
|
|
850
|
+
components: [
|
|
851
|
+
{
|
|
852
|
+
internalType: "address",
|
|
853
|
+
name: "trader",
|
|
854
|
+
type: "address",
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
internalType: "uint256",
|
|
858
|
+
name: "pairIndex",
|
|
859
|
+
type: "uint256",
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
internalType: "uint256",
|
|
863
|
+
name: "index",
|
|
864
|
+
type: "uint256",
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
internalType: "enum StorageInterfaceV5.LimitOrder",
|
|
868
|
+
name: "order",
|
|
869
|
+
type: "uint8",
|
|
870
|
+
},
|
|
871
|
+
],
|
|
872
|
+
internalType: "struct GNSNftRewardsV6.TriggeredLimitId",
|
|
873
|
+
name: "_id",
|
|
874
|
+
type: "tuple",
|
|
875
|
+
},
|
|
876
|
+
],
|
|
877
|
+
name: "triggered",
|
|
878
|
+
outputs: [
|
|
879
|
+
{
|
|
880
|
+
internalType: "bool",
|
|
881
|
+
name: "",
|
|
882
|
+
type: "bool",
|
|
883
|
+
},
|
|
884
|
+
],
|
|
885
|
+
stateMutability: "view",
|
|
886
|
+
type: "function",
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
inputs: [
|
|
890
|
+
{
|
|
891
|
+
components: [
|
|
892
|
+
{
|
|
893
|
+
internalType: "address",
|
|
894
|
+
name: "trader",
|
|
895
|
+
type: "address",
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
internalType: "uint256",
|
|
899
|
+
name: "pairIndex",
|
|
900
|
+
type: "uint256",
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
internalType: "uint256",
|
|
904
|
+
name: "index",
|
|
905
|
+
type: "uint256",
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
internalType: "enum StorageInterfaceV5.LimitOrder",
|
|
909
|
+
name: "order",
|
|
910
|
+
type: "uint8",
|
|
911
|
+
},
|
|
912
|
+
],
|
|
913
|
+
internalType: "struct GNSNftRewardsV6.TriggeredLimitId",
|
|
914
|
+
name: "_id",
|
|
915
|
+
type: "tuple",
|
|
916
|
+
},
|
|
917
|
+
],
|
|
918
|
+
name: "timedOut",
|
|
919
|
+
outputs: [
|
|
920
|
+
{
|
|
921
|
+
internalType: "bool",
|
|
922
|
+
name: "",
|
|
923
|
+
type: "bool",
|
|
924
|
+
},
|
|
925
|
+
],
|
|
926
|
+
stateMutability: "view",
|
|
927
|
+
type: "function",
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
inputs: [
|
|
931
|
+
{
|
|
932
|
+
components: [
|
|
933
|
+
{
|
|
934
|
+
internalType: "address",
|
|
935
|
+
name: "trader",
|
|
936
|
+
type: "address",
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
internalType: "uint256",
|
|
940
|
+
name: "pairIndex",
|
|
941
|
+
type: "uint256",
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
internalType: "uint256",
|
|
945
|
+
name: "index",
|
|
946
|
+
type: "uint256",
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
internalType: "enum StorageInterfaceV5.LimitOrder",
|
|
950
|
+
name: "order",
|
|
951
|
+
type: "uint8",
|
|
952
|
+
},
|
|
953
|
+
],
|
|
954
|
+
internalType: "struct GNSNftRewardsV6.TriggeredLimitId",
|
|
955
|
+
name: "_id",
|
|
956
|
+
type: "tuple",
|
|
957
|
+
},
|
|
958
|
+
],
|
|
959
|
+
name: "sameBlockTriggers",
|
|
960
|
+
outputs: [
|
|
961
|
+
{
|
|
962
|
+
internalType: "address[]",
|
|
963
|
+
name: "",
|
|
964
|
+
type: "address[]",
|
|
965
|
+
},
|
|
966
|
+
],
|
|
967
|
+
stateMutability: "view",
|
|
968
|
+
type: "function",
|
|
969
|
+
},
|
|
970
|
+
];
|
|
971
|
+
const _bytecode = "0x608060405234801561001057600080fd5b506120ca806100206000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80637e21a07311610104578063d4de65ea116100a2578063f4e980ef11610071578063f4e980ef14610475578063fa827e2e1461047e578063fc6dcafc1461049e578063fc8b2698146104b157600080fd5b8063d4de65ea146103fb578063daa6a3e21461043c578063eb56faf01461044f578063ec5706101461046257600080fd5b80639e28229d116100de5780639e28229d14610360578063bf654d2b14610369578063c23c886c1461037c578063d15ccfaa1461038f57600080fd5b80637e21a073146103235780638a19c8bc1461034e5780639808e3771461035757600080fd5b806345ff4c80116101715780635087ad611161014b5780635087ad61146102de578063613e666e146102e7578063624601b6146102fa5780637ceea89a1461031a57600080fd5b806345ff4c80146102b057806346ea285b146102c357806348c54b9d146102d657600080fd5b80631e868334116101ad5780631e8683341461024557806321187a921461026557806324597b0314610288578063307677871461029d57600080fd5b80630c50b7ef146101d457806316fff074146101fd578063196e182f1461022e575b600080fd5b6101e76101e2366004611bc7565b6104ba565b6040516101f49190611be3565b60405180910390f35b600054610216906201000090046001600160a01b031681565b6040516001600160a01b0390911681526020016101f4565b61023760025481565b6040519081526020016101f4565b610237610253366004611c45565b600a6020526000908152604090205481565b610278610273366004611bc7565b6105a5565b60405190151581526020016101f4565b61029b610296366004611c62565b6106c2565b005b61029b6102ab366004611c84565b610905565b61029b6102be366004611caf565b610d0d565b61029b6102d1366004611cfb565b610edb565b61029b6110f2565b61023760035481565b61029b6102f5366004611d33565b61123f565b610237610308366004611c45565b600d6020526000908152604090205481565b610237600e5481565b610237610331366004611d4c565b600960209081526000928352604080842090915290825290205481565b61023760075481565b61023760045481565b61023760065481565b61029b610377366004611bc7565b611380565b61029b61038a366004611cfb565b611526565b6103dc61039d366004611d8c565b600b602090815260009485526040808620825293855283852081529184528284209091528252902080546002909101546001600160a01b039091169082565b604080516001600160a01b0390931683526020830191909152016101f4565b61042f610409366004611dd4565b600c60209081526000938452604080852082529284528284209052825290205460ff1681565b6040516101f49190611e1f565b61029b61044a366004611d33565b6116b9565b61029b61045d366004611e39565b6117fa565b61029b610470366004611e65565b611940565b61023760055481565b61023761048c366004611d33565b60086020526000908152604090205481565b6102786104ac366004611bc7565b611a3a565b61023760015481565b6060600b60006104cd6020850185611c45565b6001600160a01b031681526020808201929092526040908101600090812085840135825283528181208583013582529092528120906105126080850160608601611eb3565b600381111561052357610523611e09565b600381111561053457610534611e09565b815260200190815260200160002060010180548060200260200160405190810160405280929190818152602001828054801561059957602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161057b575b50505050509050919050565b600080600b816105b86020860186611c45565b6001600160a01b031681526020808201929092526040908101600090812086840135825283528181208683013582529092528120906105fd6080860160608701611eb3565b600381111561060e5761060e611e09565b600381111561061f5761061f611e09565b81526020808201929092526040908101600020815160608101835281546001600160a01b0316815260018201805484518187028101870190955280855291949293858401939092908301828280156106a057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610682575b5050509183525050600291909101546020909101526040015115159392505050565b818110156107085760405162461bcd60e51b815260206004820152600e60248201526d544f5f4245464f52455f46524f4d60901b60448201526064015b60405180910390fd5b60075481106107455760405162461bcd60e51b8152602060048201526009602482015268544f4f5f4541524c5960b81b60448201526064016106ff565b6000825b8281116107c557600081815260086020908152604080832054338452600983528184208585529092529091205460329161078291611ee4565b61078c9190611f01565b6107969083611f23565b3360009081526009602090815260408083208584529091528120559150806107bd81611f36565b915050610749565b50600081116108095760405162461bcd60e51b815260206004820152601060248201526f4e4f5448494e475f544f5f434c41494d60801b60448201526064016106ff565b6000546040516329bc0a1f60e11b81523360048201526024810183905260016044820152620100009091046001600160a01b031690635378143e90606401600060405180830381600087803b15801561086157600080fd5b505af1158015610875573d6000803e3d6000fd5b5050336000908152600d602052604081208054859450909250610899908490611f23565b9250508190555080600e60008282546108b29190611f23565b90915550506040805133815260208101859052908101839052606081018290527f46ac8a38885612f1237f564a5c0956490dfd5f8e749e750a4c28fafb9f4e6f3a906080015b60405180910390a1505050565b600060029054906101000a90046001600160a01b03166001600160a01b031662b127836040518163ffffffff1660e01b8152600401602060405180830381865afa158015610957573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097b9190611f4f565b6001600160a01b0316336001600160a01b0316146109cc5760405162461bcd60e51b815260206004820152600e60248201526d43414c4c4241434b535f4f4e4c5960901b60448201526064016106ff565b6000600b816109de6020860186611c45565b6001600160a01b03168152602080820192909252604090810160009081208684013582528352818120868301358252909252812090610a236080860160608701611eb3565b6003811115610a3457610a34611e09565b6003811115610a4557610a45611e09565b81526020808201929092526040908101600020815160608101835281546001600160a01b031681526001820180548451818702810187019095528085529194929385840193909290830182828015610ac657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610aa8575b5050505050815260200160028201548152505090506000816040015111610b1f5760405162461bcd60e51b815260206004820152600d60248201526c1393d517d5149251d1d1549151609a1b60448201526064016106ff565b606460035483610b2f9190611ee4565b610b399190611f01565b81516001600160a01b03166000908152600a602052604081208054909190610b62908490611f23565b909155505060208101515115610c1d576000606482602001515160045485610b8a9190611ee4565b610b949190611f01565b610b9e9190611f01565b905060005b826020015151811015610c1a5781600a600085602001518481518110610bcb57610bcb611f6c565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000206000828254610c029190611f23565b90915550819050610c1281611f36565b915050610ba3565b50505b606460055483610c2d9190611ee4565b610c379190611f01565b60075460009081526008602052604081208054909190610c58908490611f23565b909155505080516001600160a01b0316600090815260096020908152604080832060075484529091528120805491610c8f83611f36565b9190505550603260065403610cbd57600160065560078054906000610cb383611f36565b9190505550610cd3565b60068054906000610ccd83611f36565b91905055505b80516020820151516040517fa221ef97658841f95c511da6be528d238f9870b9626f3cfa76a374906a351734926108f89287928790611fd3565b600054610100900460ff1615808015610d2d5750600054600160ff909116105b80610d475750303b158015610d47575060005460ff166001145b610daa5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016106ff565b6000805460ff191660011790558015610dcd576000805461ff0019166101001790555b6001600160a01b03871615801590610de6575060018610155b8015610df3575060058510155b8015610e13575081610e058486611f23565b610e0f9190611f23565b6064145b610e4e5760405162461bcd60e51b815260206004820152600c60248201526b57524f4e475f504152414d5360a01b60448201526064016106ff565b6000805462010000600160b01b031916620100006001600160a01b038a1602179055600186815560028690556003859055600484905560058390556006558015610ed2576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050565b600060029054906101000a90046001600160a01b03166001600160a01b031663ec44acf26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f529190611f4f565b6001600160a01b0316336001600160a01b031614610f825760405162461bcd60e51b81526004016106ff90612005565b6000600b81610f946020860186611c45565b6001600160a01b03168152602080820192909252604090810160009081208684013582528352818120868301358252909252812090610fd96080860160608701611eb3565b6003811115610fea57610fea611e09565b6003811115610ffb57610ffb611e09565b81526020019081526020016000209050438160020154146110495760405162461bcd60e51b8152602060048201526008602482015267544f4f5f4c41544560c01b60448201526064016106ff565b6002546001820154106110915760405162461bcd60e51b815260206004820152601060248201526f14d0535157d09313d0d2d7d31253525560821b60448201526064016106ff565b6001818101805491820181556000908152602090200180546001600160a01b0319166001600160a01b0384161790556040517fe76b06c761880bf9ea246e3e04ef2b18bc6979f1492c43a61b78ee673f79a399906108f8908590859061202b565b336000908152600a6020526040902054806111425760405162461bcd60e51b815260206004820152601060248201526f4e4f5448494e475f544f5f434c41494d60801b60448201526064016106ff565b336000818152600a6020526040808220829055905490516329bc0a1f60e11b8152600481019290925260248201839052600160448301526201000090046001600160a01b031690635378143e90606401600060405180830381600087803b1580156111ac57600080fd5b505af11580156111c0573d6000803e3d6000fd5b5050336000908152600d6020526040812080548594509092506111e4908490611f23565b9250508190555080600e60008282546111fd9190611f23565b909155505060408051338152602081018390527f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e43091015b60405180910390a150565b600060029054906101000a90046001600160a01b03166001600160a01b03166312d43a516040518163ffffffff1660e01b8152600401602060405180830381865afa158015611292573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112b69190611f4f565b6001600160a01b0316336001600160a01b0316146112e65760405162461bcd60e51b81526004016106ff90612051565b60018110156113235760405162461bcd60e51b81526020600482015260096024820152682122a627abafa6a4a760b91b60448201526064016106ff565b600181905560408051818152600e918101919091526d1d1c9a59d9d95c951a5b595bdd5d60921b6060820152602081018290527f8cf3e35f6221b16e1670a3413180c9484bf5aa71787905909fa82a6a2662e9ab90608001611234565b600060029054906101000a90046001600160a01b03166001600160a01b031662b127836040518163ffffffff1660e01b8152600401602060405180830381865afa1580156113d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f69190611f4f565b6001600160a01b0316336001600160a01b0316146114475760405162461bcd60e51b815260206004820152600e60248201526d43414c4c4241434b535f4f4e4c5960901b60448201526064016106ff565b600b60006114586020840184611c45565b6001600160a01b0316815260208082019290925260409081016000908120848401358252835281812084830135825290925281209061149d6080840160608501611eb3565b60038111156114ae576114ae611e09565b60038111156114bf576114bf611e09565b81526020810191909152604001600090812080546001600160a01b0319168155906114ed6001830182611b75565b600282016000905550507fbc446f372d672d41df09bf965eb61c029a34d21d04ebcd4c0ec9c7ee54f2cd84816040516112349190612073565b600060029054906101000a90046001600160a01b03166001600160a01b031663ec44acf26040518163ffffffff1660e01b8152600401602060405180830381865afa158015611579573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159d9190611f4f565b6001600160a01b0316336001600160a01b0316146115cd5760405162461bcd60e51b81526004016106ff90612005565b6000600b816115df6020860186611c45565b6001600160a01b031681526020808201929092526040908101600090812086840135825283528181208683013582529092528120906116246080860160608701611eb3565b600381111561163557611635611e09565b600381111561164657611646611e09565b81526020810191909152604001600090812080546001600160a01b0319166001600160a01b0385161781559150611681906001830190611b75565b4360028201556040517f1474f6b5ca19838c98ce7eac6aca02feef9e454135a7390c9c9991bf314d04d6906108f8908590859061202b565b600060029054906101000a90046001600160a01b03166001600160a01b03166312d43a516040518163ffffffff1660e01b8152600401602060405180830381865afa15801561170c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117309190611f4f565b6001600160a01b0316336001600160a01b0316146117605760405162461bcd60e51b81526004016106ff90612051565b600581101561179d5760405162461bcd60e51b81526020600482015260096024820152682122a627abafa6a4a760b91b60448201526064016106ff565b600281905560408051818152600e918101919091526d1cd85b59509b1bd8dad31a5b5a5d60921b6060820152602081018290527f8cf3e35f6221b16e1670a3413180c9484bf5aa71787905909fa82a6a2662e9ab90608001611234565b600060029054906101000a90046001600160a01b03166001600160a01b03166312d43a516040518163ffffffff1660e01b8152600401602060405180830381865afa15801561184d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118719190611f4f565b6001600160a01b0316336001600160a01b0316146118a15760405162461bcd60e51b81526004016106ff90612051565b806118ac8385611f23565b6118b69190611f23565b6064146118f35760405162461bcd60e51b815260206004820152600b60248201526a053554d5f4e4f545f3130360ac1b60448201526064016106ff565b60038390556004829055600581905560408051848152602081018490529081018290527fb00a98da0c7a71c80f4eb7c6fc5182810a44793a250cbecc3064afdba5c8660b906060016108f8565b600060029054906101000a90046001600160a01b03166001600160a01b031663ec44acf26040518163ffffffff1660e01b8152600401602060405180830381865afa158015611993573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b79190611f4f565b6001600160a01b0316336001600160a01b0316146119e75760405162461bcd60e51b81526004016106ff90612005565b6001600160a01b0384166000908152600c6020908152604080832086845282528083208584529091529020805482919060ff19166001836002811115611a2f57611a2f611e09565b021790555050505050565b600080600b81611a4d6020860186611c45565b6001600160a01b03168152602080820192909252604090810160009081208684013582528352818120868301358252909252812090611a926080860160608701611eb3565b6003811115611aa357611aa3611e09565b6003811115611ab457611ab4611e09565b81526020808201929092526040908101600020815160608101835281546001600160a01b031681526001820180548451818702810187019095528085529194929385840193909290830182828015611b3557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611b17575b50505050508152602001600282015481525050905060008160400151118015611b6e57506001546040820151611b6b9043612081565b10155b9392505050565b5080546000825590600052602060002090810190611b939190611b96565b50565b5b80821115611bab5760008155600101611b97565b5090565b600060808284031215611bc157600080fd5b50919050565b600060808284031215611bd957600080fd5b611b6e8383611baf565b6020808252825182820181905260009190848201906040850190845b81811015611c245783516001600160a01b031683529284019291840191600101611bff565b50909695505050505050565b6001600160a01b0381168114611b9357600080fd5b600060208284031215611c5757600080fd5b8135611b6e81611c30565b60008060408385031215611c7557600080fd5b50508035926020909101359150565b60008060a08385031215611c9757600080fd5b611ca18484611baf565b946080939093013593505050565b60008060008060008060c08789031215611cc857600080fd5b8635611cd381611c30565b9860208801359850604088013597606081013597506080810135965060a00135945092505050565b60008060a08385031215611d0e57600080fd5b611d188484611baf565b91506080830135611d2881611c30565b809150509250929050565b600060208284031215611d4557600080fd5b5035919050565b60008060408385031215611d5f57600080fd5b8235611d6a81611c30565b946020939093013593505050565b803560048110611d8757600080fd5b919050565b60008060008060808587031215611da257600080fd5b8435611dad81611c30565b93506020850135925060408501359150611dc960608601611d78565b905092959194509250565b600080600060608486031215611de957600080fd5b8335611df481611c30565b95602085013595506040909401359392505050565b634e487b7160e01b600052602160045260246000fd5b6020810160038310611e3357611e33611e09565b91905290565b600080600060608486031215611e4e57600080fd5b505081359360208301359350604090920135919050565b60008060008060808587031215611e7b57600080fd5b8435611e8681611c30565b93506020850135925060408501359150606085013560038110611ea857600080fd5b939692955090935050565b600060208284031215611ec557600080fd5b611b6e82611d78565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611efb57611efb611ece565b92915050565b600082611f1e57634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115611efb57611efb611ece565b600060018201611f4857611f48611ece565b5060010190565b600060208284031215611f6157600080fd5b8151611b6e81611c30565b634e487b7160e01b600052603260045260246000fd5b8035611f8d81611c30565b6001600160a01b031682526020818101359083015260408082013590830152611fb860608201611d78565b60048110611fc857611fc8611e09565b806060840152505050565b60e08101611fe18287611f82565b6001600160a01b0394909416608082015260a081019290925260c090910152919050565b6020808252600c908201526b54524144494e475f4f4e4c5960a01b604082015260600190565b60a081016120398285611f82565b6001600160a01b039290921660809190910152919050565b602080825260089082015267474f565f4f4e4c5960c01b604082015260600190565b60808101611efb8284611f82565b81810381811115611efb57611efb611ece56fea2646970667358221220e126b5c28e65bfab13e83d585484df501b03067e686fdf7da81cd5dd88368e0c64736f6c63430008110033";
|
|
972
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
973
|
+
class GNSNftRewardsV6__factory extends ethers_1.ContractFactory {
|
|
974
|
+
constructor(...args) {
|
|
975
|
+
if (isSuperArgs(args)) {
|
|
976
|
+
super(...args);
|
|
977
|
+
}
|
|
978
|
+
else {
|
|
979
|
+
super(_abi, _bytecode, args[0]);
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
deploy(overrides) {
|
|
983
|
+
return super.deploy(overrides || {});
|
|
984
|
+
}
|
|
985
|
+
getDeployTransaction(overrides) {
|
|
986
|
+
return super.getDeployTransaction(overrides || {});
|
|
987
|
+
}
|
|
988
|
+
attach(address) {
|
|
989
|
+
return super.attach(address);
|
|
990
|
+
}
|
|
991
|
+
connect(signer) {
|
|
992
|
+
return super.connect(signer);
|
|
993
|
+
}
|
|
994
|
+
static createInterface() {
|
|
995
|
+
return new ethers_1.utils.Interface(_abi);
|
|
996
|
+
}
|
|
997
|
+
static connect(address, signerOrProvider) {
|
|
998
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
exports.GNSNftRewardsV6__factory = GNSNftRewardsV6__factory;
|
|
1002
|
+
GNSNftRewardsV6__factory.bytecode = _bytecode;
|
|
1003
|
+
GNSNftRewardsV6__factory.abi = _abi;
|