@exodus/ethereum-api 10.1.4 → 10.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/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
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
+ ## [10.2.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@10.2.0...@exodus/ethereum-api@10.2.1) (2026-10-21)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ethereum-api:** route everstake unstake simulation through exodus proxy ([#8955](https://github.com/ExodusMovement/assets/issues/8955)) ([8a9ffed](https://github.com/ExodusMovement/assets/commit/8a9ffed8037b3344b07aa591730396bc0ea4e51a))
12
+
13
+
14
+
15
+ ## [10.2.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@10.1.4...@exodus/ethereum-api@10.2.0) (2026-10-20)
16
+
17
+
18
+ ### Features
19
+
20
+ * **ethereum-api:** report the signed tx hash before broadcast ([#9019](https://github.com/ExodusMovement/assets/issues/9019)) ([96ae8c0](https://github.com/ExodusMovement/assets/commit/96ae8c0605181207279197d070a31a965f6f616c))
21
+
22
+
23
+
6
24
  ## [10.1.4](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@10.1.3...@exodus/ethereum-api@10.1.4) (2026-10-17)
7
25
 
8
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "10.1.4",
3
+ "version": "10.2.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",
@@ -65,5 +65,5 @@
65
65
  "type": "git",
66
66
  "url": "git+https://github.com/ExodusMovement/assets.git"
67
67
  },
68
- "gitHead": "c2422cdc47034c6b0e497e95546a8b18885a792b"
68
+ "gitHead": "58cc7d254c0b21139ba3ad069fa18998d8ddf458"
69
69
  }
@@ -6,7 +6,6 @@ import { createCachedStakingRead } from '../cached-read.js'
6
6
  import { UNSTAKE_DEFAULTS } from './api.js'
7
7
 
8
8
  const BASE_URL = 'https://eth-clarity.a.exodus.io/api/v2/ethereum/proxy/everstake/'
9
- const WALLET_SDK_BASE_URL = 'https://wallet-sdk-api.everstake.one/'
10
9
 
11
10
  const fetch = async (path, config = Object.create(null)) => {
12
11
  const url = new URL(path, BASE_URL).toString()
@@ -32,6 +31,7 @@ const isFiniteInteger = (e) => Number.isInteger(e) && Number.isFinite(e)
32
31
 
33
32
  // Simulate an unstake to predict how much ETH the interchange pool returns instantly.
34
33
  // https://wallet-sdk-api.everstake.one/swagger/#/Ethereum/post_ethereum_pool_simulate_unstake
34
+ // Routed through the Exodus Everstake proxy rather than calling Everstake directly from the client.
35
35
  //
36
36
  // Inputs:
37
37
  // address: staker address (0x...)
@@ -52,7 +52,7 @@ export const simulateEverstakeUnstake = async ({
52
52
  assert(typeof address === 'string' && address.startsWith('0x'), 'expected valid address')
53
53
  assert(typeof amount === 'string' && amount.length > 0, 'expected amount in ETH as string')
54
54
 
55
- const url = new URL('ethereum/pool/simulate_unstake', WALLET_SDK_BASE_URL).toString()
55
+ const url = new URL('ethereum/pool/simulate_unstake', BASE_URL).toString()
56
56
 
57
57
  const response = await exodusFetch(url, {
58
58
  method: 'POST',
@@ -11,7 +11,13 @@ const txSendFactory = ({ assetClientInterface, createTx }) => {
11
11
  assert(assetClientInterface, 'assetClientInterface is required')
12
12
  assert(createTx, 'createTx is required')
13
13
 
14
- return async ({ asset, walletAccount, unsignedTx: providedUnsignedTx, ...legacyParams }) => {
14
+ return async ({
15
+ asset,
16
+ walletAccount,
17
+ unsignedTx: providedUnsignedTx,
18
+ onTxSigned,
19
+ ...legacyParams
20
+ }) => {
15
21
  const baseAsset = asset.baseAsset
16
22
 
17
23
  const { unsignedTx } = providedUnsignedTx
@@ -36,6 +42,8 @@ const txSendFactory = ({ assetClientInterface, createTx }) => {
36
42
  unsignedTx,
37
43
  walletAccount,
38
44
  })
45
+ // A caller that must find the tx after a lost broadcast response learns its hash before the network sees it.
46
+ await onTxSigned?.({ txId })
39
47
 
40
48
  try {
41
49
  await baseAsset.api.broadcastTx(rawTx.toString('hex'))
@@ -90,6 +98,7 @@ const txSendFactory = ({ assetClientInterface, createTx }) => {
90
98
  unsignedTx,
91
99
  walletAccount,
92
100
  }))
101
+ await onTxSigned?.({ txId })
93
102
 
94
103
  try {
95
104
  await baseAsset.api.broadcastTx(rawTx.toString('hex'))