@exodus/ethereum-api 2.7.3 → 2.8.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "Ethereum Api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "Exodus Movement, Inc.",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"access": "restricted"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@exodus/ethereum-lib": "^2.
|
|
13
|
+
"@exodus/ethereum-lib": "^2.13.0",
|
|
14
14
|
"@exodus/ethereumjs-util": "^7.1.0-exodus.6",
|
|
15
15
|
"@exodus/simple-retry": "^0.0.6",
|
|
16
16
|
"fetchival": "0.3.3",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"url-join": "4.0.0",
|
|
21
21
|
"ws": "6.1.0"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "65e6814fcebf5a3c4f3bc0d73cb092bca455fa17"
|
|
24
24
|
}
|
|
@@ -5,6 +5,7 @@ const EXODUS_ETC_SERVER_URL = 'https://getc.a.exodus.io/wallet/v1/'
|
|
|
5
5
|
const EXODUS_BSC_SERVER_URL = 'https://bsc.a.exodus.io/wallet/v1/'
|
|
6
6
|
const EXODUS_POLYGON_SERVER_URL = 'https://polygon.a.exodus.io/wallet/v1/'
|
|
7
7
|
const EXODUS_AVAXC_SERVER_URL = 'https://avax-c.a.exodus.io/wallet/v1/'
|
|
8
|
+
const EXODUS_FTM_SERVER_URL = 'https://ftm.a.exodus.io/wallet/v1/'
|
|
8
9
|
|
|
9
10
|
// allow self-signed certs
|
|
10
11
|
// process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'
|
|
@@ -13,6 +14,7 @@ export const etc = create(EXODUS_ETC_SERVER_URL)
|
|
|
13
14
|
export const bsc = create(EXODUS_BSC_SERVER_URL)
|
|
14
15
|
export const polygon = create(EXODUS_POLYGON_SERVER_URL)
|
|
15
16
|
export const avaxc = create(EXODUS_AVAXC_SERVER_URL)
|
|
17
|
+
export const ftm = create(EXODUS_FTM_SERVER_URL)
|
|
16
18
|
|
|
17
19
|
// exported for in-library use only.
|
|
18
20
|
export const serverMap = {
|
|
@@ -21,6 +23,7 @@ export const serverMap = {
|
|
|
21
23
|
bsc,
|
|
22
24
|
matic: polygon,
|
|
23
25
|
avalanchec: avaxc,
|
|
26
|
+
fantommainnet: ftm,
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
export function getServer(asset) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EthereumLikeFeeMonitor } from '@exodus/ethereum-lib'
|
|
2
|
+
import { fantommainnet as fantomServer } from '../exodus-eth-server'
|
|
3
|
+
|
|
4
|
+
export class FantomFeeMonitor extends EthereumLikeFeeMonitor {
|
|
5
|
+
constructor({ updateFee }) {
|
|
6
|
+
super({
|
|
7
|
+
updateFee,
|
|
8
|
+
assetName: 'fantommainnet',
|
|
9
|
+
getGasPrice: fantomServer.gasPrice,
|
|
10
|
+
})
|
|
11
|
+
}
|
|
12
|
+
}
|
package/src/fee-monitor/index.js
CHANGED