@exodus/ethereum-lib 3.3.19 → 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/basemainnet.js +16 -0
- package/src/fee-data/index.js +1 -0
- package/src/utils/index.js +1 -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)
|
|
@@ -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
|
+
})
|
package/src/fee-data/index.js
CHANGED
package/src/utils/index.js
CHANGED
|
@@ -26,6 +26,7 @@ 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
28
|
export const isCronosToken = (asset) => asset.assetType === 'CRC20'
|
|
29
|
+
export const isBaseMainnetToken = (asset) => asset.assetType === 'BASE_ERC20'
|
|
29
30
|
|
|
30
31
|
// All ethereum-like tokens
|
|
31
32
|
export const isEthereumLikeToken = (asset) => ETHEREUM_LIKE_TOKEN_TYPES.includes(asset.assetType)
|