@scallop-io/sui-scallop-sdk 2.0.2-switchboard-alpha.2 → 2.0.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 +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +28 -30
- package/dist/index.mjs +4 -6
- package/package.json +1 -4
- package/src/builders/oracles/index.ts +1 -17
- package/src/models/scallopCache.ts +1 -1
- package/src/models/suiKit.ts +4 -19
- package/src/types/model.ts +2 -3
- package/src/builders/oracles/switchboard.ts +0 -233
package/dist/index.d.mts
CHANGED
|
@@ -112,7 +112,7 @@ declare class ScallopCache {
|
|
|
112
112
|
private interval;
|
|
113
113
|
private tokens;
|
|
114
114
|
private lastRefill;
|
|
115
|
-
constructor(params
|
|
115
|
+
constructor(params: ScallopCacheParams, instance?: ScallopCacheInstanceParams);
|
|
116
116
|
private get client();
|
|
117
117
|
private refill;
|
|
118
118
|
private removeTokens;
|
|
@@ -3024,7 +3024,7 @@ type ScallopCacheParams = {
|
|
|
3024
3024
|
walletAddress?: string;
|
|
3025
3025
|
cacheOptions?: QueryClientConfig;
|
|
3026
3026
|
config?: ScallopCacheConfig;
|
|
3027
|
-
} &
|
|
3027
|
+
} & SuiKitParams;
|
|
3028
3028
|
type ScallopIndexerParams = ScallopCacheParams & {
|
|
3029
3029
|
indexerApiUrl?: string;
|
|
3030
3030
|
axios?: AxiosInstance;
|
|
@@ -3044,7 +3044,6 @@ type ScallopConstantsParams = ScallopAddressParams & {
|
|
|
3044
3044
|
};
|
|
3045
3045
|
type ScallopUtilsParams = ScallopAddressParams & ScallopConstantsParams & {
|
|
3046
3046
|
pythEndpoints?: string[];
|
|
3047
|
-
switchboardSolanaRpc?: string;
|
|
3048
3047
|
};
|
|
3049
3048
|
type ScallopQueryParams = ScallopUtilsParams & ScallopIndexerParams;
|
|
3050
3049
|
type ScallopBuilderParams = ScallopQueryParams & {
|
|
@@ -3052,7 +3051,7 @@ type ScallopBuilderParams = ScallopQueryParams & {
|
|
|
3052
3051
|
useOnChainXOracleList?: boolean;
|
|
3053
3052
|
};
|
|
3054
3053
|
type ScallopClientParams = ScallopBuilderParams;
|
|
3055
|
-
type ScallopParams =
|
|
3054
|
+
type ScallopParams = SuiKitParams & ScallopAddressParams & ScallopConstantsParams & {
|
|
3056
3055
|
walletAddress?: string;
|
|
3057
3056
|
};
|
|
3058
3057
|
|
package/dist/index.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ declare class ScallopCache {
|
|
|
112
112
|
private interval;
|
|
113
113
|
private tokens;
|
|
114
114
|
private lastRefill;
|
|
115
|
-
constructor(params
|
|
115
|
+
constructor(params: ScallopCacheParams, instance?: ScallopCacheInstanceParams);
|
|
116
116
|
private get client();
|
|
117
117
|
private refill;
|
|
118
118
|
private removeTokens;
|
|
@@ -3024,7 +3024,7 @@ type ScallopCacheParams = {
|
|
|
3024
3024
|
walletAddress?: string;
|
|
3025
3025
|
cacheOptions?: QueryClientConfig;
|
|
3026
3026
|
config?: ScallopCacheConfig;
|
|
3027
|
-
} &
|
|
3027
|
+
} & SuiKitParams;
|
|
3028
3028
|
type ScallopIndexerParams = ScallopCacheParams & {
|
|
3029
3029
|
indexerApiUrl?: string;
|
|
3030
3030
|
axios?: AxiosInstance;
|
|
@@ -3044,7 +3044,6 @@ type ScallopConstantsParams = ScallopAddressParams & {
|
|
|
3044
3044
|
};
|
|
3045
3045
|
type ScallopUtilsParams = ScallopAddressParams & ScallopConstantsParams & {
|
|
3046
3046
|
pythEndpoints?: string[];
|
|
3047
|
-
switchboardSolanaRpc?: string;
|
|
3048
3047
|
};
|
|
3049
3048
|
type ScallopQueryParams = ScallopUtilsParams & ScallopIndexerParams;
|
|
3050
3049
|
type ScallopBuilderParams = ScallopQueryParams & {
|
|
@@ -3052,7 +3051,7 @@ type ScallopBuilderParams = ScallopQueryParams & {
|
|
|
3052
3051
|
useOnChainXOracleList?: boolean;
|
|
3053
3052
|
};
|
|
3054
3053
|
type ScallopClientParams = ScallopBuilderParams;
|
|
3055
|
-
type ScallopParams =
|
|
3054
|
+
type ScallopParams = SuiKitParams & ScallopAddressParams & ScallopConstantsParams & {
|
|
3056
3055
|
walletAddress?: string;
|
|
3057
3056
|
};
|
|
3058
3057
|
|