@covalenthq/client-sdk 2.3.4 → 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 +1 -0
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/src/utils/types/StreamingService.types.d.ts +5 -3
- package/package.json +1 -1
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
|
+
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
|
`;
|
|
@@ -5724,9 +5736,11 @@ exports.StreamingChain = void 0;
|
|
|
5724
5736
|
StreamingChain["SONIC_MAINNET"] = "SONIC_MAINNET";
|
|
5725
5737
|
StreamingChain["ETH_MAINNET"] = "ETH_MAINNET";
|
|
5726
5738
|
StreamingChain["BSC_MAINNET"] = "BSC_MAINNET";
|
|
5739
|
+
StreamingChain["HYPERCORE_MAINNET"] = "HYPERCORE_MAINNET";
|
|
5727
5740
|
})(exports.StreamingChain || (exports.StreamingChain = {}));
|
|
5728
5741
|
exports.StreamingInterval = void 0;
|
|
5729
5742
|
(function (StreamingInterval) {
|
|
5743
|
+
StreamingInterval["ONE_SECOND"] = "ONE_SECOND";
|
|
5730
5744
|
StreamingInterval["FIFTEEN_SECONDS"] = "FIFTEEN_SECONDS";
|
|
5731
5745
|
StreamingInterval["THIRTY_SECONDS"] = "THIRTY_SECONDS";
|
|
5732
5746
|
StreamingInterval["ONE_MINUTE"] = "ONE_MINUTE";
|