@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.
- package/dist/constants/contracts.d.ts +15 -0
- package/dist/constants/contracts.d.ts.map +1 -1
- package/dist/constants/pools/1101.d.ts +5 -0
- package/dist/constants/pools/1101.d.ts.map +1 -0
- package/dist/constants/pools/1442.d.ts +5 -0
- package/dist/constants/pools/1442.d.ts.map +1 -0
- package/dist/constants/pools/280.d.ts +5 -0
- package/dist/constants/pools/280.d.ts.map +1 -0
- package/dist/constants/pools/324.d.ts +5 -0
- package/dist/constants/pools/324.d.ts.map +1 -0
- package/dist/constants/pools/56.d.ts.map +1 -1
- package/dist/constants/pools/59140.d.ts +5 -0
- package/dist/constants/pools/59140.d.ts.map +1 -0
- package/dist/constants/pools/59144.d.ts +5 -0
- package/dist/constants/pools/59144.d.ts.map +1 -0
- package/dist/constants/pools/8453.d.ts +5 -0
- package/dist/constants/pools/8453.d.ts.map +1 -0
- package/dist/constants/pools/84531.d.ts +5 -0
- package/dist/constants/pools/84531.d.ts.map +1 -0
- package/dist/constants/pools/index.d.ts +2 -2
- package/dist/constants/pools/index.d.ts.map +1 -1
- package/dist/constants/supportedChains.d.ts +1 -1
- package/dist/constants/supportedChains.d.ts.map +1 -1
- package/dist/index.js +310 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +311 -35
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
- package/.turbo/turbo-build.log +0 -18
- package/CHANGELOG.md +0 -132
- package/src/abis/ICake.ts +0 -59
- package/src/abis/ICakeFlexibleSideVaultV2.ts +0 -487
- package/src/abis/ICakeVaultV2.ts +0 -487
- package/src/abis/ISmartChef.ts +0 -326
- package/src/abis/ISousChef.ts +0 -122
- package/src/abis/ISousChefBNB.ts +0 -166
- package/src/abis/ISousChefV2.ts +0 -341
- package/src/abis/ISousChefV3.ts +0 -326
- package/src/constants/contracts.ts +0 -32
- package/src/constants/index.ts +0 -10
- package/src/constants/pools/1.ts +0 -80
- package/src/constants/pools/42161.ts +0 -26
- package/src/constants/pools/421613.ts +0 -69
- package/src/constants/pools/56.ts +0 -2942
- package/src/constants/pools/97.ts +0 -74
- package/src/constants/pools/index.ts +0 -50
- package/src/constants/supportedChains.ts +0 -11
- package/src/index.ts +0 -14
- package/src/queries/fetchPools.ts +0 -350
- package/src/queries/fetchUserIfo.ts +0 -53
- package/src/queries/fetchUserPoolsData.ts +0 -143
- package/src/queries/fetchVaultPublic.ts +0 -175
- package/src/queries/fetchVaultUser.ts +0 -106
- package/src/queries/getAddresses.ts +0 -12
- package/src/queries/index.ts +0 -6
- package/src/types.ts +0 -207
- package/src/utils/apr.ts +0 -35
- package/src/utils/getContractAddress.ts +0 -11
- package/src/utils/getPoolContractBySousId.ts +0 -111
- package/src/utils/index.ts +0 -5
- package/src/utils/isLegacyPool.ts +0 -15
- package/src/utils/isPoolsSupported.ts +0 -5
- package/tsconfig.json +0 -14
- package/tsup.config.ts +0 -26
- package/vitest.config.ts +0 -9
package/src/constants/pools/1.ts
DELETED
|
@@ -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,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]
|