@exodus/ethereum-lib 2.26.0 → 2.26.1-alpha2

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.26.0",
3
+ "version": "2.26.1-alpha2",
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.81",
18
+ "@exodus/assets": "8.0.84",
19
19
  "@exodus/basic-utils": "^0.7.0",
20
20
  "@exodus/bip32": "^1.0.0",
21
21
  "@exodus/ethereumjs-common": "^2.4.0-exodus.6",
@@ -28,6 +28,5 @@
28
28
  "lodash": "^4.17.15",
29
29
  "ms": "^2.1.1",
30
30
  "reselect": "~3.0.1"
31
- },
32
- "gitHead": "df2b99d7026e8804622b8ac3410c7f009bd3adc8"
31
+ }
33
32
  }
package/src/constants.js CHANGED
@@ -53,20 +53,33 @@ const CHAIN_DATA = {
53
53
  chainId: 42170,
54
54
  serverUrl: 'https://arbitrum-nova-clarity-d.a.exodus.io',
55
55
  confirmationsNumber: 3,
56
+ monitorType: 'clarity',
56
57
  },
57
58
  ethereumarbone: {
58
59
  chainId: 42161,
59
60
  serverUrl: 'https://arbitrum-one-clarity-d.a.exodus.io',
60
61
  confirmationsNumber: 3,
62
+ monitorType: 'clarity',
61
63
  },
62
64
  optimism: {
63
65
  chainId: 10,
64
66
  serverUrl: 'https://optimism-clarity-d.a.exodus.io',
65
67
  confirmationsNumber: 3,
68
+ monitorType: 'clarity',
69
+ },
70
+ rootstock: {
71
+ chainId: 30,
72
+ serverUrl: 'https://rsk-d.a.exodus.io',
73
+ confirmationsNumber: 3,
74
+ monitorType: 'no-history',
66
75
  },
67
76
  }
68
77
 
69
78
  export const DEFAULT_SERVER_URLS = mapValues(CHAIN_DATA, ({ serverUrl }) => serverUrl)
79
+ export const ETHEREUM_LIKE_MONITOR_TYPES = mapValues(
80
+ CHAIN_DATA,
81
+ ({ monitorType }) => monitorType || 'magnifier'
82
+ )
70
83
  export const CHAIN_IDS = mapValues(CHAIN_DATA, ({ chainId }) => chainId)
71
84
  export const MIN_GASPRICE = 1e9 // 1 gwei
72
85
  export const DEFAULT_FEE_MONITOR_INTERVAL = '1m'
@@ -8,3 +8,4 @@ export { default as matic } from './polygon'
8
8
  export { default as avalanchec } from './avalanchec'
9
9
  export { default as fantommainnet } from './fantom'
10
10
  export { default as harmonymainnet } from './harmony'
11
+ export { default as rootstock } from './rootstock'
@@ -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: '5 Gwei',
7
+ max: '25 Gwei',
8
+ min: '1 Gwei',
9
+ fuelThreshold: '25 Gwei',
10
+ gasPriceEconomicalRate: 0.8,
11
+ gasPriceMinimumRate: 0.6,
12
+ eip1559Enabled: false,
13
+ },
14
+ mainKey: 'gasPrice',
15
+ currency: assets.rootstock.currency,
16
+ })
package/LICENSE.md DELETED
File without changes