@exodus/ethereum-lib 5.14.0 → 5.15.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,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.15.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.14.1...@exodus/ethereum-lib@5.15.0) (2025-07-01)
7
+
8
+
9
+ ### Features
10
+
11
+
12
+ * feat: enable absolute balance for basemainnet (#5983)
13
+
14
+
15
+
16
+ ## [5.14.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.14.0...@exodus/ethereum-lib@5.14.1) (2025-06-30)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+
22
+ * fix: provide chain id when parsing transactionBuffer (#5976)
23
+
24
+
25
+
6
26
  ## [5.14.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.13.1...@exodus/ethereum-lib@5.14.0) (2025-06-26)
7
27
 
8
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-lib",
3
- "version": "5.14.0",
3
+ "version": "5.15.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",
@@ -50,5 +50,5 @@
50
50
  "type": "git",
51
51
  "url": "git+https://github.com/ExodusMovement/assets.git"
52
52
  },
53
- "gitHead": "ced8d8f22450dd7e952770664a7ee91ed8c39092"
53
+ "gitHead": "deefec69db65f1068179fd5f5984b51d37e648a5"
54
54
  }
@@ -7,15 +7,26 @@ import assert from 'minimalistic-assert'
7
7
  const { isEmpty } = lodash
8
8
 
9
9
  const parseBufferToJsTx = (unsignedTx) => {
10
- const { transactionBuffer, ...legacyTxData } = unsignedTx.txData
10
+ const { transactionBuffer, chainId, ...legacyTxData } = unsignedTx.txData
11
11
  assert(
12
12
  isEmpty(legacyTxData),
13
13
  'Cannot create ethereum js tx when transactionBuffer and other fields are provided!'
14
14
  )
15
-
15
+ assert(chainId, 'chainId must be provided when parsing from transaction buffer!!!')
16
16
  if (FeeMarketEIP1559Transaction.isEip1559SerializedTx(transactionBuffer))
17
- return FeeMarketEIP1559Transaction.fromSerializedTx(transactionBuffer)
18
- return Transaction.fromSerializedTx(transactionBuffer)
17
+ return FeeMarketEIP1559Transaction.fromSerializedTx(transactionBuffer, {
18
+ common: Common.custom(
19
+ {
20
+ chainId,
21
+ },
22
+ { hardfork: Hardfork.London }
23
+ ),
24
+ })
25
+ return Transaction.fromSerializedTx(transactionBuffer, {
26
+ common: Common.custom({
27
+ chainId,
28
+ }),
29
+ })
19
30
  }
20
31
 
21
32
  export default function createEthereumJsTx(unsignedTx) {
@@ -18,12 +18,13 @@ const getCommonTransactionProps = ({ transaction, baseAsset }) => {
18
18
  }
19
19
 
20
20
  const parseBuffer = (asset, unsignedTx) => {
21
- const { transactionBuffer, ...legacyTxData } = unsignedTx.txData
21
+ const { transactionBuffer, chainId, ...legacyTxData } = unsignedTx.txData
22
22
  const baseAsset = asset.baseAsset
23
23
  assert(
24
24
  isEmpty(legacyTxData),
25
25
  'Cannot parse tx when transactionBuffer and other fields are provided!'
26
26
  )
27
+ assert(chainId, 'chainId must be provided when parsing transactionBuffer')
27
28
  if (FeeMarketEIP1559Transaction.isEip1559SerializedTx(transactionBuffer)) {
28
29
  const transaction = FeeMarketEIP1559Transaction.fromSerializedTx(transactionBuffer)
29
30
  return {
@@ -137,7 +137,6 @@ export const isRpcBalanceAsset = (asset) =>
137
137
  [
138
138
  'ethereumarbone',
139
139
  'fantommainnet',
140
- 'basemainnet',
141
140
  'matic',
142
141
  'optimism',
143
142
  'ousd_ethereum_48fcf72d',