@exodus/ethereum-lib 5.18.5 → 5.19.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,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
+ ## [5.19.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.18.5...@exodus/ethereum-lib@5.19.0) (2025-11-10)
7
+
8
+
9
+ ### Features
10
+
11
+
12
+ * feat: enable implicit transaction bumps (#6798)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+
18
+ * fix: correct response to insufficient evm nonce during txSend (#6901)
19
+
20
+
21
+
22
+ ## [5.18.6](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.18.5...@exodus/ethereum-lib@5.18.6) (2025-11-10)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+
28
+ * fix: correct response to insufficient evm nonce during txSend (#6901)
29
+
30
+
31
+
6
32
  ## [5.18.5](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.18.4...@exodus/ethereum-lib@5.18.5) (2025-11-03)
7
33
 
8
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-lib",
3
- "version": "5.18.5",
3
+ "version": "5.19.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": "5cccc79593748fc6e266e912fcac69498be93c57"
54
+ "gitHead": "e56c423be0eaf19f1396830fbafd13ab64efa465"
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,
@@ -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'
@@ -59,7 +59,7 @@ export const getEthereumJsTxByTransactionProps = ({
59
59
  })
60
60
  }
61
61
 
62
- const parseBufferToJsTx = (unsignedTx) => {
62
+ export const parseUnsignedTxTransactionBufferToJsTx = ({ unsignedTx }) => {
63
63
  const { transactionBuffer, chainId, ...legacyTxData } = unsignedTx.txData
64
64
  assert(
65
65
  isEmpty(legacyTxData),
@@ -78,7 +78,7 @@ export default function createEthereumJsTx(unsignedTx) {
78
78
  txData: { transactionBuffer, ...legacyTxData },
79
79
  } = unsignedTx
80
80
 
81
- if (transactionBuffer) return parseBufferToJsTx(unsignedTx)
81
+ if (transactionBuffer) return parseUnsignedTxTransactionBufferToJsTx({ unsignedTx })
82
82
 
83
83
  const {
84
84
  chainId,