@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,1326 @@
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
+ name: "getPriceAlgebra",
785
+ outputs: [
786
+ {
787
+ internalType: "uint256",
788
+ name: "price",
789
+ type: "uint256",
790
+ },
791
+ ],
792
+ stateMutability: "view",
793
+ type: "function",
794
+ },
795
+ {
796
+ inputs: [
797
+ {
798
+ internalType: "contract IAlgebraFactory",
799
+ name: "factoryAlgebra",
800
+ type: "address",
801
+ },
802
+ {
803
+ internalType: "address",
804
+ name: "token",
805
+ type: "address",
806
+ },
807
+ ],
808
+ name: "getPriceAlgebraFromFactory",
809
+ outputs: [
810
+ {
811
+ internalType: "uint256",
812
+ name: "price",
813
+ type: "uint256",
814
+ },
815
+ ],
816
+ stateMutability: "view",
817
+ type: "function",
818
+ },
819
+ {
820
+ inputs: [
821
+ {
822
+ internalType: "address",
823
+ name: "token",
824
+ type: "address",
825
+ },
826
+ {
827
+ internalType: "enum IPriceGetterV2.Protocol",
828
+ name: "protocol",
829
+ type: "uint8",
830
+ },
831
+ {
832
+ internalType: "contract IApeFactory",
833
+ name: "factoryV2",
834
+ type: "address",
835
+ },
836
+ {
837
+ internalType: "contract IUniswapV3Factory",
838
+ name: "factoryV3",
839
+ type: "address",
840
+ },
841
+ {
842
+ internalType: "contract IAlgebraFactory",
843
+ name: "factoryAlgebra",
844
+ type: "address",
845
+ },
846
+ {
847
+ internalType: "contract ISolidlyFactory",
848
+ name: "factorySolidly",
849
+ type: "address",
850
+ },
851
+ ],
852
+ name: "getPriceFromFactory",
853
+ outputs: [
854
+ {
855
+ internalType: "uint256",
856
+ name: "price",
857
+ type: "uint256",
858
+ },
859
+ ],
860
+ stateMutability: "view",
861
+ type: "function",
862
+ },
863
+ {
864
+ inputs: [
865
+ {
866
+ internalType: "address",
867
+ name: "token",
868
+ type: "address",
869
+ },
870
+ ],
871
+ name: "getPriceV2",
872
+ outputs: [
873
+ {
874
+ internalType: "uint256",
875
+ name: "price",
876
+ type: "uint256",
877
+ },
878
+ ],
879
+ stateMutability: "view",
880
+ type: "function",
881
+ },
882
+ {
883
+ inputs: [
884
+ {
885
+ internalType: "contract IApeFactory",
886
+ name: "factoryV2",
887
+ type: "address",
888
+ },
889
+ {
890
+ internalType: "address",
891
+ name: "token",
892
+ type: "address",
893
+ },
894
+ ],
895
+ name: "getPriceV2FromFactory",
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: "getPriceV3",
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 IUniswapV3Factory",
929
+ name: "factoryV3",
930
+ type: "address",
931
+ },
932
+ {
933
+ internalType: "address",
934
+ name: "token",
935
+ type: "address",
936
+ },
937
+ ],
938
+ name: "getPriceV3FromFactory",
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: "tokens",
954
+ type: "address[]",
955
+ },
956
+ {
957
+ internalType: "enum IPriceGetterV2.Protocol",
958
+ name: "protocol",
959
+ type: "uint8",
960
+ },
961
+ ],
962
+ name: "getPrices",
963
+ outputs: [
964
+ {
965
+ internalType: "uint256[]",
966
+ name: "prices",
967
+ type: "uint256[]",
968
+ },
969
+ ],
970
+ stateMutability: "view",
971
+ type: "function",
972
+ },
973
+ {
974
+ inputs: [
975
+ {
976
+ internalType: "address[]",
977
+ name: "tokens",
978
+ type: "address[]",
979
+ },
980
+ {
981
+ internalType: "uint256",
982
+ name: "_decimals",
983
+ type: "uint256",
984
+ },
985
+ ],
986
+ name: "getPrices",
987
+ outputs: [
988
+ {
989
+ internalType: "uint256[]",
990
+ name: "prices",
991
+ type: "uint256[]",
992
+ },
993
+ ],
994
+ stateMutability: "view",
995
+ type: "function",
996
+ },
997
+ {
998
+ inputs: [
999
+ {
1000
+ internalType: "address[]",
1001
+ name: "tokens",
1002
+ type: "address[]",
1003
+ },
1004
+ {
1005
+ internalType: "uint32",
1006
+ name: "secondsAgo",
1007
+ type: "uint32",
1008
+ },
1009
+ ],
1010
+ name: "getPrices",
1011
+ outputs: [
1012
+ {
1013
+ internalType: "uint256[]",
1014
+ name: "prices",
1015
+ type: "uint256[]",
1016
+ },
1017
+ ],
1018
+ stateMutability: "view",
1019
+ type: "function",
1020
+ },
1021
+ {
1022
+ inputs: [
1023
+ {
1024
+ internalType: "address[]",
1025
+ name: "tokens",
1026
+ type: "address[]",
1027
+ },
1028
+ {
1029
+ internalType: "enum IPriceGetterV2.Protocol",
1030
+ name: "protocol",
1031
+ type: "uint8",
1032
+ },
1033
+ {
1034
+ internalType: "contract IApeFactory",
1035
+ name: "factoryV2",
1036
+ type: "address",
1037
+ },
1038
+ {
1039
+ internalType: "contract IUniswapV3Factory",
1040
+ name: "factoryV3",
1041
+ type: "address",
1042
+ },
1043
+ {
1044
+ internalType: "contract IAlgebraFactory",
1045
+ name: "factoryAlgebra",
1046
+ type: "address",
1047
+ },
1048
+ {
1049
+ internalType: "contract ISolidlyFactory",
1050
+ name: "factorySolidly",
1051
+ type: "address",
1052
+ },
1053
+ ],
1054
+ name: "getPricesFromFactory",
1055
+ outputs: [
1056
+ {
1057
+ internalType: "uint256[]",
1058
+ name: "prices",
1059
+ type: "uint256[]",
1060
+ },
1061
+ ],
1062
+ stateMutability: "view",
1063
+ type: "function",
1064
+ },
1065
+ {
1066
+ inputs: [
1067
+ {
1068
+ internalType: "address",
1069
+ name: "token",
1070
+ type: "address",
1071
+ },
1072
+ ],
1073
+ name: "getRawPrice",
1074
+ outputs: [
1075
+ {
1076
+ internalType: "uint256",
1077
+ name: "",
1078
+ type: "uint256",
1079
+ },
1080
+ ],
1081
+ stateMutability: "view",
1082
+ type: "function",
1083
+ },
1084
+ {
1085
+ inputs: [
1086
+ {
1087
+ internalType: "address[]",
1088
+ name: "tokens",
1089
+ type: "address[]",
1090
+ },
1091
+ ],
1092
+ name: "getRawPrices",
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: "_wNative",
1108
+ type: "address",
1109
+ },
1110
+ {
1111
+ internalType: "contract IApeFactory",
1112
+ name: "_defaultFactoryV2",
1113
+ type: "address",
1114
+ },
1115
+ {
1116
+ internalType: "contract IUniswapV3Factory",
1117
+ name: "_defaultFactoryV3",
1118
+ type: "address",
1119
+ },
1120
+ {
1121
+ internalType: "contract IAlgebraFactory",
1122
+ name: "_defaultFactoryAlgebra",
1123
+ type: "address",
1124
+ },
1125
+ {
1126
+ internalType: "contract ISolidlyFactory",
1127
+ name: "_defaultFactorySolidly",
1128
+ type: "address",
1129
+ },
1130
+ {
1131
+ internalType: "address[]",
1132
+ name: "_stableUsdTokens",
1133
+ type: "address[]",
1134
+ },
1135
+ {
1136
+ internalType: "address[]",
1137
+ name: "_oracleTokens",
1138
+ type: "address[]",
1139
+ },
1140
+ {
1141
+ internalType: "address[]",
1142
+ name: "_oracles",
1143
+ type: "address[]",
1144
+ },
1145
+ ],
1146
+ name: "initialize",
1147
+ outputs: [],
1148
+ stateMutability: "nonpayable",
1149
+ type: "function",
1150
+ },
1151
+ {
1152
+ inputs: [],
1153
+ name: "owner",
1154
+ outputs: [
1155
+ {
1156
+ internalType: "address",
1157
+ name: "",
1158
+ type: "address",
1159
+ },
1160
+ ],
1161
+ stateMutability: "view",
1162
+ type: "function",
1163
+ },
1164
+ {
1165
+ inputs: [
1166
+ {
1167
+ internalType: "address",
1168
+ name: "token",
1169
+ type: "address",
1170
+ },
1171
+ ],
1172
+ name: "removeTokenOracle",
1173
+ outputs: [],
1174
+ stateMutability: "nonpayable",
1175
+ type: "function",
1176
+ },
1177
+ {
1178
+ inputs: [],
1179
+ name: "renounceOwnership",
1180
+ outputs: [],
1181
+ stateMutability: "nonpayable",
1182
+ type: "function",
1183
+ },
1184
+ {
1185
+ inputs: [],
1186
+ name: "secondsAgo",
1187
+ outputs: [
1188
+ {
1189
+ internalType: "uint24",
1190
+ name: "",
1191
+ type: "uint24",
1192
+ },
1193
+ ],
1194
+ stateMutability: "view",
1195
+ type: "function",
1196
+ },
1197
+ {
1198
+ inputs: [
1199
+ {
1200
+ internalType: "address",
1201
+ name: "token",
1202
+ type: "address",
1203
+ },
1204
+ {
1205
+ internalType: "address",
1206
+ name: "oracleAddress",
1207
+ type: "address",
1208
+ },
1209
+ {
1210
+ internalType: "enum PriceGetterV2.OracleType",
1211
+ name: "oracleType",
1212
+ type: "uint8",
1213
+ },
1214
+ ],
1215
+ name: "setTokenOracle",
1216
+ outputs: [],
1217
+ stateMutability: "nonpayable",
1218
+ type: "function",
1219
+ },
1220
+ {
1221
+ inputs: [
1222
+ {
1223
+ internalType: "address",
1224
+ name: "",
1225
+ type: "address",
1226
+ },
1227
+ ],
1228
+ name: "stableUsdTokenDecimals",
1229
+ outputs: [
1230
+ {
1231
+ internalType: "uint8",
1232
+ name: "",
1233
+ type: "uint8",
1234
+ },
1235
+ ],
1236
+ stateMutability: "view",
1237
+ type: "function",
1238
+ },
1239
+ {
1240
+ inputs: [
1241
+ {
1242
+ internalType: "uint256",
1243
+ name: "",
1244
+ type: "uint256",
1245
+ },
1246
+ ],
1247
+ name: "stableUsdTokens",
1248
+ outputs: [
1249
+ {
1250
+ internalType: "address",
1251
+ name: "",
1252
+ type: "address",
1253
+ },
1254
+ ],
1255
+ stateMutability: "view",
1256
+ type: "function",
1257
+ },
1258
+ {
1259
+ inputs: [
1260
+ {
1261
+ internalType: "address",
1262
+ name: "",
1263
+ type: "address",
1264
+ },
1265
+ ],
1266
+ name: "tokenOracles",
1267
+ outputs: [
1268
+ {
1269
+ internalType: "enum PriceGetterV2.OracleType",
1270
+ name: "oracleType",
1271
+ type: "uint8",
1272
+ },
1273
+ {
1274
+ internalType: "address",
1275
+ name: "oracleAddress",
1276
+ type: "address",
1277
+ },
1278
+ {
1279
+ internalType: "uint8",
1280
+ name: "oracleDecimals",
1281
+ type: "uint8",
1282
+ },
1283
+ ],
1284
+ stateMutability: "view",
1285
+ type: "function",
1286
+ },
1287
+ {
1288
+ inputs: [
1289
+ {
1290
+ internalType: "address",
1291
+ name: "newOwner",
1292
+ type: "address",
1293
+ },
1294
+ ],
1295
+ name: "transferOwnership",
1296
+ outputs: [],
1297
+ stateMutability: "nonpayable",
1298
+ type: "function",
1299
+ },
1300
+ {
1301
+ inputs: [],
1302
+ name: "wNative",
1303
+ outputs: [
1304
+ {
1305
+ internalType: "address",
1306
+ name: "",
1307
+ type: "address",
1308
+ },
1309
+ ],
1310
+ stateMutability: "view",
1311
+ type: "function",
1312
+ },
1313
+ ];
1314
+ var PriceGetter__factory = /** @class */ (function () {
1315
+ function PriceGetter__factory() {
1316
+ }
1317
+ PriceGetter__factory.createInterface = function () {
1318
+ return new utils.Interface(_abi);
1319
+ };
1320
+ PriceGetter__factory.connect = function (address, signerOrProvider) {
1321
+ return new Contract(address, _abi, signerOrProvider);
1322
+ };
1323
+ PriceGetter__factory.abi = _abi;
1324
+ return PriceGetter__factory;
1325
+ }());
1326
+ export { PriceGetter__factory };