@scallop-io/sui-scallop-sdk 0.44.28 → 0.45.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/dist/constants/cache.d.ts +8 -0
- package/dist/index.js +448 -231
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +432 -216
- package/dist/index.mjs.map +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/scallop.d.ts +7 -1
- package/dist/models/scallopAddress.d.ts +4 -2
- package/dist/models/scallopBuilder.d.ts +2 -0
- package/dist/models/scallopCache.d.ts +71 -0
- package/dist/models/scallopClient.d.ts +2 -0
- package/dist/models/scallopIndexer.d.ts +5 -3
- package/dist/models/scallopQuery.d.ts +2 -0
- package/dist/models/scallopUtils.d.ts +1 -0
- package/dist/types/model.d.ts +2 -0
- package/package.json +2 -1
- package/src/builders/borrowIncentiveBuilder.ts +2 -2
- package/src/constants/cache.ts +15 -0
- package/src/models/index.ts +1 -0
- package/src/models/scallop.ts +26 -7
- package/src/models/scallopAddress.ts +24 -19
- package/src/models/scallopBuilder.ts +14 -4
- package/src/models/scallopCache.ts +245 -0
- package/src/models/scallopClient.ts +15 -4
- package/src/models/scallopIndexer.ts +58 -84
- package/src/models/scallopQuery.ts +14 -5
- package/src/models/scallopUtils.ts +53 -24
- package/src/queries/borrowIncentiveQuery.ts +4 -7
- package/src/queries/coreQuery.ts +62 -75
- package/src/queries/priceQuery.ts +4 -6
- package/src/queries/spoolQuery.ts +12 -15
- package/src/queries/vescaQuery.ts +2 -3
- package/src/types/model.ts +2 -0
- package/src/types/query/borrowIncentive.ts +0 -107
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { QueryClientConfig } from '@tanstack/query-core';
|
|
2
|
+
/**
|
|
3
|
+
* Default cache options for the QueryClient.
|
|
4
|
+
* @type {QueryClientConfig}
|
|
5
|
+
* @description Default cache options for the QueryClient
|
|
6
|
+
* We set the default to 5s to prevent duplicate requests from being requested (e.g. query MarketObject, etc.)
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_CACHE_OPTIONS: QueryClientConfig;
|