@scallop-io/sui-scallop-sdk 2.0.2 → 2.0.4

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
@@ -1206,6 +1206,15 @@ declare class ScallopQuery {
1206
1206
  riskLevel: number;
1207
1207
  availableCollateralInUsd: number;
1208
1208
  totalUnhealthyCollateralInUsd: number;
1209
+ collaterals: {
1210
+ coinName: string;
1211
+ symbol: string;
1212
+ coinDecimals: number;
1213
+ coinType: string;
1214
+ coinPrice: number;
1215
+ depositedCoin: number;
1216
+ depositedValueInUsd: number;
1217
+ }[];
1209
1218
  borrowedPools: {
1210
1219
  coinName: string;
1211
1220
  symbol: string;
@@ -3024,7 +3033,7 @@ type ScallopCacheParams = {
3024
3033
  walletAddress?: string;
3025
3034
  cacheOptions?: QueryClientConfig;
3026
3035
  config?: ScallopCacheConfig;
3027
- } & SuiKitParams;
3036
+ } & Partial<SuiKitParams>;
3028
3037
  type ScallopIndexerParams = ScallopCacheParams & {
3029
3038
  indexerApiUrl?: string;
3030
3039
  axios?: AxiosInstance;
@@ -3051,7 +3060,7 @@ type ScallopBuilderParams = ScallopQueryParams & {
3051
3060
  useOnChainXOracleList?: boolean;
3052
3061
  };
3053
3062
  type ScallopClientParams = ScallopBuilderParams;
3054
- type ScallopParams = SuiKitParams & ScallopAddressParams & ScallopConstantsParams & {
3063
+ type ScallopParams = Partial<SuiKitParams> & ScallopAddressParams & ScallopConstantsParams & {
3055
3064
  walletAddress?: string;
3056
3065
  };
3057
3066
 
package/dist/index.d.ts CHANGED
@@ -1206,6 +1206,15 @@ declare class ScallopQuery {
1206
1206
  riskLevel: number;
1207
1207
  availableCollateralInUsd: number;
1208
1208
  totalUnhealthyCollateralInUsd: number;
1209
+ collaterals: {
1210
+ coinName: string;
1211
+ symbol: string;
1212
+ coinDecimals: number;
1213
+ coinType: string;
1214
+ coinPrice: number;
1215
+ depositedCoin: number;
1216
+ depositedValueInUsd: number;
1217
+ }[];
1209
1218
  borrowedPools: {
1210
1219
  coinName: string;
1211
1220
  symbol: string;
@@ -3024,7 +3033,7 @@ type ScallopCacheParams = {
3024
3033
  walletAddress?: string;
3025
3034
  cacheOptions?: QueryClientConfig;
3026
3035
  config?: ScallopCacheConfig;
3027
- } & SuiKitParams;
3036
+ } & Partial<SuiKitParams>;
3028
3037
  type ScallopIndexerParams = ScallopCacheParams & {
3029
3038
  indexerApiUrl?: string;
3030
3039
  axios?: AxiosInstance;
@@ -3051,7 +3060,7 @@ type ScallopBuilderParams = ScallopQueryParams & {
3051
3060
  useOnChainXOracleList?: boolean;
3052
3061
  };
3053
3062
  type ScallopClientParams = ScallopBuilderParams;
3054
- type ScallopParams = SuiKitParams & ScallopAddressParams & ScallopConstantsParams & {
3063
+ type ScallopParams = Partial<SuiKitParams> & ScallopAddressParams & ScallopConstantsParams & {
3055
3064
  walletAddress?: string;
3056
3065
  };
3057
3066