@exodus/ethereum-lib 4.3.0 → 4.4.0

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": "@exodus/ethereum-lib",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "Ethereum Library",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -36,6 +36,7 @@
36
36
  "@exodus/ethereumjs-common": "^2.4.0-exodus.6",
37
37
  "@exodus/ethereumjs-tx": "^3.3.0-exodus.7",
38
38
  "@exodus/ethereumjs-util": "^7.1.0-exodus.7",
39
+ "@exodus/ethereumsepolia-meta": "^1.0.1",
39
40
  "@exodus/fantommainnet-meta": "^1.0.5",
40
41
  "@exodus/flare-meta": "^1.0.4",
41
42
  "@exodus/harmonymainnet-meta": "^1.0.0",
@@ -58,5 +59,5 @@
58
59
  "@exodus/bnbmainnet-meta": "^1.0.0",
59
60
  "@exodus/elliptic": "^6.5.4-precomputed"
60
61
  },
61
- "gitHead": "b4bf49e4180ceb6fb437a2c7dd155829b00aa212"
62
+ "gitHead": "952a85ff2ce573b294d53fb411b9858088d15229"
62
63
  }
package/src/constants.js CHANGED
@@ -25,6 +25,12 @@ const CHAIN_DATA = {
25
25
  confirmationsNumber: 30,
26
26
  tokenType: 'ETHEREUM_HOLESKY_ERC20',
27
27
  },
28
+ ethereumsepolia: {
29
+ chainId: 11_155_111,
30
+ serverUrl: 'https://geth-sepolia-testnet-d.a.exodus.io/wallet/v1/',
31
+ confirmationsNumber: 30,
32
+ tokenType: 'ETHEREUM_SEPOLIA_ERC20',
33
+ },
28
34
  bsc: {
29
35
  chainId: 56,
30
36
  serverUrl: 'https://bsc-clarity.a.exodus.io/',
@@ -0,0 +1,20 @@
1
+ import { FeeData } from '@exodus/asset-lib'
2
+ import { asset } from '@exodus/ethereumsepolia-meta'
3
+
4
+ export default new FeeData({
5
+ config: {
6
+ gasPrice: '75 Gwei',
7
+ baseFeePerGas: '50 Gwei',
8
+ max: '250 Gwei',
9
+ min: '1 Gwei',
10
+ fuelThreshold: '0.025 SETH',
11
+ swapFee: '0.05 SETH',
12
+ gasPriceEconomicalRate: 0.7,
13
+ gasPriceMinimumRate: 0.5,
14
+ enableFeeDelegation: false,
15
+ tipGasPrice: '2 Gwei',
16
+ eip1559Enabled: true,
17
+ },
18
+ mainKey: 'gasPrice',
19
+ currency: asset.currency,
20
+ })
@@ -4,6 +4,7 @@ export { default as ethereumarbone } from './ethereumarbone'
4
4
  export { default as ethereumclassic } from './ethereumclassic'
5
5
  export { default as ethereumgoerli } from './ethereumgoerli'
6
6
  export { default as ethereumholesky } from './ethereumholesky'
7
+ export { default as ethereumsepolia } from './ethereumsepolia'
7
8
  export { default as bsc } from './bsc'
8
9
  export { default as matic } from './polygon'
9
10
  export { default as avalanchec } from './avalanchec'
@@ -16,6 +16,7 @@ const base16 = baseX('0123456789abcdef')
16
16
  export const isEthereumToken = (asset) => asset.assetType === 'ETHEREUM_ERC20'
17
17
  export const isEthereumGoerliToken = (asset) => asset.assetType === 'ETHEREUM_GOERLI_ERC20'
18
18
  export const isEthereumHoleskyToken = (asset) => asset.assetType === 'ETHEREUM_HOLESKY_ERC20'
19
+ export const isEthereumSepoliaToken = (asset) => asset.assetType === 'ETHEREUM_SEPOLIA_ERC20'
19
20
  export const isBscToken = (asset) => asset.assetType === 'BSC_BEP20'
20
21
  export const isPolygonToken = (asset) => asset.assetType === 'MATIC_ERC20'
21
22
  export const isAvalancheToken = (asset) => asset.assetType === 'AVAX_ERC20'