@ape.swap/bonds-sdk 1.0.470 → 1.0.474

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 (134) hide show
  1. package/dist/components/Modals/BondModal/BondModal.d.ts +6 -2
  2. package/dist/components/Modals/BondModal/BondModal.js +6 -7
  3. package/dist/components/YourBondsModal/YourBondsModal.d.ts +6 -2
  4. package/dist/components/YourBondsModal/YourBondsModal.js +8 -9
  5. package/dist/config/abi/bondNft.json +424 -0
  6. package/dist/config/abi/ens-public-resolver.json +816 -0
  7. package/dist/config/abi/ens-registrar.json +422 -0
  8. package/dist/config/abi/erc20_bytes32.json +30 -0
  9. package/dist/config/abi/jungleChef.json +291 -0
  10. package/dist/config/abi/launchBonds.json +2014 -0
  11. package/dist/config/abi/lockVeAbond.json +2198 -0
  12. package/dist/config/abi/migrationBond.json +1639 -0
  13. package/dist/config/abi/migrationFveAbond.json +160 -0
  14. package/dist/config/abi/multicallv3.json +92 -0
  15. package/dist/config/abi/sousChef.json +649 -0
  16. package/dist/config/abi/types/Banana.d.ts +417 -0
  17. package/dist/config/abi/types/Banana.js +1 -0
  18. package/dist/config/abi/types/Bond.d.ts +803 -0
  19. package/dist/config/abi/types/Bond.js +1 -0
  20. package/dist/config/abi/types/BondNft.d.ts +603 -0
  21. package/dist/config/abi/types/BondNft.js +1 -0
  22. package/dist/config/abi/types/EnsPublicResolver.d.ts +513 -0
  23. package/dist/config/abi/types/EnsPublicResolver.js +1 -0
  24. package/dist/config/abi/types/EnsRegistrar.d.ts +274 -0
  25. package/dist/config/abi/types/EnsRegistrar.js +1 -0
  26. package/dist/config/abi/types/Erc20.d.ts +168 -0
  27. package/dist/config/abi/types/Erc20.js +1 -0
  28. package/dist/config/abi/types/Erc20_bytes32.d.ts +50 -0
  29. package/dist/config/abi/types/Erc20_bytes32.js +1 -0
  30. package/dist/config/abi/types/JungleChef.d.ts +260 -0
  31. package/dist/config/abi/types/JungleChef.js +1 -0
  32. package/dist/config/abi/types/LaunchBonds.d.ts +1362 -0
  33. package/dist/config/abi/types/LaunchBonds.js +1 -0
  34. package/dist/config/abi/types/LensContract.d.ts +295 -0
  35. package/dist/config/abi/types/LensContract.js +1 -0
  36. package/dist/config/abi/types/LockVeAbond.d.ts +1279 -0
  37. package/dist/config/abi/types/LockVeAbond.js +1 -0
  38. package/dist/config/abi/types/MigrationBond.d.ts +1136 -0
  39. package/dist/config/abi/types/MigrationBond.js +1 -0
  40. package/dist/config/abi/types/MigrationFveAbond.d.ts +290 -0
  41. package/dist/config/abi/types/MigrationFveAbond.js +1 -0
  42. package/dist/config/abi/types/MiniComplexRewarder.d.ts +469 -0
  43. package/dist/config/abi/types/MiniComplexRewarder.js +1 -0
  44. package/dist/config/abi/types/Multicallv2.d.ts +150 -0
  45. package/dist/config/abi/types/Multicallv2.js +1 -0
  46. package/dist/config/abi/types/Multicallv3.d.ts +98 -0
  47. package/dist/config/abi/types/Multicallv3.js +1 -0
  48. package/dist/config/abi/types/NonFungibleApes.d.ts +532 -0
  49. package/dist/config/abi/types/NonFungibleApes.js +1 -0
  50. package/dist/config/abi/types/NonFungibleBananas.d.ts +505 -0
  51. package/dist/config/abi/types/NonFungibleBananas.js +1 -0
  52. package/dist/config/abi/types/PriceGetter.d.ts +713 -0
  53. package/dist/config/abi/types/PriceGetter.js +1 -0
  54. package/dist/config/abi/types/PriceGetterLinea.d.ts +789 -0
  55. package/dist/config/abi/types/PriceGetterLinea.js +1 -0
  56. package/dist/config/abi/types/PriceGetterV2.d.ts +729 -0
  57. package/dist/config/abi/types/PriceGetterV2.js +1 -0
  58. package/dist/config/abi/types/SousChef.d.ts +579 -0
  59. package/dist/config/abi/types/SousChef.js +1 -0
  60. package/dist/config/abi/types/Treasury.d.ts +277 -0
  61. package/dist/config/abi/types/Treasury.js +1 -0
  62. package/dist/config/abi/types/Weth.d.ts +221 -0
  63. package/dist/config/abi/types/Weth.js +1 -0
  64. package/dist/config/abi/types/Zap.d.ts +528 -0
  65. package/dist/config/abi/types/Zap.js +1 -0
  66. package/dist/config/abi/types/common.d.ts +22 -0
  67. package/dist/config/abi/types/common.js +1 -0
  68. package/dist/config/abi/types/factories/Banana__factory.d.ts +475 -0
  69. package/dist/config/abi/types/factories/Banana__factory.js +628 -0
  70. package/dist/config/abi/types/factories/BondNft__factory.d.ts +723 -0
  71. package/dist/config/abi/types/factories/BondNft__factory.js +951 -0
  72. package/dist/config/abi/types/factories/Bond__factory.d.ts +799 -0
  73. package/dist/config/abi/types/factories/Bond__factory.js +1042 -0
  74. package/dist/config/abi/types/factories/EnsPublicResolver__factory.d.ts +649 -0
  75. package/dist/config/abi/types/factories/EnsPublicResolver__factory.js +833 -0
  76. package/dist/config/abi/types/factories/EnsRegistrar__factory.d.ts +338 -0
  77. package/dist/config/abi/types/factories/EnsRegistrar__factory.js +439 -0
  78. package/dist/config/abi/types/factories/Erc20__factory.d.ts +175 -0
  79. package/dist/config/abi/types/factories/Erc20__factory.js +239 -0
  80. package/dist/config/abi/types/factories/Erc20_bytes32__factory.d.ts +30 -0
  81. package/dist/config/abi/types/factories/Erc20_bytes32__factory.js +47 -0
  82. package/dist/config/abi/types/factories/JungleChef__factory.d.ts +247 -0
  83. package/dist/config/abi/types/factories/JungleChef__factory.js +326 -0
  84. package/dist/config/abi/types/factories/LaunchBonds__factory.d.ts +1560 -0
  85. package/dist/config/abi/types/factories/LaunchBonds__factory.js +2031 -0
  86. package/dist/config/abi/types/factories/LensContract__factory.d.ts +254 -0
  87. package/dist/config/abi/types/factories/LensContract__factory.js +338 -0
  88. package/dist/config/abi/types/factories/LockVeAbond__factory.d.ts +1698 -0
  89. package/dist/config/abi/types/factories/LockVeAbond__factory.js +2215 -0
  90. package/dist/config/abi/types/factories/MigrationBond__factory.d.ts +1268 -0
  91. package/dist/config/abi/types/factories/MigrationBond__factory.js +1656 -0
  92. package/dist/config/abi/types/factories/MigrationFveAbond__factory.d.ts +262 -0
  93. package/dist/config/abi/types/factories/MigrationFveAbond__factory.js +346 -0
  94. package/dist/config/abi/types/factories/MiniComplexRewarder__factory.d.ts +448 -0
  95. package/dist/config/abi/types/factories/MiniComplexRewarder__factory.js +586 -0
  96. package/dist/config/abi/types/factories/Multicallv2__factory.d.ts +115 -0
  97. package/dist/config/abi/types/factories/Multicallv2__factory.js +160 -0
  98. package/dist/config/abi/types/factories/Multicallv3__factory.d.ts +76 -0
  99. package/dist/config/abi/types/factories/Multicallv3__factory.js +109 -0
  100. package/dist/config/abi/types/factories/NonFungibleApes__factory.d.ts +617 -0
  101. package/dist/config/abi/types/factories/NonFungibleApes__factory.js +810 -0
  102. package/dist/config/abi/types/factories/NonFungibleBananas__factory.d.ts +576 -0
  103. package/dist/config/abi/types/factories/NonFungibleBananas__factory.js +756 -0
  104. package/dist/config/abi/types/factories/PriceGetterLinea__factory.d.ts +1105 -0
  105. package/dist/config/abi/types/factories/PriceGetterLinea__factory.js +1465 -0
  106. package/dist/config/abi/types/factories/PriceGetterV2__factory.d.ts +1027 -0
  107. package/dist/config/abi/types/factories/PriceGetterV2__factory.js +1364 -0
  108. package/dist/config/abi/types/factories/PriceGetter__factory.d.ts +999 -0
  109. package/dist/config/abi/types/factories/PriceGetter__factory.js +1326 -0
  110. package/dist/config/abi/types/factories/SousChef__factory.d.ts +511 -0
  111. package/dist/config/abi/types/factories/SousChef__factory.js +666 -0
  112. package/dist/config/abi/types/factories/Treasury__factory.d.ts +235 -0
  113. package/dist/config/abi/types/factories/Treasury__factory.js +309 -0
  114. package/dist/config/abi/types/factories/Weth__factory.d.ts +220 -0
  115. package/dist/config/abi/types/factories/Weth__factory.js +296 -0
  116. package/dist/config/abi/types/factories/Zap__factory.d.ts +695 -0
  117. package/dist/config/abi/types/factories/Zap__factory.js +889 -0
  118. package/dist/config/abi/types/factories/index.d.ts +25 -0
  119. package/dist/config/abi/types/factories/index.js +28 -0
  120. package/dist/config/abi/types/index.d.ts +51 -0
  121. package/dist/config/abi/types/index.js +26 -0
  122. package/dist/config/abi/weth.json +279 -0
  123. package/dist/hooks/useClaimBill.d.ts +4 -0
  124. package/dist/hooks/useClaimBill.js +59 -0
  125. package/dist/hooks/useContract.d.ts +25 -0
  126. package/dist/hooks/useContract.js +107 -0
  127. package/dist/pages/Bonds/Bonds.d.ts +6 -1
  128. package/dist/pages/Bonds/Bonds.js +12 -13
  129. package/dist/pages/YourBonds/YourBonds.js +37 -10
  130. package/dist/utils/index.d.ts +16 -0
  131. package/dist/utils/index.js +127 -0
  132. package/dist/utils/track.d.ts +7 -0
  133. package/dist/utils/track.js +17 -0
  134. package/package.json +1 -1
