@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 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(target: string): Promise<_mysten_sui_dist_cjs_client.SuiMoveNormalizedFunction | null>;
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(target: string): Promise<_mysten_sui_dist_cjs_client.SuiMoveNormalizedFunction | null>;
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