@exodus/ethereum-api 8.45.2 → 8.45.3
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/get-fee-async.js +7 -1
- package/src/tx-create.js +7 -1
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
|
+
## [8.45.3](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.45.2...@exodus/ethereum-api@8.45.3) (2025-08-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix: exchange compatibility (#6230)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## [8.45.2](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.45.1...@exodus/ethereum-api@8.45.2) (2025-08-11)
|
|
7
17
|
|
|
8
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "8.45.
|
|
3
|
+
"version": "8.45.3",
|
|
4
4
|
"description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Ethereum and EVM-based blockchains",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"type": "git",
|
|
64
64
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "86e63f20730ac8a7631baf7b13d23cf057dc6dea"
|
|
67
67
|
}
|
package/src/get-fee-async.js
CHANGED
|
@@ -8,7 +8,9 @@ const getFeeAsyncFactory = ({ assetClientInterface, createTx }) => {
|
|
|
8
8
|
|
|
9
9
|
return async (params) => {
|
|
10
10
|
const { asset } = params
|
|
11
|
-
const { unsignedTx } = params.unsignedTx
|
|
11
|
+
const { unsignedTx, gasPrice, tipGasPrice, gasLimit } = params.unsignedTx
|
|
12
|
+
? params
|
|
13
|
+
: await createTx(params)
|
|
12
14
|
const fee = asset.feeAsset.currency.parse(unsignedTx.txMeta.fee)
|
|
13
15
|
const coinAmount = asset.currency.parse(unsignedTx.txMeta.amount)
|
|
14
16
|
const extraFeeData = getExtraFeeData({ asset, amount: coinAmount })
|
|
@@ -16,6 +18,10 @@ const getFeeAsyncFactory = ({ assetClientInterface, createTx }) => {
|
|
|
16
18
|
fee,
|
|
17
19
|
extraFeeData,
|
|
18
20
|
unsignedTx,
|
|
21
|
+
// deprecated, exchanges uses these params to recreate the tx during send. It should just use unsignedTx...
|
|
22
|
+
gasPrice,
|
|
23
|
+
tipGasPrice,
|
|
24
|
+
gasLimit,
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
}
|
package/src/tx-create.js
CHANGED
|
@@ -79,7 +79,13 @@ async function createUnsignedTxWithFees({
|
|
|
79
79
|
fee: fee.toDefaultString({ unit: true }),
|
|
80
80
|
},
|
|
81
81
|
}
|
|
82
|
-
return {
|
|
82
|
+
return {
|
|
83
|
+
unsignedTx,
|
|
84
|
+
// exhcange compatibility until the use usignedTx, remove me!
|
|
85
|
+
gasPrice,
|
|
86
|
+
tipGasPrice,
|
|
87
|
+
gasLimit,
|
|
88
|
+
}
|
|
83
89
|
}
|
|
84
90
|
|
|
85
91
|
const createBumpUnsignedTx = async ({
|