@scallop-io/sui-scallop-sdk 4.3.0 → 4.4.0-alpha.1
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/README.md +1 -0
- package/dist/builder.cjs +19 -5
- package/dist/builder.d.cts +3 -2
- package/dist/builder.d.ts +3 -2
- package/dist/builder.js +2 -2
- package/dist/chunk-H2NF725V.js +30 -0
- package/dist/{chunk-ZAFUZGSI.js → chunk-HQFMP3PN.js} +2 -2
- package/dist/{chunk-UCRLKWQI.js → chunk-XP3YYPCP.js} +2 -2
- package/dist/client.cjs +18 -4
- package/dist/client.d.cts +2 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.js +3 -3
- package/dist/index.cjs +51 -37
- package/dist/index.d.cts +12 -7
- package/dist/index.d.ts +12 -7
- package/dist/index.js +4 -4
- package/dist/{query-b84awDFp.d.ts → query-BqdO3ECh.d.ts} +110 -4
- package/dist/query.cjs +18 -4
- package/dist/query.d.cts +2 -1
- package/dist/query.d.ts +2 -1
- package/dist/query.js +1 -1
- package/dist/types.d.cts +2 -1
- package/dist/types.d.ts +2 -1
- package/package.json +6 -5
- package/src/constants/queryKeys.ts +11 -8
- package/src/datasources/onchain.ts +193 -10
- package/src/models/scallopBuilder/index.ts +9 -3
- package/src/models/scallopConstants/index.ts +35 -7
- package/src/models/scallopQuery/index.ts +37 -0
- package/src/models/scallopQuery/types.ts +13 -0
- package/src/models/scallopUtils/index.ts +4 -0
- package/src/models/scallopUtils/types.ts +6 -0
- package/src/repositories/borrowIncentive/helpers.ts +2 -2
- package/src/repositories/coinBalance/helpers.ts +364 -49
- package/src/repositories/coinBalance/index.ts +24 -1
- package/src/repositories/coinBalance/types.ts +16 -0
- package/src/repositories/price/const.ts +7 -0
- package/src/repositories/price/helpers.ts +53 -41
- package/src/repositories/price/index.ts +5 -1
- package/src/repositories/price/types.ts +9 -1
- package/src/repositories/veSca/helpers.ts +1 -1
- package/src/repositories/wiring/datasources.ts +29 -1
- package/src/repositories/wiring/registry.ts +41 -2
- package/src/txBuilders/vesca/quick.ts +9 -3
- package/src/types/constant/queryKeys.ts +7 -3
- package/src/utils/object.ts +9 -1
- package/dist/chunk-FNZDTB3A.js +0 -16
package/README.md
CHANGED
|
@@ -148,6 +148,7 @@ Common optional options:
|
|
|
148
148
|
|
|
149
149
|
- `pythEndpoints`: Pyth Hermes endpoints for price-update flows.
|
|
150
150
|
- `queryClient` / `queryClientConfig`: custom `@tanstack/query-core` cache.
|
|
151
|
+
- `priceTimeout`: cache lifetime (ms) for the full Pyth price-feed list. Default `5_000`. Within this window, single/subset price reads are served from one cached full-list fetch instead of re-hitting the Pyth API; a longer value cuts API traffic at the cost of price staleness.
|
|
151
152
|
- `logger`: SDK logger. Default is silent `noopLogger`; pass `consoleLogger` to opt into console output.
|
|
152
153
|
- `strictInit`: when `true`, `init()` throws `ScallopConfigError` if required config is missing.
|
|
153
154
|
- `tokensPerSecond`: RPC read rate limit.
|