@exodus/ethereum-lib 5.13.0 → 5.13.1
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 +10 -0
- package/package.json +2 -2
- package/src/constants.js +0 -4
- package/src/utils/index.js +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.13.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.13.0...@exodus/ethereum-lib@5.13.1) (2025-06-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix: basemainnet main asset rpc only (#5904)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## [5.13.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.12.0...@exodus/ethereum-lib@5.13.0) (2025-06-18)
|
|
7
17
|
|
|
8
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-lib",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.1",
|
|
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": "
|
|
53
|
+
"gitHead": "ff29985705f3a5b14aba9fff28709fa2ef395a45"
|
|
54
54
|
}
|
package/src/constants.js
CHANGED
|
@@ -136,7 +136,3 @@ export const CONFIRMATIONS_NUMBER = mapValues(
|
|
|
136
136
|
export const ETHEREUM_LIKE_ASSETS = Object.keys(CHAIN_DATA)
|
|
137
137
|
|
|
138
138
|
export const BUMP_RATE = 1.2
|
|
139
|
-
/* @deprecated */
|
|
140
|
-
export const ETHEREUM_LIKE_NO_HISTORY_ASSET_NAMES = Object.keys(CHAIN_DATA).filter(
|
|
141
|
-
(key) => CHAIN_DATA[key].monitorType === 'no-history'
|
|
142
|
-
)
|
package/src/utils/index.js
CHANGED
|
@@ -2,9 +2,6 @@ import { FeeMarketEIP1559Transaction, Transaction } from '@exodus/ethereumjs/tx'
|
|
|
2
2
|
import { padToEven, toBuffer } from '@exodus/ethereumjs/util'
|
|
3
3
|
import baseX from 'base-x'
|
|
4
4
|
|
|
5
|
-
// eslint-disable-next-line @exodus/import/no-deprecated
|
|
6
|
-
import { ETHEREUM_LIKE_NO_HISTORY_ASSET_NAMES } from '../constants.js'
|
|
7
|
-
|
|
8
5
|
export { default as calculateExtraEth } from './calculate-extra-eth.js'
|
|
9
6
|
|
|
10
7
|
const base10 = baseX('0123456789')
|
|
@@ -140,6 +137,7 @@ export const isRpcBalanceAsset = (asset) =>
|
|
|
140
137
|
[
|
|
141
138
|
'ethereumarbone',
|
|
142
139
|
'fantommainnet',
|
|
140
|
+
'basemainnet',
|
|
143
141
|
'matic',
|
|
144
142
|
'optimism',
|
|
145
143
|
'ousd_ethereum_48fcf72d',
|
|
@@ -147,7 +145,7 @@ export const isRpcBalanceAsset = (asset) =>
|
|
|
147
145
|
'weth',
|
|
148
146
|
...customTokensWithRpcBalance,
|
|
149
147
|
// eslint-disable-next-line @exodus/import/no-deprecated
|
|
150
|
-
].includes(asset.name)
|
|
148
|
+
].includes(asset.name)
|
|
151
149
|
|
|
152
150
|
export const getAssetAddresses = (asset) => {
|
|
153
151
|
// It seems to be two schemas of assets. The original and the transformed by the client.
|