@exodus/ethereum-lib 5.18.6 → 5.20.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,40 @@
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
+ ## [5.20.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.18.5...@exodus/ethereum-lib@5.20.0) (2025-11-19)
7
+
8
+
9
+ ### Features
10
+
11
+
12
+ * feat: Bundle approve and delegate functions for Matic staking (With simulation) (#6707)
13
+
14
+ * feat: enable implicit transaction bumps (#6798)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+
20
+ * fix: correct response to insufficient evm nonce during txSend (#6901)
21
+
22
+
23
+
24
+ ## [5.19.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.18.5...@exodus/ethereum-lib@5.19.0) (2025-11-10)
25
+
26
+
27
+ ### Features
28
+
29
+
30
+ * feat: enable implicit transaction bumps (#6798)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+
36
+ * fix: correct response to insufficient evm nonce during txSend (#6901)
37
+
38
+
39
+
6
40
  ## [5.18.6](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.18.5...@exodus/ethereum-lib@5.18.6) (2025-11-10)
7
41
 
8
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-lib",
3
- "version": "5.18.6",
3
+ "version": "5.20.0",
4
4
  "description": "Ethereum utils, such as for cryptography, address encoding/decoding, transaction building, etc.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -51,5 +51,5 @@
51
51
  "type": "git",
52
52
  "url": "git+https://github.com/ExodusMovement/assets.git"
53
53
  },
54
- "gitHead": "342bc790d18d382ec34f846446d678a3b6342ab7"
54
+ "gitHead": "a15d8239871e44fd99d48a2b1a66606e2d428735"
55
55
  }
@@ -253,6 +253,25 @@ export const calculateBumpedGasPrice = ({
253
253
  })
254
254
  }
255
255
 
256
+ export const calculateBumpedGasPriceForFeeData = ({
257
+ baseAsset,
258
+ tx,
259
+ feeData: {
260
+ gasPrice: currentGasPrice,
261
+ baseFeePerGas: currentBaseFee,
262
+ eip1559Enabled,
263
+ tipGasPrice: currentTipGasPrice,
264
+ },
265
+ }) =>
266
+ calculateBumpedGasPrice({
267
+ baseAsset,
268
+ tx,
269
+ currentBaseFee,
270
+ currentGasPrice,
271
+ currentTipGasPrice,
272
+ eip1559Enabled,
273
+ })
274
+
256
275
  export const canAccelerateTx = ({
257
276
  tx,
258
277
  assets,
@@ -294,6 +313,11 @@ export const canAccelerateTx = ({
294
313
  return wrapResponseToObject({ errorMessage: 'can not bump a dapp TX' })
295
314
  }
296
315
 
316
+ // We cannot yet accelerate bundle TXs
317
+ if (tx.data.bundleId) {
318
+ return wrapResponseToObject({ errorMessage: 'can not bump a bundle TX' })
319
+ }
320
+
297
321
  if (isQueuedPendingTx(tx, baseAssetName, activeWalletAccount, getTxLog, now)) {
298
322
  return wrapResponseToObject({ errorMessage: 'there is a stuck TX with lower nonce' })
299
323
  }
@@ -1,6 +1,7 @@
1
1
  export {
2
2
  default as getCanAccelerateTxFactory,
3
3
  calculateBumpedGasPrice,
4
+ calculateBumpedGasPriceForFeeData,
4
5
  getPendingNonExchangeTxs,
5
6
  getAssetPendingNonExchangeTxs,
6
7
  } from './get-can-accelerate-tx-factory.js'
@@ -17,6 +17,7 @@ export default function createUnsignedTxFactory({ chainId }) {
17
17
  fromAddress,
18
18
  eip1559Enabled,
19
19
  }) => {
20
+ console.warn('createUnsignedTxFactory is deprecated, use createTxFactory instead')
20
21
  const baseAsset = asset.baseAsset
21
22
  assert(chainId, 'chainId is required')
22
23