@pancakeswap/pools 4.0.9 → 4.0.11

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 (64) 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/1.d.ts.map +1 -1
  4. package/dist/constants/pools/1101.d.ts +5 -0
  5. package/dist/constants/pools/1101.d.ts.map +1 -0
  6. package/dist/constants/pools/1442.d.ts +5 -0
  7. package/dist/constants/pools/1442.d.ts.map +1 -0
  8. package/dist/constants/pools/56.d.ts.map +1 -1
  9. package/dist/constants/pools/59140.d.ts +5 -0
  10. package/dist/constants/pools/59140.d.ts.map +1 -0
  11. package/dist/constants/pools/59144.d.ts +5 -0
  12. package/dist/constants/pools/59144.d.ts.map +1 -0
  13. package/dist/constants/pools/8453.d.ts +5 -0
  14. package/dist/constants/pools/8453.d.ts.map +1 -0
  15. package/dist/constants/pools/84531.d.ts +5 -0
  16. package/dist/constants/pools/84531.d.ts.map +1 -0
  17. package/dist/constants/pools/index.d.ts +2 -2
  18. package/dist/constants/pools/index.d.ts.map +1 -1
  19. package/dist/constants/supportedChains.d.ts +1 -1
  20. package/dist/constants/supportedChains.d.ts.map +1 -1
  21. package/dist/index.js +216 -16
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.mjs +217 -17
  24. package/dist/index.mjs.map +1 -1
  25. package/package.json +8 -5
  26. package/.turbo/turbo-build.log +0 -18
  27. package/CHANGELOG.md +0 -140
  28. package/src/abis/ICake.ts +0 -59
  29. package/src/abis/ICakeFlexibleSideVaultV2.ts +0 -487
  30. package/src/abis/ICakeVaultV2.ts +0 -487
  31. package/src/abis/ISmartChef.ts +0 -326
  32. package/src/abis/ISousChef.ts +0 -122
  33. package/src/abis/ISousChefBNB.ts +0 -166
  34. package/src/abis/ISousChefV2.ts +0 -341
  35. package/src/abis/ISousChefV3.ts +0 -326
  36. package/src/constants/contracts.ts +0 -38
  37. package/src/constants/index.ts +0 -10
  38. package/src/constants/pools/1.ts +0 -80
  39. package/src/constants/pools/280.ts +0 -53
  40. package/src/constants/pools/324.ts +0 -26
  41. package/src/constants/pools/42161.ts +0 -26
  42. package/src/constants/pools/421613.ts +0 -69
  43. package/src/constants/pools/56.ts +0 -2951
  44. package/src/constants/pools/97.ts +0 -74
  45. package/src/constants/pools/index.ts +0 -56
  46. package/src/constants/supportedChains.ts +0 -13
  47. package/src/index.ts +0 -14
  48. package/src/queries/fetchPools.ts +0 -350
  49. package/src/queries/fetchUserIfo.ts +0 -53
  50. package/src/queries/fetchUserPoolsData.ts +0 -143
  51. package/src/queries/fetchVaultPublic.ts +0 -175
  52. package/src/queries/fetchVaultUser.ts +0 -106
  53. package/src/queries/getAddresses.ts +0 -12
  54. package/src/queries/index.ts +0 -6
  55. package/src/types.ts +0 -207
  56. package/src/utils/apr.ts +0 -35
  57. package/src/utils/getContractAddress.ts +0 -11
  58. package/src/utils/getPoolContractBySousId.ts +0 -111
  59. package/src/utils/index.ts +0 -5
  60. package/src/utils/isLegacyPool.ts +0 -15
  61. package/src/utils/isPoolsSupported.ts +0 -5
  62. package/tsconfig.json +0 -14
  63. package/tsup.config.ts +0 -26
  64. package/vitest.config.ts +0 -9
