@pancakeswap/pools 4.0.8 → 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 (65) hide show
  1. package/dist/constants/contracts.d.ts +15 -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/280.d.ts +5 -0
  8. package/dist/constants/pools/280.d.ts.map +1 -0
  9. package/dist/constants/pools/324.d.ts +5 -0
  10. package/dist/constants/pools/324.d.ts.map +1 -0
  11. package/dist/constants/pools/56.d.ts.map +1 -1
  12. package/dist/constants/pools/59140.d.ts +5 -0
  13. package/dist/constants/pools/59140.d.ts.map +1 -0
  14. package/dist/constants/pools/59144.d.ts +5 -0
  15. package/dist/constants/pools/59144.d.ts.map +1 -0
  16. package/dist/constants/pools/8453.d.ts +5 -0
  17. package/dist/constants/pools/8453.d.ts.map +1 -0
  18. package/dist/constants/pools/84531.d.ts +5 -0
  19. package/dist/constants/pools/84531.d.ts.map +1 -0
  20. package/dist/constants/pools/index.d.ts +2 -2
  21. package/dist/constants/pools/index.d.ts.map +1 -1
  22. package/dist/constants/supportedChains.d.ts +1 -1
  23. package/dist/constants/supportedChains.d.ts.map +1 -1
  24. package/dist/index.js +310 -34
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.mjs +311 -35
  27. package/dist/index.mjs.map +1 -1
  28. package/package.json +6 -3
  29. package/.turbo/turbo-build.log +0 -18
  30. package/CHANGELOG.md +0 -132
  31. package/src/abis/ICake.ts +0 -59
  32. package/src/abis/ICakeFlexibleSideVaultV2.ts +0 -487
  33. package/src/abis/ICakeVaultV2.ts +0 -487
  34. package/src/abis/ISmartChef.ts +0 -326
  35. package/src/abis/ISousChef.ts +0 -122
  36. package/src/abis/ISousChefBNB.ts +0 -166
  37. package/src/abis/ISousChefV2.ts +0 -341
  38. package/src/abis/ISousChefV3.ts +0 -326
  39. package/src/constants/contracts.ts +0 -32
  40. package/src/constants/index.ts +0 -10
  41. package/src/constants/pools/1.ts +0 -80
  42. package/src/constants/pools/42161.ts +0 -26
  43. package/src/constants/pools/421613.ts +0 -69
  44. package/src/constants/pools/56.ts +0 -2942
  45. package/src/constants/pools/97.ts +0 -74
  46. package/src/constants/pools/index.ts +0 -50
  47. package/src/constants/supportedChains.ts +0 -11
  48. package/src/index.ts +0 -14
  49. package/src/queries/fetchPools.ts +0 -350
  50. package/src/queries/fetchUserIfo.ts +0 -53
  51. package/src/queries/fetchUserPoolsData.ts +0 -143
  52. package/src/queries/fetchVaultPublic.ts +0 -175
  53. package/src/queries/fetchVaultUser.ts +0 -106
  54. package/src/queries/getAddresses.ts +0 -12
  55. package/src/queries/index.ts +0 -6
  56. package/src/types.ts +0 -207
  57. package/src/utils/apr.ts +0 -35
  58. package/src/utils/getContractAddress.ts +0 -11
  59. package/src/utils/getPoolContractBySousId.ts +0 -111
  60. package/src/utils/index.ts +0 -5
  61. package/src/utils/isLegacyPool.ts +0 -15
  62. package/src/utils/isPoolsSupported.ts +0 -5
  63. package/tsconfig.json +0 -14
  64. package/tsup.config.ts +0 -26
  65. package/vitest.config.ts +0 -9
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@pancakeswap/pools",
3
- "version": "4.0.8",
3
+ "version": "4.0.10",
4
4
  "sideEffects": false,
5
+ "files": [
6
+ "dist"
7
+ ],
5
8
  "main": "dist/index.js",
6
9
  "types": "dist/index.d.ts",
