@sodax/sdk 1.0.0-rc.7 → 1.0.0-rc.8
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.cjs.map +1 -1
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -5989,6 +5989,7 @@ interface ReserveData {
|
|
|
5989
5989
|
liquidityRate: string;
|
|
5990
5990
|
totalScaledVariableDebt: string;
|
|
5991
5991
|
lastUpdateTimestamp: number;
|
|
5992
|
+
aTokenAddress: string;
|
|
5992
5993
|
borrowCap: string;
|
|
5993
5994
|
supplyCap: string;
|
|
5994
5995
|
debtCeiling: string;
|
|
@@ -6255,7 +6256,7 @@ declare class MoneyMarketDataService {
|
|
|
6255
6256
|
/**
|
|
6256
6257
|
* @description Util function to build the request for the formatReserves function
|
|
6257
6258
|
*/
|
|
6258
|
-
buildReserveDataWithPrice(reserves: ReservesDataHumanized): FormatReservesUSDRequest<
|
|
6259
|
+
buildReserveDataWithPrice(reserves: ReservesDataHumanized): FormatReservesUSDRequest<ReserveDataHumanized>;
|
|
6259
6260
|
/**
|
|
6260
6261
|
* @description Util function to build the request for the formatReserves function
|
|
6261
6262
|
*/
|
|
@@ -6274,9 +6275,7 @@ declare class MoneyMarketDataService {
|
|
|
6274
6275
|
* @param {FormatReservesUSDRequest<ReserveDataWithPrice>} - the request parameters
|
|
6275
6276
|
* @returns {FormatReserveUSDResponse<FormatReservesUSDRequest>} - an array of formatted configuration and live usage data for each reserve in a Sodax market
|
|
6276
6277
|
*/
|
|
6277
|
-
formatReservesUSD(params: FormatReservesUSDRequest<
|
|
6278
|
-
priceInMarketReferenceCurrency: string;
|
|
6279
|
-
} & FormatReserveUSDResponse)[];
|
|
6278
|
+
formatReservesUSD<T extends ReserveDataWithPrice>(params: FormatReservesUSDRequest<T>): FormatReserveUSDResponse[];
|
|
6280
6279
|
/**
|
|
6281
6280
|
* @description computes additional fields and normalizes numbers into human readable decimals
|
|
6282
6281
|
* In addition to that it also converts the numbers to USD
|
package/dist/index.d.ts
CHANGED
|
@@ -5989,6 +5989,7 @@ interface ReserveData {
|
|
|
5989
5989
|
liquidityRate: string;
|
|
5990
5990
|
totalScaledVariableDebt: string;
|
|
5991
5991
|
lastUpdateTimestamp: number;
|
|
5992
|
+
aTokenAddress: string;
|
|
5992
5993
|
borrowCap: string;
|
|
5993
5994
|
supplyCap: string;
|
|
5994
5995
|
debtCeiling: string;
|
|
@@ -6255,7 +6256,7 @@ declare class MoneyMarketDataService {
|
|
|
6255
6256
|
/**
|
|
6256
6257
|
* @description Util function to build the request for the formatReserves function
|
|
6257
6258
|
*/
|
|
6258
|
-
buildReserveDataWithPrice(reserves: ReservesDataHumanized): FormatReservesUSDRequest<
|
|
6259
|
+
buildReserveDataWithPrice(reserves: ReservesDataHumanized): FormatReservesUSDRequest<ReserveDataHumanized>;
|
|
6259
6260
|
/**
|
|
6260
6261
|
* @description Util function to build the request for the formatReserves function
|
|
6261
6262
|
*/
|
|
@@ -6274,9 +6275,7 @@ declare class MoneyMarketDataService {
|
|
|
6274
6275
|
* @param {FormatReservesUSDRequest<ReserveDataWithPrice>} - the request parameters
|
|
6275
6276
|
* @returns {FormatReserveUSDResponse<FormatReservesUSDRequest>} - an array of formatted configuration and live usage data for each reserve in a Sodax market
|
|
6276
6277
|
*/
|
|
6277
|
-
formatReservesUSD(params: FormatReservesUSDRequest<
|
|
6278
|
-
priceInMarketReferenceCurrency: string;
|
|
6279
|
-
} & FormatReserveUSDResponse)[];
|
|
6278
|
+
formatReservesUSD<T extends ReserveDataWithPrice>(params: FormatReservesUSDRequest<T>): FormatReserveUSDResponse[];
|
|
6280
6279
|
/**
|
|
6281
6280
|
* @description computes additional fields and normalizes numbers into human readable decimals
|
|
6282
6281
|
* In addition to that it also converts the numbers to USD
|