@scallop-io/sui-scallop-sdk 2.0.0-alpha.1 → 2.0.0-alpha.2
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.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/models/scallopBuilder.ts +4 -6
- package/src/models/scallopClient.ts +6 -5
- package/src/models/scallopConstants.ts +1 -0
- package/src/models/scallopQuery.ts +5 -7
- package/src/models/scallopUtils.ts +8 -5
- package/src/types/model.ts +2 -0
- package/src/models/scallopPrice.ts +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -395,7 +395,7 @@ declare class ScallopUtils {
|
|
|
395
395
|
* @param force - Whether to force initialization.
|
|
396
396
|
* @param address - ScallopAddress instance.
|
|
397
397
|
*/
|
|
398
|
-
init(force?: boolean
|
|
398
|
+
init(force?: boolean): Promise<void>;
|
|
399
399
|
/**
|
|
400
400
|
* Convert coin name to symbol.
|
|
401
401
|
*
|
|
@@ -707,7 +707,7 @@ declare class ScallopQuery {
|
|
|
707
707
|
* @param force - Whether to force initialization.
|
|
708
708
|
* @param address - ScallopAddress instance.
|
|
709
709
|
*/
|
|
710
|
-
init(force?: boolean
|
|
710
|
+
init(force?: boolean): Promise<void>;
|
|
711
711
|
/**
|
|
712
712
|
* @deprecated use getMarketPools
|
|
713
713
|
* Query market data.
|
|
@@ -1240,7 +1240,7 @@ declare class ScallopBuilder {
|
|
|
1240
1240
|
* @param force - Whether to force initialization.
|
|
1241
1241
|
* @param address - ScallopAddress instance.
|
|
1242
1242
|
*/
|
|
1243
|
-
init(force?: boolean
|
|
1243
|
+
init(force?: boolean): Promise<void>;
|
|
1244
1244
|
/**
|
|
1245
1245
|
* Create a scallop txBlock instance that enhances transaction block.
|
|
1246
1246
|
*
|
|
@@ -2925,6 +2925,7 @@ type ScallopClientVeScaReturnType<T extends boolean> = T extends true ? SuiTrans
|
|
|
2925
2925
|
};
|
|
2926
2926
|
type ScallopBaseInstanceParams = {
|
|
2927
2927
|
suiKit?: SuiKit;
|
|
2928
|
+
cache?: ScallopCache;
|
|
2928
2929
|
};
|
|
2929
2930
|
type ScallopCacheInstanceParams = ScallopBaseInstanceParams & {
|
|
2930
2931
|
queryClient?: QueryClient;
|
|
@@ -2934,6 +2935,7 @@ type ScallopAddressInstanceParams = ScallopBaseInstanceParams & {
|
|
|
2934
2935
|
};
|
|
2935
2936
|
type ScallopConstantsInstanceParams = {
|
|
2936
2937
|
address?: ScallopAddress;
|
|
2938
|
+
cache?: ScallopCache;
|
|
2937
2939
|
};
|
|
2938
2940
|
type ScallopIndexerInstanceParams = {
|
|
2939
2941
|
cache?: ScallopCache;
|
package/dist/index.d.ts
CHANGED
|
@@ -395,7 +395,7 @@ declare class ScallopUtils {
|
|
|
395
395
|
* @param force - Whether to force initialization.
|
|
396
396
|
* @param address - ScallopAddress instance.
|
|
397
397
|
*/
|
|
398
|
-
init(force?: boolean
|
|
398
|
+
init(force?: boolean): Promise<void>;
|
|
399
399
|
/**
|
|
400
400
|
* Convert coin name to symbol.
|
|
401
401
|
*
|
|
@@ -707,7 +707,7 @@ declare class ScallopQuery {
|
|
|
707
707
|
* @param force - Whether to force initialization.
|
|
708
708
|
* @param address - ScallopAddress instance.
|
|
709
709
|
*/
|
|
710
|
-
init(force?: boolean
|
|
710
|
+
init(force?: boolean): Promise<void>;
|
|
711
711
|
/**
|
|
712
712
|
* @deprecated use getMarketPools
|
|
713
713
|
* Query market data.
|
|
@@ -1240,7 +1240,7 @@ declare class ScallopBuilder {
|
|
|
1240
1240
|
* @param force - Whether to force initialization.
|
|
1241
1241
|
* @param address - ScallopAddress instance.
|
|
1242
1242
|
*/
|
|
1243
|
-
init(force?: boolean
|
|
1243
|
+
init(force?: boolean): Promise<void>;
|
|
1244
1244
|
/**
|
|
1245
1245
|
* Create a scallop txBlock instance that enhances transaction block.
|
|
1246
1246
|
*
|
|
@@ -2925,6 +2925,7 @@ type ScallopClientVeScaReturnType<T extends boolean> = T extends true ? SuiTrans
|
|
|
2925
2925
|
};
|
|
2926
2926
|
type ScallopBaseInstanceParams = {
|
|
2927
2927
|
suiKit?: SuiKit;
|
|
2928
|
+
cache?: ScallopCache;
|
|
2928
2929
|
};
|
|
2929
2930
|
type ScallopCacheInstanceParams = ScallopBaseInstanceParams & {
|
|
2930
2931
|
queryClient?: QueryClient;
|
|
@@ -2934,6 +2935,7 @@ type ScallopAddressInstanceParams = ScallopBaseInstanceParams & {
|
|
|
2934
2935
|
};
|
|
2935
2936
|
type ScallopConstantsInstanceParams = {
|
|
2936
2937
|
address?: ScallopAddress;
|
|
2938
|
+
cache?: ScallopCache;
|
|
2937
2939
|
};
|
|
2938
2940
|
type ScallopIndexerInstanceParams = {
|
|
2939
2941
|
cache?: ScallopCache;
|