@chainstream-io/sdk 0.2.12 → 0.2.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.
- package/dist/{chainstream-BY9CsB3h.d.cts → chainstream-DeYuVTgJ.d.cts} +28 -2
- package/dist/{chainstream-BY9CsB3h.d.ts → chainstream-DeYuVTgJ.d.ts} +28 -2
- package/dist/chainstream.cjs +7 -0
- package/dist/chainstream.cjs.map +1 -1
- package/dist/chainstream.d.cts +1 -1
- package/dist/chainstream.d.ts +1 -1
- package/dist/chainstream.mjs +7 -0
- package/dist/chainstream.mjs.map +1 -1
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +8 -0
- package/dist/index.mjs.map +1 -1
- package/dist/stream/index.d.cts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/chainstream.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext,
|
|
1
|
+
export { C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext, he as PostOptions, T as TokenProvider } from './chainstream-DeYuVTgJ.cjs';
|
|
2
2
|
import 'axios';
|
package/dist/chainstream.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext,
|
|
1
|
+
export { C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext, he as PostOptions, T as TokenProvider } from './chainstream-DeYuVTgJ.js';
|
|
2
2
|
import 'axios';
|
package/dist/chainstream.mjs
CHANGED
|
@@ -2198,6 +2198,7 @@ __export(wallet_exports, {
|
|
|
2198
2198
|
calculatePnl: () => calculatePnl,
|
|
2199
2199
|
getBalanceUpdates: () => getBalanceUpdates,
|
|
2200
2200
|
getNetWorth: () => getNetWorth,
|
|
2201
|
+
getNetWorthByTokens: () => getNetWorthByTokens,
|
|
2201
2202
|
getNetWorthChart: () => getNetWorthChart,
|
|
2202
2203
|
getNetWorthDetails: () => getNetWorthDetails,
|
|
2203
2204
|
getNetWorthSummary: () => getNetWorthSummary,
|
|
@@ -2245,6 +2246,12 @@ var getNetWorth = (chain, walletAddress, params, options) => {
|
|
|
2245
2246
|
options
|
|
2246
2247
|
);
|
|
2247
2248
|
};
|
|
2249
|
+
var getNetWorthByTokens = (chain, walletAddress, params, options) => {
|
|
2250
|
+
return chainstreamApiClient(
|
|
2251
|
+
{ url: `/v1/wallet/${chain}/${walletAddress}/net-worth/tokens`, method: "GET", params },
|
|
2252
|
+
options
|
|
2253
|
+
);
|
|
2254
|
+
};
|
|
2248
2255
|
var getTokensBalance = (chain, walletAddress, params, options) => {
|
|
2249
2256
|
return chainstreamApiClient(
|
|
2250
2257
|
{ url: `/v1/wallet/${chain}/${walletAddress}/tokens-balance`, method: "GET", params },
|