@exodus/ethereum-api 7.2.0 → 7.2.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "Ethereum Api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"cross-fetch": "^3.1.5",
|
|
53
53
|
"delay": "4.0.1"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "4e7cc9a7bf33f63f1b957005a75163a9f08f39f6"
|
|
56
56
|
}
|
|
@@ -5,10 +5,9 @@ import ms from 'ms'
|
|
|
5
5
|
const DEFAULT_STAKING_URL = 'https://staking.a.exodus.io'
|
|
6
6
|
const HTTP_POST_TIMEOUT = ms('30s')
|
|
7
7
|
|
|
8
|
-
export const stakingProviderClientFactory = (
|
|
9
|
-
defaultStakingUrl = DEFAULT_STAKING_URL,
|
|
10
|
-
|
|
11
|
-
} = {}) => {
|
|
8
|
+
export const stakingProviderClientFactory = (
|
|
9
|
+
{ defaultStakingUrl = DEFAULT_STAKING_URL, getTelemetryId } = Object.create(null)
|
|
10
|
+
) => {
|
|
12
11
|
assert(defaultStakingUrl, '"defaultStakingUrl" must be provided')
|
|
13
12
|
|
|
14
13
|
let stakingUrl = new URL(defaultStakingUrl) // always should be an URL instance
|
|
@@ -116,9 +116,14 @@ export class EthereumNoHistoryMonitor extends BaseMonitor {
|
|
|
116
116
|
batch.push(request)
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
try {
|
|
120
|
+
const responses = await this.server.sendBatchRequest(batch)
|
|
121
|
+
const txIds = transactions.map(({ tx }) => tx.txId)
|
|
122
|
+
return zipObject(txIds, responses)
|
|
123
|
+
} catch (error) {
|
|
124
|
+
console.warn({ error })
|
|
125
|
+
return []
|
|
126
|
+
}
|
|
122
127
|
}
|
|
123
128
|
|
|
124
129
|
async checkPendingTransactions({ pendingTransactions, pendingTxsFromNode, walletAccount }) {
|