@exodus/ethereum-lib 2.24.3-alpha.0 → 2.25.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": "2.24.3-alpha.0",
3
+ "version": "2.25.0",
4
4
  "description": "Ethereum Library",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@exodus/asset-lib": "^3.7.1",
18
- "@exodus/assets": "^8.0.78",
18
+ "@exodus/assets": "8.0.81",
19
19
  "@exodus/basic-utils": "^0.7.0",
20
20
  "@exodus/ethereumjs-common": "^2.4.0-exodus.6",
21
21
  "@exodus/ethereumjs-tx": "^3.3.0-exodus.6",
@@ -27,5 +27,5 @@
27
27
  "ms": "^2.1.1",
28
28
  "reselect": "~3.0.1"
29
29
  },
30
- "gitHead": "1309eea2af6fa13a3e9e36e6aa615f863ab73012"
30
+ "gitHead": "7b7e5dbb4f89a970c19b247c963b02449a602adb"
31
31
  }
package/src/constants.js CHANGED
@@ -4,7 +4,6 @@ const CHAIN_DATA = {
4
4
  ethereum: {
5
5
  chainId: 1,
6
6
  serverUrl: 'https://geth.a.exodus.io/wallet/v1/',
7
- assetNamespace: 'ethereum',
8
7
  confirmationsNumber: 30,
9
8
  tokenType: 'ETHEREUM_ERC20',
10
9
  },
@@ -23,14 +22,12 @@ const CHAIN_DATA = {
23
22
  bsc: {
24
23
  chainId: 56,
25
24
  serverUrl: 'https://bsc.a.exodus.io/wallet/v1/',
26
- assetNamespace: 'bsc',
27
25
  confirmationsNumber: 15,
28
26
  tokenType: 'BSC_BEP20',
29
27
  },
30
28
  matic: {
31
29
  chainId: 137,
32
30
  serverUrl: 'https://polygon.a.exodus.io/wallet/v1/',
33
- assetNamespace: 'polygon',
34
31
  confirmationsNumber: 50,
35
32
  tokenType: 'MATIC_ERC20',
36
33
  },
@@ -43,7 +40,6 @@ const CHAIN_DATA = {
43
40
  fantommainnet: {
44
41
  chainId: 250,
45
42
  serverUrl: 'https://fantom.a.exodus.io/wallet/v1/',
46
- assetNamespace: 'fantom',
47
43
  confirmationsNumber: 3,
48
44
  tokenType: 'FTM_ERC20',
49
45
  },
@@ -56,22 +52,21 @@ const CHAIN_DATA = {
56
52
  ethereumarbnova: {
57
53
  chainId: 42170,
58
54
  serverUrl: 'https://arbitrum-nova-clarity-d.a.exodus.io',
59
- assetNamespace: 'arbitrum-one',
60
55
  confirmationsNumber: 3,
61
56
  },
62
57
  ethereumarbone: {
63
58
  chainId: 42161,
64
59
  serverUrl: 'https://arbitrum-one-clarity-d.a.exodus.io',
65
- assetNamespace: 'arbitrum-nova',
60
+ confirmationsNumber: 3,
61
+ },
62
+ optimism: {
63
+ chainId: 10,
64
+ serverUrl: 'https://optimism-clarity-d.a.exodus.io',
66
65
  confirmationsNumber: 3,
67
66
  },
68
67
  }
69
68
 
70
69
  export const DEFAULT_SERVER_URLS = mapValues(CHAIN_DATA, ({ serverUrl }) => serverUrl)
71
- export const ASSET_NAMESPACES = Object.entries(CHAIN_DATA).reduce(
72
- (acc, [assetName, chainData]) => ({ ...acc, [assetName]: chainData.assetNamespace }),
73
- {}
74
- )
75
70
  export const CHAIN_IDS = mapValues(CHAIN_DATA, ({ chainId }) => chainId)
76
71
  export const MIN_GASPRICE = 1e9 // 1 gwei
77
72
  export const DEFAULT_FEE_MONITOR_INTERVAL = '1m'
@@ -0,0 +1,16 @@
1
+ import { FeeData } from '@exodus/asset-lib'
2
+ import assets from '@exodus/assets'
3
+
4
+ export default new FeeData({
5
+ config: {
6
+ gasPrice: '0.001 Gwei',
7
+ max: '5 Gwei',
8
+ min: '0.0001 Gwei',
9
+ fuelThreshold: '25 Gwei',
10
+ gasPriceEconomicalRate: 0.7,
11
+ gasPriceMinimumRate: 0.5,
12
+ eip1559Enabled: false,
13
+ },
14
+ mainKey: 'gasPrice',
15
+ currency: assets.optimism.currency,
16
+ })