@exodus/ethereum-api 8.43.2 → 8.44.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 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.44.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.43.2...@exodus/ethereum-api@8.44.0) (2025-07-23)
7
+
8
+
9
+ ### Features
10
+
11
+
12
+ * feat: add eth_simulateV1 method to clarity ethereum api (#6128)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+
18
+ * fix: clarity-v2 number comparison (#6134)
19
+
20
+
21
+
6
22
  ## [8.43.2](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.43.1...@exodus/ethereum-api@8.43.2) (2025-07-18)
7
23
 
8
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "8.43.2",
3
+ "version": "8.44.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",
@@ -63,5 +63,5 @@
63
63
  "type": "git",
64
64
  "url": "git+https://github.com/ExodusMovement/assets.git"
65
65
  },
66
- "gitHead": "452541f55e6b108d710cdc32eb753d52c7a35533"
66
+ "gitHead": "4ffcfcf64edf5174a8b345260f2dad193ed51b20"
67
67
  }
@@ -139,17 +139,18 @@ export default class ClarityServerV2 extends ClarityServer {
139
139
 
140
140
  async getAllTransactions({ address, cursor }) {
141
141
  let { blockNumber } = decodeCursor(cursor)
142
- blockNumber = blockNumber.toString()
143
142
 
144
143
  let transactions = []
145
144
 
146
145
  while (true) {
147
- const { transactions: txs, cursor: nextBlockNumber } =
146
+ const { transactions: txs, cursor: nextBlockNumberInteger } =
148
147
  await this.getTransactionsAtBlockNumber({
149
148
  address,
150
- blockNumber,
149
+ blockNumber: blockNumber.toString(),
151
150
  })
152
151
 
152
+ const nextBlockNumber = BigInt(nextBlockNumberInteger)
153
+
153
154
  if (txs.length === 0) {
154
155
  // fetch until no more new transactions
155
156
  blockNumber = nextBlockNumber
@@ -295,6 +295,13 @@ export default class ClarityServer extends EventEmitter {
295
295
  return this.buildRequest({ method: 'eth_getCompilers' })
296
296
  }
297
297
 
298
+ simulateV1Request(...params) {
299
+ return this.buildRequest({
300
+ method: 'eth_simulateV1',
301
+ params,
302
+ })
303
+ }
304
+
298
305
  getNetVersionRequest() {
299
306
  return this.buildRequest({ method: 'net_version' })
300
307
  }
@@ -408,6 +415,11 @@ export default class ClarityServer extends EventEmitter {
408
415
  return this.sendRequest(request)
409
416
  }
410
417
 
418
+ async simulateV1(...params) {
419
+ const request = this.simulateV1Request(...params)
420
+ return this.sendRequest(request)
421
+ }
422
+
411
423
  async simulateRawTransaction(...params) {
412
424
  const request = this.simulateRawTransactionRequest(...params)
413
425
  return this.sendRequest(request)