@exodus/ethereum-api 8.43.1 → 8.43.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 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.43.2](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.43.1...@exodus/ethereum-api@8.43.2) (2025-07-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: include assetName in txMeta (#6113)
13
+
14
+
15
+
6
16
  ## [8.43.1](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.43.0...@exodus/ethereum-api@8.43.1) (2025-07-17)
7
17
 
8
18
  **Note:** Version bump only for package @exodus/ethereum-api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "8.43.1",
3
+ "version": "8.43.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",
@@ -49,7 +49,7 @@
49
49
  "ws": "^6.1.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@exodus/assets-testing": "^1.0.0",
52
+ "@exodus/assets-testing": "workspace:^",
53
53
  "@exodus/bsc-meta": "^2.1.2",
54
54
  "@exodus/ethereumarbone-meta": "^2.0.3",
55
55
  "@exodus/fantommainnet-meta": "^2.0.2",
@@ -62,6 +62,5 @@
62
62
  "repository": {
63
63
  "type": "git",
64
64
  "url": "git+https://github.com/ExodusMovement/assets.git"
65
- },
66
- "gitHead": "ef192865e8886dedb72c280a1b252ff177e20067"
65
+ }
67
66
  }
@@ -63,7 +63,7 @@ export const buildApproveTx = async ({
63
63
  if (typeof nonce !== 'number')
64
64
  nonce = await baseAsset.getNonce({ asset, fromAddress, walletAccount })
65
65
 
66
- if (!gasLimit)
66
+ if (!gasLimit) {
67
67
  gasLimit = await fetchGasLimit({
68
68
  asset: baseAsset,
69
69
  amount: baseAsset.currency.ZERO,
@@ -73,6 +73,7 @@ export const buildApproveTx = async ({
73
73
  isContract: true,
74
74
  fromAddress,
75
75
  })
76
+ }
76
77
 
77
78
  return createUnsignedTx({
78
79
  asset,
@@ -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 ? params : await createTx(params)
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
@@ -70,6 +70,7 @@ async function createUnsignedTxWithFees({
70
70
  const unsignedTx = {
71
71
  txData: { transactionBuffer, chainId },
72
72
  txMeta: {
73
+ assetName: asset.name,
73
74
  bumpTxId,
74
75
  eip1559Enabled,
75
76
  fromAddress,
@@ -78,7 +79,13 @@ async function createUnsignedTxWithFees({
78
79
  fee: fee.toDefaultString({ unit: true }),
79
80
  },
80
81
  }
81
- return { unsignedTx }
82
+ return {
83
+ unsignedTx,
84
+ // exhcange compatibility until the use usignedTx, remove me!
85
+ gasPrice,
86
+ tipGasPrice,
87
+ gasLimit,
88
+ }
82
89
  }
83
90
 
84
91
  const createBumpUnsignedTx = async ({