@exodus/ethereum-api 8.56.0 → 8.57.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/CHANGELOG.md +16 -0
- package/package.json +2 -2
- package/src/exodus-eth-server/clarity-v2.js +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [8.57.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.55.0...@exodus/ethereum-api@8.57.0) (2025-11-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* feat: monad-testnet (#6706)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
* fix: enable http request retries on clarity (#6864)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [8.56.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.55.0...@exodus/ethereum-api@8.56.0) (2025-11-04)
|
|
7
23
|
|
|
8
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.57.0",
|
|
4
4
|
"description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Ethereum and EVM-based blockchains",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"type": "git",
|
|
68
68
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "2445d46e0f79ed2b131412d159e5a4e895f390de"
|
|
71
71
|
}
|
|
@@ -53,6 +53,12 @@ const fetchJson = async (url, fetchOptions) => {
|
|
|
53
53
|
return response.json()
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
async function fetchJsonRetry(url, fetchOptions) {
|
|
57
|
+
const waitTimes = ['3s']
|
|
58
|
+
const fetchWithRetry = retry(fetchJson, { delayTimesMs: waitTimes })
|
|
59
|
+
return fetchWithRetry(url, fetchOptions)
|
|
60
|
+
}
|
|
61
|
+
|
|
56
62
|
const fetchHttpRequest = ({ baseApiPath, path, method, body }) => {
|
|
57
63
|
assert(typeof baseApiPath === 'string', 'expected string baseApiPath')
|
|
58
64
|
|
|
@@ -63,13 +69,7 @@ const fetchHttpRequest = ({ baseApiPath, path, method, body }) => {
|
|
|
63
69
|
}
|
|
64
70
|
|
|
65
71
|
if (body) fetchOptions.body = JSON.stringify(body)
|
|
66
|
-
return
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
async function fetchJsonRetry(url, fetchOptions) {
|
|
70
|
-
const waitTimes = ['3s']
|
|
71
|
-
const fetchWithRetry = retry(fetchJson, { delayTimesMs: waitTimes })
|
|
72
|
-
return fetchWithRetry(url, fetchOptions)
|
|
72
|
+
return fetchJsonRetry(url, fetchOptions)
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
export default class ClarityServerV2 extends ClarityServer {
|
|
@@ -100,7 +100,7 @@ export default class ClarityServerV2 extends ClarityServer {
|
|
|
100
100
|
// 25th, 50th and 75th percentiles of `maxPriorityFeePerGas` for
|
|
101
101
|
// an EVM-based network.
|
|
102
102
|
async getGasPriceEstimation() {
|
|
103
|
-
return
|
|
103
|
+
return fetchJsonRetry(`${this.baseApiPath}/gas-price-estimation`)
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
async getFee() {
|