@pancakeswap/pools 4.0.9 → 4.0.10

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 (63) hide show
  1. package/dist/constants/contracts.d.ts +9 -0
  2. package/dist/constants/contracts.d.ts.map +1 -1
  3. package/dist/constants/pools/1101.d.ts +5 -0
  4. package/dist/constants/pools/1101.d.ts.map +1 -0
  5. package/dist/constants/pools/1442.d.ts +5 -0
  6. package/dist/constants/pools/1442.d.ts.map +1 -0
  7. package/dist/constants/pools/56.d.ts.map +1 -1
  8. package/dist/constants/pools/59140.d.ts +5 -0
  9. package/dist/constants/pools/59140.d.ts.map +1 -0
  10. package/dist/constants/pools/59144.d.ts +5 -0
  11. package/dist/constants/pools/59144.d.ts.map +1 -0
  12. package/dist/constants/pools/8453.d.ts +5 -0
  13. package/dist/constants/pools/8453.d.ts.map +1 -0
  14. package/dist/constants/pools/84531.d.ts +5 -0
  15. package/dist/constants/pools/84531.d.ts.map +1 -0
  16. package/dist/constants/pools/index.d.ts +2 -2
  17. package/dist/constants/pools/index.d.ts.map +1 -1
  18. package/dist/constants/supportedChains.d.ts +1 -1
  19. package/dist/constants/supportedChains.d.ts.map +1 -1
  20. package/dist/index.js +208 -16
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +209 -17
  23. package/dist/index.mjs.map +1 -1
  24. package/package.json +6 -3
  25. package/.turbo/turbo-build.log +0 -18
  26. package/CHANGELOG.md +0 -140
  27. package/src/abis/ICake.ts +0 -59
  28. package/src/abis/ICakeFlexibleSideVaultV2.ts +0 -487
  29. package/src/abis/ICakeVaultV2.ts +0 -487
  30. package/src/abis/ISmartChef.ts +0 -326
  31. package/src/abis/ISousChef.ts +0 -122
  32. package/src/abis/ISousChefBNB.ts +0 -166
  33. package/src/abis/ISousChefV2.ts +0 -341
  34. package/src/abis/ISousChefV3.ts +0 -326
  35. package/src/constants/contracts.ts +0 -38
  36. package/src/constants/index.ts +0 -10
  37. package/src/constants/pools/1.ts +0 -80
  38. package/src/constants/pools/280.ts +0 -53
  39. package/src/constants/pools/324.ts +0 -26
  40. package/src/constants/pools/42161.ts +0 -26
  41. package/src/constants/pools/421613.ts +0 -69
  42. package/src/constants/pools/56.ts +0 -2951
  43. package/src/constants/pools/97.ts +0 -74
  44. package/src/constants/pools/index.ts +0 -56
  45. package/src/constants/supportedChains.ts +0 -13
  46. package/src/index.ts +0 -14
  47. package/src/queries/fetchPools.ts +0 -350
  48. package/src/queries/fetchUserIfo.ts +0 -53
  49. package/src/queries/fetchUserPoolsData.ts +0 -143
  50. package/src/queries/fetchVaultPublic.ts +0 -175
  51. package/src/queries/fetchVaultUser.ts +0 -106
  52. package/src/queries/getAddresses.ts +0 -12
  53. package/src/queries/index.ts +0 -6
  54. package/src/types.ts +0 -207
  55. package/src/utils/apr.ts +0 -35
  56. package/src/utils/getContractAddress.ts +0 -11
  57. package/src/utils/getPoolContractBySousId.ts +0 -111
  58. package/src/utils/index.ts +0 -5
  59. package/src/utils/isLegacyPool.ts +0 -15
  60. package/src/utils/isPoolsSupported.ts +0 -5
  61. package/tsconfig.json +0 -14
  62. package/tsup.config.ts +0 -26
  63. package/vitest.config.ts +0 -9
