@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scallop-io/sui-scallop-sdk",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "Typescript sdk for interacting with Scallop contract on SUI",
5
5
  "keywords": [
6
6
  "sui",
@@ -49,7 +49,7 @@ export const queryKeys = {
49
49
  {
50
50
  walletAddress,
51
51
  options,
52
- objectIds: JSON.stringify(objectIds ?? []),
52
+ objectIds: JSON.stringify(objectIds ?? undefined),
53
53
  },
54
54
  ],
55
55
  getOwnedObjects: (input?: Partial<GetOwnedObjectsParams>) => [
@@ -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
- return Object.values(queryKeys.rpc).map((t) =>
103
- this.queryClient.invalidateQueries({
104
- queryKey: t(),
105
- type: 'all',
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;