@pancakeswap/pools 4.0.5 → 4.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pancakeswap/pools",
3
- "version": "4.0.5",
3
+ "version": "4.0.7",
4
4
  "sideEffects": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,9 +10,9 @@
10
10
  "lodash": "^4.17.21",
11
11
  "viem": "^1.2.9",
12
12
  "wagmi": "^1.3.10",
13
- "@pancakeswap/sdk": "5.3.0",
13
+ "@pancakeswap/sdk": "5.4.0",
14
14
  "@pancakeswap/token-lists": "0.0.8",
15
- "@pancakeswap/tokens": "0.3.1"
15
+ "@pancakeswap/tokens": "0.4.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/lodash": "^4.14.168",
@@ -20,7 +20,7 @@
20
20
  "typescript": "^5.1.3",
21
21
  "vitest": "^0.27.2",
22
22
  "@pancakeswap/tsconfig": "0.0.0",
23
- "@pancakeswap/utils": "4.0.1"
23
+ "@pancakeswap/utils": "5.0.0"
24
24
  },
25
25
  "exports": {
26
26
  "./package.json": "./package.json",
@@ -11,16 +11,22 @@ export const ICAKE = {
11
11
  [ChainId.BSC]: '0x3C458828D1622F5f4d526eb0d24Da8C4Eb8F07b1',
12
12
  [ChainId.BSC_TESTNET]: '0x',
13
13
  [ChainId.ETHEREUM]: '0x',
14
+ [ChainId.ARBITRUM_ONE]: '0x',
15
+ [ChainId.ARBITRUM_GOERLI]: '0x',
14
16
  } as const satisfies ContractAddresses<SupportedChainId>
15
17
 
16
18
  export const CAKE_VAULT = {
17
19
  [ChainId.BSC]: '0x45c54210128a065de780C4B0Df3d16664f7f859e',
18
20
  [ChainId.BSC_TESTNET]: '0x1088Fb24053F03802F673b84d16AE1A7023E400b',
19
21
  [ChainId.ETHEREUM]: '0x',
22
+ [ChainId.ARBITRUM_ONE]: '0x',
23
+ [ChainId.ARBITRUM_GOERLI]: '0x',
20
24
  } as const satisfies ContractAddresses<SupportedChainId>
21
25
 
22
26
  export const CAKE_FLEXIBLE_SIDE_VAULT = {
23
27
  [ChainId.BSC]: '0x615e896A8C2CA8470A2e9dc2E9552998f8658Ea0',
24
28
  [ChainId.BSC_TESTNET]: '0x',
25
29
  [ChainId.ETHEREUM]: '0x',
30
+ [ChainId.ARBITRUM_ONE]: '0x',
31
+ [ChainId.ARBITRUM_GOERLI]: '0x',
26
32
  } as const satisfies ContractAddresses<SupportedChainId>
@@ -0,0 +1,26 @@
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]
@@ -0,0 +1,69 @@
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]
@@ -13,6 +13,15 @@ export const livePools: SerializedPool[] = [
13
13
  tokenPerBlock: '10',
14
14
  isFinished: false,
15
15
  },
16
+ {
17
+ sousId: 360,
18
+ stakingToken: bscTokens.cake,
19
+ earningToken: bscTokens.axl,
20
+ contractAddress: '0x32f0414a4e970a3edd9e7db367A43348F25D74cD',
21
+ poolCategory: PoolCategory.CORE,
22
+ tokenPerBlock: '0.05358',
23
+ version: 3,
24
+ },
16
25
  {
17
26
  sousId: 359,
18
27
  stakingToken: bscTokens.cake,
@@ -3,6 +3,8 @@ import { ChainId } from '@pancakeswap/sdk'
3
3
  import { pools as ethPools, livePools as ethLivePools } from './1'
4
4
  import { pools as bscPools, livePools as bscLivePools } from './56'
5
5
  import { pools as bscTestnetPools, livePools as bscTestnetLivePools } from './97'
6
+ import { pools as arbPools, livePools as arbLivePools } from './42161'
7
+ import { pools as arbTestnetPools, livePools as arbTestnetLivePools } from './421613'
6
8
  import { SerializedPool } from '../../types'
7
9
  import { SupportedChainId } from '../supportedChains'
8
10
  import { isPoolsSupported } from '../../utils/isPoolsSupported'
@@ -15,12 +17,16 @@ export const POOLS_CONFIG_BY_CHAIN = {
15
17
  [ChainId.ETHEREUM]: ethPools,
16
18
  [ChainId.BSC]: bscPools,
17
19
  [ChainId.BSC_TESTNET]: bscTestnetPools,
20
+ [ChainId.ARBITRUM_ONE]: arbPools,
21
+ [ChainId.ARBITRUM_GOERLI]: arbTestnetPools,
18
22
  } as PoolsConfigByChain<SupportedChainId>
19
23
 
20
24
  export const LIVE_POOLS_CONFIG_BY_CHAIN = {
21
25
  [ChainId.ETHEREUM]: ethLivePools,
22
26
  [ChainId.BSC]: bscLivePools,
23
27
  [ChainId.BSC_TESTNET]: bscTestnetLivePools,
28
+ [ChainId.ARBITRUM_ONE]: arbLivePools,
29
+ [ChainId.ARBITRUM_GOERLI]: arbTestnetLivePools,
24
30
  } as PoolsConfigByChain<SupportedChainId>
25
31
 
26
32
  export const getPoolsConfig = (chainId: ChainId) => {
@@ -1,5 +1,11 @@
1
1
  import { ChainId } from '@pancakeswap/sdk'
2
2
 
3
- export const SUPPORTED_CHAIN_IDS = [ChainId.BSC, ChainId.BSC_TESTNET, ChainId.ETHEREUM] as const
3
+ export const SUPPORTED_CHAIN_IDS = [
4
+ ChainId.BSC,
5
+ ChainId.BSC_TESTNET,
6
+ ChainId.ETHEREUM,
7
+ ChainId.ARBITRUM_ONE,
8
+ ChainId.ARBITRUM_GOERLI,
9
+ ] as const
4
10
 
5
11
  export type SupportedChainId = (typeof SUPPORTED_CHAIN_IDS)[number]