@scallop-io/sui-scallop-sdk 2.0.1 → 2.0.2-switchboard-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/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +30 -28
- package/dist/index.mjs +6 -4
- package/package.json +6 -3
- package/src/builders/oracles/index.ts +17 -1
- package/src/builders/oracles/switchboard.ts +233 -0
- package/src/models/scallopAddress.ts +1 -1
- package/src/models/scallopCache.ts +3 -7
- package/src/models/suiKit.ts +19 -4
- package/src/types/model.ts +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -134,7 +134,7 @@ declare class ScallopCache {
|
|
|
134
134
|
* @returns Promise<DevInspectResults>
|
|
135
135
|
*/
|
|
136
136
|
queryInspectTxn({ queryTarget, args, typeArgs, }: QueryInspectTxnParams): Promise<DevInspectResults | null>;
|
|
137
|
-
queryGetNormalizedMoveFunction
|
|
137
|
+
private queryGetNormalizedMoveFunction;
|
|
138
138
|
/**
|
|
139
139
|
* @description Provides cache for getObject of the SuiKit.
|
|
140
140
|
* @param objectId
|
|
@@ -3024,7 +3024,7 @@ type ScallopCacheParams = {
|
|
|
3024
3024
|
walletAddress?: string;
|
|
3025
3025
|
cacheOptions?: QueryClientConfig;
|
|
3026
3026
|
config?: ScallopCacheConfig;
|
|
3027
|
-
} & SuiKitParams
|
|
3027
|
+
} & Partial<SuiKitParams>;
|
|
3028
3028
|
type ScallopIndexerParams = ScallopCacheParams & {
|
|
3029
3029
|
indexerApiUrl?: string;
|
|
3030
3030
|
axios?: AxiosInstance;
|
|
@@ -3044,6 +3044,7 @@ type ScallopConstantsParams = ScallopAddressParams & {
|
|
|
3044
3044
|
};
|
|
3045
3045
|
type ScallopUtilsParams = ScallopAddressParams & ScallopConstantsParams & {
|
|
3046
3046
|
pythEndpoints?: string[];
|
|
3047
|
+
switchboardSolanaRpc?: string;
|
|
3047
3048
|
};
|
|
3048
3049
|
type ScallopQueryParams = ScallopUtilsParams & ScallopIndexerParams;
|
|
3049
3050
|
type ScallopBuilderParams = ScallopQueryParams & {
|
|
@@ -3051,7 +3052,7 @@ type ScallopBuilderParams = ScallopQueryParams & {
|
|
|
3051
3052
|
useOnChainXOracleList?: boolean;
|
|
3052
3053
|
};
|
|
3053
3054
|
type ScallopClientParams = ScallopBuilderParams;
|
|
3054
|
-
type ScallopParams = SuiKitParams & ScallopAddressParams & ScallopConstantsParams & {
|
|
3055
|
+
type ScallopParams = Partial<SuiKitParams> & ScallopAddressParams & ScallopConstantsParams & {
|
|
3055
3056
|
walletAddress?: string;
|
|
3056
3057
|
};
|
|
3057
3058
|
|
package/dist/index.d.ts
CHANGED
|
@@ -134,7 +134,7 @@ declare class ScallopCache {
|
|
|
134
134
|
* @returns Promise<DevInspectResults>
|
|
135
135
|
*/
|
|
136
136
|
queryInspectTxn({ queryTarget, args, typeArgs, }: QueryInspectTxnParams): Promise<DevInspectResults | null>;
|
|
137
|
-
queryGetNormalizedMoveFunction
|
|
137
|
+
private queryGetNormalizedMoveFunction;
|
|
138
138
|
/**
|
|
139
139
|
* @description Provides cache for getObject of the SuiKit.
|
|
140
140
|
* @param objectId
|
|
@@ -3024,7 +3024,7 @@ type ScallopCacheParams = {
|
|
|
3024
3024
|
walletAddress?: string;
|
|
3025
3025
|
cacheOptions?: QueryClientConfig;
|
|
3026
3026
|
config?: ScallopCacheConfig;
|
|
3027
|
-
} & SuiKitParams
|
|
3027
|
+
} & Partial<SuiKitParams>;
|
|
3028
3028
|
type ScallopIndexerParams = ScallopCacheParams & {
|
|
3029
3029
|
indexerApiUrl?: string;
|
|
3030
3030
|
axios?: AxiosInstance;
|
|
@@ -3044,6 +3044,7 @@ type ScallopConstantsParams = ScallopAddressParams & {
|
|
|
3044
3044
|
};
|
|
3045
3045
|
type ScallopUtilsParams = ScallopAddressParams & ScallopConstantsParams & {
|
|
3046
3046
|
pythEndpoints?: string[];
|
|
3047
|
+
switchboardSolanaRpc?: string;
|
|
3047
3048
|
};
|
|
3048
3049
|
type ScallopQueryParams = ScallopUtilsParams & ScallopIndexerParams;
|
|
3049
3050
|
type ScallopBuilderParams = ScallopQueryParams & {
|
|
@@ -3051,7 +3052,7 @@ type ScallopBuilderParams = ScallopQueryParams & {
|
|
|
3051
3052
|
useOnChainXOracleList?: boolean;
|
|
3052
3053
|
};
|
|
3053
3054
|
type ScallopClientParams = ScallopBuilderParams;
|
|
3054
|
-
type ScallopParams = SuiKitParams & ScallopAddressParams & ScallopConstantsParams & {
|
|
3055
|
+
type ScallopParams = Partial<SuiKitParams> & ScallopAddressParams & ScallopConstantsParams & {
|
|
3055
3056
|
walletAddress?: string;
|
|
3056
3057
|
};
|
|
3057
3058
|
|