@exodus/ethereum-lib 3.3.18 → 3.3.20
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 +2 -2
- package/src/constants.js +7 -0
- package/src/fee-data/aurora.js +1 -1
- package/src/fee-data/basemainnet.js +16 -0
- package/src/fee-data/cronos.js +17 -0
- package/src/fee-data/flare.js +1 -1
- package/src/fee-data/index.js +2 -0
- package/src/fee-data/rootstock.js +1 -1
- package/src/utils/index.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-lib",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.20",
|
|
4
4
|
"description": "Ethereum Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"ms": "^2.1.1",
|
|
43
43
|
"reselect": "~3.0.1"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "0932d2781af7de9d947fd6a56b5cc6c5d7b50563"
|
|
46
46
|
}
|
package/src/constants.js
CHANGED
|
@@ -91,6 +91,13 @@ const CHAIN_DATA = {
|
|
|
91
91
|
monitorType: 'no-history',
|
|
92
92
|
tokenType: 'AURORA_ERC20',
|
|
93
93
|
},
|
|
94
|
+
basemainnet: {
|
|
95
|
+
chainId: 84531,
|
|
96
|
+
serverUrl: 'https://base-goerli-qn.a.exodus.io',
|
|
97
|
+
confirmationsNumber: 30,
|
|
98
|
+
monitorType: 'no-history',
|
|
99
|
+
tokenType: 'BASE_ERC20',
|
|
100
|
+
},
|
|
94
101
|
}
|
|
95
102
|
|
|
96
103
|
export const DEFAULT_SERVER_URLS = mapValues(CHAIN_DATA, ({ serverUrl }) => serverUrl)
|
package/src/fee-data/aurora.js
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FeeData } from '@exodus/asset-lib'
|
|
2
|
+
import { asset } from '@exodus/basemainnet-meta'
|
|
3
|
+
|
|
4
|
+
export default new FeeData({
|
|
5
|
+
config: {
|
|
6
|
+
gasPrice: '0.07 Gwei',
|
|
7
|
+
max: '1 Gwei',
|
|
8
|
+
min: '0.001 Gwei',
|
|
9
|
+
fuelThreshold: '75000 Gwei',
|
|
10
|
+
gasPriceEconomicalRate: 0.8,
|
|
11
|
+
gasPriceMinimumRate: 0.6,
|
|
12
|
+
eip1559Enabled: false,
|
|
13
|
+
},
|
|
14
|
+
mainKey: 'gasPrice',
|
|
15
|
+
currency: asset.currency,
|
|
16
|
+
})
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FeeData } from '@exodus/asset-lib'
|
|
2
|
+
import { asset } from '@exodus/cronos-meta'
|
|
3
|
+
|
|
4
|
+
export default new FeeData({
|
|
5
|
+
config: {
|
|
6
|
+
gasPrice: '5500 Gwei',
|
|
7
|
+
max: '6500 Gwei',
|
|
8
|
+
min: '5000 Gwei',
|
|
9
|
+
fuelThreshold: '4000 Gwei',
|
|
10
|
+
gasPriceEconomicalRate: 0.8,
|
|
11
|
+
gasPriceMinimumRate: 0.6,
|
|
12
|
+
enableFeeDelegation: false,
|
|
13
|
+
eip1559Enabled: false,
|
|
14
|
+
},
|
|
15
|
+
mainKey: 'gasPrice',
|
|
16
|
+
currency: asset.currency,
|
|
17
|
+
})
|
package/src/fee-data/flare.js
CHANGED
package/src/fee-data/index.js
CHANGED
|
@@ -12,3 +12,5 @@ export { default as rootstock } from './rootstock'
|
|
|
12
12
|
export { default as optimism } from './optimism'
|
|
13
13
|
export { default as flare } from './flare'
|
|
14
14
|
export { default as aurora } from './aurora'
|
|
15
|
+
export { default as cronos } from './cronos'
|
|
16
|
+
export { default as basemainnet } from './basemainnet'
|
package/src/utils/index.js
CHANGED
|
@@ -25,6 +25,8 @@ export const isRootstockToken = (asset) => asset.assetType === 'RSK_ERC20'
|
|
|
25
25
|
export const isOptimismToken = (asset) => asset.assetType === 'OPT_ERC20'
|
|
26
26
|
export const isFlareToken = (asset) => asset.assetType === 'FLR_ERC20'
|
|
27
27
|
export const isAuroraToken = (asset) => asset.assetType === 'AURORA_ERC20'
|
|
28
|
+
export const isCronosToken = (asset) => asset.assetType === 'CRC20'
|
|
29
|
+
export const isBaseMainnetToken = (asset) => asset.assetType === 'BASE_ERC20'
|
|
28
30
|
|
|
29
31
|
// All ethereum-like tokens
|
|
30
32
|
export const isEthereumLikeToken = (asset) => ETHEREUM_LIKE_TOKEN_TYPES.includes(asset.assetType)
|