@scallop-io/sui-scallop-sdk 1.4.5 → 1.4.6
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/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/dist/models/scallopCache.d.ts +0 -1
- package/package.json +1 -1
- package/src/constants/queryKeys.ts +1 -1
- package/src/models/scallopCache.ts +8 -8
|
@@ -37,7 +37,6 @@ export declare class ScallopCache {
|
|
|
37
37
|
* - `all`: All queries that match the refetch predicate will be refetched in the background.
|
|
38
38
|
* - `none`: No queries will be refetched. Queries that match the refetch predicate will only be marked as invalid.
|
|
39
39
|
*/
|
|
40
|
-
invalidateAllCache(): Promise<Promise<void>[]>;
|
|
41
40
|
private retryFn;
|
|
42
41
|
/**
|
|
43
42
|
* @description Provides cache for inspectTxn of the SuiKit.
|
package/package.json
CHANGED
|
@@ -98,14 +98,14 @@ export class ScallopCache {
|
|
|
98
98
|
* - `all`: All queries that match the refetch predicate will be refetched in the background.
|
|
99
99
|
* - `none`: No queries will be refetched. Queries that match the refetch predicate will only be marked as invalid.
|
|
100
100
|
*/
|
|
101
|
-
public async invalidateAllCache() {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
101
|
+
// public async invalidateAllCache() {
|
|
102
|
+
// return Object.values(queryKeys.rpc).map((t) =>
|
|
103
|
+
// this.queryClient.invalidateQueries({
|
|
104
|
+
// queryKey: t(),
|
|
105
|
+
// type: 'all',
|
|
106
|
+
// })
|
|
107
|
+
// );
|
|
108
|
+
// }
|
|
109
109
|
|
|
110
110
|
private retryFn(errCount: number, e: any) {
|
|
111
111
|
if (errCount === 5) return false;
|