@exodus/activity-txs 4.6.2 → 4.6.4

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,18 @@
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
+ ## [4.6.4](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.6.3...@exodus/activity-txs@4.6.4) (2025-02-12)
7
+
8
+ ### Performance
9
+
10
+ - perf: memoize createInitialPerAssetData per asset (#11417)
11
+
12
+ ## [4.6.3](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.6.2...@exodus/activity-txs@4.6.3) (2025-02-03)
13
+
14
+ ### Bug Fixes
15
+
16
+ - fix(activity-txs): safe order access (#11334)
17
+
6
18
  ## [4.6.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.6.1...@exodus/activity-txs@4.6.2) (2025-01-31)
7
19
 
8
20
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/activity-txs",
3
- "version": "4.6.2",
3
+ "version": "4.6.4",
4
4
  "description": "The activity-txs feature",
5
5
  "author": "Exodus Movement, Inc.",
6
6
  "repository": {
@@ -44,23 +44,23 @@
44
44
  "devDependencies": {
45
45
  "@exodus/assets": "^8.0.95",
46
46
  "@exodus/assets-base": "^8.1.10",
47
- "@exodus/assets-feature": "^6.0.4",
47
+ "@exodus/assets-feature": "^6.1.0",
48
48
  "@exodus/available-assets": "^8.7.0",
49
49
  "@exodus/bitcoin-plugin": "^1.4.2",
50
50
  "@exodus/connected-origins": "^4.1.1",
51
51
  "@exodus/error-tracking": "^1.3.1",
52
- "@exodus/fiat-ramp": "^12.0.0",
52
+ "@exodus/fiat-ramp": "^12.2.0",
53
53
  "@exodus/logger": "^1.2.3",
54
- "@exodus/nfts": "^9.4.2",
54
+ "@exodus/nfts": "^9.5.0",
55
55
  "@exodus/orders": "^4.15.0",
56
56
  "@exodus/personal-notes": "^3.7.0",
57
57
  "@exodus/redux-dependency-injection": "^4.1.1",
58
- "@exodus/wallet-accounts": "^17.1.3",
58
+ "@exodus/wallet-accounts": "^17.3.0",
59
59
  "@types/minimalistic-assert": "^1.0.1",
60
60
  "redux": "^4.2.1"
61
61
  },
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "08d6376bfe012cebb59c6715f8e848f308617523"
65
+ "gitHead": "16fb1f9330a353da411f5023911cf60075ab0a54"
66
66
  }
@@ -1,9 +1,13 @@
1
+ import { memoize } from '@exodus/basic-utils'
1
2
  import { createReduxModuleHelper } from '@exodus/multi-account-redux'
2
- import id from './id'
3
+ import id from './id.js'
3
4
 
4
5
  const helper = createReduxModuleHelper({
5
6
  slice: id,
6
- createInitialPerAssetData: () => [],
7
+ createInitialPerAssetData: memoize(
8
+ ({ asset }) => [],
9
+ ({ asset }) => asset.name
10
+ ),
7
11
  })
8
12
 
9
13
  export default helper
@@ -12,7 +12,7 @@ const groupTxsWithSameOrder = ({ txs, orderSet, isIndexless }) => {
12
12
  const foundOrder = orderSet.getByTxId(tx.txId)
13
13
  const isBatchedTx = tx.coinName === 'bitcoin' && tx.data.sent?.[tx.data.sentIndex]
14
14
  const isValidTx =
15
- isBatchedTx && foundOrder.fromAmount
15
+ isBatchedTx && foundOrder?.fromAmount
16
16
  ? tx.coinAmount.abs().equals(foundOrder.fromAmount)
17
17
  : true
18
18