@covalenthq/client-sdk 2.3.3 → 2.3.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/README.md CHANGED
@@ -576,6 +576,7 @@ The Covalent SDK provides comprehensive support for all Class A, Class B, and Pr
576
576
  - `subscribeToTokenBalances()`: Subscribe to real-time token balance updates for a specific wallet address. Tracks balance changes across native and ERC-20 tokens with USD valuations.
577
577
  - `subscribeToWalletActivity()`: Subscribe to real-time wallet activity including transactions, token transfers, and smart contract interactions. Provides decoded transaction details for swaps, transfers, bridges, deposits, withdrawals, and approvals.
578
578
  - `subscribeToNewPairs()`: Subscribe to real-time notifications when new liquidity pairs are created on supported decentralized exchanges (DEXes). Supports Uniswap V2/V3 across Base, Ethereum, and BSC networks.
579
+ - `subscribeToUpdatePairs()`: Subscribe to real-time updates for specific trading pairs including price, volume, liquidity data, price deltas, and swap counts.
579
580
  - `rawQuery()`: Execute custom GraphQL subscription queries for advanced streaming scenarios and future extensibility.
580
581
  - `disconnect()`: Properly disconnect from the streaming service.
581
582
 
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "2.3.3";
3
+ var version = "2.3.5";
4
4
 
5
5
  const bigIntParser = (val) => {
6
6
  if (val === null || val === undefined) {
@@ -3464,6 +3464,18 @@ class StreamingService {
3464
3464
  contract_decimals
3465
3465
  contract_ticker_symbol
3466
3466
  }
3467
+ price_deltas {
3468
+ last_5m
3469
+ last_1hr
3470
+ last_6hr
3471
+ last_24hr
3472
+ }
3473
+ swap_counts {
3474
+ last_5m
3475
+ last_1hr
3476
+ last_6hr
3477
+ last_24hr
3478
+ }
3467
3479
  }
3468
3480
  }
3469
3481
  `;
@@ -5720,11 +5732,15 @@ const timestampParser = (timestamp, type) => {
5720
5732
  exports.StreamingChain = void 0;
5721
5733
  (function (StreamingChain) {
5722
5734
  StreamingChain["BASE_MAINNET"] = "BASE_MAINNET";
5735
+ StreamingChain["SOLANA_MAINNET"] = "SOLANA_MAINNET";
5736
+ StreamingChain["SONIC_MAINNET"] = "SONIC_MAINNET";
5723
5737
  StreamingChain["ETH_MAINNET"] = "ETH_MAINNET";
5724
5738
  StreamingChain["BSC_MAINNET"] = "BSC_MAINNET";
5739
+ StreamingChain["HYPERCORE_MAINNET"] = "HYPERCORE_MAINNET";
5725
5740
  })(exports.StreamingChain || (exports.StreamingChain = {}));
5726
5741
  exports.StreamingInterval = void 0;
5727
5742
  (function (StreamingInterval) {
5743
+ StreamingInterval["ONE_SECOND"] = "ONE_SECOND";
5728
5744
  StreamingInterval["FIFTEEN_SECONDS"] = "FIFTEEN_SECONDS";
5729
5745
  StreamingInterval["THIRTY_SECONDS"] = "THIRTY_SECONDS";
5730
5746
  StreamingInterval["ONE_MINUTE"] = "ONE_MINUTE";
@@ -5752,6 +5768,21 @@ exports.StreamingProtocol = void 0;
5752
5768
  StreamingProtocol["UNISWAP_V2"] = "UNISWAP_V2";
5753
5769
  StreamingProtocol["UNISWAP_V3"] = "UNISWAP_V3";
5754
5770
  StreamingProtocol["UNISWAP_V4"] = "UNISWAP_V4";
5771
+ StreamingProtocol["VIRTUALS_V2"] = "VIRTUALS_V2";
5772
+ StreamingProtocol["CLANKER"] = "CLANKER";
5773
+ StreamingProtocol["RAYDIUM_AMM"] = "RAYDIUM_AMM";
5774
+ StreamingProtocol["RAYDIUM_CPMM"] = "RAYDIUM_CPMM";
5775
+ StreamingProtocol["PUMP_DOT_FUN"] = "PUMP_DOT_FUN";
5776
+ StreamingProtocol["PUMP_FUN_AMM"] = "PUMP_FUN_AMM";
5777
+ StreamingProtocol["MOONSHOT"] = "MOONSHOT";
5778
+ StreamingProtocol["RAYDIUM_LAUNCH_LAB"] = "RAYDIUM_LAUNCH_LAB";
5779
+ StreamingProtocol["METEORA_DAMM"] = "METEORA_DAMM";
5780
+ StreamingProtocol["METEORA_DLMM"] = "METEORA_DLMM";
5781
+ StreamingProtocol["METEORA_DBC"] = "METEORA_DBC";
5782
+ StreamingProtocol["PANCAKESWAP_V2"] = "PANCAKESWAP_V2";
5783
+ StreamingProtocol["PANCAKESWAP_V3"] = "PANCAKESWAP_V3";
5784
+ StreamingProtocol["SHADOW_V2"] = "SHADOW_V2";
5785
+ StreamingProtocol["SHADOW_V3"] = "SHADOW_V3";
5755
5786
  })(exports.StreamingProtocol || (exports.StreamingProtocol = {}));
5756
5787
 
5757
5788
  exports.GoldRushClient = GoldRushClient;