@exodus/ethereum-lib 2.24.1 → 2.24.3-alpha.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/constants.js +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-lib",
3
- "version": "2.24.1",
3
+ "version": "2.24.3-alpha.0",
4
4
  "description": "Ethereum Library",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -27,5 +27,5 @@
27
27
  "ms": "^2.1.1",
28
28
  "reselect": "~3.0.1"
29
29
  },
30
- "gitHead": "7946545f70f53529e2d73a027ca5020d0c895800"
30
+ "gitHead": "1309eea2af6fa13a3e9e36e6aa615f863ab73012"
31
31
  }
package/src/constants.js CHANGED
@@ -4,6 +4,7 @@ const CHAIN_DATA = {
4
4
  ethereum: {
5
5
  chainId: 1,
6
6
  serverUrl: 'https://geth.a.exodus.io/wallet/v1/',
7
+ assetNamespace: 'ethereum',
7
8
  confirmationsNumber: 30,
8
9
  tokenType: 'ETHEREUM_ERC20',
9
10
  },
@@ -22,12 +23,14 @@ const CHAIN_DATA = {
22
23
  bsc: {
23
24
  chainId: 56,
24
25
  serverUrl: 'https://bsc.a.exodus.io/wallet/v1/',
26
+ assetNamespace: 'bsc',
25
27
  confirmationsNumber: 15,
26
28
  tokenType: 'BSC_BEP20',
27
29
  },
28
30
  matic: {
29
31
  chainId: 137,
30
32
  serverUrl: 'https://polygon.a.exodus.io/wallet/v1/',
33
+ assetNamespace: 'polygon',
31
34
  confirmationsNumber: 50,
32
35
  tokenType: 'MATIC_ERC20',
33
36
  },
@@ -40,6 +43,7 @@ const CHAIN_DATA = {
40
43
  fantommainnet: {
41
44
  chainId: 250,
42
45
  serverUrl: 'https://fantom.a.exodus.io/wallet/v1/',
46
+ assetNamespace: 'fantom',
43
47
  confirmationsNumber: 3,
44
48
  tokenType: 'FTM_ERC20',
45
49
  },
@@ -52,16 +56,22 @@ const CHAIN_DATA = {
52
56
  ethereumarbnova: {
53
57
  chainId: 42170,
54
58
  serverUrl: 'https://arbitrum-nova-clarity-d.a.exodus.io',
59
+ assetNamespace: 'arbitrum-one',
55
60
  confirmationsNumber: 3,
56
61
  },
57
62
  ethereumarbone: {
58
63
  chainId: 42161,
59
64
  serverUrl: 'https://arbitrum-one-clarity-d.a.exodus.io',
65
+ assetNamespace: 'arbitrum-nova',
60
66
  confirmationsNumber: 3,
61
67
  },
62
68
  }
63
69
 
64
70
  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
+ )
65
75
  export const CHAIN_IDS = mapValues(CHAIN_DATA, ({ chainId }) => chainId)
66
76
  export const MIN_GASPRICE = 1e9 // 1 gwei
67
77
  export const DEFAULT_FEE_MONITOR_INTERVAL = '1m'