@gainsnetwork/sdk 0.1.29-rc3 → 0.2.0-rc3

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.
Files changed (135) hide show
  1. package/README.md +11 -11
  2. package/lib/constants.d.ts +252 -261
  3. package/lib/constants.js +269 -277
  4. package/lib/contracts/addresses.d.ts +3 -3
  5. package/lib/contracts/addresses.js +31 -31
  6. package/lib/contracts/addresses.json +53 -89
  7. package/lib/contracts/index.d.ts +8 -8
  8. package/lib/contracts/index.js +37 -40
  9. package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +5215 -1740
  10. package/lib/contracts/types/generated/GNSMultiCollatDiamond.js +2 -2
  11. package/lib/contracts/types/generated/GToken.d.ts +1946 -1946
  12. package/lib/contracts/types/generated/GToken.js +2 -2
  13. package/lib/contracts/types/generated/GTokenOpenPnlFeed.d.ts +557 -557
  14. package/lib/contracts/types/generated/GTokenOpenPnlFeed.js +2 -2
  15. package/lib/contracts/types/generated/common.d.ts +22 -22
  16. package/lib/contracts/types/generated/common.js +2 -2
  17. package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +291 -144
  18. package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +11360 -3094
  19. package/lib/contracts/types/generated/factories/GTokenOpenPnlFeed__factory.d.ts +59 -59
  20. package/lib/contracts/types/generated/factories/GTokenOpenPnlFeed__factory.js +765 -765
  21. package/lib/contracts/types/generated/factories/GToken__factory.d.ts +121 -121
  22. package/lib/contracts/types/generated/factories/GToken__factory.js +2944 -2944
  23. package/lib/contracts/types/generated/factories/index.d.ts +3 -10
  24. package/lib/contracts/types/generated/factories/index.js +12 -26
  25. package/lib/contracts/types/generated/index.d.ts +7 -21
  26. package/lib/contracts/types/generated/index.js +33 -47
  27. package/lib/contracts/types/index.d.ts +19 -27
  28. package/lib/contracts/types/index.js +10 -10
  29. package/lib/contracts/utils/borrowingFees.d.ts +8 -8
  30. package/lib/contracts/utils/borrowingFees.js +32 -28
  31. package/lib/contracts/utils/index.d.ts +3 -4
  32. package/lib/contracts/utils/index.js +19 -20
  33. package/lib/contracts/utils/openTrades.d.ts +9 -9
  34. package/lib/contracts/utils/openTrades.js +380 -188
  35. package/lib/contracts/utils/pairs.d.ts +7 -7
  36. package/lib/contracts/utils/pairs.js +339 -337
  37. package/lib/index.d.ts +7 -7
  38. package/lib/index.js +24 -24
  39. package/lib/markets/commodities.d.ts +1 -1
  40. package/lib/markets/commodities.js +31 -31
  41. package/lib/markets/crypto.d.ts +1 -1
  42. package/lib/markets/crypto.js +6 -6
  43. package/lib/markets/forex.d.ts +3 -3
  44. package/lib/markets/forex.js +45 -45
  45. package/lib/markets/index.d.ts +5 -5
  46. package/lib/markets/index.js +21 -21
  47. package/lib/markets/indices.d.ts +1 -1
  48. package/lib/markets/indices.js +6 -6
  49. package/lib/markets/stocks.d.ts +3 -3
  50. package/lib/markets/stocks.js +54 -54
  51. package/lib/trade/fees/borrowing/converter.d.ts +15 -13
  52. package/lib/trade/fees/borrowing/converter.js +35 -41
  53. package/lib/trade/fees/borrowing/index.d.ts +54 -55
  54. package/lib/trade/fees/borrowing/index.js +165 -171
  55. package/lib/trade/fees/borrowing/types.d.ts +30 -36
  56. package/lib/trade/fees/borrowing/types.js +2 -2
  57. package/lib/trade/fees/index.d.ts +4 -4
  58. package/lib/trade/fees/index.js +30 -30
  59. package/lib/trade/fees/tiers/index.d.ts +12 -12
  60. package/lib/trade/fees/tiers/index.js +51 -51
  61. package/lib/trade/fees/tiers/types.d.ts +8 -8
  62. package/lib/trade/fees/tiers/types.js +2 -2
  63. package/lib/trade/index.d.ts +7 -8
  64. package/lib/trade/index.js +23 -24
  65. package/lib/trade/liquidation.d.ts +3 -3
  66. package/lib/trade/liquidation.js +15 -16
  67. package/lib/trade/oiWindows.d.ts +3 -3
  68. package/lib/trade/oiWindows.js +20 -20
  69. package/lib/trade/pnl.d.ts +7 -7
  70. package/lib/trade/pnl.js +33 -33
  71. package/lib/trade/spread.d.ts +2 -2
  72. package/lib/trade/spread.js +22 -22
  73. package/lib/trade/types.d.ts +413 -429
  74. package/lib/trade/types.js +255 -249
  75. package/lib/utils/index.d.ts +1 -1
  76. package/lib/utils/index.js +17 -17
  77. package/lib/utils/packing.d.ts +2 -2
  78. package/lib/utils/packing.js +39 -39
  79. package/lib/vault/index.d.ts +8 -8
  80. package/lib/vault/index.js +10 -10
  81. package/package.json +105 -105
  82. package/lib/contracts/types/generated/GFarmTradingStorageV5.d.ts +0 -1911
  83. package/lib/contracts/types/generated/GFarmTradingStorageV5.js +0 -2
  84. package/lib/contracts/types/generated/GNSBorrowingFees.d.ts +0 -1067
  85. package/lib/contracts/types/generated/GNSBorrowingFees.js +0 -2
  86. package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.d.ts +0 -1058
  87. package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.js +0 -2
  88. package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +0 -533
  89. package/lib/contracts/types/generated/GNSNftRewardsV6.js +0 -2
  90. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +0 -613
  91. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +0 -2
  92. package/lib/contracts/types/generated/GNSPairInfosV6_1.d.ts +0 -911
  93. package/lib/contracts/types/generated/GNSPairInfosV6_1.js +0 -2
  94. package/lib/contracts/types/generated/GNSPairsStorageV6.d.ts +0 -660
  95. package/lib/contracts/types/generated/GNSPairsStorageV6.js +0 -2
  96. package/lib/contracts/types/generated/GNSTrading.d.ts +0 -758
  97. package/lib/contracts/types/generated/GNSTrading.js +0 -2
  98. package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +0 -875
  99. package/lib/contracts/types/generated/GNSTradingCallbacks.js +0 -2
  100. package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.d.ts +0 -821
  101. package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.js +0 -2
  102. package/lib/contracts/types/generated/GNSTradingStorage.d.ts +0 -1387
  103. package/lib/contracts/types/generated/GNSTradingStorage.js +0 -2
  104. package/lib/contracts/types/generated/GTokenV6_3_2.d.ts +0 -1838
  105. package/lib/contracts/types/generated/GTokenV6_3_2.js +0 -2
  106. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +0 -83
  107. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +0 -2691
  108. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.d.ts +0 -113
  109. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.js +0 -1742
  110. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +0 -124
  111. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +0 -1784
  112. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +0 -100
  113. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +0 -1116
  114. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +0 -100
  115. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +0 -1003
  116. package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.d.ts +0 -98
  117. package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.js +0 -1485
  118. package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.d.ts +0 -117
  119. package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.js +0 -1265
  120. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.d.ts +0 -82
  121. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.js +0 -1326
  122. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +0 -113
  123. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +0 -1428
  124. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +0 -96
  125. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +0 -2241
  126. package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +0 -95
  127. package/lib/contracts/types/generated/factories/GNSTrading__factory.js +0 -1071
  128. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.d.ts +0 -110
  129. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.js +0 -2682
  130. package/lib/contracts/utils/openLimitOrders.d.ts +0 -8
  131. package/lib/contracts/utils/openLimitOrders.js +0 -88
  132. package/lib/trade/fees.d.ts +0 -15
  133. package/lib/trade/fees.js +0 -45
  134. package/lib/trade/openLimitOrder.d.ts +0 -2
  135. package/lib/trade/openLimitOrder.js +0 -23
