@exodus/ethereum-lib 5.18.3 → 5.18.5

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,26 @@
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.18.5](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.18.4...@exodus/ethereum-lib@5.18.5) (2025-11-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: enable `update-nonce` to work for `unsignedTx`s that lack a `transactionBuffer` (#6832)
13
+
14
+
15
+
16
+ ## [5.18.4](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.18.3...@exodus/ethereum-lib@5.18.4) (2025-10-29)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+
22
+ * fix: augir claim (#6771)
23
+
24
+
25
+
6
26
  ## [5.18.3](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.18.2...@exodus/ethereum-lib@5.18.3) (2025-10-24)
7
27
 
8
28
  **Note:** Version bump only for package @exodus/ethereum-lib
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-lib",
3
- "version": "5.18.3",
3
+ "version": "5.18.5",
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": "9d2c245deb27cf3ce56eef0d7ad5c0ab8bd4bc02"
54
+ "gitHead": "5cccc79593748fc6e266e912fcac69498be93c57"
55
55
  }
@@ -9,8 +9,8 @@ export default function createContract(address, contractName) {
9
9
  // return new SolidityContract(ABI.dai, address)
10
10
  // case 'cdai':
11
11
  // return new SolidityContract(ABI.cdai, address)
12
- // 'augurv2' has been demoted. Keeping the ABI for now in case we still need it
13
12
  case 'augurv2':
13
+ case 'repv2_ethereum_30d4f3b4':
14
14
  return new SolidityContract(ABI.repv2, address, true)
15
15
  case 'aragon':
16
16
  return new SolidityContract(ABI.ant, address, true)
@@ -1,22 +1,20 @@
1
+ import { FeeMarketEIP1559Transaction } from '@exodus/ethereumjs/tx'
1
2
  import assert from 'minimalistic-assert'
2
3
 
3
- import { getEthereumJsTxByTransactionBuffer } from './create-ethereumjs-tx.js'
4
+ import createEthereumJsTx, { getEthereumJsTxByTransactionProps } from './create-ethereumjs-tx.js'
4
5
 
5
- const updateNonce = ({ chainId, transactionBuffer, newNonce }) => {
6
- assert(Buffer.isBuffer(transactionBuffer), 'expected Buffer transactionBuffer')
6
+ const updateNonce = ({ chainId, newNonce, unsignedTx }) => {
7
+ assert(unsignedTx, 'expected unsignedTx')
7
8
  assert(typeof newNonce === 'number', 'expected number newNonce')
8
9
  assert(typeof chainId === 'number', 'expected number chainId')
9
10
 
10
- const transaction = getEthereumJsTxByTransactionBuffer({
11
- chainId,
12
- transactionBuffer,
13
- })
11
+ const ethereumJsTx = createEthereumJsTx(unsignedTx)
14
12
 
15
- // NOTE: Here we use the `static` `fromTxData` function via
16
- // the `transaction` instance.
17
- return transaction.constructor
18
- .fromTxData({ ...transaction.toJSON(), nonce: newNonce })
19
- .serialize()
13
+ return getEthereumJsTxByTransactionProps({
14
+ chainId,
15
+ eip1559Enabled: ethereumJsTx instanceof FeeMarketEIP1559Transaction,
16
+ transactionProps: { ...ethereumJsTx.toJSON(), nonce: newNonce },
17
+ }).serialize()
20
18
  }
21
19
 
22
20
  export default updateNonce