@@ -1,487 +0,0 @@
1
- export const cakeVaultV2ABI = [
2
- {
3
- inputs: [],
4
- name: 'BOOST_WEIGHT',
5
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
6
- stateMutability: 'view',
7
- type: 'function',
8
- },
9
- {
10
- inputs: [],
11
- name: 'BOOST_WEIGHT_LIMIT',
12
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
13
- stateMutability: 'view',
14
- type: 'function',
15
- },
16
- {
17
- inputs: [],
18
- name: 'DURATION_FACTOR',
19
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
20
- stateMutability: 'view',
21
- type: 'function',
22
- },
23
- {
24
- inputs: [],
25
- name: 'DURATION_FACTOR_OVERDUE',
26
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
27
- stateMutability: 'view',
28
- type: 'function',
29
- },
30
- {
31
- inputs: [],
32
- name: 'MAX_CALL_FEE',
33
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
34
- stateMutability: 'view',
35
- type: 'function',
36
- },
37
- {
38
- inputs: [],
39
- name: 'MAX_LOCK_DURATION',
40
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
41
- stateMutability: 'view',
42
- type: 'function',
43
- },
44
- {
45
- inputs: [],
46
- name: 'MAX_LOCK_DURATION_LIMIT',
47
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
48
- stateMutability: 'view',
49
- type: 'function',
50
- },
51
- {
52
- inputs: [],
53
- name: 'MAX_PERFORMANCE_FEE',
54
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
55
- stateMutability: 'view',
56
- type: 'function',
57
- },
58
- {
59
- inputs: [],
60
- name: 'MAX_WITHDRAW_FEE',
61
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
62
- stateMutability: 'view',
63
- type: 'function',
64
- },
65
- {
66
- inputs: [],
67
- name: 'MAX_WITHDRAW_FEE_PERIOD',
68
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
69
- stateMutability: 'view',
70
- type: 'function',
71
- },
72
- {
73
- inputs: [],
74
- name: 'MIN_DEPOSIT_AMOUNT',
75
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
76
- stateMutability: 'view',
77
- type: 'function',
78
- },
79
- {
80
- inputs: [],
81
- name: 'MIN_LOCK_DURATION',
82
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
83
- stateMutability: 'view',
84
- type: 'function',
85
- },
86
- {
87
- inputs: [],
88
- name: 'MIN_WITHDRAW_AMOUNT',
89
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
90
- stateMutability: 'view',
91
- type: 'function',
92
- },
93
- {
94
- inputs: [],
95
- name: 'PRECISION_FACTOR',
96
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
97
- stateMutability: 'view',
98
- type: 'function',
99
- },
100
- {
101
- inputs: [],
102
- name: 'PRECISION_FACTOR_SHARE',
103
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
104
- stateMutability: 'view',
105
- type: 'function',
106
- },
107
- {
108
- inputs: [],
109
- name: 'UNLOCK_FREE_DURATION',
110
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
111
- stateMutability: 'view',
112
- type: 'function',
113
- },
114
- {
115
- inputs: [],
116
- name: 'admin',
117
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
118
- stateMutability: 'view',
119
- type: 'function',
120
- },
121
- {
122
- inputs: [],
123
- name: 'available',
124
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
125
- stateMutability: 'view',
126
- type: 'function',
127
- },
128
- {
129
- inputs: [],
130
- name: 'balanceOf',
131
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
132
- stateMutability: 'view',
133
- type: 'function',
134
- },
135
- {
136
- inputs: [],
137
- name: 'boostContract',
138
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
139
- stateMutability: 'view',
140
- type: 'function',
141
- },
142
- {
143
- inputs: [],
144
- name: 'cakePoolPID',
145
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
146
- stateMutability: 'view',
147
- type: 'function',
148
- },
149
- {
150
- inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
151
- name: 'calculateOverdueFee',
152
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
153
- stateMutability: 'view',
154
- type: 'function',
155
- },
156
- {
157
- inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
158
- name: 'calculatePerformanceFee',
159
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
160
- stateMutability: 'view',
161
- type: 'function',
162
- },
163
- {
164
- inputs: [],
165
- name: 'calculateTotalPendingCakeRewards',
166
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
167
- stateMutability: 'view',
168
- type: 'function',
169
- },
170
- {
171
- inputs: [
172
- { internalType: 'address', name: '_user', type: 'address' },
173
- { internalType: 'uint256', name: '_shares', type: 'uint256' },
174
- ],
175
- name: 'calculateWithdrawFee',
176
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
177
- stateMutability: 'view',
178
- type: 'function',
179
- },
180
- {
181
- inputs: [
182
- { internalType: 'uint256', name: '_amount', type: 'uint256' },
183
- { internalType: 'uint256', name: '_lockDuration', type: 'uint256' },
184
- ],
185
- name: 'deposit',
186
- outputs: [],
187
- stateMutability: 'nonpayable',
188
- type: 'function',
189
- },
190
- {
191
- inputs: [{ internalType: 'address', name: '', type: 'address' }],
192
- name: 'freeFeeUsers',
193
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
194
- stateMutability: 'view',
195
- type: 'function',
196
- },
197
- {
198
- inputs: [],
199
- name: 'getPricePerFullShare',
200
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
201
- stateMutability: 'view',
202
- type: 'function',
203
- },
204
- {
205
- inputs: [{ internalType: 'address', name: '_token', type: 'address' }],
206
- name: 'inCaseTokensGetStuck',
207
- outputs: [],
208
- stateMutability: 'nonpayable',
209
- type: 'function',
210
- },
211
- {
212
- inputs: [{ internalType: 'contract IERC20', name: 'dummyToken', type: 'address' }],
213
- name: 'init',
214
- outputs: [],
215
- stateMutability: 'nonpayable',
216
- type: 'function',
217
- },
218
- {
219
- inputs: [],
220
- name: 'lastHarvestedTime',
221
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
222
- stateMutability: 'view',
223
- type: 'function',
224
- },
225
- {
226
- inputs: [],
227
- name: 'masterchefV2',
228
- outputs: [{ internalType: 'contract IMasterChefV2', name: '', type: 'address' }],
229
- stateMutability: 'view',
230
- type: 'function',
231
- },
232
- {
233
- inputs: [],
234
- name: 'operator',
235
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
236
- stateMutability: 'view',
237
- type: 'function',
238
- },
239
- {
240
- inputs: [],
241
- name: 'overdueFee',
242
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
243
- stateMutability: 'view',
244
- type: 'function',
245
- },
246
- {
247
- inputs: [],
248
- name: 'owner',
249
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
250
- stateMutability: 'view',
251
- type: 'function',
252
- },
253
- { inputs: [], name: 'pause', outputs: [], stateMutability: 'nonpayable', type: 'function' },
254
- {
255
- inputs: [],
256
- name: 'paused',
257
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
258
- stateMutability: 'view',
259
- type: 'function',
260
- },
261
- {
262
- inputs: [],
263
- name: 'performanceFee',
264
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
265
- stateMutability: 'view',
266
- type: 'function',
267
- },
268
- {
269
- inputs: [],
270
- name: 'performanceFeeContract',
271
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
272
- stateMutability: 'view',
273
- type: 'function',
274
- },
275
- { inputs: [], name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function' },
276
- {
277
- inputs: [{ internalType: 'address', name: '_admin', type: 'address' }],
278
- name: 'setAdmin',
279
- outputs: [],
280
- stateMutability: 'nonpayable',
281
- type: 'function',
282
- },
283
- {
284
- inputs: [{ internalType: 'address', name: '_boostContract', type: 'address' }],
285
- name: 'setBoostContract',
286
- outputs: [],
287
- stateMutability: 'nonpayable',
288
- type: 'function',
289
- },
290
- {
291
- inputs: [{ internalType: 'uint256', name: '_boostWeight', type: 'uint256' }],
292
- name: 'setBoostWeight',
293
- outputs: [],
294
- stateMutability: 'nonpayable',
295
- type: 'function',
296
- },
297
- {
298
- inputs: [{ internalType: 'uint256', name: '_durationFactor', type: 'uint256' }],
299
- name: 'setDurationFactor',
300
- outputs: [],
301
- stateMutability: 'nonpayable',
302
- type: 'function',
303
- },
304
- {
305
- inputs: [{ internalType: 'uint256', name: '_durationFactorOverdue', type: 'uint256' }],
306
- name: 'setDurationFactorOverdue',
307
- outputs: [],
308
- stateMutability: 'nonpayable',
309
- type: 'function',
310
- },
311
- {
312
- inputs: [
313
- { internalType: 'address', name: '_user', type: 'address' },
314
- { internalType: 'bool', name: '_free', type: 'bool' },
315
- ],
316
- name: 'setFreeFeeUser',
317
- outputs: [],
318
- stateMutability: 'nonpayable',
319
- type: 'function',
320
- },
321
- {
322
- inputs: [{ internalType: 'uint256', name: '_maxLockDuration', type: 'uint256' }],
323
- name: 'setMaxLockDuration',
324
- outputs: [],
325
- stateMutability: 'nonpayable',
326
- type: 'function',
327
- },
328
- {
329
- inputs: [{ internalType: 'address', name: '_operator', type: 'address' }],
330
- name: 'setOperator',
331
- outputs: [],
332
- stateMutability: 'nonpayable',
333
- type: 'function',
334
- },
335
- {
336
- inputs: [{ internalType: 'uint256', name: '_performanceFee', type: 'uint256' }],
337
- name: 'setPerformanceFee',
338
- outputs: [],
339
- stateMutability: 'nonpayable',
340
- type: 'function',
341
- },
342
- {
343
- inputs: [{ internalType: 'uint256', name: '_performanceFeeContract', type: 'uint256' }],
344
- name: 'setPerformanceFeeContract',
345
- outputs: [],
346
- stateMutability: 'nonpayable',
347
- type: 'function',
348
- },
349
- {
350
- inputs: [{ internalType: 'address', name: '_treasury', type: 'address' }],
351
- name: 'setTreasury',
352
- outputs: [],
353
- stateMutability: 'nonpayable',
354
- type: 'function',
355
- },
356
- {
357
- inputs: [{ internalType: 'uint256', name: '_unlockFreeDuration', type: 'uint256' }],
358
- name: 'setUnlockFreeDuration',
359
- outputs: [],
360
- stateMutability: 'nonpayable',
361
- type: 'function',
362
- },
363
- {
364
- inputs: [{ internalType: 'uint256', name: '_withdrawFee', type: 'uint256' }],
365
- name: 'setWithdrawFee',
366
- outputs: [],
367
- stateMutability: 'nonpayable',
368
- type: 'function',
369
- },
370
- {
371
- inputs: [{ internalType: 'uint256', name: '_withdrawFeeContract', type: 'uint256' }],
372
- name: 'setWithdrawFeeContract',
373
- outputs: [],
374
- stateMutability: 'nonpayable',
375
- type: 'function',
376
- },
377
- {
378
- inputs: [{ internalType: 'uint256', name: '_withdrawFeePeriod', type: 'uint256' }],
379
- name: 'setWithdrawFeePeriod',
380
- outputs: [],
381
- stateMutability: 'nonpayable',
382
- type: 'function',
383
- },
384
- {
385
- inputs: [],
386
- name: 'token',
387
- outputs: [{ internalType: 'contract IERC20', name: '', type: 'address' }],
388
- stateMutability: 'view',
389
- type: 'function',
390
- },
391
- {
392
- inputs: [],
393
- name: 'totalBoostDebt',
394
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
395
- stateMutability: 'view',
396
- type: 'function',
397
- },
398
- {
399
- inputs: [],
400
- name: 'totalLockedAmount',
401
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
402
- stateMutability: 'view',
403
- type: 'function',
404
- },
405
- {
406
- inputs: [],
407
- name: 'totalShares',
408
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
409
- stateMutability: 'view',
410
- type: 'function',
411
- },
412
- {
413
- inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
414
- name: 'transferOwnership',
415
- outputs: [],
416
- stateMutability: 'nonpayable',
417
- type: 'function',
418
- },
419
- {
420
- inputs: [],
421
- name: 'treasury',
422
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
423
- stateMutability: 'view',
424
- type: 'function',
425
- },
426
- {
427
- inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
428
- name: 'unlock',
429
- outputs: [],
430
- stateMutability: 'nonpayable',
431
- type: 'function',
432
- },
433
- { inputs: [], name: 'unpause', outputs: [], stateMutability: 'nonpayable', type: 'function' },
434
- {
435
- inputs: [{ internalType: 'address', name: '', type: 'address' }],
436
- name: 'userInfo',
437
- outputs: [
438
- { internalType: 'uint256', name: 'shares', type: 'uint256' },
439
- { internalType: 'uint256', name: 'lastDepositedTime', type: 'uint256' },
440
- { internalType: 'uint256', name: 'cakeAtLastUserAction', type: 'uint256' },
441
- { internalType: 'uint256', name: 'lastUserActionTime', type: 'uint256' },
442
- { internalType: 'uint256', name: 'lockStartTime', type: 'uint256' },
443
- { internalType: 'uint256', name: 'lockEndTime', type: 'uint256' },
444
- { internalType: 'uint256', name: 'userBoostedShare', type: 'uint256' },
445
- { internalType: 'bool', name: 'locked', type: 'bool' },
446
- { internalType: 'uint256', name: 'lockedAmount', type: 'uint256' },
447
- ],
448
- stateMutability: 'view',
449
- type: 'function',
450
- },
451
- {
452
- inputs: [{ internalType: 'uint256', name: '_shares', type: 'uint256' }],
453
- name: 'withdraw',
454
- outputs: [],
455
- stateMutability: 'nonpayable',
456
- type: 'function',
457
- },
458
- { inputs: [], name: 'withdrawAll', outputs: [], stateMutability: 'nonpayable', type: 'function' },
459
- {
460
- inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
461
- name: 'withdrawByAmount',
462
- outputs: [],
463
- stateMutability: 'nonpayable',
464
- type: 'function',
465
- },
466
- {
467
- inputs: [],
468
- name: 'withdrawFee',
469
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
470
- stateMutability: 'view',
471
- type: 'function',
472
- },
473
- {
474
- inputs: [],
475
- name: 'withdrawFeeContract',
476
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
477
- stateMutability: 'view',
478
- type: 'function',
479
- },
480
- {
481
- inputs: [],
482
- name: 'withdrawFeePeriod',
483
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
484
- stateMutability: 'view',
485
- type: 'function',
486
- },
487
- ] as const