@exodus/ethereum-api 8.43.0 → 8.43.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 +8 -0
- package/package.json +2 -2
- package/src/create-asset-utils.js +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.43.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.43.0...@exodus/ethereum-api@8.43.1) (2025-07-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @exodus/ethereum-api
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [8.43.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.42.2...@exodus/ethereum-api@8.43.0) (2025-07-14)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "8.43.
|
|
3
|
+
"version": "8.43.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",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"type": "git",
|
|
64
64
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "ef192865e8886dedb72c280a1b252ff177e20067"
|
|
67
67
|
}
|
|
@@ -60,6 +60,16 @@ export const resolveMonitorSettings = (
|
|
|
60
60
|
return { ...defaultResolution, monitorType: overrideMonitorType, serverUrl: overrideServerUrl }
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
const stringifyPrivateTx = (tx) => {
|
|
64
|
+
assert(tx, 'expected tx')
|
|
65
|
+
if (tx instanceof Uint8Array) return `0x${Buffer.from(tx).toString('hex')}`
|
|
66
|
+
|
|
67
|
+
assert(typeof tx === 'string', 'expected string')
|
|
68
|
+
if (tx.startsWith('0x')) return tx
|
|
69
|
+
|
|
70
|
+
return `0x${tx}`
|
|
71
|
+
}
|
|
72
|
+
|
|
63
73
|
const broadcastPrivateBundleFactory =
|
|
64
74
|
({ privacyServer }) =>
|
|
65
75
|
async ({ txs }) => {
|
|
@@ -69,7 +79,7 @@ const broadcastPrivateBundleFactory =
|
|
|
69
79
|
await privacyServer.sendRequest(
|
|
70
80
|
privacyServer.buildRequest({
|
|
71
81
|
method: 'eth_sendBundle',
|
|
72
|
-
params: [{ txs }],
|
|
82
|
+
params: [{ txs: txs.map((tx) => stringifyPrivateTx(tx)) }],
|
|
73
83
|
})
|
|
74
84
|
)
|
|
75
85
|
}
|