7
10
  "module": "dist/index.mjs",
@@ -12,7 +15,7 @@
12
15
  "wagmi": "^1.3.10",
13
16
  "@pancakeswap/sdk": "5.4.1",
14
17
  "@pancakeswap/token-lists": "0.0.8",
15
- "@pancakeswap/tokens": "0.4.1"
18
+ "@pancakeswap/tokens": "0.4.2"
16
19
  },
17
20
  "devDependencies": {
18
21
  "@types/lodash": "^4.14.168",
@@ -20,7 +23,7 @@
20
23
  "typescript": "^5.1.3",
21
24
  "vitest": "^0.27.2",
22
25
  "@pancakeswap/tsconfig": "0.0.0",
23
- "@pancakeswap/utils": "5.0.1"
26
+ "@pancakeswap/utils": "5.0.4"
24
27
  },
25
28
  "exports": {
26
29
  "./package.json": "./package.json",
@@ -1,18 +0,0 @@
1
-
2
- > @pancakeswap/pools@4.0.8 build /home/runner/work/pancake-frontend/pancake-frontend/packages/pools
3
- > tsup
4
-
5
- CLI Building entry: {"index":"./src/index.ts"}
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v6.7.0
8
- CLI Using tsup config: /home/runner/work/pancake-frontend/pancake-frontend/packages/pools/tsup.config.ts
9
- CLI Target: es2020
10
- CLI Cleaning output folder
11
- ESM Build start
12
- CJS Build start
13
- ESM dist/index.mjs 170.18 KB
14
- ESM dist/index.mjs.map 302.61 KB
15
- ESM ⚡️ Build success in 1306ms
16
- CJS dist/index.js 178.00 KB
17
- CJS dist/index.js.map 302.61 KB
18
- CJS ⚡️ Build success in 1306ms
package/CHANGELOG.md DELETED
@@ -1,132 +0,0 @@
1
- # @pancakeswap/pools
2
-
3
- ## 4.0.8
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [7a0c21e72]
8
- - @pancakeswap/sdk@5.4.1
9
- - @pancakeswap/tokens@0.4.1
10
- - @pancakeswap/token-lists@0.0.8
11
-
12
- ## 4.0.7
13
-
14
- ### Patch Changes
15
-
16
- - Updated dependencies [868f4d11f]
17
- - @pancakeswap/sdk@5.4.0
18
- - @pancakeswap/tokens@0.4.0
19
- - @pancakeswap/token-lists@0.0.8
20
-
21
- ## 4.0.6
22
-
23
- ### Patch Changes
24
-
25
- - 4b3b18079: Add ALP pool at Arbitrum
26
-
27
- ## 4.0.5
28
-
29
- ### Patch Changes
30
-
31
- - Updated dependencies [d0f9b28a9]
32
- - @pancakeswap/tokens@0.3.1
33
- - @pancakeswap/token-lists@0.0.8
34
-
35
- ## 4.0.4
36
-
37
- ### Patch Changes
38
-
39
- - Updated dependencies [5e15c611e]
40
- - @pancakeswap/sdk@5.3.0
41
- - @pancakeswap/tokens@0.3.0
42
- - @pancakeswap/token-lists@0.0.8
43
-
44
- ## 4.0.3
45
-
46
- ### Patch Changes
47
-
48
- - 84b5d3743: Export es and commonjs module
49
- - @pancakeswap/token-lists@0.0.8
50
- - @pancakeswap/tokens@0.2.3
51
-
52
- ## 4.0.2
53
-
54
- ### Patch Changes
55
-
56
- - Updated dependencies [e0a681bc6]
57
- - @pancakeswap/tokens@0.2.2
58
- - @pancakeswap/utils@3.0.2
59
- - @pancakeswap/token-lists@0.0.8
60
-
61
- ## 4.0.1
62
-
63
- ### Patch Changes
64
-
65
- - Updated dependencies [3ba496cb1]
66
- - @pancakeswap/sdk@5.2.1
67
- - @pancakeswap/tokens@0.2.1
68
- - @pancakeswap/utils@3.0.1
69
- - @pancakeswap/token-lists@0.0.8
70
-
71
- ## 4.0.0
72
-
73
- ### Patch Changes
74
-
75
- - Updated dependencies [77fc3406a]
76
- - @pancakeswap/sdk@5.2.0
77
- - @pancakeswap/tokens@0.2.0
78
- - @pancakeswap/utils@3.0.0
79
- - @pancakeswap/token-lists@0.0.8
80
-
81
- ## 3.0.1
82
-
83
- ### Patch Changes
84
-
85
- - Updated dependencies [500adb4f8]
86
- - @pancakeswap/tokens@0.1.6
87
- - @pancakeswap/utils@2.0.3
88
- - @pancakeswap/token-lists@0.0.8
89
-
90
- ## 3.0.0
91
-
92
- ### Patch Changes
93
-
94
- - Updated dependencies [f9fda4ebe]
95
- - @pancakeswap/sdk@5.1.0
96
- - @pancakeswap/tokens@0.1.5
97
- - @pancakeswap/utils@2.0.2
98
- - @pancakeswap/token-lists@0.0.8
99
-
100
- ## 2.0.1
101
-
102
- ### Patch Changes
103
-
104
- - Updated dependencies [e31475e6b]
105
- - @pancakeswap/token-lists@0.0.8
106
- - @pancakeswap/utils@2.0.1
107
- - @pancakeswap/tokens@0.1.4
108
-
109
- ## 2.0.0
110
-
111
- ### Major Changes
112
-
113
- - 938aa75f5: Migrate ethers to viem
114
-
115
- ### Patch Changes
116
-
117
- - Updated dependencies [938aa75f5]
118
- - @pancakeswap/sdk@5.0.0
119
- - @pancakeswap/utils@2.0.0
120
- - @pancakeswap/tokens@0.1.3
121
- - @pancakeswap/token-lists@0.0.7
122
-
123
- ## 1.0.0
124
-
125
- ### Patch Changes
126
-
127
- - Updated dependencies [b5dbd2921]
128
- - @pancakeswap/sdk@4.0.0
129
- - @pancakeswap/utils@1.0.0
130
- - @pancakeswap/multicall@2.0.0
131
- - @pancakeswap/tokens@0.1.2
132
- - @pancakeswap/token-lists@0.0.7
package/src/abis/ICake.ts DELETED
@@ -1,59 +0,0 @@
1
- export const iCakeABI = [
2
- {
3
- inputs: [],
4
- name: 'MIN_CEILING_DURATION',
5
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
6
- stateMutability: 'view',
7
- type: 'function',
8
- },
9
- {
10
- inputs: [],
11
- name: 'admin',
12
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
13
- stateMutability: 'view',
14
- type: 'function',
15
- },
16
- {
17
- inputs: [],
18
- name: 'cakePool',
19
- outputs: [{ internalType: 'contract ICaKePool', name: '', type: 'address' }],
20
- stateMutability: 'view',
21
- type: 'function',
22
- },
23
- {
24
- inputs: [],
25
- name: 'ceiling',
26
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
27
- stateMutability: 'view',
28
- type: 'function',
29
- },
30
- {
31
- inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
32
- name: 'getUserCredit',
33
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
34
- stateMutability: 'view',
35
- type: 'function',
36
- },
37
- {
38
- inputs: [],
39
- name: 'owner',
40
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
41
- stateMutability: 'view',
42
- type: 'function',
43
- },
44
- { inputs: [], name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function' },
45
- {
46
- inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
47
- name: 'transferOwnership',
48
- outputs: [],
49
- stateMutability: 'nonpayable',
50
- type: 'function',
51
- },
52
- {
53
- inputs: [{ internalType: 'uint256', name: '_newCeiling', type: 'uint256' }],
54
- name: 'updateCeiling',
55
- outputs: [],
56
- stateMutability: 'nonpayable',
57
- type: 'function',
58
- },
59
- ] as const
@@ -1,487 +0,0 @@
1
- export const cakeFlexibleSideVaultV2ABI = [
2
- {
3
- inputs: [],
4
- name: 'MAX_PERFORMANCE_FEE',
5
- outputs: [
6
- {
7
- internalType: 'uint256',
8
- name: '',
9
- type: 'uint256',
10
- },
11
- ],
12
- stateMutability: 'view',
13
- type: 'function',
14
- },
15
- {
16
- inputs: [],
17
- name: 'MAX_WITHDRAW_AMOUNT_BOOSTER',
18
- outputs: [
19
- {
20
- internalType: 'uint256',
21
- name: '',
22
- type: 'uint256',
23
- },
24
- ],
25
- stateMutability: 'view',
26
- type: 'function',
27
- },
28
- {
29
- inputs: [],
30
- name: 'MAX_WITHDRAW_FEE',
31
- outputs: [
32
- {
33
- internalType: 'uint256',
34
- name: '',
35
- type: 'uint256',
36
- },
37
- ],
38
- stateMutability: 'view',
39
- type: 'function',
40
- },
41
- {
42
- inputs: [],
43
- name: 'MAX_WITHDRAW_FEE_PERIOD',
44
- outputs: [
45
- {
46
- internalType: 'uint256',
47
- name: '',
48
- type: 'uint256',
49
- },
50
- ],
51
- stateMutability: 'view',
52
- type: 'function',
53
- },
54
- {
55
- inputs: [],
56
- name: 'MIN_DEPOSIT_AMOUNT',
57
- outputs: [
58
- {
59
- internalType: 'uint256',
60
- name: '',
61
- type: 'uint256',
62
- },
63
- ],
64
- stateMutability: 'view',
65
- type: 'function',
66
- },
67
- {
68
- inputs: [],
69
- name: 'MIN_WITHDRAW_AMOUNT',
70
- outputs: [
71
- {
72
- internalType: 'uint256',
73
- name: '',
74
- type: 'uint256',
75
- },
76
- ],
77
- stateMutability: 'view',
78
- type: 'function',
79
- },
80
- {
81
- inputs: [],
82
- name: 'MIN_WITHDRAW_AMOUNT_BOOSTER',
83
- outputs: [
84
- {
85
- internalType: 'uint256',
86
- name: '',
87
- type: 'uint256',
88
- },
89
- ],
90
- stateMutability: 'view',
91
- type: 'function',
92
- },
93
- {
94
- inputs: [],
95
- name: 'admin',
96
- outputs: [
97
- {
98
- internalType: 'address',
99
- name: '',
100
- type: 'address',
101
- },
102
- ],
103
- stateMutability: 'view',
104
- type: 'function',
105
- },
106
- {
107
- inputs: [],
108
- name: 'available',
109
- outputs: [
110
- {
111
- internalType: 'uint256',
112
- name: '',
113
- type: 'uint256',
114
- },
115
- ],
116
- stateMutability: 'view',
117
- type: 'function',
118
- },
119
- {
120
- inputs: [],
121
- name: 'balanceOf',
122
- outputs: [
123
- {
124
- internalType: 'uint256',
125
- name: '',
126
- type: 'uint256',
127
- },
128
- ],
129
- stateMutability: 'view',
130
- type: 'function',
131
- },
132
- {
133
- inputs: [],
134
- name: 'cakePool',
135
- outputs: [
136
- {
137
- internalType: 'contract ICakePool',
138
- name: '',
139
- type: 'address',
140
- },
141
- ],
142
- stateMutability: 'view',
143
- type: 'function',
144
- },
145
- {
146
- inputs: [
147
- {
148
- internalType: 'uint256',
149
- name: '_amount',
150
- type: 'uint256',
151
- },
152
- ],
153
- name: 'deposit',
154
- outputs: [],
155
- stateMutability: 'nonpayable',
156
- type: 'function',
157
- },
158
- {
159
- inputs: [],
160
- name: 'emergencyWithdraw',
161
- outputs: [],
162
- stateMutability: 'nonpayable',
163
- type: 'function',
164
- },
165
- {
166
- inputs: [],
167
- name: 'getPricePerFullShare',
168
- outputs: [
169
- {
170
- internalType: 'uint256',
171
- name: '',
172
- type: 'uint256',
173
- },
174
- ],
175
- stateMutability: 'view',
176
- type: 'function',
177
- },
178
- {
179
- inputs: [
180
- {
181
- internalType: 'address',
182
- name: '_token',
183
- type: 'address',
184
- },
185
- ],
186
- name: 'inCaseTokensGetStuck',
187
- outputs: [],
188
- stateMutability: 'nonpayable',
189
- type: 'function',
190
- },
191
- {
192
- inputs: [],
193
- name: 'owner',
194
- outputs: [
195
- {
196
- internalType: 'address',
197
- name: '',
198
- type: 'address',
199
- },
200
- ],
201
- stateMutability: 'view',
202
- type: 'function',
203
- },
204
- {
205
- inputs: [],
206
- name: 'pause',
207
- outputs: [],
208
- stateMutability: 'nonpayable',
209
- type: 'function',
210
- },
211
- {
212
- inputs: [],
213
- name: 'paused',
214
- outputs: [
215
- {
216
- internalType: 'bool',
217
- name: '',
218
- type: 'bool',
219
- },
220
- ],
221
- stateMutability: 'view',
222
- type: 'function',
223
- },
224
- {
225
- inputs: [],
226
- name: 'performanceFee',
227
- outputs: [
228
- {
229
- internalType: 'uint256',
230
- name: '',
231
- type: 'uint256',
232
- },
233
- ],
234
- stateMutability: 'view',
235
- type: 'function',
236
- },
237
- {
238
- inputs: [],
239
- name: 'renounceOwnership',
240
- outputs: [],
241
- stateMutability: 'nonpayable',
242
- type: 'function',
243
- },
244
- {
245
- inputs: [
246
- {
247
- internalType: 'address',
248
- name: '_admin',
249
- type: 'address',
250
- },
251
- ],
252
- name: 'setAdmin',
253
- outputs: [],
254
- stateMutability: 'nonpayable',
255
- type: 'function',
256
- },
257
- {
258
- inputs: [
259
- {
260
- internalType: 'uint256',
261
- name: '_performanceFee',
262
- type: 'uint256',
263
- },
264
- ],
265
- name: 'setPerformanceFee',
266
- outputs: [],
267
- stateMutability: 'nonpayable',
268
- type: 'function',
269
- },
270
- {
271
- inputs: [
272
- {
273
- internalType: 'address',
274
- name: '_treasury',
275
- type: 'address',
276
- },
277
- ],
278
- name: 'setTreasury',
279
- outputs: [],
280
- stateMutability: 'nonpayable',
281
- type: 'function',
282
- },
283
- {
284
- inputs: [
285
- {
286
- internalType: 'uint256',
287
- name: '_withdrawAmountBooster',
288
- type: 'uint256',
289
- },
290
- ],
291
- name: 'setWithdrawAmountBooster',
292
- outputs: [],
293
- stateMutability: 'nonpayable',
294
- type: 'function',
295
- },
296
- {
297
- inputs: [
298
- {
299
- internalType: 'uint256',
300
- name: '_withdrawFee',
301
- type: 'uint256',
302
- },
303
- ],
304
- name: 'setWithdrawFee',
305
- outputs: [],
306
- stateMutability: 'nonpayable',
307
- type: 'function',
308
- },
309
- {
310
- inputs: [
311
- {
312
- internalType: 'uint256',
313
- name: '_withdrawFeePeriod',
314
- type: 'uint256',
315
- },
316
- ],
317
- name: 'setWithdrawFeePeriod',
318
- outputs: [],
319
- stateMutability: 'nonpayable',
320
- type: 'function',
321
- },
322
- {
323
- inputs: [],
324
- name: 'staking',
325
- outputs: [
326
- {
327
- internalType: 'bool',
328
- name: '',
329
- type: 'bool',
330
- },
331
- ],
332
- stateMutability: 'view',
333
- type: 'function',
334
- },
335
- {
336
- inputs: [],
337
- name: 'token',
338
- outputs: [
339
- {
340
- internalType: 'contract IERC20',
341
- name: '',
342
- type: 'address',
343
- },
344
- ],
345
- stateMutability: 'view',
346
- type: 'function',
347
- },
348
- {
349
- inputs: [],
350
- name: 'totalShares',
351
- outputs: [
352
- {
353
- internalType: 'uint256',
354
- name: '',
355
- type: 'uint256',
356
- },
357
- ],
358
- stateMutability: 'view',
359
- type: 'function',
360
- },
361
- {
362
- inputs: [
363
- {
364
- internalType: 'address',
365
- name: 'newOwner',
366
- type: 'address',
367
- },
368
- ],
369
- name: 'transferOwnership',
370
- outputs: [],
371
- stateMutability: 'nonpayable',
372
- type: 'function',
373
- },
374
- {
375
- inputs: [],
376
- name: 'treasury',
377
- outputs: [
378
- {
379
- internalType: 'address',
380
- name: '',
381
- type: 'address',
382
- },
383
- ],
384
- stateMutability: 'view',
385
- type: 'function',
386
- },
387
- {
388
- inputs: [],
389
- name: 'unpause',
390
- outputs: [],
391
- stateMutability: 'nonpayable',
392
- type: 'function',
393
- },
394
- {
395
- inputs: [
396
- {
397
- internalType: 'address',
398
- name: '',
399
- type: 'address',
400
- },
401
- ],
402
- name: 'userInfo',
403
- outputs: [
404
- {
405
- internalType: 'uint256',
406
- name: 'shares',
407
- type: 'uint256',
408
- },
409
- {
410
- internalType: 'uint256',
411
- name: 'lastDepositedTime',
412
- type: 'uint256',
413
- },
414
- {
415
- internalType: 'uint256',
416
- name: 'cakeAtLastUserAction',
417
- type: 'uint256',
418
- },
419
- {
420
- internalType: 'uint256',
421
- name: 'lastUserActionTime',
422
- type: 'uint256',
423
- },
424
- ],
425
- stateMutability: 'view',
426
- type: 'function',
427
- },
428
- {
429
- inputs: [
430
- {
431
- internalType: 'uint256',
432
- name: '_shares',
433
- type: 'uint256',
434
- },
435
- ],
436
- name: 'withdraw',
437
- outputs: [],
438
- stateMutability: 'nonpayable',
439
- type: 'function',
440
- },
441
- {
442
- inputs: [],
443
- name: 'withdrawAll',
444
- outputs: [],
445
- stateMutability: 'nonpayable',
446
- type: 'function',
447
- },
448
- {
449
- inputs: [],
450
- name: 'withdrawAmountBooster',
451
- outputs: [
452
- {
453
- internalType: 'uint256',
454
- name: '',
455
- type: 'uint256',
456
- },
457
- ],
458
- stateMutability: 'view',
459
- type: 'function',
460
- },
461
- {
462
- inputs: [],
463
- name: 'withdrawFee',
464
- outputs: [
465
- {
466
- internalType: 'uint256',
467
- name: '',
468
- type: 'uint256',
469
- },
470
- ],
471
- stateMutability: 'view',
472
- type: 'function',
473
- },
474
- {
475
- inputs: [],
476
- name: 'withdrawFeePeriod',
477
- outputs: [
478
- {
479
- internalType: 'uint256',
480
- name: '',
481
- type: 'uint256',
482
- },
483
- ],
484
- stateMutability: 'view',
485
- type: 'function',
486
- },
487
- ] as const