@talismn/balances-react 0.0.0-pr587-20230301175306 → 0.0.0-pr587-20230302015709
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @talismn/balances-react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-pr587-
|
|
3
|
+
## 0.0.0-pr587-20230302015709
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
- 6643a4e: fix: ported useDbCache related perf fixes to @talismn/balances-react
|
|
13
13
|
- Updated dependencies [6643a4e]
|
|
14
14
|
- Updated dependencies [6643a4e]
|
|
15
|
-
- @talismn/token-rates@0.0.0-pr587-
|
|
16
|
-
- @talismn/balances@0.0.0-pr587-
|
|
15
|
+
- @talismn/token-rates@0.0.0-pr587-20230302015709
|
|
16
|
+
- @talismn/balances@0.0.0-pr587-20230302015709
|
|
17
17
|
|
|
18
18
|
## 0.3.3
|
|
19
19
|
|
|
@@ -166,7 +166,7 @@ const [DbCacheProvider, useDbCache] = provideContext(useDbCacheProvider);
|
|
|
166
166
|
|
|
167
167
|
var packageJson = {
|
|
168
168
|
name: "@talismn/balances-react",
|
|
169
|
-
version: "0.0.0-pr587-
|
|
169
|
+
version: "0.0.0-pr587-20230302015709",
|
|
170
170
|
author: "Talisman",
|
|
171
171
|
homepage: "https://talisman.xyz",
|
|
172
172
|
license: "UNLICENSED",
|
|
@@ -527,8 +527,10 @@ const subscribeBalances = (tokens, addresses, chainConnectors, provider, balance
|
|
|
527
527
|
updateDb(balances);
|
|
528
528
|
});
|
|
529
529
|
return () => {
|
|
530
|
-
//
|
|
531
|
-
unsub.then(unsubscribe =>
|
|
530
|
+
// wait 2 seconds before actually unsubscribing, allowing for websocket to be reused
|
|
531
|
+
unsub.then(unsubscribe => {
|
|
532
|
+
setTimeout(unsubscribe, 2_000);
|
|
533
|
+
});
|
|
532
534
|
balances.db.transaction("rw", balances.db.balances, async () => await balances.db.balances.filter(balance => {
|
|
533
535
|
if (balance.source !== balanceModule.type) return false;
|
|
534
536
|
if (!Object.keys(addressesByModuleToken).includes(balance.tokenId)) return false;
|
|
@@ -166,7 +166,7 @@ const [DbCacheProvider, useDbCache] = provideContext(useDbCacheProvider);
|
|
|
166
166
|
|
|
167
167
|
var packageJson = {
|
|
168
168
|
name: "@talismn/balances-react",
|
|
169
|
-
version: "0.0.0-pr587-
|
|
169
|
+
version: "0.0.0-pr587-20230302015709",
|
|
170
170
|
author: "Talisman",
|
|
171
171
|
homepage: "https://talisman.xyz",
|
|
172
172
|
license: "UNLICENSED",
|
|
@@ -527,8 +527,10 @@ const subscribeBalances = (tokens, addresses, chainConnectors, provider, balance
|
|
|
527
527
|
updateDb(balances);
|
|
528
528
|
});
|
|
529
529
|
return () => {
|
|
530
|
-
//
|
|
531
|
-
unsub.then(unsubscribe =>
|
|
530
|
+
// wait 2 seconds before actually unsubscribing, allowing for websocket to be reused
|
|
531
|
+
unsub.then(unsubscribe => {
|
|
532
|
+
setTimeout(unsubscribe, 2_000);
|
|
533
|
+
});
|
|
532
534
|
balances.db.transaction("rw", balances.db.balances, async () => await balances.db.balances.filter(balance => {
|
|
533
535
|
if (balance.source !== balanceModule.type) return false;
|
|
534
536
|
if (!Object.keys(addressesByModuleToken).includes(balance.tokenId)) return false;
|
|
@@ -157,7 +157,7 @@ const [DbCacheProvider, useDbCache] = provideContext(useDbCacheProvider);
|
|
|
157
157
|
|
|
158
158
|
var packageJson = {
|
|
159
159
|
name: "@talismn/balances-react",
|
|
160
|
-
version: "0.0.0-pr587-
|
|
160
|
+
version: "0.0.0-pr587-20230302015709",
|
|
161
161
|
author: "Talisman",
|
|
162
162
|
homepage: "https://talisman.xyz",
|
|
163
163
|
license: "UNLICENSED",
|
|
@@ -518,8 +518,10 @@ const subscribeBalances = (tokens, addresses, chainConnectors, provider, balance
|
|
|
518
518
|
updateDb(balances);
|
|
519
519
|
});
|
|
520
520
|
return () => {
|
|
521
|
-
//
|
|
522
|
-
unsub.then(unsubscribe =>
|
|
521
|
+
// wait 2 seconds before actually unsubscribing, allowing for websocket to be reused
|
|
522
|
+
unsub.then(unsubscribe => {
|
|
523
|
+
setTimeout(unsubscribe, 2_000);
|
|
524
|
+
});
|
|
523
525
|
db$1.transaction("rw", db$1.balances, async () => await db$1.balances.filter(balance => {
|
|
524
526
|
if (balance.source !== balanceModule.type) return false;
|
|
525
527
|
if (!Object.keys(addressesByModuleToken).includes(balance.tokenId)) return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talismn/balances-react",
|
|
3
|
-
"version": "0.0.0-pr587-
|
|
3
|
+
"version": "0.0.0-pr587-20230302015709",
|
|
4
4
|
"author": "Talisman",
|
|
5
5
|
"homepage": "https://talisman.xyz",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"clean": "rm -rf dist && rm -rf .turbo rm -rf node_modules"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@talismn/balances": "^0.0.0-pr587-
|
|
29
|
+
"@talismn/balances": "^0.0.0-pr587-20230302015709",
|
|
30
30
|
"@talismn/chain-connector": "^0.4.2",
|
|
31
31
|
"@talismn/chain-connector-evm": "^0.4.2",
|
|
32
32
|
"@talismn/chaindata-provider": "^0.4.2",
|
|
33
33
|
"@talismn/chaindata-provider-extension": "^0.4.2",
|
|
34
|
-
"@talismn/token-rates": "^0.0.0-pr587-
|
|
34
|
+
"@talismn/token-rates": "^0.0.0-pr587-20230302015709",
|
|
35
35
|
"anylogger": "^1.0.11",
|
|
36
36
|
"blueimp-md5": "2.19.0",
|
|
37
37
|
"dexie": "^3.2.3",
|