@exodus/activity-txs 4.1.4 → 4.2.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,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.2.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.1.5...@exodus/activity-txs@4.2.0) (2024-05-29)
7
+
8
+ ### Features
9
+
10
+ - order in activity ([#7220](https://github.com/ExodusMovement/exodus-hydra/issues/7220)) ([b32e3e0](https://github.com/ExodusMovement/exodus-hydra/commit/b32e3e0dd8d16e937c91017665f85c7ff1291120))
11
+
12
+ ## [4.1.5](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.1.4...@exodus/activity-txs@4.1.5) (2024-05-29)
13
+
14
+ ### Bug Fixes
15
+
16
+ - swap activity assetName should match transaction asset ([#7180](https://github.com/ExodusMovement/exodus-hydra/issues/7180)) ([521aa0c](https://github.com/ExodusMovement/exodus-hydra/commit/521aa0ce7cb0c6e39f7cd8fb6c684b4fd2eeffa1))
17
+
6
18
  ## [4.1.4](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.1.3...@exodus/activity-txs@4.1.4) (2024-05-27)
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.1.4",
3
+ "version": "4.2.0",
4
4
  "description": "The activity-txs feature",
5
5
  "author": "Exodus Movement, Inc.",
6
6
  "repository": {
@@ -44,22 +44,22 @@
44
44
  "devDependencies": {
45
45
  "@exodus/assets": "^8.0.95",
46
46
  "@exodus/assets-base": "^8.1.10",
47
- "@exodus/assets-feature": "^5.3.1",
47
+ "@exodus/assets-feature": "^5.4.0",
48
48
  "@exodus/available-assets": "^8.2.1",
49
49
  "@exodus/bitcoin-plugin": "^1.4.2",
50
50
  "@exodus/blockchain-metadata": "^15.3.1",
51
51
  "@exodus/connected-origins": "^3.3.1",
52
52
  "@exodus/dependency-injection": "^2.2.0",
53
53
  "@exodus/dependency-preprocessors": "^5.2.0",
54
- "@exodus/fiat-ramp": "^10.6.0",
54
+ "@exodus/fiat-ramp": "^10.7.0",
55
55
  "@exodus/nfts": "^9.3.0",
56
56
  "@exodus/orders": "^4.9.0",
57
57
  "@exodus/personal-notes": "^3.6.0",
58
58
  "@exodus/redux-dependency-injection": "^3.1.0",
59
59
  "@exodus/storage-memory": "^2.1.1",
60
- "@exodus/wallet-accounts": "^16.5.1",
60
+ "@exodus/wallet-accounts": "^16.5.2",
61
61
  "@types/minimalistic-assert": "^1.0.1",
62
62
  "redux": "^4.2.1"
63
63
  },
64
- "gitHead": "0f38b81a222ef8f9f9d41f6f560cd86d554269f4"
64
+ "gitHead": "4d39581f3d08d36a51b846982c016b2c4cd2e59d"
65
65
  }
@@ -31,7 +31,8 @@ const selectorFactory =
31
31
  let result = activities.flat()
32
32
  if (dedupExchange) {
33
33
  result = result.filter((activityItem) => {
34
- const { orderId } = activityItem
34
+ const { order } = activityItem
35
+ const orderId = order?.orderId
35
36
  if (orderId) {
36
37
  if (!ordersIncluded.has(orderId)) {
37
38
  ordersIncluded.add(orderId)
@@ -52,9 +52,7 @@ const getSwapSharedProps = ({
52
52
  received: order.toAsset === assetName,
53
53
  }),
54
54
  tx,
55
- fromAsset: order.fromAsset,
56
- toAsset: order.toAsset,
57
- orderId: order.orderId,
55
+ order,
58
56
  displayAmount,
59
57
  personalNote,
60
58
  }
@@ -63,7 +61,7 @@ const getSwapSharedProps = ({
63
61
  export const formatSwapActivity = ({ tx, order, personalNote }) =>
64
62
  getSwapSharedProps({
65
63
  date: tx.date,
66
- assetName: order.toAsset,
64
+ assetName: tx.coinName,
67
65
  txId: tx.txId,
68
66
  tx,
69
67
  order,