@liberfi.io/types 0.4.12 → 0.4.13

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.
@@ -1725,6 +1725,16 @@ interface ISubscribeClient {
1725
1725
  * @returns subscription
1726
1726
  */
1727
1727
  subscribeToken(chain: Chain, address: string, callback: (data: Array<TokenSubscribed>) => void): ISubscription;
1728
+ /**
1729
+ * Subscribe to multiple tokens' real-time data updates in batch. The client
1730
+ * internally manages per-token backend channels and delivers incremental
1731
+ * updates via `callback`.
1732
+ * @param chain chain id
1733
+ * @param addresses token addresses
1734
+ * @param callback receives incremental token updates
1735
+ * @returns subscription
1736
+ */
1737
+ subscribeTokens(chain: Chain, addresses: Array<string>, callback: (data: Array<TokenSubscribed>) => void): ISubscription;
1728
1738
  /**
1729
1739
  * Subscribe token new candles
1730
1740
  * @param chain chain id
@@ -1725,6 +1725,16 @@ interface ISubscribeClient {
1725
1725
  * @returns subscription
1726
1726
  */
1727
1727
  subscribeToken(chain: Chain, address: string, callback: (data: Array<TokenSubscribed>) => void): ISubscription;
1728
+ /**
1729
+ * Subscribe to multiple tokens' real-time data updates in batch. The client
1730
+ * internally manages per-token backend channels and delivers incremental
1731
+ * updates via `callback`.
1732
+ * @param chain chain id
1733
+ * @param addresses token addresses
1734
+ * @param callback receives incremental token updates
1735
+ * @returns subscription
1736
+ */
1737
+ subscribeTokens(chain: Chain, addresses: Array<string>, callback: (data: Array<TokenSubscribed>) => void): ISubscription;
1728
1738
  /**
1729
1739
  * Subscribe token new candles
1730
1740
  * @param chain chain id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liberfi.io/types",
3
- "version": "0.4.12",
3
+ "version": "0.4.13",
4
4
  "description": "Liberfi React SDK types",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -24,7 +24,7 @@
24
24
  "devDependencies": {
25
25
  "tsup": "^8.5.0",
26
26
  "typedoc": "^0.28.12",
27
- "tsconfig": "0.1.195"
27
+ "tsconfig": "0.1.196"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public"