@exodus/activity-txs 4.6.0 → 4.6.1

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.6.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.6.0...@exodus/activity-txs@4.6.1) (2025-01-31)
7
+
8
+ ### Bug Fixes
9
+
10
+ - fix: nft activity item pending field (#11240)
11
+
6
12
  ## [4.6.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.5.0...@exodus/activity-txs@4.6.0) (2025-01-28)
7
13
 
8
14
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/activity-txs",
3
- "version": "4.6.0",
3
+ "version": "4.6.1",
4
4
  "description": "The activity-txs feature",
5
5
  "author": "Exodus Movement, Inc.",
6
6
  "repository": {
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "210a89e8e00a4c1837680d7f54d9611cb1b32ba8"
65
+ "gitHead": "eb3daffdda5739434a5dace47368b6af03f3ff68"
66
66
  }
@@ -33,7 +33,12 @@ const selectorFactory =
33
33
  hasChanges = true
34
34
  indexedNftTxIds.add(nft.txId)
35
35
  resultActivity.push(
36
- formatNftTx({ ...activityItem, nft, assetName: activityItem.assetName })
36
+ formatNftTx({
37
+ ...activityItem,
38
+ nft,
39
+ asset: assets[activityItem.assetName],
40
+ assetName: activityItem.assetName,
41
+ })
37
42
  )
38
43
  } else {
39
44
  resultActivity.push(activityItem)
@@ -1,5 +1,6 @@
1
1
  import { getSharedProps } from './get-shared-props'
2
2
  import { TX_TYPES } from '../../constants/tx-types'
3
+ import { isPending } from './format-tx-activity'
3
4
 
4
5
  export const formatUnindexedNftTx = ({ assetName, nftTx }) => {
5
6
  return {
@@ -18,7 +19,7 @@ export const formatUnindexedNftTx = ({ assetName, nftTx }) => {
18
19
  }
19
20
  }
20
21
 
21
- export const formatNftTx = ({ tx, nft, assetName, ...rest }) => {
22
+ export const formatNftTx = ({ tx, nft, assetName, asset, ...rest }) => {
22
23
  return {
23
24
  ...rest,
24
25
  ...getSharedProps({
@@ -27,7 +28,7 @@ export const formatNftTx = ({ tx, nft, assetName, ...rest }) => {
27
28
  assetName,
28
29
  type: TX_TYPES.NFT,
29
30
  id: `nft.${assetName}.${tx.txId}`,
30
- pending: false,
31
+ pending: isPending(tx, asset),
31
32
  failed: !!tx.failed,
32
33
  sent: nft.sent || false,
33
34
  received: !nft.sent,