@exodus/activity-txs 1.0.0 → 1.1.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 +10 -0
- package/atoms/activity-txs.js +6 -0
- package/package.json +2 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [1.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@1.0.0...@exodus/activity-txs@1.1.0) (2023-09-28)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- filter out assets with noHistory ([#4263](https://github.com/ExodusMovement/exodus-hydra/issues/4263)) ([839ee94](https://github.com/ExodusMovement/exodus-hydra/commit/839ee94f918de9e02ac64d8626016ef781545df1))
|
package/atoms/activity-txs.js
CHANGED
|
@@ -73,6 +73,8 @@ const areActivitiesEqual = (obj1 = {}, obj2 = {}) => {
|
|
|
73
73
|
return true
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
const EMPTY = []
|
|
77
|
+
|
|
76
78
|
const createActivityTxsAtom = ({ txLogsAtom, accountStatesAtom, assetsModule }) => {
|
|
77
79
|
const inputAtom = combine({
|
|
78
80
|
txLogs: txLogsAtom,
|
|
@@ -88,6 +90,10 @@ const createActivityTxsAtom = ({ txLogsAtom, accountStatesAtom, assetsModule })
|
|
|
88
90
|
mapValues(accountTxLogs, (assetTxSet, assetName) => {
|
|
89
91
|
const asset = assetsModule.getAsset(assetName)
|
|
90
92
|
const baseAssetName = asset.baseAsset.name
|
|
93
|
+
if (asset?.baseAsset?.api?.features?.noHistory) {
|
|
94
|
+
return EMPTY
|
|
95
|
+
}
|
|
96
|
+
|
|
91
97
|
if (asset?.api?.getActivityTxs) {
|
|
92
98
|
return createAssetSourceActivityTxsSelector(assetName)({
|
|
93
99
|
asset,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/activity-txs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "The activity-txs feature",
|
|
5
5
|
"author": "Exodus Movement Inc.",
|
|
6
6
|
"repository": {
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"jest": "^29.1.2",
|
|
55
55
|
"redux": "^4.2.1"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "eabe0ece5975ba4b57fc06d5ae7ef757b12f9f93"
|
|
58
58
|
}
|