@@ -1,765 +1,765 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GTokenOpenPnlFeed__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
- inputs: [
11
- {
12
- internalType: "uint256",
13
- name: "_LINK_FEE_BALANCE_DIVIDER",
14
- type: "uint256",
15
- },
16
- {
17
- internalType: "address",
18
- name: "_linkToken",
19
- type: "address",
20
- },
21
- {
22
- internalType: "contract IGToken",
23
- name: "_gToken",
24
- type: "address",
25
- },
26
- {
27
- internalType: "address[]",
28
- name: "_oracles",
29
- type: "address[]",
30
- },
31
- {
32
- internalType: "bytes32",
33
- name: "_job",
34
- type: "bytes32",
35
- },
36
- {
37
- internalType: "uint256",
38
- name: "_minAnswers",
39
- type: "uint256",
40
- },
41
- ],
42
- stateMutability: "nonpayable",
43
- type: "constructor",
44
- },
45
- {
46
- anonymous: false,
47
- inputs: [
48
- {
49
- indexed: true,
50
- internalType: "bytes32",
51
- name: "id",
52
- type: "bytes32",
53
- },
54
- ],
55
- name: "ChainlinkCancelled",
56
- type: "event",
57
- },
58
- {
59
- anonymous: false,
60
- inputs: [
61
- {
62
- indexed: true,
63
- internalType: "bytes32",
64
- name: "id",
65
- type: "bytes32",
66
- },
67
- ],
68
- name: "ChainlinkFulfilled",
69
- type: "event",
70
- },
71
- {
72
- anonymous: false,
73
- inputs: [
74
- {
75
- indexed: true,
76
- internalType: "bytes32",
77
- name: "id",
78
- type: "bytes32",
79
- },
80
- ],
81
- name: "ChainlinkRequested",
82
- type: "event",
83
- },
84
- {
85
- anonymous: false,
86
- inputs: [
87
- {
88
- indexed: false,
89
- internalType: "bytes32",
90
- name: "newValue",
91
- type: "bytes32",
92
- },
93
- ],
94
- name: "JobUpdated",
95
- type: "event",
96
- },
97
- {
98
- anonymous: false,
99
- inputs: [
100
- {
101
- indexed: true,
102
- internalType: "uint256",
103
- name: "newEpoch",
104
- type: "uint256",
105
- },
106
- {
107
- indexed: true,
108
- internalType: "uint256",
109
- name: "requestId",
110
- type: "uint256",
111
- },
112
- {
113
- indexed: false,
114
- internalType: "int256[]",
115
- name: "epochMedianValues",
116
- type: "int256[]",
117
- },
118
- {
119
- indexed: false,
120
- internalType: "int256",
121
- name: "epochAverageValue",
122
- type: "int256",
123
- },
124
- {
125
- indexed: false,
126
- internalType: "uint256",
127
- name: "newEpochPositiveOpenPnl",
128
- type: "uint256",
129
- },
130
- ],
131
- name: "NewEpoch",
132
- type: "event",
133
- },
134
- {
135
- anonymous: false,
136
- inputs: [
137
- {
138
- indexed: true,
139
- internalType: "uint256",
140
- name: "newEpoch",
141
- type: "uint256",
142
- },
143
- ],
144
- name: "NewEpochForced",
145
- type: "event",
146
- },
147
- {
148
- anonymous: false,
149
- inputs: [
150
- {
151
- indexed: true,
152
- internalType: "uint256",
153
- name: "currEpoch",
154
- type: "uint256",
155
- },
156
- {
157
- indexed: true,
158
- internalType: "uint256",
159
- name: "requestId",
160
- type: "uint256",
161
- },
162
- {
163
- indexed: false,
164
- internalType: "bytes32",
165
- name: "job",
166
- type: "bytes32",
167
- },
168
- {
169
- indexed: false,
170
- internalType: "uint256",
171
- name: "oraclesCount",
172
- type: "uint256",
173
- },
174
- {
175
- indexed: false,
176
- internalType: "uint256",
177
- name: "linkFeePerNode",
178
- type: "uint256",
179
- },
180
- ],
181
- name: "NextEpochValueRequested",
182
- type: "event",
183
- },
184
- {
185
- anonymous: false,
186
- inputs: [
187
- {
188
- indexed: true,
189
- internalType: "uint256",
190
- name: "currEpoch",
191
- type: "uint256",
192
- },
193
- {
194
- indexed: false,
195
- internalType: "uint256",
196
- name: "requestsResetCount",
197
- type: "uint256",
198
- },
199
- ],
200
- name: "NextEpochValuesReset",
201
- type: "event",
202
- },
203
- {
204
- anonymous: false,
205
- inputs: [
206
- {
207
- indexed: false,
208
- internalType: "string",
209
- name: "name",
210
- type: "string",
211
- },
212
- {
213
- indexed: false,
214
- internalType: "uint256",
215
- name: "newValue",
216
- type: "uint256",
217
- },
218
- ],
219
- name: "NumberParamUpdated",
220
- type: "event",
221
- },
222
- {
223
- anonymous: false,
224
- inputs: [
225
- {
226
- indexed: false,
227
- internalType: "uint256",
228
- name: "index",
229
- type: "uint256",
230
- },
231
- {
232
- indexed: false,
233
- internalType: "address",
234
- name: "newValue",
235
- type: "address",
236
- },
237
- ],
238
- name: "OracleUpdated",
239
- type: "event",
240
- },
241
- {
242
- anonymous: false,
243
- inputs: [
244
- {
245
- indexed: false,
246
- internalType: "address[]",
247
- name: "newValues",
248
- type: "address[]",
249
- },
250
- ],
251
- name: "OraclesUpdated",
252
- type: "event",
253
- },
254
- {
255
- anonymous: false,
256
- inputs: [
257
- {
258
- indexed: true,
259
- internalType: "uint256",
260
- name: "currEpoch",
261
- type: "uint256",
262
- },
263
- {
264
- indexed: true,
265
- internalType: "uint256",
266
- name: "requestId",
267
- type: "uint256",
268
- },
269
- {
270
- indexed: false,
271
- internalType: "int256[]",
272
- name: "requestValues",
273
- type: "int256[]",
274
- },
275
- {
276
- indexed: false,
277
- internalType: "int256",
278
- name: "medianValue",
279
- type: "int256",
280
- },
281
- ],
282
- name: "RequestMedianValueSet",
283
- type: "event",
284
- },
285
- {
286
- anonymous: false,
287
- inputs: [
288
- {
289
- indexed: false,
290
- internalType: "bool",
291
- name: "isLate",
292
- type: "bool",
293
- },
294
- {
295
- indexed: true,
296
- internalType: "uint256",
297
- name: "currEpoch",
298
- type: "uint256",
299
- },
300
- {
301
- indexed: true,
302
- internalType: "uint256",
303
- name: "requestId",
304
- type: "uint256",
305
- },
306
- {
307
- indexed: false,
308
- internalType: "bytes32",
309
- name: "oracleRequestId",
310
- type: "bytes32",
311
- },
312
- {
313
- indexed: true,
314
- internalType: "address",
315
- name: "oracle",
316
- type: "address",
317
- },
318
- {
319
- indexed: false,
320
- internalType: "int256",
321
- name: "requestValue",
322
- type: "int256",
323
- },
324
- {
325
- indexed: false,
326
- internalType: "uint256",
327
- name: "linkFee",
328
- type: "uint256",
329
- },
330
- ],
331
- name: "RequestValueReceived",
332
- type: "event",
333
- },
334
- {
335
- inputs: [],
336
- name: "LINK_FEE_BALANCE_DIVIDER",
337
- outputs: [
338
- {
339
- internalType: "uint256",
340
- name: "",
341
- type: "uint256",
342
- },
343
- ],
344
- stateMutability: "view",
345
- type: "function",
346
- },
347
- {
348
- inputs: [],
349
- name: "gToken",
350
- outputs: [
351
- {
352
- internalType: "contract IGToken",
353
- name: "",
354
- type: "address",
355
- },
356
- ],
357
- stateMutability: "view",
358
- type: "function",
359
- },
360
- {
361
- inputs: [],
362
- name: "job",
363
- outputs: [
364
- {
365
- internalType: "bytes32",
366
- name: "",
367
- type: "bytes32",
368
- },
369
- ],
370
- stateMutability: "view",
371
- type: "function",
372
- },
373
- {
374
- inputs: [],
375
- name: "lastRequestId",
376
- outputs: [
377
- {
378
- internalType: "uint256",
379
- name: "",
380
- type: "uint256",
381
- },
382
- ],
383
- stateMutability: "view",
384
- type: "function",
385
- },
386
- {
387
- inputs: [],
388
- name: "minAnswers",
389
- outputs: [
390
- {
391
- internalType: "uint256",
392
- name: "",
393
- type: "uint256",
394
- },
395
- ],
396
- stateMutability: "view",
397
- type: "function",
398
- },
399
- {
400
- inputs: [
401
- {
402
- internalType: "uint256",
403
- name: "",
404
- type: "uint256",
405
- },
406
- ],
407
- name: "nextEpochValues",
408
- outputs: [
409
- {
410
- internalType: "int256",
411
- name: "",
412
- type: "int256",
413
- },
414
- ],
415
- stateMutability: "view",
416
- type: "function",
417
- },
418
- {
419
- inputs: [],
420
- name: "nextEpochValuesLastRequest",
421
- outputs: [
422
- {
423
- internalType: "uint256",
424
- name: "",
425
- type: "uint256",
426
- },
427
- ],
428
- stateMutability: "view",
429
- type: "function",
430
- },
431
- {
432
- inputs: [],
433
- name: "nextEpochValuesRequestCount",
434
- outputs: [
435
- {
436
- internalType: "uint256",
437
- name: "",
438
- type: "uint256",
439
- },
440
- ],
441
- stateMutability: "view",
442
- type: "function",
443
- },
444
- {
445
- inputs: [
446
- {
447
- internalType: "uint256",
448
- name: "",
449
- type: "uint256",
450
- },
451
- ],
452
- name: "oracles",
453
- outputs: [
454
- {
455
- internalType: "address",
456
- name: "",
457
- type: "address",
458
- },
459
- ],
460
- stateMutability: "view",
461
- type: "function",
462
- },
463
- {
464
- inputs: [
465
- {
466
- internalType: "uint256",
467
- name: "",
468
- type: "uint256",
469
- },
470
- {
471
- internalType: "uint256",
472
- name: "",
473
- type: "uint256",
474
- },
475
- ],
476
- name: "requestAnswers",
477
- outputs: [
478
- {
479
- internalType: "int256",
480
- name: "",
481
- type: "int256",
482
- },
483
- ],
484
- stateMutability: "view",
485
- type: "function",
486
- },
487
- {
488
- inputs: [
489
- {
490
- internalType: "bytes32",
491
- name: "",
492
- type: "bytes32",
493
- },
494
- ],
495
- name: "requestIds",
496
- outputs: [
497
- {
498
- internalType: "uint256",
499
- name: "",
500
- type: "uint256",
501
- },
502
- ],
503
- stateMutability: "view",
504
- type: "function",
505
- },
506
- {
507
- inputs: [
508
- {
509
- internalType: "uint256",
510
- name: "",
511
- type: "uint256",
512
- },
513
- ],
514
- name: "requests",
515
- outputs: [
516
- {
517
- internalType: "bool",
518
- name: "initiated",
519
- type: "bool",
520
- },
521
- {
522
- internalType: "bool",
523
- name: "active",
524
- type: "bool",
525
- },
526
- {
527
- internalType: "uint256",
528
- name: "linkFeePerNode",
529
- type: "uint256",
530
- },
531
- ],
532
- stateMutability: "view",
533
- type: "function",
534
- },
535
- {
536
- inputs: [],
537
- name: "requestsCount",
538
- outputs: [
539
- {
540
- internalType: "uint256",
541
- name: "",
542
- type: "uint256",
543
- },
544
- ],
545
- stateMutability: "view",
546
- type: "function",
547
- },
548
- {
549
- inputs: [],
550
- name: "requestsEvery",
551
- outputs: [
552
- {
553
- internalType: "uint256",
554
- name: "",
555
- type: "uint256",
556
- },
557
- ],
558
- stateMutability: "view",
559
- type: "function",
560
- },
561
- {
562
- inputs: [],
563
- name: "requestsStart",
564
- outputs: [
565
- {
566
- internalType: "uint256",
567
- name: "",
568
- type: "uint256",
569
- },
570
- ],
571
- stateMutability: "view",
572
- type: "function",
573
- },
574
- {
575
- inputs: [
576
- {
577
- internalType: "uint256",
578
- name: "newValue",
579
- type: "uint256",
580
- },
581
- ],
582
- name: "updateRequestsStart",
583
- outputs: [],
584
- stateMutability: "nonpayable",
585
- type: "function",
586
- },
587
- {
588
- inputs: [
589
- {
590
- internalType: "uint256",
591
- name: "newValue",
592
- type: "uint256",
593
- },
594
- ],
595
- name: "updateRequestsEvery",
596
- outputs: [],
597
- stateMutability: "nonpayable",
598
- type: "function",
599
- },
600
- {
601
- inputs: [
602
- {
603
- internalType: "uint256",
604
- name: "newValue",
605
- type: "uint256",
606
- },
607
- ],
608
- name: "updateRequestsCount",
609
- outputs: [],
610
- stateMutability: "nonpayable",
611
- type: "function",
612
- },
613
- {
614
- inputs: [
615
- {
616
- internalType: "uint256",
617
- name: "newRequestsStart",
618
- type: "uint256",
619
- },
620
- {
621
- internalType: "uint256",
622
- name: "newRequestsEvery",
623
- type: "uint256",
624
- },
625
- {
626
- internalType: "uint256",
627
- name: "newRequestsCount",
628
- type: "uint256",
629
- },
630
- ],
631
- name: "updateRequestsInfoBatch",
632
- outputs: [],
633
- stateMutability: "nonpayable",
634
- type: "function",
635
- },
636
- {
637
- inputs: [
638
- {
639
- internalType: "uint256",
640
- name: "newValue",
641
- type: "uint256",
642
- },
643
- ],
644
- name: "updateMinAnswers",
645
- outputs: [],
646
- stateMutability: "nonpayable",
647
- type: "function",
648
- },
649
- {
650
- inputs: [
651
- {
652
- internalType: "uint256",
653
- name: "_index",
654
- type: "uint256",
655
- },
656
- {
657
- internalType: "address",
658
- name: "newValue",
659
- type: "address",
660
- },
661
- ],
662
- name: "updateOracle",
663
- outputs: [],
664
- stateMutability: "nonpayable",
665
- type: "function",
666
- },
667
- {
668
- inputs: [
669
- {
670
- internalType: "address[]",
671
- name: "newValues",
672
- type: "address[]",
673
- },
674
- ],
675
- name: "updateOracles",
676
- outputs: [],
677
- stateMutability: "nonpayable",
678
- type: "function",
679
- },
680
- {
681
- inputs: [
682
- {
683
- internalType: "bytes32",
684
- name: "newValue",
685
- type: "bytes32",
686
- },
687
- ],
688
- name: "updateJob",
689
- outputs: [],
690
- stateMutability: "nonpayable",
691
- type: "function",
692
- },
693
- {
694
- inputs: [],
695
- name: "resetNextEpochValueRequests",
696
- outputs: [],
697
- stateMutability: "nonpayable",
698
- type: "function",
699
- },
700
- {
701
- inputs: [],
702
- name: "forceNewEpoch",
703
- outputs: [],
704
- stateMutability: "nonpayable",
705
- type: "function",
706
- },
707
- {
708
- inputs: [],
709
- name: "newOpenPnlRequestOrEpoch",
710
- outputs: [],
711
- stateMutability: "nonpayable",
712
- type: "function",
713
- },
714
- {
715
- inputs: [
716
- {
717
- internalType: "bytes32",
718
- name: "requestId",
719
- type: "bytes32",
720
- },
721
- {
722
- internalType: "int256",
723
- name: "value",
724
- type: "int256",
725
- },
726
- ],
727
- name: "fulfill",
728
- outputs: [],
729
- stateMutability: "nonpayable",
730
- type: "function",
731
- },
732
- ];
733
- const _bytecode = "0x60c060405260016004556202a30060065561546060075560046008553480156200002857600080fd5b5060405162002b0b38038062002b0b8339810160408190526200004b916200022f565b6000861180156200006457506001600160a01b03851615155b80156200007957506001600160a01b03841615155b801562000087575060008351115b80156200009357508115155b8015620000a1575060038110155b8015620000ba5750620000b660028262000360565b6001145b8015620000d6575060028351620000d2919062000377565b8111155b620001165760405162461bcd60e51b815260206004820152600c60248201526b57524f4e475f504152414d5360a01b604482015260640160405180910390fd5b6080869052600280546001600160a01b0319166001600160a01b0387161790556001600160a01b03841660a0528251620001589060099060208601906200016d565b50600a91909155600b55506200038e92505050565b828054828255906000526020600020908101928215620001c5579160200282015b82811115620001c557825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200018e565b50620001d3929150620001d7565b5090565b5b80821115620001d35760008155600101620001d8565b6001600160a01b03811681146200020457600080fd5b50565b80516200021481620001ee565b919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060008060c087890312156200024957600080fd5b865195506020808801516200025e81620001ee565b60408901519096506200027181620001ee565b60608901519095506001600160401b03808211156200028f57600080fd5b818a0191508a601f830112620002a457600080fd5b815181811115620002b957620002b962000219565b8060051b604051601f19603f83011681018181108582111715620002e157620002e162000219565b60405291825284820192508381018501918d8311156200030057600080fd5b938501935b828510156200032957620003198562000207565b8452938501939285019262000305565b8098505050505050506080870151915060a087015190509295509295509295565b634e487b7160e01b600052601260045260246000fd5b6000826200037257620003726200034a565b500690565b6000826200038957620003896200034a565b500490565b60805160a0516126d96200043260003960008181610234015281816103e001528181610531015281816106990152818161081c015281816108d401528181610a1101528181610b5601528181610ddc01528181610ff9015281816110e4015281816111e2015281816113ac015281816114ad015281816118f0015281816119d001528181611ac70152611b7101526000818161038f015261173a01526126d96000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c8063a90d67a1116100f9578063cb9945a111610097578063e704fc5111610071578063e704fc51146103b1578063f5ed447c146103b9578063fbfa4b7f146103cc578063fc2a88c3146103d557600080fd5b8063cb9945a114610364578063ce43963214610377578063d5a28da31461038a57600080fd5b8063bda71d04116100d3578063bda71d041461032d578063bea1675814610340578063bef35b7914610349578063c591ff4c1461035157600080fd5b8063a90d67a114610308578063b006812c14610311578063b8feee641461032457600080fd5b806376ffb9bd1161016657806392c3c58b1161014057806392c3c58b146102c75780639496f9e3146102cf5780639dbc2686146102e2578063a5c2aafd146102f557600080fd5b806376ffb9bd1461022f57806381d12c58146102565780638645f7a8146102a757600080fd5b80632eb64ec4146101ae57806334fa54a1146101ca578063473d2f21146101df5780635614a211146101e857806358e7ec3c146101fb5780635b69a7d814610204575b600080fd5b6101b760065481565b6040519081526020015b60405180910390f35b6101dd6101d836600461216b565b6103de565b005b6101b7600e5481565b6101dd6101f636600461216b565b61052f565b6101b7600a5481565b61021761021236600461216b565b61066d565b6040516001600160a01b0390911681526020016101c1565b6102177f000000000000000000000000000000000000000000000000000000000000000081565b61028a61026436600461216b565b6011602052600090815260409020805460019091015460ff808316926101009004169083565b6040805193151584529115156020840152908201526060016101c1565b6101b76102b536600461216b565b60106020526000908152604090205481565b6101dd610697565b6101dd6102dd36600461216b565b6108d2565b6101dd6102f03660046121bf565b610a0f565b6101dd61030336600461216b565b610b54565b6101b760075481565b6101b761031f36600461216b565b610c95565b6101b7600d5481565b6101dd61033b366004612284565b610cb6565b6101b7600b5481565b6101dd610fe8565b6101dd61035f3660046122a6565b6110e2565b6101b7610372366004612284565b6111af565b6101dd6103853660046122d2565b6111e0565b6101b77f000000000000000000000000000000000000000000000000000000000000000081565b6101dd61138d565b6101dd6103c736600461216b565b6114ab565b6101b760085481565b6101b7600f5481565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561043c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104609190612302565b6001600160a01b0316336001600160a01b0316146104995760405162461bcd60e51b81526004016104909061231f565b60405180910390fd5b610e108110156104bb5760405162461bcd60e51b815260040161049090612343565b620151808111156104de5760405162461bcd60e51b815260040161049090612366565b600781905560408051818152600d918101919091526c7265717565737473457665727960981b606082015260208101829052600080516020612684833981519152906080015b60405180910390a150565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561058d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b19190612302565b6001600160a01b0316336001600160a01b0316146105e15760405162461bcd60e51b81526004016104909061231f565b60038110156106025760405162461bcd60e51b815260040161049090612343565b600a8111156106235760405162461bcd60e51b815260040161049090612366565b600881905560408051818152600d918101919091526c1c995c5d595cdd1cd0dbdd5b9d609a1b60608201526020810182905260008051602061268483398151915290608001610524565b6009818154811061067d57600080fd5b6000918252602090912001546001600160a01b0316905081565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107199190612302565b6001600160a01b0316336001600160a01b0316146107665760405162461bcd60e51b815260206004820152600a60248201526927a7262cafa0a226a4a760b11b6044820152606401610490565b600d54806107ac5760405162461bcd60e51b81526020600482015260136024820152721393d7d49154555154d517d513d7d49154d155606a1b6044820152606401610490565b6107b8600c6000612098565b6000600d819055600e8190555b818110156108195760006011600083600f546107e1919061239f565b8152602081019190915260400160002080549115156101000261ff001990921691909117905580610811816123b2565b9150506107c5565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663766718086040518163ffffffff1660e01b8152600401602060405180830381865afa158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c91906123cb565b6040518281527f605f3f824643ee56deaf2717c1581f7ad3df423365aede8e2d771b6b3a30fd2b9060200160405180910390a250565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663481c6a756040518163ffffffff1660e01b8152600401602060405180830381865afa158015610930573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109549190612302565b6001600160a01b0316336001600160a01b0316146109a35760405162461bcd60e51b815260206004820152600c60248201526b27a7262cafa6a0a720a3a2a960a11b6044820152606401610490565b806109da5760405162461bcd60e51b8152602060048201526007602482015266056414c55455f360cc1b6044820152606401610490565b600a8190556040518181527f9f3fa8c139076940687248e93aed7dda099cf9a90cc38c428cf3d5b6b642fdd490602001610524565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a919190612302565b6001600160a01b0316336001600160a01b031614610ac15760405162461bcd60e51b81526004016104909061231f565b600b54610acf9060026123e4565b81511015610b115760405162461bcd60e51b815260206004820152600f60248201526e105494905657d513d3d7d4d3505313608a1b6044820152606401610490565b8051610b249060099060208401906120b6565b507f4b806663ee384a0ada322e70cdf3fd2046424181359f2470a97a6f0cec328e9c8160405161052491906123fb565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd69190612302565b6001600160a01b0316336001600160a01b031614610c065760405162461bcd60e51b81526004016104909061231f565b610e10811015610c285760405162461bcd60e51b815260040161049090612343565b62093a80811115610c4b5760405162461bcd60e51b815260040161049090612366565b600681905560408051818152600d918101919091526c1c995c5d595cdd1cd4dd185c9d609a1b60608201526020810182905260008051602061268483398151915290608001610524565b600c8181548110610ca557600080fd5b600091825260209091200154905081565b60008281526005602052604090205482906001600160a01b03163314610d2f5760405162461bcd60e51b815260206004820152602860248201527f536f75726365206d75737420626520746865206f7261636c65206f6620746865604482015267081c995c5d595cdd60c21b6064820152608401610490565b60008181526005602052604080822080546001600160a01b03191690555182917f7cc135e0cebb02c3480ae5d74d377283180a2601f8f644edf7987b009316c63a91a26000838152601060209081526040808320805490849055808452601183528184208251606081018452815460ff808216151583526101009091041615158186015260019190910154818401528251630ecce30160e31b815292519194909390926001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016926376671808926004808401939192918290030181865afa158015610e25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4991906123cb565b6020808401516040808601518151921583529282018a9052810188905260608101919091529091503390849083907f5e18490ff1cb10067b5d5b0aec04678191bb80c2d229a2578526c389270027bf9060800160405180910390a48160200151610eb557505050505050565b6000838152601260209081526040822080546001810182558184529190922001869055600b54815403610fde576000610f3c82805480602002602001604051908101604052809291908181526020018280548015610f3257602002820191906000526020600020905b815481526020019060010190808311610f1e575b5050505050611655565b600c80546001810182556000919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c701819055604051909150859084907f2cc31a5acf549ee44228d82c08e88b92b9d332ad5193a2290a79345e113c0b4c90610faa9086908690612488565b60405180910390a36000858152601160209081526040808320805461ff001916905560129091528120610fdc91612098565b505b505050505b505050565b600e541580801561108657506006547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166361a8c8c46040518163ffffffff1660e01b8152600401602060405180830381865afa158015611055573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107991906123cb565b611083904261239f565b10155b1561109657611093611719565b50565b801580156110b25750600754600e546110af904261239f565b10155b1561109357600854600d5410156110cb57611093611719565b600854600c5410611093576110de6119bb565b5050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611140573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111649190612302565b6001600160a01b0316336001600160a01b0316146111945760405162461bcd60e51b81526004016104909061231f565b61119d83610b54565b6111a6826103de565b610fe38161052f565b601260205281600052604060002081815481106111cb57600080fd5b90600052602060002001600091509150505481565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561123e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112629190612302565b6001600160a01b0316336001600160a01b0316146112925760405162461bcd60e51b81526004016104909061231f565b60095482106112d35760405162461bcd60e51b815260206004820152600d60248201526c494e4445585f544f4f5f42494760981b6044820152606401610490565b6001600160a01b0381166113135760405162461bcd60e51b8152602060048201526007602482015266056414c55455f360cc1b6044820152606401610490565b8060098381548110611327576113276124aa565b60009182526020918290200180546001600160a01b0319166001600160a01b0393841617905560408051858152928416918301919091527f8323208263554cf72b3658bcdbd0f96f4ccf2c9c919fa30246aaee34537b5509910160405180910390a15050565b60085460075461139d91906123e4565b6006546113aa91906124c0565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166361a8c8c46040518163ffffffff1660e01b8152600401602060405180830381865afa158015611408573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142c91906123cb565b611436904261239f565b10156114705760405162461bcd60e51b8152602060048201526009602482015268544f4f5f4541524c5960b81b6044820152606401610490565b600061147a6119bb565b60405190915081907f446b8726654d216fe9781583f0f34cc8ac84d240bb3ad5293c10e2ff831f1eb290600090a250565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663481c6a756040518163ffffffff1660e01b8152600401602060405180830381865afa158015611509573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152d9190612302565b6001600160a01b0316336001600160a01b03161461157c5760405162461bcd60e51b815260206004820152600c60248201526b27a7262cafa6a0a720a3a2a960a11b6044820152606401610490565b600381101561159d5760405162461bcd60e51b815260040161049090612343565b6115a86002826124e9565b6001146115e05760405162461bcd60e51b81526004016104909060208082526004908201526322ab22a760e11b604082015260600190565b6009546115ef906002906124fd565b81111561160e5760405162461bcd60e51b815260040161049090612366565b600b81905560408051818152600a91810191909152696d696e416e737765727360b01b60608201526020810182905260008051602061268483398151915290608001610524565b60006116648260008451611c45565b6002825161167291906124e9565b156116a357816002835161168691906124fd565b81518110611696576116966124aa565b6020026020010151611713565b600282600284516116b491906124fd565b815181106116c4576116c46124aa565b6020026020010151836001600286516116dd91906124fd565b6116e7919061239f565b815181106116f7576116f76124aa565b60200260200101516117099190612511565b6117139190612539565b92915050565b600061172f600a543063bda71d0460e01b611d08565b6009549091506000907f000000000000000000000000000000000000000000000000000000000000000061176b6002546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156117b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d591906123cb565b6117df91906124fd565b6117e991906124fd565b905060405180606001604052806001151581526020016001151581526020018281525060116000600f6000815461181f906123b2565b9182905550815260208082019290925260409081016000908120845181549486015161ffff1990951690151561ff0019161761010094151594909402939093178355920151600190910155600d805491611878836123b2565b909155505042600e5560005b6009548110156118ea57600f54601060006118c7600985815481106118ab576118ab6124aa565b6000918252602090912001546001600160a01b03168787611d2d565b8152602081019190915260400160002055806118e2816123b2565b915050611884565b50600f547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663766718086040518163ffffffff1660e01b8152600401602060405180830381865afa15801561194c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197091906123cb565b600a5460095460408051928352602083019190915281018490527fb5f2943c67db1794f39a3b46b95086765f48c7e05d12851dc6607bcdb0bcc7a39060600160405180910390a35050565b600080600d819055506000600e8190555060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663faf33f296040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5091906123cb565b600854600c549192506000911015611a685781611ac1565b611ac1600c805480602002602001604051908101604052809291908181526020018280548015611ab757602002820191906000526020600020905b815481526020019060010190808311611aa3575b5050505050611dc0565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637361a5448460008513611b04576000611b06565b845b6040516001600160e01b031960e085901b168152600481019290925260248201526044016020604051808303816000875af1158015611b49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b6d91906123cb565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663766718086040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf191906123cb565b9350600f54847f263c5efc95bb2e2134e3fc52ae914fbd38e2381f37d95ae011a56f996578bf17600c8585604051611c2b93929190612567565b60405180910390a3611c3f600c6000612098565b50505090565b808210611c5157505050565b60008290506000848281518110611c6a57611c6a6124aa565b602002602001015190506000846001611c8391906124c0565b90505b83811015611cd55781868281518110611ca157611ca16124aa565b60200260200101511215611cc557611cc58682611cbd866123b2565b955085611e1c565b611cce816123b2565b9050611c86565b50611ce1858584611e1c565b611cec858584611c45565b611d0185611cfb8460016124c0565b85611c45565b5050505050565b611d1061211b565b611d1861211b565b611d2481868686611e8f565b95945050505050565b600454600090611d3e8160016124c0565b600455835160408086015160808701515191516000936320214ca360e11b93611d769386938493923092918a916001916024016125d2565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050611db686838684611ed5565b9695505050505050565b60008060005b8351811015611e0857838181518110611de157611de16124aa565b602002602001015182611df49190612511565b915080611e00816123b2565b915050611dc6565b508251611e159082612539565b9392505050565b828181518110611e2e57611e2e6124aa565b6020026020010151838381518110611e4857611e486124aa565b6020026020010151848481518110611e6257611e626124aa565b60200260200101858481518110611e7b57611e7b6124aa565b602090810291909101019190915252505050565b611e9761211b565b611ea78560800151610100612033565b50508284526001600160a01b03821660208501526001600160e01b031981166040850152835b949350505050565b6040516bffffffffffffffffffffffff193060601b1660208201526034810184905260009060540160408051808303601f1901815282825280516020918201206000818152600590925291812080546001600160a01b0319166001600160a01b038a1617905590925082917fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af99190a2600254604051630200057560e51b81526001600160a01b0390911690634000aea090611f989088908790879060040161263a565b6020604051808303816000875af1158015611fb7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fdb9190612661565b611ecd5760405162461bcd60e51b815260206004820152602360248201527f756e61626c6520746f207472616e73666572416e6443616c6c20746f206f7261604482015262636c6560e81b6064820152608401610490565b6040805180820190915260608152600060208201526120536020836124e9565b1561207b576120636020836124e9565b61206e90602061239f565b61207890836124c0565b91505b506020828101829052604080518085526000815290920101905290565b50805460008255906000526020600020908101906110939190612156565b82805482825590600052602060002090810192821561210b579160200282015b8281111561210b57825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906120d6565b50612117929150612156565b5090565b6040805160a0810182526000808252602080830182905282840182905260608084018390528451808601909552845283015290608082015290565b5b808211156121175760008155600101612157565b60006020828403121561217d57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461109357600080fd5b80356121ba8161219a565b919050565b600060208083850312156121d257600080fd5b823567ffffffffffffffff808211156121ea57600080fd5b818501915085601f8301126121fe57600080fd5b81358181111561221057612210612184565b8060051b604051601f19603f8301168101818110858211171561223557612235612184565b60405291825284820192508381018501918883111561225357600080fd5b938501935b8285101561227857612269856121af565b84529385019392850192612258565b98975050505050505050565b6000806040838503121561229757600080fd5b50508035926020909101359150565b6000806000606084860312156122bb57600080fd5b505081359360208301359350604090920135919050565b600080604083850312156122e557600080fd5b8235915060208301356122f78161219a565b809150509250929050565b60006020828403121561231457600080fd5b8151611e158161219a565b6020808252600a908201526927a7262cafa7aba722a960b11b604082015260600190565b6020808252600990820152682122a627abafa6a4a760b91b604082015260600190565b602080825260099082015268082849eac8abe9a82b60bb1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561171357611713612389565b6000600182016123c4576123c4612389565b5060010190565b6000602082840312156123dd57600080fd5b5051919050565b808202811582820484141761171357611713612389565b6020808252825182820181905260009190848201906040850190845b8181101561243c5783516001600160a01b031683529284019291840191600101612417565b50909695505050505050565b6000815480845260208085019450836000528060002060005b8381101561247d57815487529582019560019182019101612461565b509495945050505050565b60408152600061249b6040830185612448565b90508260208301529392505050565b634e487b7160e01b600052603260045260246000fd5b8082018082111561171357611713612389565b634e487b7160e01b600052601260045260246000fd5b6000826124f8576124f86124d3565b500690565b60008261250c5761250c6124d3565b500490565b808201828112600083128015821682158216171561253157612531612389565b505092915050565b600082612548576125486124d3565b600160ff1b82146000198414161561256257612562612389565b500590565b60608152600061257a6060830186612448565b60208301949094525060400152919050565b6000815180845260005b818110156125b257602081850181015186830182015201612596565b506000602082860101526020601f19601f83011685010191505092915050565b6001600160a01b0389811682526020820189905260408201889052861660608201526001600160e01b03198516608082015260a0810184905260c0810183905261010060e0820181905260009061262b8382018561258c565b9b9a5050505050505050505050565b60018060a01b0384168152826020820152606060408201526000611d24606083018461258c565b60006020828403121561267357600080fd5b81518015158114611e1557600080fdfe127735ae9d047cae55da37db2c8ee184c735aacd68cef068d4e70be6a41661d9a2646970667358221220508c7a2761f8a62f1246632caffe0279d3a266a31b7e23b1b163d2cbf3e7748b64736f6c63430008110033";
734
- const isSuperArgs = (xs) => xs.length > 1;
735
- class GTokenOpenPnlFeed__factory extends ethers_1.ContractFactory {
736
- constructor(...args) {
737
- if (isSuperArgs(args)) {
738
- super(...args);
739
- }
740
- else {
741
- super(_abi, _bytecode, args[0]);
742
- }
743
- }
744
- deploy(_LINK_FEE_BALANCE_DIVIDER, _linkToken, _gToken, _oracles, _job, _minAnswers, overrides) {
745
- return super.deploy(_LINK_FEE_BALANCE_DIVIDER, _linkToken, _gToken, _oracles, _job, _minAnswers, overrides || {});
746
- }
747
- getDeployTransaction(_LINK_FEE_BALANCE_DIVIDER, _linkToken, _gToken, _oracles, _job, _minAnswers, overrides) {
748
- return super.getDeployTransaction(_LINK_FEE_BALANCE_DIVIDER, _linkToken, _gToken, _oracles, _job, _minAnswers, overrides || {});
749
- }
750
- attach(address) {
751
- return super.attach(address);
752
- }
753
- connect(signer) {
754
- return super.connect(signer);
755
- }
756
- static createInterface() {
757
- return new ethers_1.utils.Interface(_abi);
758
- }
759
- static connect(address, signerOrProvider) {
760
- return new ethers_1.Contract(address, _abi, signerOrProvider);
761
- }
762
- }
763
- exports.GTokenOpenPnlFeed__factory = GTokenOpenPnlFeed__factory;
764
- GTokenOpenPnlFeed__factory.bytecode = _bytecode;
765
- GTokenOpenPnlFeed__factory.abi = _abi;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GTokenOpenPnlFeed__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
+ inputs: [
11
+ {
12
+ internalType: "uint256",
13
+ name: "_LINK_FEE_BALANCE_DIVIDER",
14
+ type: "uint256",
15
+ },
16
+ {
17
+ internalType: "address",
18
+ name: "_linkToken",
19
+ type: "address",
20
+ },
21
+ {
22
+ internalType: "contract IGToken",
23
+ name: "_gToken",
24
+ type: "address",
25
+ },
26
+ {
27
+ internalType: "address[]",
28
+ name: "_oracles",
29
+ type: "address[]",
30
+ },
31
+ {
32
+ internalType: "bytes32",
33
+ name: "_job",
34
+ type: "bytes32",
35
+ },
36
+ {
37
+ internalType: "uint256",
38
+ name: "_minAnswers",
39
+ type: "uint256",
40
+ },
41
+ ],
42
+ stateMutability: "nonpayable",
43
+ type: "constructor",
44
+ },
45
+ {
46
+ anonymous: false,
47
+ inputs: [
48
+ {
49
+ indexed: true,
50
+ internalType: "bytes32",
51
+ name: "id",
52
+ type: "bytes32",
53
+ },
54
+ ],
55
+ name: "ChainlinkCancelled",
56
+ type: "event",
57
+ },
58
+ {
59
+ anonymous: false,
60
+ inputs: [
61
+ {
62
+ indexed: true,
63
+ internalType: "bytes32",
64
+ name: "id",
65
+ type: "bytes32",
66
+ },
67
+ ],
68
+ name: "ChainlinkFulfilled",
69
+ type: "event",
70
+ },
71
+ {
72
+ anonymous: false,
73
+ inputs: [
74
+ {
75
+ indexed: true,
76
+ internalType: "bytes32",
77
+ name: "id",
78
+ type: "bytes32",
79
+ },
80
+ ],
81
+ name: "ChainlinkRequested",
82
+ type: "event",
83
+ },
84
+ {
85
+ anonymous: false,
86
+ inputs: [
87
+ {
88
+ indexed: false,
89
+ internalType: "bytes32",
90
+ name: "newValue",
91
+ type: "bytes32",
92
+ },
93
+ ],
94
+ name: "JobUpdated",
95
+ type: "event",
96
+ },
97
+ {
98
+ anonymous: false,
99
+ inputs: [
100
+ {
101
+ indexed: true,
102
+ internalType: "uint256",
103
+ name: "newEpoch",
104
+ type: "uint256",
105
+ },
106
+ {
107
+ indexed: true,
108
+ internalType: "uint256",
109
+ name: "requestId",
110
+ type: "uint256",
111
+ },
112
+ {
113
+ indexed: false,
114
+ internalType: "int256[]",
115
+ name: "epochMedianValues",
116
+ type: "int256[]",
117
+ },
118
+ {
119
+ indexed: false,
120
+ internalType: "int256",
121
+ name: "epochAverageValue",
122
+ type: "int256",
123
+ },
124
+ {
125
+ indexed: false,
126
+ internalType: "uint256",
127
+ name: "newEpochPositiveOpenPnl",
128
+ type: "uint256",
129
+ },
130
+ ],
131
+ name: "NewEpoch",
132
+ type: "event",
133
+ },
134
+ {
135
+ anonymous: false,
136
+ inputs: [
137
+ {
138
+ indexed: true,
139
+ internalType: "uint256",
140
+ name: "newEpoch",
141
+ type: "uint256",
142
+ },
143
+ ],
144
+ name: "NewEpochForced",
145
+ type: "event",
146
+ },
147
+ {
148
+ anonymous: false,
149
+ inputs: [
150
+ {
151
+ indexed: true,
152
+ internalType: "uint256",
153
+ name: "currEpoch",
154
+ type: "uint256",
155
+ },
156
+ {
157
+ indexed: true,
158
+ internalType: "uint256",
159
+ name: "requestId",
160
+ type: "uint256",
161
+ },
162
+ {
163
+ indexed: false,
164
+ internalType: "bytes32",
165
+ name: "job",
166
+ type: "bytes32",
167
+ },
168
+ {
169
+ indexed: false,
170
+ internalType: "uint256",
171
+ name: "oraclesCount",
172
+ type: "uint256",
173
+ },
174
+ {
175
+ indexed: false,
176
+ internalType: "uint256",
177
+ name: "linkFeePerNode",
178
+ type: "uint256",
179
+ },
180
+ ],
181
+ name: "NextEpochValueRequested",
182
+ type: "event",
183
+ },
184
+ {
185
+ anonymous: false,
186
+ inputs: [
187
+ {
188
+ indexed: true,
189
+ internalType: "uint256",
190
+ name: "currEpoch",
191
+ type: "uint256",
192
+ },
193
+ {
194
+ indexed: false,
195
+ internalType: "uint256",
196
+ name: "requestsResetCount",
197
+ type: "uint256",
198
+ },
199
+ ],
200
+ name: "NextEpochValuesReset",
201
+ type: "event",
202
+ },
203
+ {
204
+ anonymous: false,
205
+ inputs: [
206
+ {
207
+ indexed: false,
208
+ internalType: "string",
209
+ name: "name",
210
+ type: "string",
211
+ },
212
+ {
213
+ indexed: false,
214
+ internalType: "uint256",
215
+ name: "newValue",
216
+ type: "uint256",
217
+ },
218
+ ],
219
+ name: "NumberParamUpdated",
220
+ type: "event",
221
+ },
222
+ {
223
+ anonymous: false,
224
+ inputs: [
225
+ {
226
+ indexed: false,
227
+ internalType: "uint256",
228
+ name: "index",
229
+ type: "uint256",
230
+ },
231
+ {
232
+ indexed: false,
233
+ internalType: "address",
234
+ name: "newValue",
235
+ type: "address",
236
+ },
237
+ ],
238
+ name: "OracleUpdated",
239
+ type: "event",
240
+ },
241
+ {
242
+ anonymous: false,
243
+ inputs: [
244
+ {
245
+ indexed: false,
246
+ internalType: "address[]",
247
+ name: "newValues",
248
+ type: "address[]",
249
+ },
250
+ ],
251
+ name: "OraclesUpdated",
252
+ type: "event",
253
+ },
254
+ {
255
+ anonymous: false,
256
+ inputs: [
257
+ {
258
+ indexed: true,
259
+ internalType: "uint256",
260
+ name: "currEpoch",
261
+ type: "uint256",
262
+ },
263
+ {
264
+ indexed: true,
265
+ internalType: "uint256",
266
+ name: "requestId",
267
+ type: "uint256",
268
+ },
269
+ {
270
+ indexed: false,
271
+ internalType: "int256[]",
272
+ name: "requestValues",
273
+ type: "int256[]",
274
+ },
275
+ {
276
+ indexed: false,
277
+ internalType: "int256",
278
+ name: "medianValue",
279
+ type: "int256",
280
+ },
281
+ ],
282
+ name: "RequestMedianValueSet",
283
+ type: "event",
284
+ },
285
+ {
286
+ anonymous: false,
287
+ inputs: [
288
+ {
289
+ indexed: false,
290
+ internalType: "bool",
291
+ name: "isLate",
292
+ type: "bool",
293
+ },
294
+ {
295
+ indexed: true,
296
+ internalType: "uint256",
297
+ name: "currEpoch",
298
+ type: "uint256",
299
+ },
300
+ {
301
+ indexed: true,
302
+ internalType: "uint256",
303
+ name: "requestId",
304
+ type: "uint256",
305
+ },
306
+ {
307
+ indexed: false,
308
+ internalType: "bytes32",
309
+ name: "oracleRequestId",
310
+ type: "bytes32",
311
+ },
312
+ {
313
+ indexed: true,
314
+ internalType: "address",
315
+ name: "oracle",
316
+ type: "address",
317
+ },
318
+ {
319
+ indexed: false,
320
+ internalType: "int256",
321
+ name: "requestValue",
322
+ type: "int256",
323
+ },
324
+ {
325
+ indexed: false,
326
+ internalType: "uint256",
327
+ name: "linkFee",
328
+ type: "uint256",
329
+ },
330
+ ],
331
+ name: "RequestValueReceived",
332
+ type: "event",
333
+ },
334
+ {
335
+ inputs: [],
336
+ name: "LINK_FEE_BALANCE_DIVIDER",
337
+ outputs: [
338
+ {
339
+ internalType: "uint256",
340
+ name: "",
341
+ type: "uint256",
342
+ },
343
+ ],
344
+ stateMutability: "view",
345
+ type: "function",
346
+ },
347
+ {
348
+ inputs: [],
349
+ name: "gToken",
350
+ outputs: [
351
+ {
352
+ internalType: "contract IGToken",
353
+ name: "",
354
+ type: "address",
355
+ },
356
+ ],
357
+ stateMutability: "view",
358
+ type: "function",
359
+ },
360
+ {
361
+ inputs: [],
362
+ name: "job",
363
+ outputs: [
364
+ {
365
+ internalType: "bytes32",
366
+ name: "",
367
+ type: "bytes32",
368
+ },
369
+ ],
370
+ stateMutability: "view",
371
+ type: "function",
372
+ },
373
+ {
374
+ inputs: [],
375
+ name: "lastRequestId",
376
+ outputs: [
377
+ {
378
+ internalType: "uint256",
379
+ name: "",
380
+ type: "uint256",
381
+ },
382
+ ],
383
+ stateMutability: "view",
384
+ type: "function",
385
+ },
386
+ {
387
+ inputs: [],
388
+ name: "minAnswers",
389
+ outputs: [
390
+ {
391
+ internalType: "uint256",
392
+ name: "",
393
+ type: "uint256",
394
+ },
395
+ ],
396
+ stateMutability: "view",
397
+ type: "function",
398
+ },
399
+ {
400
+ inputs: [
401
+ {
402
+ internalType: "uint256",
403
+ name: "",
404
+ type: "uint256",
405
+ },
406
+ ],
407
+ name: "nextEpochValues",
408
+ outputs: [
409
+ {
410
+ internalType: "int256",
411
+ name: "",
412
+ type: "int256",
413
+ },
414
+ ],
415
+ stateMutability: "view",
416
+ type: "function",
417
+ },
418
+ {
419
+ inputs: [],
420
+ name: "nextEpochValuesLastRequest",
421
+ outputs: [
422
+ {
423
+ internalType: "uint256",
424
+ name: "",
425
+ type: "uint256",
426
+ },
427
+ ],
428
+ stateMutability: "view",
429
+ type: "function",
430
+ },
431
+ {
432
+ inputs: [],
433
+ name: "nextEpochValuesRequestCount",
434
+ outputs: [
435
+ {
436
+ internalType: "uint256",
437
+ name: "",
438
+ type: "uint256",
439
+ },
440
+ ],
441
+ stateMutability: "view",
442
+ type: "function",
443
+ },
444
+ {
445
+ inputs: [
446
+ {
447
+ internalType: "uint256",
448
+ name: "",
449
+ type: "uint256",
450
+ },
451
+ ],
452
+ name: "oracles",
453
+ outputs: [
454
+ {
455
+ internalType: "address",
456
+ name: "",
457
+ type: "address",
458
+ },
459
+ ],
460
+ stateMutability: "view",
461
+ type: "function",
462
+ },
463
+ {
464
+ inputs: [
465
+ {
466
+ internalType: "uint256",
467
+ name: "",
468
+ type: "uint256",
469
+ },
470
+ {
471
+ internalType: "uint256",
472
+ name: "",
473
+ type: "uint256",
474
+ },
475
+ ],
476
+ name: "requestAnswers",
477
+ outputs: [
478
+ {
479
+ internalType: "int256",
480
+ name: "",
481
+ type: "int256",
482
+ },
483
+ ],
484
+ stateMutability: "view",
485
+ type: "function",
486
+ },
487
+ {
488
+ inputs: [
489
+ {
490
+ internalType: "bytes32",
491
+ name: "",
492
+ type: "bytes32",
493
+ },
494
+ ],
495
+ name: "requestIds",
496
+ outputs: [
497
+ {
498
+ internalType: "uint256",
499
+ name: "",
500
+ type: "uint256",
501
+ },
502
+ ],
503
+ stateMutability: "view",
504
+ type: "function",
505
+ },
506
+ {
507
+ inputs: [
508
+ {
509
+ internalType: "uint256",
510
+ name: "",
511
+ type: "uint256",
512
+ },
513
+ ],
514
+ name: "requests",
515
+ outputs: [
516
+ {
517
+ internalType: "bool",
518
+ name: "initiated",
519
+ type: "bool",
520
+ },
521
+ {
522
+ internalType: "bool",
523
+ name: "active",
524
+ type: "bool",
525
+ },
526
+ {
527
+ internalType: "uint256",
528
+ name: "linkFeePerNode",
529
+ type: "uint256",
530
+ },
531
+ ],
532
+ stateMutability: "view",
533
+ type: "function",
534
+ },
535
+ {
536
+ inputs: [],
537
+ name: "requestsCount",
538
+ outputs: [
539
+ {
540
+ internalType: "uint256",
541
+ name: "",
542
+ type: "uint256",
543
+ },
544
+ ],
545
+ stateMutability: "view",
546
+ type: "function",
547
+ },
548
+ {
549
+ inputs: [],
550
+ name: "requestsEvery",
551
+ outputs: [
552
+ {
553
+ internalType: "uint256",
554
+ name: "",
555
+ type: "uint256",
556
+ },
557
+ ],
558
+ stateMutability: "view",
559
+ type: "function",
560
+ },
561
+ {
562
+ inputs: [],
563
+ name: "requestsStart",
564
+ outputs: [
565
+ {
566
+ internalType: "uint256",
567
+ name: "",
568
+ type: "uint256",
569
+ },
570
+ ],
571
+ stateMutability: "view",
572
+ type: "function",
573
+ },
574
+ {
575
+ inputs: [
576
+ {
577
+ internalType: "uint256",
578
+ name: "newValue",
579
+ type: "uint256",
580
+ },
581
+ ],
582
+ name: "updateRequestsStart",
583
+ outputs: [],
584
+ stateMutability: "nonpayable",
585
+ type: "function",
586
+ },
587
+ {
588
+ inputs: [
589
+ {
590
+ internalType: "uint256",
591
+ name: "newValue",
592
+ type: "uint256",
593
+ },
594
+ ],
595
+ name: "updateRequestsEvery",
596
+ outputs: [],
597
+ stateMutability: "nonpayable",
598
+ type: "function",
599
+ },
600
+ {
601
+ inputs: [
602
+ {
603
+ internalType: "uint256",
604
+ name: "newValue",
605
+ type: "uint256",
606
+ },
607
+ ],
608
+ name: "updateRequestsCount",
609
+ outputs: [],
610
+ stateMutability: "nonpayable",
611
+ type: "function",
612
+ },
613
+ {
614
+ inputs: [
615
+ {
616
+ internalType: "uint256",
617
+ name: "newRequestsStart",
618
+ type: "uint256",
619
+ },
620
+ {
621
+ internalType: "uint256",
622
+ name: "newRequestsEvery",
623
+ type: "uint256",
624
+ },
625
+ {
626
+ internalType: "uint256",
627
+ name: "newRequestsCount",
628
+ type: "uint256",
629
+ },
630
+ ],
631
+ name: "updateRequestsInfoBatch",
632
+ outputs: [],
633
+ stateMutability: "nonpayable",
634
+ type: "function",
635
+ },
636
+ {
637
+ inputs: [
638
+ {
639
+ internalType: "uint256",
640
+ name: "newValue",
641
+ type: "uint256",
642
+ },
643
+ ],
644
+ name: "updateMinAnswers",
645
+ outputs: [],
646
+ stateMutability: "nonpayable",
647
+ type: "function",
648
+ },
649
+ {
650
+ inputs: [
651
+ {
652
+ internalType: "uint256",
653
+ name: "_index",
654
+ type: "uint256",
655
+ },
656
+ {
657
+ internalType: "address",
658
+ name: "newValue",
659
+ type: "address",
660
+ },
661
+ ],
662
+ name: "updateOracle",
663
+ outputs: [],
664
+ stateMutability: "nonpayable",
665
+ type: "function",
666
+ },
667
+ {
668
+ inputs: [
669
+ {
670
+ internalType: "address[]",
671
+ name: "newValues",
672
+ type: "address[]",
673
+ },
674
+ ],
675
+ name: "updateOracles",
676
+ outputs: [],
677
+ stateMutability: "nonpayable",
678
+ type: "function",
679
+ },
680
+ {
681
+ inputs: [
682
+ {
683
+ internalType: "bytes32",
684
+ name: "newValue",
685
+ type: "bytes32",
686
+ },
687
+ ],
688
+ name: "updateJob",
689
+ outputs: [],
690
+ stateMutability: "nonpayable",
691
+ type: "function",
692
+ },
693
+ {
694
+ inputs: [],
695
+ name: "resetNextEpochValueRequests",
696
+ outputs: [],
697
+ stateMutability: "nonpayable",
698
+ type: "function",
699
+ },
700
+ {
701
+ inputs: [],
702
+ name: "forceNewEpoch",
703
+ outputs: [],
704
+ stateMutability: "nonpayable",
705
+ type: "function",
706
+ },
707
+ {
708
+ inputs: [],
709
+ name: "newOpenPnlRequestOrEpoch",
710
+ outputs: [],
711
+ stateMutability: "nonpayable",
712
+ type: "function",
713
+ },
714
+ {
715
+ inputs: [
716
+ {
717
+ internalType: "bytes32",
718
+ name: "requestId",
719
+ type: "bytes32",
720
+ },
721
+ {
722
+ internalType: "int256",
723
+ name: "value",
724
+ type: "int256",
725
+ },
726
+ ],
727
+ name: "fulfill",
728
+ outputs: [],
729
+ stateMutability: "nonpayable",
730
+ type: "function",
731
+ },
732
+ ];
733
+ const _bytecode = "0x60c060405260016004556202a30060065561546060075560046008553480156200002857600080fd5b5060405162002b0b38038062002b0b8339810160408190526200004b916200022f565b6000861180156200006457506001600160a01b03851615155b80156200007957506001600160a01b03841615155b801562000087575060008351115b80156200009357508115155b8015620000a1575060038110155b8015620000ba5750620000b660028262000360565b6001145b8015620000d6575060028351620000d2919062000377565b8111155b620001165760405162461bcd60e51b815260206004820152600c60248201526b57524f4e475f504152414d5360a01b604482015260640160405180910390fd5b6080869052600280546001600160a01b0319166001600160a01b0387161790556001600160a01b03841660a0528251620001589060099060208601906200016d565b50600a91909155600b55506200038e92505050565b828054828255906000526020600020908101928215620001c5579160200282015b82811115620001c557825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200018e565b50620001d3929150620001d7565b5090565b5b80821115620001d35760008155600101620001d8565b6001600160a01b03811681146200020457600080fd5b50565b80516200021481620001ee565b919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060008060c087890312156200024957600080fd5b865195506020808801516200025e81620001ee565b60408901519096506200027181620001ee565b60608901519095506001600160401b03808211156200028f57600080fd5b818a0191508a601f830112620002a457600080fd5b815181811115620002b957620002b962000219565b8060051b604051601f19603f83011681018181108582111715620002e157620002e162000219565b60405291825284820192508381018501918d8311156200030057600080fd5b938501935b828510156200032957620003198562000207565b8452938501939285019262000305565b8098505050505050506080870151915060a087015190509295509295509295565b634e487b7160e01b600052601260045260246000fd5b6000826200037257620003726200034a565b500690565b6000826200038957620003896200034a565b500490565b60805160a0516126d96200043260003960008181610234015281816103e001528181610531015281816106990152818161081c015281816108d401528181610a1101528181610b5601528181610ddc01528181610ff9015281816110e4015281816111e2015281816113ac015281816114ad015281816118f0015281816119d001528181611ac70152611b7101526000818161038f015261173a01526126d96000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c8063a90d67a1116100f9578063cb9945a111610097578063e704fc5111610071578063e704fc51146103b1578063f5ed447c146103b9578063fbfa4b7f146103cc578063fc2a88c3146103d557600080fd5b8063cb9945a114610364578063ce43963214610377578063d5a28da31461038a57600080fd5b8063bda71d04116100d3578063bda71d041461032d578063bea1675814610340578063bef35b7914610349578063c591ff4c1461035157600080fd5b8063a90d67a114610308578063b006812c14610311578063b8feee641461032457600080fd5b806376ffb9bd1161016657806392c3c58b1161014057806392c3c58b146102c75780639496f9e3146102cf5780639dbc2686146102e2578063a5c2aafd146102f557600080fd5b806376ffb9bd1461022f57806381d12c58146102565780638645f7a8146102a757600080fd5b80632eb64ec4146101ae57806334fa54a1146101ca578063473d2f21146101df5780635614a211146101e857806358e7ec3c146101fb5780635b69a7d814610204575b600080fd5b6101b760065481565b6040519081526020015b60405180910390f35b6101dd6101d836600461216b565b6103de565b005b6101b7600e5481565b6101dd6101f636600461216b565b61052f565b6101b7600a5481565b61021761021236600461216b565b61066d565b6040516001600160a01b0390911681526020016101c1565b6102177f000000000000000000000000000000000000000000000000000000000000000081565b61028a61026436600461216b565b6011602052600090815260409020805460019091015460ff808316926101009004169083565b6040805193151584529115156020840152908201526060016101c1565b6101b76102b536600461216b565b60106020526000908152604090205481565b6101dd610697565b6101dd6102dd36600461216b565b6108d2565b6101dd6102f03660046121bf565b610a0f565b6101dd61030336600461216b565b610b54565b6101b760075481565b6101b761031f36600461216b565b610c95565b6101b7600d5481565b6101dd61033b366004612284565b610cb6565b6101b7600b5481565b6101dd610fe8565b6101dd61035f3660046122a6565b6110e2565b6101b7610372366004612284565b6111af565b6101dd6103853660046122d2565b6111e0565b6101b77f000000000000000000000000000000000000000000000000000000000000000081565b6101dd61138d565b6101dd6103c736600461216b565b6114ab565b6101b760085481565b6101b7600f5481565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561043c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104609190612302565b6001600160a01b0316336001600160a01b0316146104995760405162461bcd60e51b81526004016104909061231f565b60405180910390fd5b610e108110156104bb5760405162461bcd60e51b815260040161049090612343565b620151808111156104de5760405162461bcd60e51b815260040161049090612366565b600781905560408051818152600d918101919091526c7265717565737473457665727960981b606082015260208101829052600080516020612684833981519152906080015b60405180910390a150565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561058d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b19190612302565b6001600160a01b0316336001600160a01b0316146105e15760405162461bcd60e51b81526004016104909061231f565b60038110156106025760405162461bcd60e51b815260040161049090612343565b600a8111156106235760405162461bcd60e51b815260040161049090612366565b600881905560408051818152600d918101919091526c1c995c5d595cdd1cd0dbdd5b9d609a1b60608201526020810182905260008051602061268483398151915290608001610524565b6009818154811061067d57600080fd5b6000918252602090912001546001600160a01b0316905081565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107199190612302565b6001600160a01b0316336001600160a01b0316146107665760405162461bcd60e51b815260206004820152600a60248201526927a7262cafa0a226a4a760b11b6044820152606401610490565b600d54806107ac5760405162461bcd60e51b81526020600482015260136024820152721393d7d49154555154d517d513d7d49154d155606a1b6044820152606401610490565b6107b8600c6000612098565b6000600d819055600e8190555b818110156108195760006011600083600f546107e1919061239f565b8152602081019190915260400160002080549115156101000261ff001990921691909117905580610811816123b2565b9150506107c5565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663766718086040518163ffffffff1660e01b8152600401602060405180830381865afa158015610878573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089c91906123cb565b6040518281527f605f3f824643ee56deaf2717c1581f7ad3df423365aede8e2d771b6b3a30fd2b9060200160405180910390a250565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663481c6a756040518163ffffffff1660e01b8152600401602060405180830381865afa158015610930573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109549190612302565b6001600160a01b0316336001600160a01b0316146109a35760405162461bcd60e51b815260206004820152600c60248201526b27a7262cafa6a0a720a3a2a960a11b6044820152606401610490565b806109da5760405162461bcd60e51b8152602060048201526007602482015266056414c55455f360cc1b6044820152606401610490565b600a8190556040518181527f9f3fa8c139076940687248e93aed7dda099cf9a90cc38c428cf3d5b6b642fdd490602001610524565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a919190612302565b6001600160a01b0316336001600160a01b031614610ac15760405162461bcd60e51b81526004016104909061231f565b600b54610acf9060026123e4565b81511015610b115760405162461bcd60e51b815260206004820152600f60248201526e105494905657d513d3d7d4d3505313608a1b6044820152606401610490565b8051610b249060099060208401906120b6565b507f4b806663ee384a0ada322e70cdf3fd2046424181359f2470a97a6f0cec328e9c8160405161052491906123fb565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd69190612302565b6001600160a01b0316336001600160a01b031614610c065760405162461bcd60e51b81526004016104909061231f565b610e10811015610c285760405162461bcd60e51b815260040161049090612343565b62093a80811115610c4b5760405162461bcd60e51b815260040161049090612366565b600681905560408051818152600d918101919091526c1c995c5d595cdd1cd4dd185c9d609a1b60608201526020810182905260008051602061268483398151915290608001610524565b600c8181548110610ca557600080fd5b600091825260209091200154905081565b60008281526005602052604090205482906001600160a01b03163314610d2f5760405162461bcd60e51b815260206004820152602860248201527f536f75726365206d75737420626520746865206f7261636c65206f6620746865604482015267081c995c5d595cdd60c21b6064820152608401610490565b60008181526005602052604080822080546001600160a01b03191690555182917f7cc135e0cebb02c3480ae5d74d377283180a2601f8f644edf7987b009316c63a91a26000838152601060209081526040808320805490849055808452601183528184208251606081018452815460ff808216151583526101009091041615158186015260019190910154818401528251630ecce30160e31b815292519194909390926001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016926376671808926004808401939192918290030181865afa158015610e25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4991906123cb565b6020808401516040808601518151921583529282018a9052810188905260608101919091529091503390849083907f5e18490ff1cb10067b5d5b0aec04678191bb80c2d229a2578526c389270027bf9060800160405180910390a48160200151610eb557505050505050565b6000838152601260209081526040822080546001810182558184529190922001869055600b54815403610fde576000610f3c82805480602002602001604051908101604052809291908181526020018280548015610f3257602002820191906000526020600020905b815481526020019060010190808311610f1e575b5050505050611655565b600c80546001810182556000919091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c701819055604051909150859084907f2cc31a5acf549ee44228d82c08e88b92b9d332ad5193a2290a79345e113c0b4c90610faa9086908690612488565b60405180910390a36000858152601160209081526040808320805461ff001916905560129091528120610fdc91612098565b505b505050505b505050565b600e541580801561108657506006547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166361a8c8c46040518163ffffffff1660e01b8152600401602060405180830381865afa158015611055573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061107991906123cb565b611083904261239f565b10155b1561109657611093611719565b50565b801580156110b25750600754600e546110af904261239f565b10155b1561109357600854600d5410156110cb57611093611719565b600854600c5410611093576110de6119bb565b5050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611140573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111649190612302565b6001600160a01b0316336001600160a01b0316146111945760405162461bcd60e51b81526004016104909061231f565b61119d83610b54565b6111a6826103de565b610fe38161052f565b601260205281600052604060002081815481106111cb57600080fd5b90600052602060002001600091509150505481565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561123e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112629190612302565b6001600160a01b0316336001600160a01b0316146112925760405162461bcd60e51b81526004016104909061231f565b60095482106112d35760405162461bcd60e51b815260206004820152600d60248201526c494e4445585f544f4f5f42494760981b6044820152606401610490565b6001600160a01b0381166113135760405162461bcd60e51b8152602060048201526007602482015266056414c55455f360cc1b6044820152606401610490565b8060098381548110611327576113276124aa565b60009182526020918290200180546001600160a01b0319166001600160a01b0393841617905560408051858152928416918301919091527f8323208263554cf72b3658bcdbd0f96f4ccf2c9c919fa30246aaee34537b5509910160405180910390a15050565b60085460075461139d91906123e4565b6006546113aa91906124c0565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166361a8c8c46040518163ffffffff1660e01b8152600401602060405180830381865afa158015611408573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142c91906123cb565b611436904261239f565b10156114705760405162461bcd60e51b8152602060048201526009602482015268544f4f5f4541524c5960b81b6044820152606401610490565b600061147a6119bb565b60405190915081907f446b8726654d216fe9781583f0f34cc8ac84d240bb3ad5293c10e2ff831f1eb290600090a250565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663481c6a756040518163ffffffff1660e01b8152600401602060405180830381865afa158015611509573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152d9190612302565b6001600160a01b0316336001600160a01b03161461157c5760405162461bcd60e51b815260206004820152600c60248201526b27a7262cafa6a0a720a3a2a960a11b6044820152606401610490565b600381101561159d5760405162461bcd60e51b815260040161049090612343565b6115a86002826124e9565b6001146115e05760405162461bcd60e51b81526004016104909060208082526004908201526322ab22a760e11b604082015260600190565b6009546115ef906002906124fd565b81111561160e5760405162461bcd60e51b815260040161049090612366565b600b81905560408051818152600a91810191909152696d696e416e737765727360b01b60608201526020810182905260008051602061268483398151915290608001610524565b60006116648260008451611c45565b6002825161167291906124e9565b156116a357816002835161168691906124fd565b81518110611696576116966124aa565b6020026020010151611713565b600282600284516116b491906124fd565b815181106116c4576116c46124aa565b6020026020010151836001600286516116dd91906124fd565b6116e7919061239f565b815181106116f7576116f76124aa565b60200260200101516117099190612511565b6117139190612539565b92915050565b600061172f600a543063bda71d0460e01b611d08565b6009549091506000907f000000000000000000000000000000000000000000000000000000000000000061176b6002546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156117b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d591906123cb565b6117df91906124fd565b6117e991906124fd565b905060405180606001604052806001151581526020016001151581526020018281525060116000600f6000815461181f906123b2565b9182905550815260208082019290925260409081016000908120845181549486015161ffff1990951690151561ff0019161761010094151594909402939093178355920151600190910155600d805491611878836123b2565b909155505042600e5560005b6009548110156118ea57600f54601060006118c7600985815481106118ab576118ab6124aa565b6000918252602090912001546001600160a01b03168787611d2d565b8152602081019190915260400160002055806118e2816123b2565b915050611884565b50600f547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663766718086040518163ffffffff1660e01b8152600401602060405180830381865afa15801561194c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197091906123cb565b600a5460095460408051928352602083019190915281018490527fb5f2943c67db1794f39a3b46b95086765f48c7e05d12851dc6607bcdb0bcc7a39060600160405180910390a35050565b600080600d819055506000600e8190555060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663faf33f296040518163ffffffff1660e01b8152600401602060405180830381865afa158015611a2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a5091906123cb565b600854600c549192506000911015611a685781611ac1565b611ac1600c805480602002602001604051908101604052809291908181526020018280548015611ab757602002820191906000526020600020905b815481526020019060010190808311611aa3575b5050505050611dc0565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637361a5448460008513611b04576000611b06565b845b6040516001600160e01b031960e085901b168152600481019290925260248201526044016020604051808303816000875af1158015611b49573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b6d91906123cb565b90507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663766718086040518163ffffffff1660e01b8152600401602060405180830381865afa158015611bcd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bf191906123cb565b9350600f54847f263c5efc95bb2e2134e3fc52ae914fbd38e2381f37d95ae011a56f996578bf17600c8585604051611c2b93929190612567565b60405180910390a3611c3f600c6000612098565b50505090565b808210611c5157505050565b60008290506000848281518110611c6a57611c6a6124aa565b602002602001015190506000846001611c8391906124c0565b90505b83811015611cd55781868281518110611ca157611ca16124aa565b60200260200101511215611cc557611cc58682611cbd866123b2565b955085611e1c565b611cce816123b2565b9050611c86565b50611ce1858584611e1c565b611cec858584611c45565b611d0185611cfb8460016124c0565b85611c45565b5050505050565b611d1061211b565b611d1861211b565b611d2481868686611e8f565b95945050505050565b600454600090611d3e8160016124c0565b600455835160408086015160808701515191516000936320214ca360e11b93611d769386938493923092918a916001916024016125d2565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091529050611db686838684611ed5565b9695505050505050565b60008060005b8351811015611e0857838181518110611de157611de16124aa565b602002602001015182611df49190612511565b915080611e00816123b2565b915050611dc6565b508251611e159082612539565b9392505050565b828181518110611e2e57611e2e6124aa565b6020026020010151838381518110611e4857611e486124aa565b6020026020010151848481518110611e6257611e626124aa565b60200260200101858481518110611e7b57611e7b6124aa565b602090810291909101019190915252505050565b611e9761211b565b611ea78560800151610100612033565b50508284526001600160a01b03821660208501526001600160e01b031981166040850152835b949350505050565b6040516bffffffffffffffffffffffff193060601b1660208201526034810184905260009060540160408051808303601f1901815282825280516020918201206000818152600590925291812080546001600160a01b0319166001600160a01b038a1617905590925082917fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af99190a2600254604051630200057560e51b81526001600160a01b0390911690634000aea090611f989088908790879060040161263a565b6020604051808303816000875af1158015611fb7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fdb9190612661565b611ecd5760405162461bcd60e51b815260206004820152602360248201527f756e61626c6520746f207472616e73666572416e6443616c6c20746f206f7261604482015262636c6560e81b6064820152608401610490565b6040805180820190915260608152600060208201526120536020836124e9565b1561207b576120636020836124e9565b61206e90602061239f565b61207890836124c0565b91505b506020828101829052604080518085526000815290920101905290565b50805460008255906000526020600020908101906110939190612156565b82805482825590600052602060002090810192821561210b579160200282015b8281111561210b57825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906120d6565b50612117929150612156565b5090565b6040805160a0810182526000808252602080830182905282840182905260608084018390528451808601909552845283015290608082015290565b5b808211156121175760008155600101612157565b60006020828403121561217d57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461109357600080fd5b80356121ba8161219a565b919050565b600060208083850312156121d257600080fd5b823567ffffffffffffffff808211156121ea57600080fd5b818501915085601f8301126121fe57600080fd5b81358181111561221057612210612184565b8060051b604051601f19603f8301168101818110858211171561223557612235612184565b60405291825284820192508381018501918883111561225357600080fd5b938501935b8285101561227857612269856121af565b84529385019392850192612258565b98975050505050505050565b6000806040838503121561229757600080fd5b50508035926020909101359150565b6000806000606084860312156122bb57600080fd5b505081359360208301359350604090920135919050565b600080604083850312156122e557600080fd5b8235915060208301356122f78161219a565b809150509250929050565b60006020828403121561231457600080fd5b8151611e158161219a565b6020808252600a908201526927a7262cafa7aba722a960b11b604082015260600190565b6020808252600990820152682122a627abafa6a4a760b91b604082015260600190565b602080825260099082015268082849eac8abe9a82b60bb1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561171357611713612389565b6000600182016123c4576123c4612389565b5060010190565b6000602082840312156123dd57600080fd5b5051919050565b808202811582820484141761171357611713612389565b6020808252825182820181905260009190848201906040850190845b8181101561243c5783516001600160a01b031683529284019291840191600101612417565b50909695505050505050565b6000815480845260208085019450836000528060002060005b8381101561247d57815487529582019560019182019101612461565b509495945050505050565b60408152600061249b6040830185612448565b90508260208301529392505050565b634e487b7160e01b600052603260045260246000fd5b8082018082111561171357611713612389565b634e487b7160e01b600052601260045260246000fd5b6000826124f8576124f86124d3565b500690565b60008261250c5761250c6124d3565b500490565b808201828112600083128015821682158216171561253157612531612389565b505092915050565b600082612548576125486124d3565b600160ff1b82146000198414161561256257612562612389565b500590565b60608152600061257a6060830186612448565b60208301949094525060400152919050565b6000815180845260005b818110156125b257602081850181015186830182015201612596565b506000602082860101526020601f19601f83011685010191505092915050565b6001600160a01b0389811682526020820189905260408201889052861660608201526001600160e01b03198516608082015260a0810184905260c0810183905261010060e0820181905260009061262b8382018561258c565b9b9a5050505050505050505050565b60018060a01b0384168152826020820152606060408201526000611d24606083018461258c565b60006020828403121561267357600080fd5b81518015158114611e1557600080fdfe127735ae9d047cae55da37db2c8ee184c735aacd68cef068d4e70be6a41661d9a2646970667358221220508c7a2761f8a62f1246632caffe0279d3a266a31b7e23b1b163d2cbf3e7748b64736f6c63430008110033";
734
+ const isSuperArgs = (xs) => xs.length > 1;
735
+ class GTokenOpenPnlFeed__factory extends ethers_1.ContractFactory {
736
+ constructor(...args) {
737
+ if (isSuperArgs(args)) {
738
+ super(...args);
739
+ }
740
+ else {
741
+ super(_abi, _bytecode, args[0]);
742
+ }
743
+ }
744
+ deploy(_LINK_FEE_BALANCE_DIVIDER, _linkToken, _gToken, _oracles, _job, _minAnswers, overrides) {
745
+ return super.deploy(_LINK_FEE_BALANCE_DIVIDER, _linkToken, _gToken, _oracles, _job, _minAnswers, overrides || {});
746
+ }
747
+ getDeployTransaction(_LINK_FEE_BALANCE_DIVIDER, _linkToken, _gToken, _oracles, _job, _minAnswers, overrides) {
748
+ return super.getDeployTransaction(_LINK_FEE_BALANCE_DIVIDER, _linkToken, _gToken, _oracles, _job, _minAnswers, overrides || {});
749
+ }
750
+ attach(address) {
751
+ return super.attach(address);
752
+ }
753
+ connect(signer) {
754
+ return super.connect(signer);
755
+ }
756
+ static createInterface() {
757
+ return new ethers_1.utils.Interface(_abi);
758
+ }
759
+ static connect(address, signerOrProvider) {
760
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
761
+ }
762
+ }
763
+ exports.GTokenOpenPnlFeed__factory = GTokenOpenPnlFeed__factory;
764
+ GTokenOpenPnlFeed__factory.bytecode = _bytecode;
765
+ GTokenOpenPnlFeed__factory.abi = _abi;