@exodus/ethereum-lib 2.12.1 → 2.13.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.
- package/package.json +2 -2
- package/src/constants.js +11 -1
- package/src/fee-data/fantom.js +15 -0
- package/src/fee-data/index.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-lib",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "Ethereum Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "Exodus Movement, Inc.",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@exodus/assets": "8.0.x"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "65e6814fcebf5a3c4f3bc0d73cb092bca455fa17"
|
|
28
28
|
}
|
package/src/constants.js
CHANGED
|
@@ -4,6 +4,7 @@ export const CHAIN_IDS = {
|
|
|
4
4
|
bsc: 56,
|
|
5
5
|
matic: 137,
|
|
6
6
|
avalanchec: 43114,
|
|
7
|
+
fantommainnet: 250,
|
|
7
8
|
}
|
|
8
9
|
export const MIN_GASPRICE = 1e9 // 1 gwei
|
|
9
10
|
export const DEFAULT_FEE_MONITOR_INTERVAL = '1m'
|
|
@@ -13,12 +14,21 @@ export const CONFIRMATIONS_NUMBER = {
|
|
|
13
14
|
bsc: 15,
|
|
14
15
|
matic: 355,
|
|
15
16
|
avalanchec: 30,
|
|
17
|
+
fantommainnet: 3,
|
|
16
18
|
}
|
|
17
|
-
export const ETHEREUM_LIKE_ASSETS = [
|
|
19
|
+
export const ETHEREUM_LIKE_ASSETS = [
|
|
20
|
+
'bsc',
|
|
21
|
+
'ethereum',
|
|
22
|
+
'ethereumclassic',
|
|
23
|
+
'matic',
|
|
24
|
+
'avalanchec',
|
|
25
|
+
'fantommainnet',
|
|
26
|
+
]
|
|
18
27
|
export const ETHEREUM_LIKE_TOKEN_TYPES = [
|
|
19
28
|
'ETHEREUM_ERC20',
|
|
20
29
|
'BSC_BEP20',
|
|
21
30
|
'MATIC_ERC20',
|
|
22
31
|
'AVAX_ERC20',
|
|
32
|
+
'FTM_ERC20',
|
|
23
33
|
]
|
|
24
34
|
export const BUMP_RATE = 1.2
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FeeData } from '@exodus/asset-lib'
|
|
2
|
+
|
|
3
|
+
export default new FeeData(
|
|
4
|
+
{
|
|
5
|
+
// https://ftmscan.com/chart/gasprice
|
|
6
|
+
gasPrice: '400 Gwei',
|
|
7
|
+
max: '700 Gwei',
|
|
8
|
+
min: '100 Gwei',
|
|
9
|
+
erc20FuelThreshold: '2500000 Gwei',
|
|
10
|
+
gasPriceEconomicalRate: 0.8,
|
|
11
|
+
gasPriceMinimumRate: 0.6,
|
|
12
|
+
},
|
|
13
|
+
'gasPrice',
|
|
14
|
+
'fantommainnet'
|
|
15
|
+
)
|
package/src/fee-data/index.js
CHANGED