@exodus/activity-txs 4.1.0 → 4.1.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.1.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.1.0...@exodus/activity-txs@4.1.1) (2024-05-15)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- duplicated activity items for transfers ([#6931](https://github.com/ExodusMovement/exodus-hydra/issues/6931)) ([7d2acb6](https://github.com/ExodusMovement/exodus-hydra/commit/7d2acb63b3151b9703243349e256b1db52613b43))
|
|
11
|
+
|
|
6
12
|
## [4.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.0.1...@exodus/activity-txs@4.1.0) (2024-05-13)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/activity-txs",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "The activity-txs feature",
|
|
5
5
|
"author": "Exodus Movement, Inc.",
|
|
6
6
|
"repository": {
|
|
@@ -46,19 +46,19 @@
|
|
|
46
46
|
"@exodus/assets-feature": "^5.3.1",
|
|
47
47
|
"@exodus/available-assets": "^8.2.0",
|
|
48
48
|
"@exodus/bitcoin-plugin": "^1.4.2",
|
|
49
|
-
"@exodus/blockchain-metadata": "^15.3.
|
|
49
|
+
"@exodus/blockchain-metadata": "^15.3.1",
|
|
50
50
|
"@exodus/connected-origins": "^3.3.1",
|
|
51
51
|
"@exodus/dependency-injection": "^2.2.0",
|
|
52
52
|
"@exodus/dependency-preprocessors": "^5.2.0",
|
|
53
|
-
"@exodus/fiat-ramp": "^10.5.
|
|
53
|
+
"@exodus/fiat-ramp": "^10.5.1",
|
|
54
54
|
"@exodus/nfts": "^9.2.1",
|
|
55
55
|
"@exodus/orders": "^4.8.1",
|
|
56
56
|
"@exodus/personal-notes": "^3.6.0",
|
|
57
57
|
"@exodus/redux-dependency-injection": "^3.1.0",
|
|
58
58
|
"@exodus/storage-memory": "^2.1.1",
|
|
59
|
-
"@exodus/wallet-accounts": "^16.
|
|
59
|
+
"@exodus/wallet-accounts": "^16.5.0",
|
|
60
60
|
"@types/minimalistic-assert": "^1.0.1",
|
|
61
61
|
"redux": "^4.2.1"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "268f3e822c0d1aadc8a42391b9770b435021e230"
|
|
64
64
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { memoize } from '@exodus/basic-utils'
|
|
2
2
|
import { createSelector } from 'reselect'
|
|
3
3
|
import assert from 'minimalistic-assert'
|
|
4
|
+
import { uniqBy } from 'lodash'
|
|
4
5
|
|
|
5
6
|
const selectorFactory =
|
|
6
7
|
() =>
|
|
@@ -30,15 +31,21 @@ const selectorFactory =
|
|
|
30
31
|
let result = activities.flat()
|
|
31
32
|
if (dedupExchange) {
|
|
32
33
|
result = result.filter((activityItem) => {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
const { orderId } = activityItem
|
|
35
|
+
if (orderId) {
|
|
36
|
+
if (!ordersIncluded.has(orderId)) {
|
|
37
|
+
ordersIncluded.add(orderId)
|
|
38
|
+
return true
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return false
|
|
36
42
|
}
|
|
37
43
|
|
|
38
|
-
return
|
|
44
|
+
return true
|
|
39
45
|
})
|
|
40
46
|
}
|
|
41
47
|
|
|
48
|
+
result = uniqBy(result, 'id')
|
|
42
49
|
return result.sort((a, b) => (b.date === a.date ? 0 : b.date > a.date ? 1 : -1))
|
|
43
50
|
})
|
|
44
51
|
},
|