@exodus/ethereum-api 8.56.0 → 8.57.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/CHANGELOG.md +26 -0
- package/package.json +3 -3
- package/src/exodus-eth-server/clarity-v2.js +8 -8
- package/src/tx-send/tx-send.js +17 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,32 @@
|
|
|
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.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.57.0...@exodus/ethereum-api@8.57.1) (2025-11-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix: correct response to insufficient evm nonce during txSend (#6901)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [8.57.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.55.0...@exodus/ethereum-api@8.57.0) (2025-11-05)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* feat: monad-testnet (#6706)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
* fix: enable http request retries on clarity (#6864)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
6
32
|
## [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
33
|
|
|
8
34
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.57.1",
|
|
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",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@exodus/bip44-constants": "^195.0.0",
|
|
30
30
|
"@exodus/crypto": "^1.0.0-rc.26",
|
|
31
31
|
"@exodus/currency": "^6.0.1",
|
|
32
|
-
"@exodus/ethereum-lib": "^5.18.
|
|
32
|
+
"@exodus/ethereum-lib": "^5.18.6",
|
|
33
33
|
"@exodus/ethereum-meta": "^2.9.1",
|
|
34
34
|
"@exodus/ethereumholesky-meta": "^2.0.5",
|
|
35
35
|
"@exodus/ethereumjs": "^1.8.0",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"type": "git",
|
|
68
68
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "342bc790d18d382ec34f846446d678a3b6342ab7"
|
|
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() {
|
package/src/tx-send/tx-send.js
CHANGED
|
@@ -37,10 +37,6 @@ const txSendFactory = ({ assetClientInterface, createTx }) => {
|
|
|
37
37
|
})
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
// NOTE: An `unsignedTx.txData.transactionBuffer` may be optional
|
|
41
|
-
// in `unsignedTx`, since a `providedUnsignedTx` may be
|
|
42
|
-
// truthy but composed only of `legacyParams`:
|
|
43
|
-
// https://github.com/ExodusMovement/assets/blob/4e3e873e3f5bfa8fce36f60be7d95a3dba9546e4/ethereum/ethereum-lib/src/unsigned-tx/parse-unsigned-tx.js#L104C5-L104C6
|
|
44
40
|
const { unsignedTx } = await resolveUnsignedTx()
|
|
45
41
|
|
|
46
42
|
const parsedTx = parseUnsignedTx({ asset, unsignedTx })
|
|
@@ -100,12 +96,24 @@ const txSendFactory = ({ assetClientInterface, createTx }) => {
|
|
|
100
96
|
forceFromNode: true,
|
|
101
97
|
})
|
|
102
98
|
|
|
99
|
+
// NOTE: An `unsignedTx.txData.transactionBuffer` may be optional
|
|
100
|
+
// in `unsignedTx`, since a `providedUnsignedTx` may be
|
|
101
|
+
// truthy but composed only of `legacyParams`:
|
|
102
|
+
// https://github.com/ExodusMovement/assets/blob/4e3e873e3f5bfa8fce36f60be7d95a3dba9546e4/ethereum/ethereum-lib/src/unsigned-tx/parse-unsigned-tx.js#L104C5-L104C6
|
|
103
|
+
//
|
|
103
104
|
// TODO: should return an unsignedTx -> i.e. completely replicate the transaction
|
|
104
|
-
unsignedTx.txData.transactionBuffer
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
if (unsignedTx.txData.transactionBuffer) {
|
|
106
|
+
// eslint-disable-next-line @exodus/mutable/no-param-reassign-prop-only
|
|
107
|
+
unsignedTx.txData.transactionBuffer = updateNonce({
|
|
108
|
+
chainId: baseAsset.chainId,
|
|
109
|
+
newNonce,
|
|
110
|
+
unsignedTx,
|
|
111
|
+
})
|
|
112
|
+
} else {
|
|
113
|
+
// eslint-disable-next-line @exodus/mutable/no-param-reassign-prop-only
|
|
114
|
+
unsignedTx.txData.nonce = newNonce
|
|
115
|
+
}
|
|
116
|
+
|
|
109
117
|
;({ txId, rawTx } = await signTx({ asset, unsignedTx, walletAccount }))
|
|
110
118
|
|
|
111
119
|
try {
|