@exodus/ethereum-api 8.25.2 → 8.26.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,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.26.0](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.25.2...@exodus/ethereum-api@8.26.0) (2025-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+
12
+ * feat: ETH internal send and sent in txLog (#4858)
13
+
14
+
15
+
6
16
  ## [8.25.2](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.25.1...@exodus/ethereum-api@8.25.2) (2025-01-10)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "8.25.2",
3
+ "version": "8.26.0",
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",
@@ -64,5 +64,5 @@
64
64
  "type": "git",
65
65
  "url": "git+https://github.com/ExodusMovement/assets.git"
66
66
  },
67
- "gitHead": "4047b725fd2d9000e809e72074a82650f69c120f"
67
+ "gitHead": "b3bac517152821b067b35f31bf9b6fa54f94db8f"
68
68
  }
@@ -58,6 +58,18 @@ export default function getLogItemsFromServerTx({
58
58
  sendingTransferPresent,
59
59
  receivingTransferPresent,
60
60
  })
61
+ let sent
62
+ if (sendingTransferPresent) {
63
+ sent = internalTransfers
64
+ .map(({ from, to, value }) => {
65
+ if (from === ourWalletAddress) {
66
+ const amount = asset.currency.baseUnit(value).toDefaultString({ unit: true })
67
+ return { address: to, amount }
68
+ }
69
+ })
70
+ .filter(Boolean)
71
+ }
72
+
61
73
  logItemsForServerTxEntries.push([
62
74
  asset.name,
63
75
  {
@@ -69,6 +81,7 @@ export default function getLogItemsFromServerTx({
69
81
  nonce,
70
82
  gasLimit,
71
83
  ...methodId,
84
+ ...(sent?.length > 0 ? { sent } : undefined),
72
85
  },
73
86
  ...(ourWalletWasSender
74
87
  ? { from: [], to: toAddress, feeAmount, feeCoinName: asset.feeAsset.name }
@@ -56,6 +56,18 @@ export default function getLogItemsFromServerTx({
56
56
  sendingTransferPresent,
57
57
  receivingTransferPresent,
58
58
  })
59
+ let sent
60
+ if (sendingTransferPresent) {
61
+ sent = serverTx.internal
62
+ .map(({ from, to, value }) => {
63
+ if (from === ourWalletAddress) {
64
+ const amount = asset.currency.baseUnit(value).toDefaultString({ unit: true })
65
+ return { address: to, amount }
66
+ }
67
+ })
68
+ .filter(Boolean)
69
+ }
70
+
59
71
  logItemsForServerTxEntries.push([
60
72
  asset.name,
61
73
  {
@@ -67,6 +79,7 @@ export default function getLogItemsFromServerTx({
67
79
  nonce,
68
80
  gasLimit,
69
81
  ...methodId,
82
+ ...(sent?.length > 0 ? { sent } : undefined),
70
83
  },
71
84
  ...(ourWalletWasSender
72
85
  ? { from: [], to: toAddress, feeAmount, feeCoinName: asset.feeAsset.name }