@chainstream-io/sdk 0.2.7 → 0.2.8

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.
@@ -1,2 +1,2 @@
1
- export { C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext, fS as PostOptions, T as TokenProvider } from './chainstream-kxqV2g1Q.cjs';
1
+ export { C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext, h3 as PostOptions, T as TokenProvider } from './chainstream-KjjsTvPO.cjs';
2
2
  import 'axios';
@@ -1,2 +1,2 @@
1
- export { C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext, fS as PostOptions, T as TokenProvider } from './chainstream-kxqV2g1Q.js';
1
+ export { C as ChainStreamClient, y as ChainStreamClientOptions, z as ChainStreamRequestContext, h3 as PostOptions, T as TokenProvider } from './chainstream-KjjsTvPO.js';
2
2
  import 'axios';
@@ -1923,6 +1923,8 @@ __export(token_exports, {
1923
1923
  getToken: () => getToken,
1924
1924
  getTokenLiquiditySnapshots: () => getTokenLiquiditySnapshots,
1925
1925
  getTokenTraders: () => getTokenTraders,
1926
+ getTokenTransferTotal: () => getTokenTransferTotal,
1927
+ getTokenTransfers: () => getTokenTransfers,
1926
1928
  getTokens: () => getTokens,
1927
1929
  getTopHolders: () => getTopHolders,
1928
1930
  listToken: () => listToken,
@@ -2078,12 +2080,25 @@ var getTokenLiquiditySnapshots = (chain, tokenAddress, params, options) => {
2078
2080
  options
2079
2081
  );
2080
2082
  };
2083
+ var getTokenTransfers = (chain, tokenAddress, params, options) => {
2084
+ return chainstreamApiClient(
2085
+ { url: `/v1/token/${chain}/${tokenAddress}/transfers`, method: "GET", params },
2086
+ options
2087
+ );
2088
+ };
2089
+ var getTokenTransferTotal = (chain, tokenAddress, params, options) => {
2090
+ return chainstreamApiClient(
2091
+ { url: `/v1/token/${chain}/${tokenAddress}/transfer-total`, method: "GET", params },
2092
+ options
2093
+ );
2094
+ };
2081
2095
 
2082
2096
  // src/openapi-client/generated/trade/trade.ts
2083
2097
  var trade_exports = {};
2084
2098
  __export(trade_exports, {
2085
2099
  getActivities: () => getActivities,
2086
2100
  getTopTraders: () => getTopTraders,
2101
+ getTraderGainersLosers: () => getTraderGainersLosers,
2087
2102
  getTrades: () => getTrades
2088
2103
  });
2089
2104
  var getTrades = (chain, params, options) => {
@@ -2104,6 +2119,12 @@ var getTopTraders = (chain, params, options) => {
2104
2119
  options
2105
2120
  );
2106
2121
  };
2122
+ var getTraderGainersLosers = (chain, params, options) => {
2123
+ return chainstreamApiClient(
2124
+ { url: `/v1/trade/${chain}/trader-gainers-losers`, method: "GET", params },
2125
+ options
2126
+ );
2127
+ };
2107
2128
 
2108
2129
  // src/openapi-client/generated/transaction/transaction.ts
2109
2130
  var transaction_exports = {};
@@ -2145,26 +2166,35 @@ var getGasLimit = (chain, estimateGasLimitInput, options) => {
2145
2166
  var wallet_exports = {};
2146
2167
  __export(wallet_exports, {
2147
2168
  calculatePnl: () => calculatePnl,
2148
- getBalance: () => getBalance,
2149
2169
  getBalanceUpdates: () => getBalanceUpdates,
2170
+ getNetWorth: () => getNetWorth,
2171
+ getNetWorthChart: () => getNetWorthChart,
2172
+ getNetWorthDetails: () => getNetWorthDetails,
2173
+ getNetWorthSummary: () => getNetWorthSummary,
2150
2174
  getPnl: () => getPnl,
2151
- getPnlStats: () => getPnlStats
2175
+ getPnlByToken: () => getPnlByToken,
2176
+ getPnlByWallet: () => getPnlByWallet,
2177
+ getPnlDetails: () => getPnlDetails,
2178
+ getTokensBalance: () => getTokensBalance,
2179
+ getWalletFirstTx: () => getWalletFirstTx,
2180
+ getWalletTransferTotal: () => getWalletTransferTotal,
2181
+ getWalletTransfers: () => getWalletTransfers
2152
2182
  });
2153
- var getPnl = (chain, walletAddress, params, options) => {
2183
+ var getNetWorthSummary = (chain, params, options) => {
2154
2184
  return chainstreamApiClient(
2155
- { url: `/v1/wallet/${chain}/${walletAddress}/pnl`, method: "GET", params },
2185
+ { url: `/v1/wallet/${chain}/net-worth-summary`, method: "GET", params },
2156
2186
  options
2157
2187
  );
2158
2188
  };
2159
- var getPnlStats = (chain, walletAddress, options) => {
2189
+ var getPnlByWallet = (chain, params, options) => {
2160
2190
  return chainstreamApiClient(
2161
- { url: `/v1/wallet/${chain}/${walletAddress}/stats`, method: "GET" },
2191
+ { url: `/v1/wallet/${chain}/pnl-by-wallet`, method: "GET", params },
2162
2192
  options
2163
2193
  );
2164
2194
  };
2165
- var getBalance = (chain, walletAddress, params, options) => {
2195
+ var getWalletFirstTx = (chain, params, options) => {
2166
2196
  return chainstreamApiClient(
2167
- { url: `/v1/wallet/${chain}/${walletAddress}/balance`, method: "GET", params },
2197
+ { url: `/v1/wallet/${chain}/first-tx`, method: "GET", params },
2168
2198
  options
2169
2199
  );
2170
2200
  };
@@ -2179,6 +2209,60 @@ var calculatePnl = (chain, walletAddress, calculatePnlInput, options) => {
2179
2209
  options
2180
2210
  );
2181
2211
  };
2212
+ var getNetWorth = (chain, walletAddress, params, options) => {
2213
+ return chainstreamApiClient(
2214
+ { url: `/v1/wallet/${chain}/${walletAddress}/net-worth`, method: "GET", params },
2215
+ options
2216
+ );
2217
+ };
2218
+ var getTokensBalance = (chain, walletAddress, params, options) => {
2219
+ return chainstreamApiClient(
2220
+ { url: `/v1/wallet/${chain}/${walletAddress}/tokens-balance`, method: "GET", params },
2221
+ options
2222
+ );
2223
+ };
2224
+ var getNetWorthChart = (chain, walletAddress, params, options) => {
2225
+ return chainstreamApiClient(
2226
+ { url: `/v1/wallet/${chain}/${walletAddress}/net-worth-chart`, method: "GET", params },
2227
+ options
2228
+ );
2229
+ };
2230
+ var getNetWorthDetails = (chain, walletAddress, params, options) => {
2231
+ return chainstreamApiClient(
2232
+ { url: `/v1/wallet/${chain}/${walletAddress}/net-worth-details`, method: "GET", params },
2233
+ options
2234
+ );
2235
+ };
2236
+ var getPnl = (chain, walletAddress, params, options) => {
2237
+ return chainstreamApiClient(
2238
+ { url: `/v1/wallet/${chain}/${walletAddress}/pnl`, method: "GET", params },
2239
+ options
2240
+ );
2241
+ };
2242
+ var getPnlDetails = (chain, walletAddress, params, options) => {
2243
+ return chainstreamApiClient(
2244
+ { url: `/v1/wallet/${chain}/${walletAddress}/pnl-details`, method: "GET", params },
2245
+ options
2246
+ );
2247
+ };
2248
+ var getPnlByToken = (chain, walletAddress, params, options) => {
2249
+ return chainstreamApiClient(
2250
+ { url: `/v1/wallet/${chain}/${walletAddress}/pnl-by-token`, method: "GET", params },
2251
+ options
2252
+ );
2253
+ };
2254
+ var getWalletTransfers = (chain, walletAddress, params, options) => {
2255
+ return chainstreamApiClient(
2256
+ { url: `/v1/wallet/${chain}/${walletAddress}/transfers`, method: "GET", params },
2257
+ options
2258
+ );
2259
+ };
2260
+ var getWalletTransferTotal = (chain, walletAddress, params, options) => {
2261
+ return chainstreamApiClient(
2262
+ { url: `/v1/wallet/${chain}/${walletAddress}/transfer-total`, method: "GET", params },
2263
+ options
2264
+ );
2265
+ };
2182
2266
  var getBalanceUpdates = (chain, walletAddress, params, options) => {
2183
2267
  return chainstreamApiClient(
2184
2268
  { url: `/v1/wallet/${chain}/${walletAddress}/balance-updates`, method: "GET", params },