@exodus/activity-txs 4.4.3 → 4.5.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,12 @@
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.5.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.4.3...@exodus/activity-txs@4.5.0) (2025-01-15)
7
+
8
+ ### Features
9
+
10
+ - feat: add account to activity (#11090)
11
+
6
12
  ## [4.4.3](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.4.1...@exodus/activity-txs@4.4.3) (2025-01-05)
7
13
 
8
14
  ### Bug Fixes
package/README.md CHANGED
@@ -16,7 +16,7 @@ Additionally, it offers extra Redux selectors to retrieve activity, limited by s
16
16
 
17
17
  ## Usage
18
18
 
19
- This feature is designed to be used together with `@exodus/headless`. See [Using the SDK](../../docs/docs-website/docs/development/using-the-sdk.md) for more details.
19
+ This feature is designed to be used together with `@exodus/headless`. See [Using the SDK](../../docs/development/using-the-sdk.md) for more details.
20
20
 
21
21
  ### API Side
22
22
 
@@ -49,7 +49,7 @@ selectors.activityTxs.createMultiActivity({
49
49
 
50
50
  ### UI Side
51
51
 
52
- See [using the sdk](../../docs/docs-website/docs/development/using-the-sdk.md#events) for more details on basic UI-side setup.
52
+ See [using the sdk](../../docs/development/using-the-sdk.md#events) for more details on basic UI-side setup.
53
53
 
54
54
  ```js
55
55
  import selectors from '~/ui/flux/selectors'
@@ -1,7 +1,7 @@
1
1
  import { combine, compute } from '@exodus/atoms'
2
2
  import { createSelector } from 'reselect'
3
- import { memoize } from 'lodash' // eslint-disable-line @exodus/restricted-imports/prefer-basic-utils -- TODO: fix next time we touch this file
4
3
  import { createDeepEqualOutputSelector } from '@exodus/core-selectors/utils/deep-equal'
4
+ import { memoize } from '@exodus/basic-utils'
5
5
 
6
6
  const createAssetSourceActivityTxsSelector = memoize(
7
7
  ({ assetName, walletAccount }) =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/activity-txs",
3
- "version": "4.4.3",
3
+ "version": "4.5.0",
4
4
  "description": "The activity-txs feature",
5
5
  "author": "Exodus Movement, Inc.",
6
6
  "repository": {
@@ -43,14 +43,14 @@
43
43
  "devDependencies": {
44
44
  "@exodus/assets": "^8.0.95",
45
45
  "@exodus/assets-base": "^8.1.10",
46
- "@exodus/assets-feature": "^6.0.1",
46
+ "@exodus/assets-feature": "^6.0.3",
47
47
  "@exodus/available-assets": "^8.7.0",
48
48
  "@exodus/bitcoin-plugin": "^1.4.2",
49
49
  "@exodus/connected-origins": "^4.1.1",
50
- "@exodus/fiat-ramp": "^11.0.1",
50
+ "@exodus/fiat-ramp": "^11.0.2",
51
51
  "@exodus/logger": "^1.2.3",
52
52
  "@exodus/nfts": "^9.4.2",
53
- "@exodus/orders": "^4.13.0",
53
+ "@exodus/orders": "^4.14.0",
54
54
  "@exodus/personal-notes": "^3.7.0",
55
55
  "@exodus/redux-dependency-injection": "^4.1.1",
56
56
  "@exodus/wallet-accounts": "^17.1.3",
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "901c220173a58839ad07917f573fe0752d4bbd70"
63
+ "gitHead": "37312a59cf95083b1130ee950a9709302614cc07"
64
64
  }
@@ -83,7 +83,7 @@ const createAssetSourceBaseActivitySelectorDefinition = {
83
83
  personalNote,
84
84
  })
85
85
 
86
- activityResult.push(formattedTx)
86
+ activityResult.push({ ...formattedTx, walletAccount })
87
87
  }
88
88
  }
89
89
 
@@ -101,9 +101,10 @@ const createAssetSourceBaseActivitySelectorDefinition = {
101
101
  // Prevent dups by checking if this order already exists.
102
102
  if (orderIdsFromActivity.has(order.orderId)) return
103
103
 
104
- const formattedItem = formatUnindexedOrder({ assetName, assets, order })
105
-
106
- activityResult.push(formattedItem)
104
+ activityResult.push({
105
+ ...formatUnindexedOrder({ assetName, assets, order }),
106
+ walletAccount,
107
+ })
107
108
  })
108
109
  }
109
110
 
@@ -1,4 +1,4 @@
1
- import { memoize } from 'lodash' // eslint-disable-line @exodus/restricted-imports/prefer-basic-utils -- TODO: fix next time we touch this file
1
+ import { memoize } from '@exodus/basic-utils'
2
2
  import { createSelector } from 'reselect'
3
3
 
4
4
  const createBatchedAssetSourceActivityByIdSelector = {
@@ -1,7 +1,13 @@
1
- import { memoize, get, groupBy, merge } from 'lodash' // eslint-disable-line @exodus/restricted-imports/prefer-basic-utils -- TODO: fix next time we touch this file
1
+ import { get, groupBy, merge } from 'lodash'
2
2
  import { createSelector } from 'reselect'
3
3
  import { Tx } from '@exodus/models'
4
+ import { memoize } from '@exodus/basic-utils'
4
5
 
6
+ // TODO: Remove in the future.
7
+ // Batch swapping transactions using personal notes is no longer needed.
8
+ // Now, we write the `order.txsIds` array, which contains information about setup, swap transactions, and more.
9
+ // An order can be matched using any transaction ID from this array.
10
+ // Each transaction will match the order, but we can deduplicate them later using `order.id` to display single activity item
5
11
  const collapseBatch = ({ batch, assets }) => {
6
12
  const asset = assets[batch[0].coinName]
7
13
  const isToken = asset.baseAsset.name !== asset.name
@@ -1,4 +1,4 @@
1
- import { memoize } from 'lodash' // eslint-disable-line @exodus/restricted-imports/prefer-basic-utils -- TODO: fix next time we touch this file
1
+ import { memoize } from '@exodus/basic-utils'
2
2
  import { createSelector } from 'reselect'
3
3
 
4
4
  const createLimitedAssetSourceSelectorDefinition = {