@exodus/activity-txs 4.5.0 → 4.6.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 +20 -8
- package/index.d.ts +6 -0
- package/package.json +10 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/activity-txs@4.5.0...@exodus/activity-txs@4.6.0) (2025-01-28)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- feat: add placeholder types files (#11228)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- fix: isolate getActivityTxs api call error (#11264)
|
|
15
|
+
|
|
6
16
|
## [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
17
|
|
|
8
18
|
### Features
|
package/atoms/activity-txs.js
CHANGED
|
@@ -85,7 +85,13 @@ const areActivitiesEqual = (obj1 = {}, obj2 = {}) => {
|
|
|
85
85
|
return true
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
const createActivityTxsAtom = ({
|
|
88
|
+
const createActivityTxsAtom = ({
|
|
89
|
+
txLogsAtom,
|
|
90
|
+
accountStatesAtom,
|
|
91
|
+
assetsModule,
|
|
92
|
+
logger,
|
|
93
|
+
errorTracking,
|
|
94
|
+
}) => {
|
|
89
95
|
const inputAtom = combine({
|
|
90
96
|
txLogs: txLogsAtom,
|
|
91
97
|
accountStates: accountStatesAtom,
|
|
@@ -132,13 +138,19 @@ const createActivityTxsAtom = ({ txLogsAtom, accountStatesAtom, assetsModule })
|
|
|
132
138
|
walletAccount,
|
|
133
139
|
})
|
|
134
140
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
141
|
+
try {
|
|
142
|
+
const activityTxs = await getActivityForAssetSource({
|
|
143
|
+
asset,
|
|
144
|
+
txs,
|
|
145
|
+
activityOptions,
|
|
146
|
+
})
|
|
140
147
|
|
|
141
|
-
|
|
148
|
+
return [assetName, activityTxs]
|
|
149
|
+
} catch (e) {
|
|
150
|
+
errorTracking.track({ error: e, namespace: 'activityTxs', context: { assetName } })
|
|
151
|
+
logger.warn(`failed to get activity txs for asset: ${assetName}`, e)
|
|
152
|
+
return [assetName, []]
|
|
153
|
+
}
|
|
142
154
|
}
|
|
143
155
|
|
|
144
156
|
const txs = createAssetSourceTxsSelector({ assetName, walletAccount })({
|
|
@@ -174,7 +186,7 @@ const activityTxsAtomDefinition = {
|
|
|
174
186
|
id: 'activityTxsAtom',
|
|
175
187
|
type: 'atom',
|
|
176
188
|
factory: createActivityTxsAtom,
|
|
177
|
-
dependencies: ['txLogsAtom', 'accountStatesAtom', 'assetsModule'],
|
|
189
|
+
dependencies: ['txLogsAtom', 'accountStatesAtom', 'assetsModule', 'logger', 'errorTracking'],
|
|
178
190
|
public: true,
|
|
179
191
|
}
|
|
180
192
|
|
package/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/activity-txs",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "The activity-txs feature",
|
|
5
5
|
"author": "Exodus Movement, Inc.",
|
|
6
6
|
"repository": {
|
|
@@ -14,13 +14,14 @@
|
|
|
14
14
|
},
|
|
15
15
|
"main": "index.js",
|
|
16
16
|
"files": [
|
|
17
|
-
"module",
|
|
18
|
-
"atoms",
|
|
19
17
|
"api",
|
|
18
|
+
"atoms",
|
|
19
|
+
"module",
|
|
20
20
|
"plugin",
|
|
21
21
|
"redux",
|
|
22
|
-
"
|
|
22
|
+
"index.d.ts",
|
|
23
23
|
"CHANGELOG.md",
|
|
24
|
+
"README.md",
|
|
24
25
|
"!**/__tests__/**",
|
|
25
26
|
"!**/*.test.js"
|
|
26
27
|
],
|
|
@@ -43,14 +44,15 @@
|
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@exodus/assets": "^8.0.95",
|
|
45
46
|
"@exodus/assets-base": "^8.1.10",
|
|
46
|
-
"@exodus/assets-feature": "^6.0.
|
|
47
|
+
"@exodus/assets-feature": "^6.0.4",
|
|
47
48
|
"@exodus/available-assets": "^8.7.0",
|
|
48
49
|
"@exodus/bitcoin-plugin": "^1.4.2",
|
|
49
50
|
"@exodus/connected-origins": "^4.1.1",
|
|
50
|
-
"@exodus/
|
|
51
|
+
"@exodus/error-tracking": "^1.3.1",
|
|
52
|
+
"@exodus/fiat-ramp": "^12.0.0",
|
|
51
53
|
"@exodus/logger": "^1.2.3",
|
|
52
54
|
"@exodus/nfts": "^9.4.2",
|
|
53
|
-
"@exodus/orders": "^4.
|
|
55
|
+
"@exodus/orders": "^4.15.0",
|
|
54
56
|
"@exodus/personal-notes": "^3.7.0",
|
|
55
57
|
"@exodus/redux-dependency-injection": "^4.1.1",
|
|
56
58
|
"@exodus/wallet-accounts": "^17.1.3",
|
|
@@ -60,5 +62,5 @@
|
|
|
60
62
|
"publishConfig": {
|
|
61
63
|
"access": "public"
|
|
62
64
|
},
|
|
63
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "210a89e8e00a4c1837680d7f54d9611cb1b32ba8"
|
|
64
66
|
}
|