@@ -1,80 +0,0 @@
1
- import { ethereumTokens } from '@pancakeswap/tokens'
2
- import { getAddress } from 'viem'
3
-
4
- import { PoolCategory, SerializedPool } from '../../types'
5
-
6
- export const livePools: SerializedPool[] = [
7
- {
8
- sousId: 7,
9
- stakingToken: ethereumTokens.cake,
10
- earningToken: ethereumTokens.rpl,
11
- contractAddress: '0x3df19692a70fc55Ec8BfE1C9593E584D8F69c510',
12
- poolCategory: PoolCategory.CORE,
13
- tokenPerSecond: '0.0005623',
14
- },
15
- {
16
- sousId: 6,
17
- stakingToken: ethereumTokens.cake,
18
- earningToken: ethereumTokens.rpl,
19
- contractAddress: '0x3f0bCCa8f5aA37e184B22e3A2ca8C292fe6B716B',
20
- poolCategory: PoolCategory.CORE,
21
- tokenPerSecond: '0.0005093',
22
- },
23
- ].map((p) => ({
24
- ...p,
25
- contractAddress: getAddress(p.contractAddress),
26
- stakingToken: p.stakingToken.serialize,
27
- earningToken: p.earningToken.serialize,
28
- }))
29
-
30
- // known finished pools
31
- export const finishedPools: SerializedPool[] = [
32
- {
33
- sousId: 5,
34
- stakingToken: ethereumTokens.cake,
35
- earningToken: ethereumTokens.rpl,
36
- contractAddress: '0x0A150c0AbbbD852ec8940AeE67A1aB59d9Fe76d1',
37
- poolCategory: PoolCategory.CORE,
38
- tokenPerSecond: '0.000331',
39
- },
40
- {
41
- sousId: 1,
42
- stakingToken: ethereumTokens.cake,
43
- earningToken: ethereumTokens.wncg,
44
- contractAddress: '0x5eC855219e236b75E7cfba0D56105b9Cc88B4A18',
45
- poolCategory: PoolCategory.CORE,
46
- tokenPerSecond: '0.04061',
47
- },
48
- {
49
- sousId: 4,
50
- stakingToken: ethereumTokens.cake,
51
- earningToken: ethereumTokens.rpl,
52
- contractAddress: '0xd7136B50E641CfFf9D0aeB5c4617c779A80F0c8b',
53
- poolCategory: PoolCategory.CORE,
54
- tokenPerSecond: '0.000282',
55
- },
56
- {
57
- sousId: 3,
58
- stakingToken: ethereumTokens.cake,
59
- earningToken: ethereumTokens.alcx,
60
- contractAddress: '0x5A8C87047c290dD8A2e1a1a2D2341Da41d1Aa009',
61
- poolCategory: PoolCategory.CORE,
62
- tokenPerSecond: '0.0002989',
63
- },
64
- {
65
- sousId: 2,
66
- stakingToken: ethereumTokens.cake,
67
- earningToken: ethereumTokens.ush,
68
- contractAddress: '0x3Bb1CCa68756a7E0ffEBf59d52174784047f3dE8',
69
- poolCategory: PoolCategory.CORE,
70
- tokenPerSecond: '0.04629',
71
- },
72
- ].map((p) => ({
73
- ...p,
74
- isFinished: true,
75
- contractAddress: getAddress(p.contractAddress),
76
- stakingToken: p.stakingToken.serialize,
77
- earningToken: p.earningToken.serialize,
78
- }))
79
-
80
- export const pools: SerializedPool[] = [...livePools, ...finishedPools]
@@ -1,53 +0,0 @@
1
- import { zkSyncTestnetTokens } from '@pancakeswap/tokens'
2
- import { getAddress } from 'viem'
3
-
4
- import { PoolCategory, SerializedPool } from '../../types'
5
-
6
- export const livePools: SerializedPool[] = [
7
- {
8
- sousId: 4,
9
- stakingToken: zkSyncTestnetTokens.cake,
10
- earningToken: zkSyncTestnetTokens.mock,
11
- contractAddress: '0x4BDFF8A608be623077E54F6916761f631e87D884',
12
- poolCategory: PoolCategory.CORE,
13
- tokenPerSecond: '0.01',
14
- version: 3,
15
- },
16
- {
17
- sousId: 3,
18
- stakingToken: zkSyncTestnetTokens.cake,
19
- earningToken: zkSyncTestnetTokens.mock,
20
- contractAddress: '0x926E99bad2BC7dA5c0880f0bebD7f448Be86562B',
21
- poolCategory: PoolCategory.CORE,
22
- tokenPerSecond: '0.01',
23
- version: 3,
24
- },
25
- {
26
- sousId: 2,
27
- stakingToken: zkSyncTestnetTokens.cake,
28
- earningToken: zkSyncTestnetTokens.mock,
29
- contractAddress: '0x5F7Cc0C5E3FC6e26bC98d392fa3516D4F33Df8aD',
30
- poolCategory: PoolCategory.CORE,
31
- tokenPerSecond: '0.01',
32
- version: 3,
33
- },
34
- {
35
- sousId: 1,
36
- stakingToken: zkSyncTestnetTokens.cake,
37
- earningToken: zkSyncTestnetTokens.mock,
38
- contractAddress: '0x455d2eBbfb172CDba2D499cAf36cBbF5366F976D',
39
- poolCategory: PoolCategory.CORE,
40
- tokenPerSecond: '0.01',
41
- version: 3,
42
- },
43
- ].map((p) => ({
44
- ...p,
45
- contractAddress: getAddress(p.contractAddress),
46
- stakingToken: p.stakingToken.serialize,
47
- earningToken: p.earningToken.serialize,
48
- }))
49
-
50
- // known finished pools
51
- export const finishedPools: SerializedPool[] = []
52
-
53
- export const pools: SerializedPool[] = [...livePools, ...finishedPools]
@@ -1,26 +0,0 @@
1
- import { zksyncTokens } from '@pancakeswap/tokens'
2
- import { getAddress } from 'viem'
3
-
4
- import { PoolCategory, SerializedPool } from '../../types'
5
-
6
- export const livePools: SerializedPool[] = [
7
- {
8
- sousId: 1,
9
- stakingToken: zksyncTokens.cake,
10
- earningToken: zksyncTokens.tes,
11
- contractAddress: '0xedB2E9eB4fc47d57c08B387775e09E5fC9e21EBE',
12
- poolCategory: PoolCategory.CORE,
13
- tokenPerSecond: '0.02546',
14
- version: 3,
15
- },
16
- ].map((p) => ({
17
- ...p,
18
- contractAddress: getAddress(p.contractAddress),
19
- stakingToken: p.stakingToken.serialize,
20
- earningToken: p.earningToken.serialize,
21
- }))
22
-
23
- // known finished pools
24
- export const finishedPools: SerializedPool[] = []
25
-
26
- export const pools: SerializedPool[] = [...livePools, ...finishedPools]
@@ -1,26 +0,0 @@
1
- import { arbitrumTokens } from '@pancakeswap/tokens'
2
- import { getAddress } from 'viem'
3
-
4
- import { PoolCategory, SerializedPool } from '../../types'
5
-
6
- export const livePools: SerializedPool[] = [
7
- {
8
- sousId: 1,
9
- stakingToken: arbitrumTokens.alp,
10
- earningToken: arbitrumTokens.cake,
11
- contractAddress: '0x3dBdE2682330105902fb482d9849C270aa8E0881',
12
- poolCategory: PoolCategory.CORE,
13
- tokenPerSecond: '0.01135',
14
- version: 3,
15
- },
16
- ].map((p) => ({
17
- ...p,
18
- contractAddress: getAddress(p.contractAddress),
19
- stakingToken: p.stakingToken.serialize,
20
- earningToken: p.earningToken.serialize,
21
- }))
22
-
23
- // known finished pools
24
- export const finishedPools: SerializedPool[] = []
25
-
26
- export const pools: SerializedPool[] = [...livePools, ...finishedPools]
@@ -1,69 +0,0 @@
1
- import { arbitrumGoerliTokens } from '@pancakeswap/tokens'
2
- import { getAddress } from 'viem'
3
-
4
- import { PoolCategory, SerializedPool } from '../../types'
5
-
6
- export const livePools: SerializedPool[] = [
7
- {
8
- sousId: 5,
9
- stakingToken: arbitrumGoerliTokens.cake,
10
- earningToken: arbitrumGoerliTokens.mockA,
11
- contractAddress: '0x291f459243621E7d7c83a67644D87022F1FC39F5',
12
- poolCategory: PoolCategory.CORE,
13
- tokenPerSecond: '0.01',
14
- version: 3,
15
- },
16
- {
17
- sousId: 4,
18
- stakingToken: arbitrumGoerliTokens.cake,
19
- earningToken: arbitrumGoerliTokens.mockA,
20
- contractAddress: '0xbA17c9f21bDea078c54F263a8cc63227F28EBfF8',
21
- poolCategory: PoolCategory.CORE,
22
- tokenPerSecond: '0.01',
23
- version: 3,
24
- },
25
- {
26
- sousId: 3,
27
- stakingToken: arbitrumGoerliTokens.cake,
28
- earningToken: arbitrumGoerliTokens.mockA,
29
- contractAddress: '0xdDa7E82fF3c7b308c7f91a7080e474e41173F7f1',
30
- poolCategory: PoolCategory.CORE,
31
- tokenPerSecond: '0.01',
32
- version: 3,
33
- },
34
- ].map((p) => ({
35
- ...p,
36
- contractAddress: getAddress(p.contractAddress),
37
- stakingToken: p.stakingToken.serialize,
38
- earningToken: p.earningToken.serialize,
39
- }))
40
-
41
- // known finished pools
42
- export const finishedPools: SerializedPool[] = [
43
- {
44
- sousId: 2,
45
- stakingToken: arbitrumGoerliTokens.cake,
46
- earningToken: arbitrumGoerliTokens.mockA,
47
- contractAddress: '0x4aB4ec9EC094E6042E822A73Cd3979A946280E56',
48
- poolCategory: PoolCategory.CORE,
49
- tokenPerSecond: '0.01',
50
- version: 3,
51
- },
52
- {
53
- sousId: 1,
54
- stakingToken: arbitrumGoerliTokens.cake,
55
- earningToken: arbitrumGoerliTokens.mockA,
56
- contractAddress: '0x5b37404299Ef7DCABA32B00A8f36f0F43eC28E92',
57
- poolCategory: PoolCategory.CORE,
58
- tokenPerSecond: '0.01',
59
- version: 3,
60
- },
61
- ].map((p) => ({
62
- ...p,
63
- isFinished: true,
64
- contractAddress: getAddress(p.contractAddress),
65
- stakingToken: p.stakingToken.serialize,
66
- earningToken: p.earningToken.serialize,
67
- }))
68
-
69
- export const pools: SerializedPool[] = [...livePools, ...finishedPools]