@pancakeswap/pools 4.0.3
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.
- package/.turbo/turbo-build.log +18 -0
- package/CHANGELOG.md +91 -0
- package/LICENSE +674 -0
- package/dist/abis/ICake.d.ts +92 -0
- package/dist/abis/ICake.d.ts.map +1 -0
- package/dist/abis/ICakeFlexibleSideVaultV2.d.ts +378 -0
- package/dist/abis/ICakeFlexibleSideVaultV2.d.ts.map +1 -0
- package/dist/abis/ICakeVaultV2.d.ts +750 -0
- package/dist/abis/ICakeVaultV2.d.ts.map +1 -0
- package/dist/abis/ISmartChef.d.ts +523 -0
- package/dist/abis/ISmartChef.d.ts.map +1 -0
- package/dist/abis/ISousChef.d.ts +212 -0
- package/dist/abis/ISousChef.d.ts.map +1 -0
- package/dist/abis/ISousChefBNB.d.ts +279 -0
- package/dist/abis/ISousChefBNB.d.ts.map +1 -0
- package/dist/abis/ISousChefV2.d.ts +264 -0
- package/dist/abis/ISousChefV2.d.ts.map +1 -0
- package/dist/abis/ISousChefV3.d.ts +523 -0
- package/dist/abis/ISousChefV3.d.ts.map +1 -0
- package/dist/constants/contracts.d.ts +22 -0
- package/dist/constants/contracts.d.ts.map +1 -0
- package/dist/constants/index.d.ts +8 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/pools/1.d.ts +5 -0
- package/dist/constants/pools/1.d.ts.map +1 -0
- package/dist/constants/pools/56.d.ts +4 -0
- package/dist/constants/pools/56.d.ts.map +1 -0
- package/dist/constants/pools/97.d.ts +5 -0
- package/dist/constants/pools/97.d.ts.map +1 -0
- package/dist/constants/pools/index.d.ts +15 -0
- package/dist/constants/pools/index.d.ts.map +1 -0
- package/dist/constants/supportedChains.d.ts +4 -0
- package/dist/constants/supportedChains.d.ts.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6288 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +6224 -0
- package/dist/index.mjs.map +1 -0
- package/dist/queries/fetchPools.d.ts +37 -0
- package/dist/queries/fetchPools.d.ts.map +1 -0
- package/dist/queries/fetchUserIfo.d.ts +16 -0
- package/dist/queries/fetchUserIfo.d.ts.map +1 -0
- package/dist/queries/fetchUserPoolsData.d.ts +16 -0
- package/dist/queries/fetchUserPoolsData.d.ts.map +1 -0
- package/dist/queries/fetchVaultPublic.d.ts +39 -0
- package/dist/queries/fetchVaultPublic.d.ts.map +1 -0
- package/dist/queries/fetchVaultUser.d.ts +12 -0
- package/dist/queries/fetchVaultUser.d.ts.map +1 -0
- package/dist/queries/getAddresses.d.ts +4 -0
- package/dist/queries/getAddresses.d.ts.map +1 -0
- package/dist/queries/index.d.ts +7 -0
- package/dist/queries/index.d.ts.map +1 -0
- package/dist/types.d.ts +176 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/apr.d.ts +11 -0
- package/dist/utils/apr.d.ts.map +1 -0
- package/dist/utils/getContractAddress.d.ts +4 -0
- package/dist/utils/getContractAddress.d.ts.map +1 -0
- package/dist/utils/getPoolContractBySousId.d.ts +35 -0
- package/dist/utils/getPoolContractBySousId.d.ts.map +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/isLegacyPool.d.ts +4 -0
- package/dist/utils/isLegacyPool.d.ts.map +1 -0
- package/dist/utils/isPoolsSupported.d.ts +3 -0
- package/dist/utils/isPoolsSupported.d.ts.map +1 -0
- package/package.json +40 -0
- package/src/abis/ICake.ts +59 -0
- package/src/abis/ICakeFlexibleSideVaultV2.ts +487 -0
- package/src/abis/ICakeVaultV2.ts +487 -0
- package/src/abis/ISmartChef.ts +326 -0
- package/src/abis/ISousChef.ts +122 -0
- package/src/abis/ISousChefBNB.ts +166 -0
- package/src/abis/ISousChefV2.ts +341 -0
- package/src/abis/ISousChefV3.ts +326 -0
- package/src/constants/contracts.ts +26 -0
- package/src/constants/index.ts +10 -0
- package/src/constants/pools/1.ts +80 -0
- package/src/constants/pools/56.ts +2933 -0
- package/src/constants/pools/97.ts +74 -0
- package/src/constants/pools/index.ts +44 -0
- package/src/constants/supportedChains.ts +5 -0
- package/src/index.ts +14 -0
- package/src/queries/fetchPools.ts +350 -0
- package/src/queries/fetchUserIfo.ts +53 -0
- package/src/queries/fetchUserPoolsData.ts +143 -0
- package/src/queries/fetchVaultPublic.ts +175 -0
- package/src/queries/fetchVaultUser.ts +106 -0
- package/src/queries/getAddresses.ts +12 -0
- package/src/queries/index.ts +6 -0
- package/src/types.ts +207 -0
- package/src/utils/apr.ts +35 -0
- package/src/utils/getContractAddress.ts +11 -0
- package/src/utils/getPoolContractBySousId.ts +111 -0
- package/src/utils/index.ts +5 -0
- package/src/utils/isLegacyPool.ts +15 -0
- package/src/utils/isPoolsSupported.ts +5 -0
- package/tsconfig.json +14 -0
- package/tsup.config.ts +26 -0
- package/vitest.config.ts +9 -0
|
@@ -0,0 +1,80 @@
|
|
|
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]
|