@covalenthq/client-sdk 0.8.6 → 0.8.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/cjs/index.js +5 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/services/BaseService.d.ts +2 -0
- package/dist/cjs/services/CovalentClient.d.ts +1 -1
- package/dist/cjs/services/XykService.d.ts +2 -0
- package/dist/cjs/util/types/BaseServiceTypes.d.ts +2 -0
- package/dist/es/index.js +5 -1
- package/dist/es/index.js.map +1 -1
- package/dist/es/services/BaseService.d.ts +2 -0
- package/dist/es/services/CovalentClient.d.ts +1 -1
- package/dist/es/services/XykService.d.ts +2 -0
- package/dist/es/util/types/BaseServiceTypes.d.ts +2 -0
- package/dist/esm/index.js +5 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/services/BaseService.d.ts +2 -0
- package/dist/esm/services/CovalentClient.d.ts +1 -1
- package/dist/esm/services/XykService.d.ts +2 -0
- package/dist/esm/util/types/BaseServiceTypes.d.ts +2 -0
- package/dist/services/BaseService.d.ts +2 -0
- package/dist/services/BaseService.js +1 -0
- package/dist/services/BaseService.js.map +1 -1
- package/dist/services/CovalentClient.d.ts +1 -1
- package/dist/services/CovalentClient.js +1 -1
- package/dist/services/XykService.d.ts +2 -0
- package/dist/services/XykService.js +3 -0
- package/dist/services/XykService.js.map +1 -1
- package/dist/util/types/BaseServiceTypes.d.ts +2 -0
- package/package.json +1 -1
|
@@ -279,6 +279,8 @@ declare class GasPricesResponse {
|
|
|
279
279
|
event_type: string;
|
|
280
280
|
/** * The exchange rate for the requested quote currency. */
|
|
281
281
|
gas_quote_rate: number;
|
|
282
|
+
/** * The lowest gas fee for the latest block height. */
|
|
283
|
+
base_fee: bigint | null;
|
|
282
284
|
/** * List of response items. */
|
|
283
285
|
items: PriceItem[];
|
|
284
286
|
constructor(data: GasPricesResponse);
|
|
@@ -9,7 +9,7 @@ export type Chain = "btc-mainnet" | "eth-mainnet" | "matic-mainnet" | "bsc-mainn
|
|
|
9
9
|
export type Quote = "USD" | "CAD" | "EUR" | "SGD" | "INR" | "JPY" | "VND" | "CNY" | "KRW" | "RUB" | "TRY" | "NGN" | "ARS" | "AUD" | "CHF" | "GBP";
|
|
10
10
|
export type ChainID = 20090103 | 1 | 137 | 56 | 43114 | 10 | 250 | 1284 | 1285 | 30 | 42161 | 11297108109 | 8217 | 128 | 71402 | 2020 | 9001 | 592 | 4689 | 1666600000 | 25 | 1313161554 | 42262 | 288 | 5 | 80001 | 43113 | 97 | 1287 | 31 | 421613 | 4002 | 11297108099 | 256 | 71401 | 9000 | 336 | 4690 | 1666700000 | 1313161555 | 534354 | 534351 | 1131378225 | 53935 | 73772 | 43288 | 1294 | 56288 | 28 | 1297 | 9728 | 4328 | 1001 | 192837465 | 356256156 | 1564830818 | 278611351 | 432204 | 1026062157 | 432201 | 81 | 338 | 335 | 1088 | 588 | 2002 | 200202 | 2001 | 200101 | 73773 | 1399811149 | 2046399126 | 82 | 83 | 2139927552 | 2888 | 245022926 | 344106930 | 476158412 | 42170 | 7700 | 119 | 1029 | 14 | 114 | 19 | 16 | 321 | 322 | 1422 | 59140 | 84531 | 5001 | 534353 | 248 | 9372 | 2152 | 2154 | 416 | 23294 | 23295 | 420 | 1101 | 1662 | 1024 | 39797 | 49797 | 1663 | 11155111 | 1482601649 | 644937893 | 222000222 | 49321 | 1231 | 1230 | 7777777 | 999 | 245022934 | 2044 | 8453 | 5000 | 262018 | 59144 | 7332 | 10507 | 7979 | 1234 | 1228 | 8888 | 333000333 | 12008 | 12011 | 2038 | 1995 | 12010 | 51178 | 12009 | 12012 | 324 | 599 | 280 | 1343 | 11115 | 6765897100 | 1079 | 13337 | 16350 | 1990 | 20221 | 5611 | 12018 | 12013 | 12020 | 12015 | 12016 | 12014 | 12017 | 12019 | 431234 | 6119 | 73 | 7001 | 42888 | 919 | 5151706 | 923018 | 3441005 | 424 | 58008 | 100 | 10200 | 570 | 57000 | 167007 | 11155420 | 204 | 40 | 41 | 321123 | 360163 | 78431 | 2037 | 17772 | 152703 | 894538 | 179188 | 78432 | 7777 | 986532 | 78430 | 2195 | 11111 | 3012 | 4337 | 534352 | 17000 | 88 | 89 | 20765 | 84532 | 47279324479 | 421614 | 12027 | 12028 | 12029 | 31330 | 31331 | 31332 | 31333 | 31334 | 31335 | 412346 | 8545 | 42220;
|
|
11
11
|
export type Source = "Ponder" | "GoldRush";
|
|
12
|
-
export declare const userAgent = "com.covalenthq.sdk.typescript/0.8.
|
|
12
|
+
export declare const userAgent = "com.covalenthq.sdk.typescript/0.8.8";
|
|
13
13
|
export declare class Response<T> {
|
|
14
14
|
data: T;
|
|
15
15
|
error: boolean;
|
|
@@ -753,6 +753,8 @@ declare class HealthData {
|
|
|
753
753
|
constructor(data: HealthData);
|
|
754
754
|
}
|
|
755
755
|
export interface GetPoolsQueryParamOpts {
|
|
756
|
+
/** * Ending date to define a block range (YYYY-MM-DD). Omitting this parameter defaults to the current date. */
|
|
757
|
+
date?: string;
|
|
756
758
|
/** * Number of items per page. Omitting this parameter defaults to 100. */
|
|
757
759
|
pageSize?: number;
|
|
758
760
|
/** * 0-indexed page number to begin pagination. */
|
|
@@ -207,6 +207,8 @@ export interface GasPricesResponse {
|
|
|
207
207
|
event_type: string;
|
|
208
208
|
/** * The exchange rate for the requested quote currency. */
|
|
209
209
|
gas_quote_rate: number;
|
|
210
|
+
/** * The lowest gas fee for the latest block height. */
|
|
211
|
+
base_fee: bigint | null;
|
|
210
212
|
/** * List of response items. */
|
|
211
213
|
items: PriceItem[];
|
|
212
214
|
}
|
package/dist/es/index.js
CHANGED
|
@@ -1687,6 +1687,7 @@ class GasPricesResponse {
|
|
|
1687
1687
|
this.updated_at = data.updated_at && data.updated_at !== null ? parseISO(data.updated_at.toString()) : null;
|
|
1688
1688
|
this.event_type = data.event_type;
|
|
1689
1689
|
this.gas_quote_rate = data.gas_quote_rate;
|
|
1690
|
+
this.base_fee = data.base_fee && data.base_fee !== null ? BigInt(data.base_fee) : null;
|
|
1690
1691
|
this.items = data.items && data.items !== null ? data.items.map((itemData) => new PriceItem(itemData)) : null;
|
|
1691
1692
|
}
|
|
1692
1693
|
}
|
|
@@ -6556,6 +6557,9 @@ class XykService {
|
|
|
6556
6557
|
while (!success) {
|
|
6557
6558
|
try {
|
|
6558
6559
|
const urlParams = new URLSearchParams();
|
|
6560
|
+
if (queryParamOpts?.date !== undefined) {
|
|
6561
|
+
urlParams.append("date", queryParamOpts?.date.toString());
|
|
6562
|
+
}
|
|
6559
6563
|
if (queryParamOpts?.pageSize !== undefined) {
|
|
6560
6564
|
urlParams.append("page-size", queryParamOpts?.pageSize.toString());
|
|
6561
6565
|
}
|
|
@@ -7823,7 +7827,7 @@ class XykService {
|
|
|
7823
7827
|
}
|
|
7824
7828
|
}
|
|
7825
7829
|
|
|
7826
|
-
const userAgent = "com.covalenthq.sdk.typescript/0.8.
|
|
7830
|
+
const userAgent = "com.covalenthq.sdk.typescript/0.8.8";
|
|
7827
7831
|
class Response {
|
|
7828
7832
|
}
|
|
7829
7833
|
/**
|