@@ -0,0 +1,1465 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Contract, utils } from "ethers";
5
+ var _abi = [
6
+ {
7
+ inputs: [],
8
+ name: "T",
9
+ type: "error",
10
+ },
11
+ {
12
+ anonymous: false,
13
+ inputs: [
14
+ {
15
+ indexed: false,
16
+ internalType: "uint8",
17
+ name: "version",
18
+ type: "uint8",
19
+ },
20
+ ],
21
+ name: "Initialized",
22
+ type: "event",
23
+ },
24
+ {
25
+ anonymous: false,
26
+ inputs: [
27
+ {
28
+ indexed: true,
29
+ internalType: "address",
30
+ name: "previousOwner",
31
+ type: "address",
32
+ },
33
+ {
34
+ indexed: true,
35
+ internalType: "address",
36
+ name: "newOwner",
37
+ type: "address",
38
+ },
39
+ ],
40
+ name: "OwnershipTransferred",
41
+ type: "event",
42
+ },
43
+ {
44
+ inputs: [],
45
+ name: "DECIMALS",
46
+ outputs: [
47
+ {
48
+ internalType: "uint256",
49
+ name: "",
50
+ type: "uint256",
51
+ },
52
+ ],
53
+ stateMutability: "pure",
54
+ type: "function",
55
+ },
56
+ {
57
+ inputs: [],
58
+ name: "FACTORY",
59
+ outputs: [
60
+ {
61
+ internalType: "address",
62
+ name: "",
63
+ type: "address",
64
+ },
65
+ ],
66
+ stateMutability: "pure",
67
+ type: "function",
68
+ },
69
+ {
70
+ inputs: [],
71
+ name: "INITCODEHASH",
72
+ outputs: [
73
+ {
74
+ internalType: "bytes32",
75
+ name: "",
76
+ type: "bytes32",
77
+ },
78
+ ],
79
+ stateMutability: "pure",
80
+ type: "function",
81
+ },
82
+ {
83
+ inputs: [],
84
+ name: "defaultFactoryAlgebra",
85
+ outputs: [
86
+ {
87
+ internalType: "contract IAlgebraFactory",
88
+ name: "",
89
+ type: "address",
90
+ },
91
+ ],
92
+ stateMutability: "view",
93
+ type: "function",
94
+ },
95
+ {
96
+ inputs: [],
97
+ name: "defaultFactorySolidly",
98
+ outputs: [
99
+ {
100
+ internalType: "contract ISolidlyFactory",
101
+ name: "",
102
+ type: "address",
103
+ },
104
+ ],
105
+ stateMutability: "view",
106
+ type: "function",
107
+ },
108
+ {
109
+ inputs: [],
110
+ name: "defaultFactoryV2",
111
+ outputs: [
112
+ {
113
+ internalType: "contract IApeFactory",
114
+ name: "",
115
+ type: "address",
116
+ },
117
+ ],
118
+ stateMutability: "view",
119
+ type: "function",
120
+ },
121
+ {
122
+ inputs: [],
123
+ name: "defaultFactoryV3",
124
+ outputs: [
125
+ {
126
+ internalType: "contract IUniswapV3Factory",
127
+ name: "",
128
+ type: "address",
129
+ },
130
+ ],
131
+ stateMutability: "view",
132
+ type: "function",
133
+ },
134
+ {
135
+ inputs: [],
136
+ name: "defaultFactoryXFAI",
137
+ outputs: [
138
+ {
139
+ internalType: "contract IXFAIFactory",
140
+ name: "",
141
+ type: "address",
142
+ },
143
+ ],
144
+ stateMutability: "view",
145
+ type: "function",
146
+ },
147
+ {
148
+ inputs: [
149
+ {
150
+ internalType: "uint32",
151
+ name: "secondsAgo",
152
+ type: "uint32",
153
+ },
154
+ ],
155
+ name: "getETHPrice",
156
+ outputs: [
157
+ {
158
+ internalType: "uint256",
159
+ name: "",
160
+ type: "uint256",
161
+ },
162
+ ],
163
+ stateMutability: "view",
164
+ type: "function",
165
+ },
166
+ {
167
+ inputs: [],
168
+ name: "getETHPrice",
169
+ outputs: [
170
+ {
171
+ internalType: "uint256",
172
+ name: "",
173
+ type: "uint256",
174
+ },
175
+ ],
176
+ stateMutability: "view",
177
+ type: "function",
178
+ },
179
+ {
180
+ inputs: [
181
+ {
182
+ internalType: "address",
183
+ name: "token",
184
+ type: "address",
185
+ },
186
+ {
187
+ internalType: "uint256",
188
+ name: "_decimals",
189
+ type: "uint256",
190
+ },
191
+ ],
192
+ name: "getLPPrice",
193
+ outputs: [
194
+ {
195
+ internalType: "uint256",
196
+ name: "",
197
+ type: "uint256",
198
+ },
199
+ ],
200
+ stateMutability: "view",
201
+ type: "function",
202
+ },
203
+ {
204
+ inputs: [
205
+ {
206
+ internalType: "address",
207
+ name: "token0",
208
+ type: "address",
209
+ },
210
+ {
211
+ internalType: "address",
212
+ name: "token1",
213
+ type: "address",
214
+ },
215
+ ],
216
+ name: "getLPPriceAlgebra",
217
+ outputs: [
218
+ {
219
+ internalType: "uint256",
220
+ name: "price",
221
+ type: "uint256",
222
+ },
223
+ ],
224
+ stateMutability: "view",
225
+ type: "function",
226
+ },
227
+ {
228
+ inputs: [
229
+ {
230
+ internalType: "contract IAlgebraFactory",
231
+ name: "factoryAlgebra",
232
+ type: "address",
233
+ },
234
+ {
235
+ internalType: "address",
236
+ name: "token0",
237
+ type: "address",
238
+ },
239
+ {
240
+ internalType: "address",
241
+ name: "token1",
242
+ type: "address",
243
+ },
244
+ ],
245
+ name: "getLPPriceAlgebraFromFactory",
246
+ outputs: [
247
+ {
248
+ internalType: "uint256",
249
+ name: "price",
250
+ type: "uint256",
251
+ },
252
+ ],
253
+ stateMutability: "view",
254
+ type: "function",
255
+ },
256
+ {
257
+ inputs: [
258
+ {
259
+ internalType: "address",
260
+ name: "token",
261
+ type: "address",
262
+ },
263
+ {
264
+ internalType: "enum IPriceGetterV2.Protocol",
265
+ name: "protocol",
266
+ type: "uint8",
267
+ },
268
+ {
269
+ internalType: "contract IApeFactory",
270
+ name: "factoryV2",
271
+ type: "address",
272
+ },
273
+ {
274
+ internalType: "contract IUniswapV3Factory",
275
+ name: "factoryV3",
276
+ type: "address",
277
+ },
278
+ {
279
+ internalType: "contract IAlgebraFactory",
280
+ name: "factoryAlgebra",
281
+ type: "address",
282
+ },
283
+ {
284
+ internalType: "contract ISolidlyFactory",
285
+ name: "factorySolidly",
286
+ type: "address",
287
+ },
288
+ ],
289
+ name: "getLPPriceFromFactory",
290
+ outputs: [
291
+ {
292
+ internalType: "uint256",
293
+ name: "price",
294
+ type: "uint256",
295
+ },
296
+ ],
297
+ stateMutability: "view",
298
+ type: "function",
299
+ },
300
+ {
301
+ inputs: [
302
+ {
303
+ internalType: "contract Hypervisor",
304
+ name: "lp",
305
+ type: "address",
306
+ },
307
+ ],
308
+ name: "getLPPriceGamma",
309
+ outputs: [
310
+ {
311
+ internalType: "uint256",
312
+ name: "price",
313
+ type: "uint256",
314
+ },
315
+ ],
316
+ stateMutability: "view",
317
+ type: "function",
318
+ },
319
+ {
320
+ inputs: [
321
+ {
322
+ internalType: "contract IAlgebraFactory",
323
+ name: "factory",
324
+ type: "address",
325
+ },
326
+ {
327
+ internalType: "contract IApeFactory",
328
+ name: "factoryV2",
329
+ type: "address",
330
+ },
331
+ {
332
+ internalType: "contract Hypervisor",
333
+ name: "lp",
334
+ type: "address",
335
+ },
336
+ ],
337
+ name: "getLPPriceGammaFromFactory",
338
+ outputs: [
339
+ {
340
+ internalType: "uint256",
341
+ name: "price",
342
+ type: "uint256",
343
+ },
344
+ ],
345
+ stateMutability: "view",
346
+ type: "function",
347
+ },
348
+ {
349
+ inputs: [
350
+ {
351
+ internalType: "address",
352
+ name: "lp",
353
+ type: "address",
354
+ },
355
+ ],
356
+ name: "getLPPriceSolidly",
357
+ outputs: [
358
+ {
359
+ internalType: "uint256",
360
+ name: "price",
361
+ type: "uint256",
362
+ },
363
+ ],
364
+ stateMutability: "view",
365
+ type: "function",
366
+ },
367
+ {
368
+ inputs: [
369
+ {
370
+ internalType: "contract ISolidlyFactory",
371
+ name: "factorySolidly",
372
+ type: "address",
373
+ },
374
+ {
375
+ internalType: "address",
376
+ name: "lp",
377
+ type: "address",
378
+ },
379
+ ],
380
+ name: "getLPPriceSolidlyFromFactory",
381
+ outputs: [
382
+ {
383
+ internalType: "uint256",
384
+ name: "price",
385
+ type: "uint256",
386
+ },
387
+ ],
388
+ stateMutability: "view",
389
+ type: "function",
390
+ },
391
+ {
392
+ inputs: [
393
+ {
394
+ internalType: "address",
395
+ name: "lp",
396
+ type: "address",
397
+ },
398
+ ],
399
+ name: "getLPPriceV2",
400
+ outputs: [
401
+ {
402
+ internalType: "uint256",
403
+ name: "price",
404
+ type: "uint256",
405
+ },
406
+ ],
407
+ stateMutability: "view",
408
+ type: "function",
409
+ },
410
+ {
411
+ inputs: [
412
+ {
413
+ internalType: "contract IApeFactory",
414
+ name: "factoryV2",
415
+ type: "address",
416
+ },
417
+ {
418
+ internalType: "address",
419
+ name: "lp",
420
+ type: "address",
421
+ },
422
+ ],
423
+ name: "getLPPriceV2FromFactory",
424
+ outputs: [
425
+ {
426
+ internalType: "uint256",
427
+ name: "price",
428
+ type: "uint256",
429
+ },
430
+ ],
431
+ stateMutability: "view",
432
+ type: "function",
433
+ },
434
+ {
435
+ inputs: [
436
+ {
437
+ internalType: "address",
438
+ name: "token0",
439
+ type: "address",
440
+ },
441
+ {
442
+ internalType: "address",
443
+ name: "token1",
444
+ type: "address",
445
+ },
446
+ {
447
+ internalType: "uint24",
448
+ name: "fee",
449
+ type: "uint24",
450
+ },
451
+ ],
452
+ name: "getLPPriceV3",
453
+ outputs: [
454
+ {
455
+ internalType: "uint256",
456
+ name: "price",
457
+ type: "uint256",
458
+ },
459
+ ],
460
+ stateMutability: "view",
461
+ type: "function",
462
+ },
463
+ {
464
+ inputs: [
465
+ {
466
+ internalType: "address",
467
+ name: "factoryV3",
468
+ type: "address",
469
+ },
470
+ {
471
+ internalType: "address",
472
+ name: "token0",
473
+ type: "address",
474
+ },
475
+ {
476
+ internalType: "address",
477
+ name: "token1",
478
+ type: "address",
479
+ },
480
+ {
481
+ internalType: "uint24",
482
+ name: "fee",
483
+ type: "uint24",
484
+ },
485
+ ],
486
+ name: "getLPPriceV3FromFactory",
487
+ outputs: [
488
+ {
489
+ internalType: "uint256",
490
+ name: "price",
491
+ type: "uint256",
492
+ },
493
+ ],
494
+ stateMutability: "view",
495
+ type: "function",
496
+ },
497
+ {
498
+ inputs: [
499
+ {
500
+ internalType: "address",
501
+ name: "lp",
502
+ type: "address",
503
+ },
504
+ ],
505
+ name: "getLPPriceXFAI",
506
+ outputs: [
507
+ {
508
+ internalType: "uint256",
509
+ name: "price",
510
+ type: "uint256",
511
+ },
512
+ ],
513
+ stateMutability: "view",
514
+ type: "function",
515
+ },
516
+ {
517
+ inputs: [
518
+ {
519
+ internalType: "contract IXFAIFactory",
520
+ name: "factoryXFAI",
521
+ type: "address",
522
+ },
523
+ {
524
+ internalType: "address",
525
+ name: "lp",
526
+ type: "address",
527
+ },
528
+ ],
529
+ name: "getLPPriceXFAIFromFactory",
530
+ outputs: [
531
+ {
532
+ internalType: "uint256",
533
+ name: "price",
534
+ type: "uint256",
535
+ },
536
+ ],
537
+ stateMutability: "view",
538
+ type: "function",
539
+ },
540
+ {
541
+ inputs: [
542
+ {
543
+ internalType: "address[]",
544
+ name: "tokens",
545
+ type: "address[]",
546
+ },
547
+ {
548
+ internalType: "uint256",
549
+ name: "_decimals",
550
+ type: "uint256",
551
+ },
552
+ ],
553
+ name: "getLPPrices",
554
+ outputs: [
555
+ {
556
+ internalType: "uint256[]",
557
+ name: "prices",
558
+ type: "uint256[]",
559
+ },
560
+ ],
561
+ stateMutability: "view",
562
+ type: "function",
563
+ },
564
+ {
565
+ inputs: [
566
+ {
567
+ internalType: "address[]",
568
+ name: "tokens",
569
+ type: "address[]",
570
+ },
571
+ ],
572
+ name: "getLPPricesV2",
573
+ outputs: [
574
+ {
575
+ internalType: "uint256[]",
576
+ name: "prices",
577
+ type: "uint256[]",
578
+ },
579
+ ],
580
+ stateMutability: "view",
581
+ type: "function",
582
+ },
583
+ {
584
+ inputs: [
585
+ {
586
+ internalType: "contract IApeFactory",
587
+ name: "factoryV2",
588
+ type: "address",
589
+ },
590
+ {
591
+ internalType: "address[]",
592
+ name: "tokens",
593
+ type: "address[]",
594
+ },
595
+ ],
596
+ name: "getLPPricesV2FromFactory",
597
+ outputs: [
598
+ {
599
+ internalType: "uint256[]",
600
+ name: "prices",
601
+ type: "uint256[]",
602
+ },
603
+ ],
604
+ stateMutability: "view",
605
+ type: "function",
606
+ },
607
+ {
608
+ inputs: [
609
+ {
610
+ internalType: "address[]",
611
+ name: "tokens0",
612
+ type: "address[]",
613
+ },
614
+ {
615
+ internalType: "address[]",
616
+ name: "tokens1",
617
+ type: "address[]",
618
+ },
619
+ {
620
+ internalType: "uint24[]",
621
+ name: "fees",
622
+ type: "uint24[]",
623
+ },
624
+ ],
625
+ name: "getLPPricesV3",
626
+ outputs: [
627
+ {
628
+ internalType: "uint256[]",
629
+ name: "prices",
630
+ type: "uint256[]",
631
+ },
632
+ ],
633
+ stateMutability: "view",
634
+ type: "function",
635
+ },
636
+ {
637
+ inputs: [
638
+ {
639
+ internalType: "contract IUniswapV3Factory",
640
+ name: "factoryV3",
641
+ type: "address",
642
+ },
643
+ {
644
+ internalType: "address[]",
645
+ name: "tokens0",
646
+ type: "address[]",
647
+ },
648
+ {
649
+ internalType: "address[]",
650
+ name: "tokens1",
651
+ type: "address[]",
652
+ },
653
+ {
654
+ internalType: "uint24[]",
655
+ name: "fees",
656
+ type: "uint24[]",
657
+ },
658
+ ],
659
+ name: "getLPPricesV3FromFactory",
660
+ outputs: [
661
+ {
662
+ internalType: "uint256[]",
663
+ name: "prices",
664
+ type: "uint256[]",
665
+ },
666
+ ],
667
+ stateMutability: "view",
668
+ type: "function",
669
+ },
670
+ {
671
+ inputs: [],
672
+ name: "getNativePrice",
673
+ outputs: [
674
+ {
675
+ internalType: "uint256",
676
+ name: "",
677
+ type: "uint256",
678
+ },
679
+ ],
680
+ stateMutability: "view",
681
+ type: "function",
682
+ },
683
+ {
684
+ inputs: [
685
+ {
686
+ internalType: "enum IPriceGetterV2.Protocol",
687
+ name: "protocol",
688
+ type: "uint8",
689
+ },
690
+ ],
691
+ name: "getNativePrice",
692
+ outputs: [
693
+ {
694
+ internalType: "uint256",
695
+ name: "nativePrice",
696
+ type: "uint256",
697
+ },
698
+ ],
699
+ stateMutability: "view",
700
+ type: "function",
701
+ },
702
+ {
703
+ inputs: [
704
+ {
705
+ internalType: "enum IPriceGetterV2.Protocol",
706
+ name: "protocol",
707
+ type: "uint8",
708
+ },
709
+ {
710
+ internalType: "contract IApeFactory",
711
+ name: "factoryV2",
712
+ type: "address",
713
+ },
714
+ {
715
+ internalType: "contract IUniswapV3Factory",
716
+ name: "factoryV3",
717
+ type: "address",
718
+ },
719
+ {
720
+ internalType: "contract ISolidlyFactory",
721
+ name: "factorySolidly",
722
+ type: "address",
723
+ },
724
+ ],
725
+ name: "getNativePriceFromFactory",
726
+ outputs: [
727
+ {
728
+ internalType: "uint256",
729
+ name: "nativePrice",
730
+ type: "uint256",
731
+ },
732
+ ],
733
+ stateMutability: "view",
734
+ type: "function",
735
+ },
736
+ {
737
+ inputs: [
738
+ {
739
+ internalType: "address",
740
+ name: "token",
741
+ type: "address",
742
+ },
743
+ {
744
+ internalType: "uint32",
745
+ name: "secondsAgo",
746
+ type: "uint32",
747
+ },
748
+ ],
749
+ name: "getPrice",
750
+ outputs: [
751
+ {
752
+ internalType: "uint256",
753
+ name: "",
754
+ type: "uint256",
755
+ },
756
+ ],
757
+ stateMutability: "view",
758
+ type: "function",
759
+ },
760
+ {
761
+ inputs: [
762
+ {
763
+ internalType: "address",
764
+ name: "token",
765
+ type: "address",
766
+ },
767
+ {
768
+ internalType: "enum IPriceGetterV2.Protocol",
769
+ name: "protocol",
770
+ type: "uint8",
771
+ },
772
+ ],
773
+ name: "getPrice",
774
+ outputs: [
775
+ {
776
+ internalType: "uint256",
777
+ name: "price",
778
+ type: "uint256",
779
+ },
780
+ ],
781
+ stateMutability: "view",
782
+ type: "function",
783
+ },
784
+ {
785
+ inputs: [
786
+ {
787
+ internalType: "address",
788
+ name: "token",
789
+ type: "address",
790
+ },
791
+ {
792
+ internalType: "uint256",
793
+ name: "_decimals",
794
+ type: "uint256",
795
+ },
796
+ ],
797
+ name: "getPrice",
798
+ outputs: [
799
+ {
800
+ internalType: "uint256",
801
+ name: "",
802
+ type: "uint256",
803
+ },
804
+ ],
805
+ stateMutability: "view",
806
+ type: "function",
807
+ },
808
+ {
809
+ inputs: [
810
+ {
811
+ internalType: "address",
812
+ name: "token",
813
+ type: "address",
814
+ },
815
+ ],
816
+ name: "getPriceAlgebra",
817
+ outputs: [
818
+ {
819
+ internalType: "uint256",
820
+ name: "price",
821
+ type: "uint256",
822
+ },
823
+ ],
824
+ stateMutability: "view",
825
+ type: "function",
826
+ },
827
+ {
828
+ inputs: [
829
+ {
830
+ internalType: "contract IAlgebraFactory",
831
+ name: "factoryAlgebra",
832
+ type: "address",
833
+ },
834
+ {
835
+ internalType: "address",
836
+ name: "token",
837
+ type: "address",
838
+ },
839
+ ],
840
+ name: "getPriceAlgebraFromFactory",
841
+ outputs: [
842
+ {
843
+ internalType: "uint256",
844
+ name: "price",
845
+ type: "uint256",
846
+ },
847
+ ],
848
+ stateMutability: "view",
849
+ type: "function",
850
+ },
851
+ {
852
+ inputs: [
853
+ {
854
+ internalType: "address",
855
+ name: "token",
856
+ type: "address",
857
+ },
858
+ {
859
+ internalType: "enum IPriceGetterV2.Protocol",
860
+ name: "protocol",
861
+ type: "uint8",
862
+ },
863
+ {
864
+ internalType: "contract IApeFactory",
865
+ name: "factoryV2",
866
+ type: "address",
867
+ },
868
+ {
869
+ internalType: "contract IUniswapV3Factory",
870
+ name: "factoryV3",
871
+ type: "address",
872
+ },
873
+ {
874
+ internalType: "contract IAlgebraFactory",
875
+ name: "factoryAlgebra",
876
+ type: "address",
877
+ },
878
+ {
879
+ internalType: "contract ISolidlyFactory",
880
+ name: "factorySolidly",
881
+ type: "address",
882
+ },
883
+ {
884
+ internalType: "contract IXFAIFactory",
885
+ name: "factoryXFAI",
886
+ type: "address",
887
+ },
888
+ ],
889
+ name: "getPriceFromFactory",
890
+ outputs: [
891
+ {
892
+ internalType: "uint256",
893
+ name: "price",
894
+ type: "uint256",
895
+ },
896
+ ],
897
+ stateMutability: "view",
898
+ type: "function",
899
+ },
900
+ {
901
+ inputs: [
902
+ {
903
+ internalType: "address",
904
+ name: "token",
905
+ type: "address",
906
+ },
907
+ ],
908
+ name: "getPriceV2",
909
+ outputs: [
910
+ {
911
+ internalType: "uint256",
912
+ name: "price",
913
+ type: "uint256",
914
+ },
915
+ ],
916
+ stateMutability: "view",
917
+ type: "function",
918
+ },
919
+ {
920
+ inputs: [
921
+ {
922
+ internalType: "contract IApeFactory",
923
+ name: "factoryV2",
924
+ type: "address",
925
+ },
926
+ {
927
+ internalType: "address",
928
+ name: "token",
929
+ type: "address",
930
+ },
931
+ ],
932
+ name: "getPriceV2FromFactory",
933
+ outputs: [
934
+ {
935
+ internalType: "uint256",
936
+ name: "price",
937
+ type: "uint256",
938
+ },
939
+ ],
940
+ stateMutability: "view",
941
+ type: "function",
942
+ },
943
+ {
944
+ inputs: [
945
+ {
946
+ internalType: "address",
947
+ name: "token",
948
+ type: "address",
949
+ },
950
+ ],
951
+ name: "getPriceV3",
952
+ outputs: [
953
+ {
954
+ internalType: "uint256",
955
+ name: "price",
956
+ type: "uint256",
957
+ },
958
+ ],
959
+ stateMutability: "view",
960
+ type: "function",
961
+ },
962
+ {
963
+ inputs: [
964
+ {
965
+ internalType: "contract IUniswapV3Factory",
966
+ name: "factoryV3",
967
+ type: "address",
968
+ },
969
+ {
970
+ internalType: "address",
971
+ name: "token",
972
+ type: "address",
973
+ },
974
+ ],
975
+ name: "getPriceV3FromFactory",
976
+ outputs: [
977
+ {
978
+ internalType: "uint256",
979
+ name: "price",
980
+ type: "uint256",
981
+ },
982
+ ],
983
+ stateMutability: "view",
984
+ type: "function",
985
+ },
986
+ {
987
+ inputs: [
988
+ {
989
+ internalType: "address",
990
+ name: "token",
991
+ type: "address",
992
+ },
993
+ ],
994
+ name: "getPriceXFAI",
995
+ outputs: [
996
+ {
997
+ internalType: "uint256",
998
+ name: "price",
999
+ type: "uint256",
1000
+ },
1001
+ ],
1002
+ stateMutability: "view",
1003
+ type: "function",
1004
+ },
1005
+ {
1006
+ inputs: [
1007
+ {
1008
+ internalType: "contract IXFAIFactory",
1009
+ name: "factoryXFAI",
1010
+ type: "address",
1011
+ },
1012
+ {
1013
+ internalType: "address",
1014
+ name: "token",
1015
+ type: "address",
1016
+ },
1017
+ ],
1018
+ name: "getPriceXFAIFromFactory",
1019
+ outputs: [
1020
+ {
1021
+ internalType: "uint256",
1022
+ name: "price",
1023
+ type: "uint256",
1024
+ },
1025
+ ],
1026
+ stateMutability: "view",
1027
+ type: "function",
1028
+ },
1029
+ {
1030
+ inputs: [
1031
+ {
1032
+ internalType: "address[]",
1033
+ name: "tokens",
1034
+ type: "address[]",
1035
+ },
1036
+ {
1037
+ internalType: "enum IPriceGetterV2.Protocol",
1038
+ name: "protocol",
1039
+ type: "uint8",
1040
+ },
1041
+ ],
1042
+ name: "getPrices",
1043
+ outputs: [
1044
+ {
1045
+ internalType: "uint256[]",
1046
+ name: "prices",
1047
+ type: "uint256[]",
1048
+ },
1049
+ ],
1050
+ stateMutability: "view",
1051
+ type: "function",
1052
+ },
1053
+ {
1054
+ inputs: [
1055
+ {
1056
+ internalType: "address[]",
1057
+ name: "tokens",
1058
+ type: "address[]",
1059
+ },
1060
+ {
1061
+ internalType: "uint256",
1062
+ name: "_decimals",
1063
+ type: "uint256",
1064
+ },
1065
+ ],
1066
+ name: "getPrices",
1067
+ outputs: [
1068
+ {
1069
+ internalType: "uint256[]",
1070
+ name: "prices",
1071
+ type: "uint256[]",
1072
+ },
1073
+ ],
1074
+ stateMutability: "view",
1075
+ type: "function",
1076
+ },
1077
+ {
1078
+ inputs: [
1079
+ {
1080
+ internalType: "address[]",
1081
+ name: "tokens",
1082
+ type: "address[]",
1083
+ },
1084
+ {
1085
+ internalType: "uint32",
1086
+ name: "secondsAgo",
1087
+ type: "uint32",
1088
+ },
1089
+ ],
1090
+ name: "getPrices",
1091
+ outputs: [
1092
+ {
1093
+ internalType: "uint256[]",
1094
+ name: "prices",
1095
+ type: "uint256[]",
1096
+ },
1097
+ ],
1098
+ stateMutability: "view",
1099
+ type: "function",
1100
+ },
1101
+ {
1102
+ inputs: [
1103
+ {
1104
+ internalType: "address[]",
1105
+ name: "tokens",
1106
+ type: "address[]",
1107
+ },
1108
+ {
1109
+ internalType: "enum IPriceGetterV2.Protocol",
1110
+ name: "protocol",
1111
+ type: "uint8",
1112
+ },
1113
+ {
1114
+ internalType: "contract IApeFactory",
1115
+ name: "factoryV2",
1116
+ type: "address",
1117
+ },
1118
+ {
1119
+ internalType: "contract IUniswapV3Factory",
1120
+ name: "factoryV3",
1121
+ type: "address",
1122
+ },
1123
+ {
1124
+ internalType: "contract IAlgebraFactory",
1125
+ name: "factoryAlgebra",
1126
+ type: "address",
1127
+ },
1128
+ {
1129
+ internalType: "contract ISolidlyFactory",
1130
+ name: "factorySolidly",
1131
+ type: "address",
1132
+ },
1133
+ {
1134
+ internalType: "contract IXFAIFactory",
1135
+ name: "factoryXFAI",
1136
+ type: "address",
1137
+ },
1138
+ ],
1139
+ name: "getPricesFromFactory",
1140
+ outputs: [
1141
+ {
1142
+ internalType: "uint256[]",
1143
+ name: "prices",
1144
+ type: "uint256[]",
1145
+ },
1146
+ ],
1147
+ stateMutability: "view",
1148
+ type: "function",
1149
+ },
1150
+ {
1151
+ inputs: [
1152
+ {
1153
+ internalType: "address",
1154
+ name: "token",
1155
+ type: "address",
1156
+ },
1157
+ ],
1158
+ name: "getRawPrice",
1159
+ outputs: [
1160
+ {
1161
+ internalType: "uint256",
1162
+ name: "",
1163
+ type: "uint256",
1164
+ },
1165
+ ],
1166
+ stateMutability: "view",
1167
+ type: "function",
1168
+ },
1169
+ {
1170
+ inputs: [
1171
+ {
1172
+ internalType: "address[]",
1173
+ name: "tokens",
1174
+ type: "address[]",
1175
+ },
1176
+ ],
1177
+ name: "getRawPrices",
1178
+ outputs: [
1179
+ {
1180
+ internalType: "uint256[]",
1181
+ name: "prices",
1182
+ type: "uint256[]",
1183
+ },
1184
+ ],
1185
+ stateMutability: "view",
1186
+ type: "function",
1187
+ },
1188
+ {
1189
+ inputs: [
1190
+ {
1191
+ internalType: "address",
1192
+ name: "_wNative",
1193
+ type: "address",
1194
+ },
1195
+ {
1196
+ internalType: "uint256",
1197
+ name: "_nativeLiquidityThreshold",
1198
+ type: "uint256",
1199
+ },
1200
+ {
1201
+ internalType: "contract IApeFactory",
1202
+ name: "_defaultFactoryV2",
1203
+ type: "address",
1204
+ },
1205
+ {
1206
+ internalType: "contract IUniswapV3Factory",
1207
+ name: "_defaultFactoryV3",
1208
+ type: "address",
1209
+ },
1210
+ {
1211
+ internalType: "contract IAlgebraFactory",
1212
+ name: "_defaultFactoryAlgebra",
1213
+ type: "address",
1214
+ },
1215
+ {
1216
+ internalType: "contract ISolidlyFactory",
1217
+ name: "_defaultFactorySolidly",
1218
+ type: "address",
1219
+ },
1220
+ {
1221
+ internalType: "contract IXFAIFactory",
1222
+ name: "_defaultFactoryXFAI",
1223
+ type: "address",
1224
+ },
1225
+ {
1226
+ internalType: "address[]",
1227
+ name: "_stableUsdTokens",
1228
+ type: "address[]",
1229
+ },
1230
+ {
1231
+ internalType: "address[]",
1232
+ name: "_oracleTokens",
1233
+ type: "address[]",
1234
+ },
1235
+ {
1236
+ internalType: "address[]",
1237
+ name: "_oracles",
1238
+ type: "address[]",
1239
+ },
1240
+ ],
1241
+ name: "initialize",
1242
+ outputs: [],
1243
+ stateMutability: "nonpayable",
1244
+ type: "function",
1245
+ },
1246
+ {
1247
+ inputs: [],
1248
+ name: "nativeLiquidityThreshold",
1249
+ outputs: [
1250
+ {
1251
+ internalType: "uint256",
1252
+ name: "",
1253
+ type: "uint256",
1254
+ },
1255
+ ],
1256
+ stateMutability: "view",
1257
+ type: "function",
1258
+ },
1259
+ {
1260
+ inputs: [],
1261
+ name: "owner",
1262
+ outputs: [
1263
+ {
1264
+ internalType: "address",
1265
+ name: "",
1266
+ type: "address",
1267
+ },
1268
+ ],
1269
+ stateMutability: "view",
1270
+ type: "function",
1271
+ },
1272
+ {
1273
+ inputs: [
1274
+ {
1275
+ internalType: "address",
1276
+ name: "token",
1277
+ type: "address",
1278
+ },
1279
+ ],
1280
+ name: "removeTokenOracle",
1281
+ outputs: [],
1282
+ stateMutability: "nonpayable",
1283
+ type: "function",
1284
+ },
1285
+ {
1286
+ inputs: [],
1287
+ name: "renounceOwnership",
1288
+ outputs: [],
1289
+ stateMutability: "nonpayable",
1290
+ type: "function",
1291
+ },
1292
+ {
1293
+ inputs: [],
1294
+ name: "secondsAgo",
1295
+ outputs: [
1296
+ {
1297
+ internalType: "uint24",
1298
+ name: "",
1299
+ type: "uint24",
1300
+ },
1301
+ ],
1302
+ stateMutability: "view",
1303
+ type: "function",
1304
+ },
1305
+ {
1306
+ inputs: [
1307
+ {
1308
+ internalType: "enum IPriceGetterV2.Protocol",
1309
+ name: "_protocol",
1310
+ type: "uint8",
1311
+ },
1312
+ {
1313
+ internalType: "address",
1314
+ name: "_factory",
1315
+ type: "address",
1316
+ },
1317
+ ],
1318
+ name: "setDefaultFactory",
1319
+ outputs: [],
1320
+ stateMutability: "nonpayable",
1321
+ type: "function",
1322
+ },
1323
+ {
1324
+ inputs: [
1325
+ {
1326
+ internalType: "uint256",
1327
+ name: "_nativeLiquidityThreshold",
1328
+ type: "uint256",
1329
+ },
1330
+ ],
1331
+ name: "setNativeLiquidityThreshold",
1332
+ outputs: [],
1333
+ stateMutability: "nonpayable",
1334
+ type: "function",
1335
+ },
1336
+ {
1337
+ inputs: [
1338
+ {
1339
+ internalType: "address",
1340
+ name: "token",
1341
+ type: "address",
1342
+ },
1343
+ {
1344
+ internalType: "address",
1345
+ name: "oracleAddress",
1346
+ type: "address",
1347
+ },
1348
+ {
1349
+ internalType: "enum PriceGetterV2.OracleType",
1350
+ name: "oracleType",
1351
+ type: "uint8",
1352
+ },
1353
+ ],
1354
+ name: "setTokenOracle",
1355
+ outputs: [],
1356
+ stateMutability: "nonpayable",
1357
+ type: "function",
1358
+ },
1359
+ {
1360
+ inputs: [
1361
+ {
1362
+ internalType: "address",
1363
+ name: "",
1364
+ type: "address",
1365
+ },
1366
+ ],
1367
+ name: "stableUsdTokenDecimals",
1368
+ outputs: [
1369
+ {
1370
+ internalType: "uint8",
1371
+ name: "",
1372
+ type: "uint8",
1373
+ },
1374
+ ],
1375
+ stateMutability: "view",
1376
+ type: "function",
1377
+ },
1378
+ {
1379
+ inputs: [
1380
+ {
1381
+ internalType: "uint256",
1382
+ name: "",
1383
+ type: "uint256",
1384
+ },
1385
+ ],
1386
+ name: "stableUsdTokens",
1387
+ outputs: [
1388
+ {
1389
+ internalType: "address",
1390
+ name: "",
1391
+ type: "address",
1392
+ },
1393
+ ],
1394
+ stateMutability: "view",
1395
+ type: "function",
1396
+ },
1397
+ {
1398
+ inputs: [
1399
+ {
1400
+ internalType: "address",
1401
+ name: "",
1402
+ type: "address",
1403
+ },
1404
+ ],
1405
+ name: "tokenOracles",
1406
+ outputs: [
1407
+ {
1408
+ internalType: "enum PriceGetterV2.OracleType",
1409
+ name: "oracleType",
1410
+ type: "uint8",
1411
+ },
1412
+ {
1413
+ internalType: "address",
1414
+ name: "oracleAddress",
1415
+ type: "address",
1416
+ },
1417
+ {
1418
+ internalType: "uint8",
1419
+ name: "oracleDecimals",
1420
+ type: "uint8",
1421
+ },
1422
+ ],
1423
+ stateMutability: "view",
1424
+ type: "function",
1425
+ },
1426
+ {
1427
+ inputs: [
1428
+ {
1429
+ internalType: "address",
1430
+ name: "newOwner",
1431
+ type: "address",
1432
+ },
1433
+ ],
1434
+ name: "transferOwnership",
1435
+ outputs: [],
1436
+ stateMutability: "nonpayable",
1437
+ type: "function",
1438
+ },
1439
+ {
1440
+ inputs: [],
1441
+ name: "wNative",
1442
+ outputs: [
1443
+ {
1444
+ internalType: "address",
1445
+ name: "",
1446
+ type: "address",
1447
+ },
1448
+ ],
1449
+ stateMutability: "view",
1450
+ type: "function",
1451
+ },
1452
+ ];
1453
+ var PriceGetterLinea__factory = /** @class */ (function () {
1454
+ function PriceGetterLinea__factory() {
1455
+ }
1456
+ PriceGetterLinea__factory.createInterface = function () {
1457
+ return new utils.Interface(_abi);
1458
+ };
1459
+ PriceGetterLinea__factory.connect = function (address, signerOrProvider) {
1460
+ return new Contract(address, _abi, signerOrProvider);
1461
+ };
1462
+ PriceGetterLinea__factory.abi = _abi;
1463
+ return PriceGetterLinea__factory;
1464
+ }());
1465
+ export { PriceGetterLinea__factory };