@covalenthq/client-sdk 0.8.9 → 0.9.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.
@@ -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" | "Viem";
12
- export declare const userAgent = "com.covalenthq.sdk.typescript/0.8.9";
12
+ export declare const userAgent = "com.covalenthq.sdk.typescript/0.9.1";
13
13
  export declare class Response<T> {
14
14
  data: T;
15
15
  error: boolean;
@@ -267,6 +267,10 @@ declare class PoolsDexDataItem {
267
267
  volume_7d_quote: number;
268
268
  /** * The fee 24h converted to fiat in `quote-currency`. */
269
269
  fee_24h_quote: number;
270
+ /** * The exchange rate for the requested quote currency. */
271
+ quote_rate: number;
272
+ /** * A prettier version of the quote rate for rendering purposes. */
273
+ pretty_quote_rate: string;
270
274
  /** * The annual fee percentage. */
271
275
  annualized_fee: number;
272
276
  /** * A prettier version of the volume 24h quote for rendering purposes. */
@@ -560,6 +564,8 @@ declare class ExchangeTransaction {
560
564
  act: string;
561
565
  /** * The requested address. */
562
566
  address: string;
567
+ /** * A list of explorers for this transaction. */
568
+ explorers: Explorer[];
563
569
  amount_0: number;
564
570
  amount_1: number;
565
571
  amount_0_in: number;
@@ -236,6 +236,10 @@ export interface PoolsDexDataItem {
236
236
  volume_7d_quote: number;
237
237
  /** * The fee 24h converted to fiat in `quote-currency`. */
238
238
  fee_24h_quote: number;
239
+ /** * The exchange rate for the requested quote currency. */
240
+ quote_rate: number;
241
+ /** * A prettier version of the quote rate for rendering purposes. */
242
+ pretty_quote_rate: string;
239
243
  /** * The annual fee percentage. */
240
244
  annualized_fee: number;
241
245
  /** * A prettier version of the volume 24h quote for rendering purposes. */
@@ -513,6 +517,8 @@ export interface ExchangeTransaction {
513
517
  act: string;
514
518
  /** * The requested address. */
515
519
  address: string;
520
+ /** * A list of explorers for this transaction. */
521
+ explorers: Explorer[];
516
522
  amount_0: number;
517
523
  amount_1: number;
518
524
  amount_0_in: number;
package/dist/es/index.js CHANGED
@@ -6189,6 +6189,8 @@ class PoolsDexDataItem {
6189
6189
  this.volume_24h_quote = data.volume_24h_quote;
6190
6190
  this.volume_7d_quote = data.volume_7d_quote;
6191
6191
  this.fee_24h_quote = data.fee_24h_quote;
6192
+ this.quote_rate = data.quote_rate;
6193
+ this.pretty_quote_rate = data.pretty_quote_rate;
6192
6194
  this.annualized_fee = data.annualized_fee;
6193
6195
  this.pretty_volume_24h_quote = data.pretty_volume_24h_quote;
6194
6196
  this.pretty_volume_7d_quote = data.pretty_volume_7d_quote;
@@ -6408,6 +6410,7 @@ class ExchangeTransaction {
6408
6410
  this.quote_currency = data.quote_currency;
6409
6411
  this.token_0_quote_rate = data.token_0_quote_rate;
6410
6412
  this.token_1_quote_rate = data.token_1_quote_rate;
6413
+ this.explorers = data.explorers && data.explorers !== null ? data.explorers.map((itemData) => new Explorer(itemData)) : null;
6411
6414
  this.gas_metadata = data.gas_metadata && data.gas_metadata !== null ? new ContractMetadata(data.gas_metadata) : null;
6412
6415
  this.token_0 = data.token_0 && data.token_0 !== null ? new PoolToken(data.token_0) : null;
6413
6416
  this.token_1 = data.token_1 && data.token_1 !== null ? new PoolToken(data.token_1) : null;
@@ -7827,7 +7830,7 @@ class XykService {
7827
7830
  }
7828
7831
  }
7829
7832
 
7830
- const userAgent = "com.covalenthq.sdk.typescript/0.8.9";
7833
+ const userAgent = "com.covalenthq.sdk.typescript/0.9.1";
7831
7834
  class Response {
7832
7835
  }
7833
7836
  /**