@covalenthq/client-sdk 0.7.3 → 0.7.5
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 +37 -16
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/services/CovalentClient.d.ts +1 -1
- package/dist/cjs/services/XykService.d.ts +57 -15
- package/dist/cjs/util/types/XykServiceTypes.d.ts +57 -15
- package/dist/es/index.js +37 -16
- package/dist/es/index.js.map +1 -1
- package/dist/es/services/CovalentClient.d.ts +1 -1
- package/dist/es/services/XykService.d.ts +57 -15
- package/dist/es/util/types/XykServiceTypes.d.ts +57 -15
- package/dist/esm/index.js +37 -16
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/services/CovalentClient.d.ts +1 -1
- package/dist/esm/services/XykService.d.ts +57 -15
- package/dist/esm/util/types/XykServiceTypes.d.ts +57 -15
- package/dist/services/CovalentClient.d.ts +1 -1
- package/dist/services/CovalentClient.js +1 -1
- package/dist/services/XykService.d.ts +57 -15
- package/dist/services/XykService.js +36 -15
- package/dist/services/XykService.js.map +1 -1
- package/dist/util/types/XykServiceTypes.d.ts +57 -15
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -5592,6 +5592,10 @@ class Pool {
|
|
|
5592
5592
|
this.fee_24h_quote = data.fee_24h_quote;
|
|
5593
5593
|
this.total_supply = data.total_supply && data.total_supply !== null ? BigInt(data.total_supply) : null;
|
|
5594
5594
|
this.quote_rate = data.quote_rate;
|
|
5595
|
+
this.pretty_total_liquidity_quote = data.pretty_total_liquidity_quote;
|
|
5596
|
+
this.pretty_volume_24h_quote = data.pretty_volume_24h_quote;
|
|
5597
|
+
this.pretty_fee_24h_quote = data.pretty_fee_24h_quote;
|
|
5598
|
+
this.pretty_volume_7d_quote = data.pretty_volume_7d_quote;
|
|
5595
5599
|
this.chain_name = data.chain_name;
|
|
5596
5600
|
this.chain_id = data.chain_id;
|
|
5597
5601
|
this.dex_name = data.dex_name;
|
|
@@ -5638,6 +5642,8 @@ class SupportedDex {
|
|
|
5638
5642
|
this.chain_id = data.chain_id;
|
|
5639
5643
|
this.chain_name = data.chain_name;
|
|
5640
5644
|
this.dex_name = data.dex_name;
|
|
5645
|
+
this.display_name = data.display_name;
|
|
5646
|
+
this.logo_url = data.logo_url;
|
|
5641
5647
|
this.factory_contract_address = data.factory_contract_address;
|
|
5642
5648
|
this.router_contract_addresses = data.router_contract_addresses;
|
|
5643
5649
|
this.swap_fee = data.swap_fee;
|
|
@@ -5671,6 +5677,10 @@ class PoolWithTimeseries {
|
|
|
5671
5677
|
this.dex_name = data.dex_name;
|
|
5672
5678
|
this.volume_7d_quote = data.volume_7d_quote;
|
|
5673
5679
|
this.annualized_fee = data.annualized_fee;
|
|
5680
|
+
this.pretty_total_liquidity_quote = data.pretty_total_liquidity_quote;
|
|
5681
|
+
this.pretty_volume_24h_quote = data.pretty_volume_24h_quote;
|
|
5682
|
+
this.pretty_fee_24h_quote = data.pretty_fee_24h_quote;
|
|
5683
|
+
this.pretty_volume_7d_quote = data.pretty_volume_7d_quote;
|
|
5674
5684
|
this.token_0_reserve_quote = data.token_0_reserve_quote;
|
|
5675
5685
|
this.token_1_reserve_quote = data.token_1_reserve_quote;
|
|
5676
5686
|
this.token_0 = data.token_0 && data.token_0 !== null ? new Token(data.token_0) : null;
|
|
@@ -5689,11 +5699,12 @@ class VolumeTimeseries {
|
|
|
5689
5699
|
this.chain_id = data.chain_id;
|
|
5690
5700
|
this.dt = data.dt;
|
|
5691
5701
|
this.exchange = data.exchange;
|
|
5692
|
-
this.
|
|
5693
|
-
this.
|
|
5694
|
-
this.
|
|
5695
|
-
this.
|
|
5702
|
+
this.sum_amount0in = data.sum_amount0in;
|
|
5703
|
+
this.sum_amount0out = data.sum_amount0out;
|
|
5704
|
+
this.sum_amount1in = data.sum_amount1in;
|
|
5705
|
+
this.sum_amount1out = data.sum_amount1out;
|
|
5696
5706
|
this.volume_quote = data.volume_quote;
|
|
5707
|
+
this.pretty_volume_quote = data.pretty_volume_quote;
|
|
5697
5708
|
this.token_0_quote_rate = data.token_0_quote_rate;
|
|
5698
5709
|
this.token_1_quote_rate = data.token_1_quote_rate;
|
|
5699
5710
|
this.swap_count_24 = data.swap_count_24;
|
|
@@ -5708,6 +5719,7 @@ class LiquidityTimeseries {
|
|
|
5708
5719
|
this.r0_c = data.r0_c;
|
|
5709
5720
|
this.r1_c = data.r1_c;
|
|
5710
5721
|
this.liquidity_quote = data.liquidity_quote;
|
|
5722
|
+
this.pretty_liquidity_quote = data.pretty_liquidity_quote;
|
|
5711
5723
|
this.token_0_quote_rate = data.token_0_quote_rate;
|
|
5712
5724
|
this.token_1_quote_rate = data.token_1_quote_rate;
|
|
5713
5725
|
}
|
|
@@ -5718,13 +5730,15 @@ class PriceTimeseries {
|
|
|
5718
5730
|
this.chain_id = data.chain_id;
|
|
5719
5731
|
this.dt = data.dt;
|
|
5720
5732
|
this.exchange = data.exchange;
|
|
5721
|
-
this.
|
|
5722
|
-
this.
|
|
5723
|
-
this.
|
|
5724
|
-
this.
|
|
5733
|
+
this.price_of_token0_in_token1 = data.price_of_token0_in_token1;
|
|
5734
|
+
this.pretty_price_of_token0_in_token1 = data.pretty_price_of_token0_in_token1;
|
|
5735
|
+
this.price_of_token0_in_token1_description = data.price_of_token0_in_token1_description;
|
|
5736
|
+
this.price_of_token1_in_token0 = data.price_of_token1_in_token0;
|
|
5737
|
+
this.pretty_price_of_token1_in_token0 = data.pretty_price_of_token1_in_token0;
|
|
5738
|
+
this.price_of_token1_in_token0_description = data.price_of_token1_in_token0_description;
|
|
5725
5739
|
this.quote_currency = data.quote_currency;
|
|
5726
|
-
this.
|
|
5727
|
-
this.
|
|
5740
|
+
this.price_of_token0_in_quote_currency = data.price_of_token0_in_quote_currency;
|
|
5741
|
+
this.price_of_token1_in_quote_currency = data.price_of_token1_in_quote_currency;
|
|
5728
5742
|
}
|
|
5729
5743
|
}
|
|
5730
5744
|
class PoolsDexDataResponse {
|
|
@@ -5829,6 +5843,11 @@ class TokenV2Volume {
|
|
|
5829
5843
|
this.contract_decimals = data.contract_decimals;
|
|
5830
5844
|
this.swap_count_24h = data.swap_count_24h;
|
|
5831
5845
|
this.quote_rate = data.quote_rate;
|
|
5846
|
+
this.quote_rate_24h = data.quote_rate_24h;
|
|
5847
|
+
this.pretty_quote_rate = data.pretty_quote_rate;
|
|
5848
|
+
this.pretty_quote_rate_24h = data.pretty_quote_rate_24h;
|
|
5849
|
+
this.pretty_total_liquidity_quote = data.pretty_total_liquidity_quote;
|
|
5850
|
+
this.pretty_total_volume_24h_quote = data.pretty_total_volume_24h_quote;
|
|
5832
5851
|
this.total_liquidity_quote = data.total_liquidity_quote;
|
|
5833
5852
|
this.total_volume_24h_quote = data.total_volume_24h_quote;
|
|
5834
5853
|
}
|
|
@@ -5864,15 +5883,17 @@ class ExchangeTransaction {
|
|
|
5864
5883
|
this.tx_hash = data.tx_hash;
|
|
5865
5884
|
this.act = data.act;
|
|
5866
5885
|
this.address = data.address;
|
|
5867
|
-
this.
|
|
5868
|
-
this.
|
|
5869
|
-
this.
|
|
5870
|
-
this.
|
|
5871
|
-
this.
|
|
5886
|
+
this.amount_0 = data.amount_0;
|
|
5887
|
+
this.amount_1 = data.amount_1;
|
|
5888
|
+
this.amount_0_in = data.amount_0_in;
|
|
5889
|
+
this.amount_0_out = data.amount_0_out;
|
|
5890
|
+
this.amount_1_in = data.amount_1_in;
|
|
5891
|
+
this.amount_1_out = data.amount_1_out;
|
|
5872
5892
|
this.to_address = data.to_address;
|
|
5873
5893
|
this.from_address = data.from_address;
|
|
5874
5894
|
this.sender_address = data.sender_address;
|
|
5875
5895
|
this.total_quote = data.total_quote;
|
|
5896
|
+
this.pretty_total_quote = data.pretty_total_quote;
|
|
5876
5897
|
this.token_0_quote_rate = data.token_0_quote_rate;
|
|
5877
5898
|
this.token_1_quote_rate = data.token_1_quote_rate;
|
|
5878
5899
|
this.token_0 = data.token_0 && data.token_0 !== null ? new PoolToken(data.token_0) : null;
|
|
@@ -7029,7 +7050,7 @@ class XykService {
|
|
|
7029
7050
|
}
|
|
7030
7051
|
}
|
|
7031
7052
|
|
|
7032
|
-
const userAgent = "com.covalenthq.sdk.typescript/0.7.
|
|
7053
|
+
const userAgent = "com.covalenthq.sdk.typescript/0.7.5";
|
|
7033
7054
|
/**
|
|
7034
7055
|
* CovalentClient Class
|
|
7035
7056
|
*/
|