@exodus/ethereum-lib 2.21.0 → 2.21.1
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 -5
- package/src/constants.js +6 -0
- package/src/fee-data/ethereumgoerli.js +19 -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": "2.21.
|
|
3
|
+
"version": "2.21.1",
|
|
4
4
|
"description": "Ethereum Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -26,8 +26,5 @@
|
|
|
26
26
|
"ms": "^2.1.1",
|
|
27
27
|
"reselect": "~3.0.1"
|
|
28
28
|
},
|
|
29
|
-
"
|
|
30
|
-
"@exodus/assets": "8.0.x"
|
|
31
|
-
},
|
|
32
|
-
"gitHead": "5a1621d8fb3c1ecf4c47dc37f284e9a40d7fd018"
|
|
29
|
+
"gitHead": "bc57df8400729a12d36d481311b3c2745b70013b"
|
|
33
30
|
}
|
package/src/constants.js
CHANGED
|
@@ -13,6 +13,12 @@ const CHAIN_DATA = {
|
|
|
13
13
|
confirmationsNumber: 5000,
|
|
14
14
|
// tokenType: // we do not support tokens
|
|
15
15
|
},
|
|
16
|
+
ethereumgoerli: {
|
|
17
|
+
chainId: 5,
|
|
18
|
+
serverUrl: 'https://geth-goerli-testnet-d.a.exodus.io/wallet/v1/',
|
|
19
|
+
confirmationsNumber: 30,
|
|
20
|
+
tokenType: 'ETHEREUM_GOERLI_ERC20',
|
|
21
|
+
},
|
|
16
22
|
bsc: {
|
|
17
23
|
chainId: 56,
|
|
18
24
|
serverUrl: 'https://bsc.a.exodus.io/wallet/v1/',
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FeeData } from '@exodus/asset-lib'
|
|
2
|
+
|
|
3
|
+
export default new FeeData(
|
|
4
|
+
{
|
|
5
|
+
gasPrice: '75 Gwei',
|
|
6
|
+
baseFeePerGas: '50 Gwei',
|
|
7
|
+
max: '250 Gwei',
|
|
8
|
+
min: '1 Gwei',
|
|
9
|
+
fuelThreshold: '0.025 GOETH',
|
|
10
|
+
swapFee: '0.05 GOETH',
|
|
11
|
+
gasPriceEconomicalRate: 0.7,
|
|
12
|
+
gasPriceMinimumRate: 0.5,
|
|
13
|
+
enableFeeDelegation: false,
|
|
14
|
+
tipGasPrice: '2 Gwei',
|
|
15
|
+
eip1559Enabled: true,
|
|
16
|
+
},
|
|
17
|
+
'gasPrice',
|
|
18
|
+
'ethereumgoerli'
|
|
19
|
+
)
|
package/src/fee-data/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as ethereum } from './ethereum'
|
|
2
2
|
export { default as ethereumclassic } from './ethereumclassic'
|
|
3
|
+
export { default as ethereumgoerli } from './ethereumgoerli'
|
|
3
4
|
export { default as bsc } from './bsc'
|
|
4
5
|
export { default as matic } from './polygon'
|
|
5
6
|
export { default as avalanchec } from './avalanchec'
|
package/src/utils/index.js
CHANGED
|
@@ -11,6 +11,7 @@ const base10 = baseX('0123456789')
|
|
|
11
11
|
const base16 = baseX('0123456789abcdef')
|
|
12
12
|
|
|
13
13
|
export const isEthereumToken = (asset) => asset.assetType === 'ETHEREUM_ERC20'
|
|
14
|
+
export const isEthereumGoerliToken = (asset) => asset.assetType === 'ETHEREUM_GOERLI_ERC20'
|
|
14
15
|
export const isBscToken = (asset) => asset.assetType === 'BSC_BEP20'
|
|
15
16
|
export const isPolygonToken = (asset) => asset.assetType === 'MATIC_ERC20'
|
|
16
17
|
export const isAvalancheToken = (asset) => asset.assetType === 'AVAX_ERC20'
|