@ape.swap/bonds-sdk 1.0.473 → 1.0.475

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