@exodus/ethereum-lib 5.8.0 → 5.8.2

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.8.2](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.8.1...@exodus/ethereum-lib@5.8.2) (2024-12-19)
7
+
8
+
9
+ ### License
10
+
11
+
12
+ * license: re-license under MIT license (#4694)
13
+
14
+
15
+
16
+ ## [5.8.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.8.0...@exodus/ethereum-lib@5.8.1) (2024-12-09)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+
22
+ * fix: remove gasPriceEconomicalRate (#4659)
23
+
24
+
25
+
6
26
  ## [5.8.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-lib@5.7.0...@exodus/ethereum-lib@5.8.0) (2024-12-09)
7
27
 
8
28
 
package/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2024 Exodus Movement, Inc.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-lib",
3
- "version": "5.8.0",
3
+ "version": "5.8.2",
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",
@@ -10,10 +10,10 @@
10
10
  "!src/**/__tests__"
11
11
  ],
12
12
  "author": "Exodus Movement, Inc.",
13
- "license": "UNLICENSED",
13
+ "license": "MIT",
14
14
  "homepage": "https://github.com/ExodusMovement/assets/tree/master/ethereum/ethereum-lib",
15
15
  "publishConfig": {
16
- "access": "restricted"
16
+ "access": "public"
17
17
  },
18
18
  "scripts": {
19
19
  "test": "run -T exodus-test --jest",
@@ -51,5 +51,5 @@
51
51
  "type": "git",
52
52
  "url": "git+https://github.com/ExodusMovement/assets.git"
53
53
  },
54
- "gitHead": "e533b61cf7895212101c3be53f90463e13e91f36"
54
+ "gitHead": "9f590f5439d73cba02054d608fb3d5c62fbdcf34"
55
55
  }
@@ -130,13 +130,9 @@ export const canAccelerateTx = ({
130
130
  if (isQueuedPendingTx(tx, baseAssetName, activeWalletAccount, getTxLog))
131
131
  return wrapResponseToObject({ errorMessage: 'there is a stuck TX with lower nonce' })
132
132
 
133
- const {
134
- gasPrice: currentGasPrice,
135
- gasPriceEconomicalRate,
136
- eip1559Enabled,
137
- } = getFeeData(assetName)
133
+ const { gasPrice: currentGasPrice, eip1559Enabled } = getFeeData(assetName)
138
134
 
139
- if (calculateTxGasPrice(tx).gte(currentGasPrice.mul(gasPriceEconomicalRate)))
135
+ if (calculateTxGasPrice(tx).gte(currentGasPrice))
140
136
  return wrapResponseToObject({ errorMessage: 'the used gas price is still high enough' })
141
137
 
142
138
  const { bumpedGasPrice: gasPriceToUse } = calculateBumpedGasPrice({