@chainstream-io/sdk 0.1.14 → 0.1.15

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/index.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- export { q as DexAggregatorOptions, r as DexClient, p as DexRequestContext, L as LIB_VERSION, P as PostOptions, o as TokenProvider } from './index-xAErxElK.cjs';
2
- import './WatchlistApi-Cxzs25LV.cjs';
1
+ export { q as DexAggregatorOptions, r as DexClient, p as DexRequestContext, L as LIB_VERSION, P as PostOptions, o as TokenProvider } from './index-Cr-iw2fc.cjs';
2
+ import './WatchlistApi-DnhIL4RN.cjs';
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { q as DexAggregatorOptions, r as DexClient, p as DexRequestContext, L as LIB_VERSION, P as PostOptions, o as TokenProvider } from './index-C1Sl0lsa.js';
2
- import './WatchlistApi-Cxzs25LV.js';
1
+ export { q as DexAggregatorOptions, r as DexClient, p as DexRequestContext, L as LIB_VERSION, P as PostOptions, o as TokenProvider } from './index-Bjo4kHPR.js';
2
+ import './WatchlistApi-DnhIL4RN.js';
package/dist/index.mjs CHANGED
@@ -1769,9 +1769,35 @@ function TokenMarketDataFromJSONTyped(json, ignoreDiscriminator) {
1769
1769
  "tvlInSol": json["tvlInSol"] == null ? void 0 : json["tvlInSol"],
1770
1770
  "tvlInUsd": json["tvlInUsd"],
1771
1771
  "completionRatio": json["completionRatio"] == null ? void 0 : json["completionRatio"],
1772
- "devTeamCount": json["devTeamCount"] == null ? void 0 : json["devTeamCount"],
1773
- "devTeamAmount": json["devTeamAmount"] == null ? void 0 : json["devTeamAmount"],
1774
- "devTeamRatio": json["devTeamRatio"] == null ? void 0 : json["devTeamRatio"]
1772
+ "top50TotalHoldings": json["top50TotalHoldings"] == null ? void 0 : json["top50TotalHoldings"],
1773
+ "top50HoldingsRatio": json["top50HoldingsRatio"] == null ? void 0 : json["top50HoldingsRatio"],
1774
+ "bluechipTotalHolders": json["bluechipTotalHolders"] == null ? void 0 : json["bluechipTotalHolders"],
1775
+ "bluechipTotalHoldings": json["bluechipTotalHoldings"] == null ? void 0 : json["bluechipTotalHoldings"],
1776
+ "bluechipHoldingsRatio": json["bluechipHoldingsRatio"] == null ? void 0 : json["bluechipHoldingsRatio"],
1777
+ "kolTotalHolders": json["kolTotalHolders"] == null ? void 0 : json["kolTotalHolders"],
1778
+ "kolTotalHoldings": json["kolTotalHoldings"] == null ? void 0 : json["kolTotalHoldings"],
1779
+ "kolHoldingsRatio": json["kolHoldingsRatio"] == null ? void 0 : json["kolHoldingsRatio"],
1780
+ "sniperTotalHolders": json["sniperTotalHolders"] == null ? void 0 : json["sniperTotalHolders"],
1781
+ "sniperTotalHoldings": json["sniperTotalHoldings"] == null ? void 0 : json["sniperTotalHoldings"],
1782
+ "sniperHoldingsRatio": json["sniperHoldingsRatio"] == null ? void 0 : json["sniperHoldingsRatio"],
1783
+ "proTotalHolders": json["proTotalHolders"] == null ? void 0 : json["proTotalHolders"],
1784
+ "proTotalHoldings": json["proTotalHoldings"] == null ? void 0 : json["proTotalHoldings"],
1785
+ "proHoldingsRatio": json["proHoldingsRatio"] == null ? void 0 : json["proHoldingsRatio"],
1786
+ "insiderTotalHolders": json["insiderTotalHolders"] == null ? void 0 : json["insiderTotalHolders"],
1787
+ "insiderTotalHoldings": json["insiderTotalHoldings"] == null ? void 0 : json["insiderTotalHoldings"],
1788
+ "insiderHoldingsRatio": json["insiderHoldingsRatio"] == null ? void 0 : json["insiderHoldingsRatio"],
1789
+ "sandwishTotalHolders": json["sandwishTotalHolders"] == null ? void 0 : json["sandwishTotalHolders"],
1790
+ "sandwishTotalHoldings": json["sandwishTotalHoldings"] == null ? void 0 : json["sandwishTotalHoldings"],
1791
+ "sandwishHoldingsRatio": json["sandwishHoldingsRatio"] == null ? void 0 : json["sandwishHoldingsRatio"],
1792
+ "freshTotalHolders": json["freshTotalHolders"] == null ? void 0 : json["freshTotalHolders"],
1793
+ "freshTotalHoldings": json["freshTotalHoldings"] == null ? void 0 : json["freshTotalHoldings"],
1794
+ "freshHoldingsRatio": json["freshHoldingsRatio"] == null ? void 0 : json["freshHoldingsRatio"],
1795
+ "bundleTotalHolders": json["bundleTotalHolders"] == null ? void 0 : json["bundleTotalHolders"],
1796
+ "bundleTotalHoldings": json["bundleTotalHoldings"] == null ? void 0 : json["bundleTotalHoldings"],
1797
+ "bundleHoldingsRatio": json["bundleHoldingsRatio"] == null ? void 0 : json["bundleHoldingsRatio"],
1798
+ "devTotalHolders": json["devTotalHolders"] == null ? void 0 : json["devTotalHolders"],
1799
+ "devTotalHoldings": json["devTotalHoldings"] == null ? void 0 : json["devTotalHoldings"],
1800
+ "devHoldingsRatio": json["devHoldingsRatio"] == null ? void 0 : json["devHoldingsRatio"]
1775
1801
  };
1776
1802
  }
1777
1803
 
@@ -1869,7 +1895,9 @@ function TokenMetadataFromJSONTyped(json, ignoreDiscriminator) {
1869
1895
  "extra": json["extra"] == null ? void 0 : TokenExtraDTOFromJSON(json["extra"]),
1870
1896
  "socialMedias": json["socialMedias"] == null ? void 0 : TokenSocialMediasDTOFromJSON(json["socialMedias"]),
1871
1897
  "tokenCreatedAt": json["tokenCreatedAt"] == null ? void 0 : json["tokenCreatedAt"],
1872
- "description": json["description"] == null ? void 0 : json["description"]
1898
+ "description": json["description"] == null ? void 0 : json["description"],
1899
+ "devTotalTokens": json["devTotalTokens"] == null ? void 0 : json["devTotalTokens"],
1900
+ "devLastTokenCreatedAt": json["devLastTokenCreatedAt"] == null ? void 0 : json["devLastTokenCreatedAt"]
1873
1901
  };
1874
1902
  }
1875
1903
 
@@ -2598,6 +2626,8 @@ function TokenFromJSONTyped(json, ignoreDiscriminator) {
2598
2626
  "socialMedias": json["socialMedias"] == null ? void 0 : TokenSocialMediasDTOFromJSON(json["socialMedias"]),
2599
2627
  "tokenCreatedAt": json["tokenCreatedAt"] == null ? void 0 : json["tokenCreatedAt"],
2600
2628
  "description": json["description"] == null ? void 0 : json["description"],
2629
+ "devTotalTokens": json["devTotalTokens"] == null ? void 0 : json["devTotalTokens"],
2630
+ "devLastTokenCreatedAt": json["devLastTokenCreatedAt"] == null ? void 0 : json["devLastTokenCreatedAt"],
2601
2631
  "market": json["market"] == null ? void 0 : json["market"],
2602
2632
  "extension": json["extension"] == null ? void 0 : json["extension"],
2603
2633
  "stats": json["stats"] == null ? void 0 : TokenStatFromJSON(json["stats"]),
@@ -2748,6 +2778,31 @@ function TokenPricePageFromJSONTyped(json, ignoreDiscriminator) {
2748
2778
  };
2749
2779
  }
2750
2780
 
2781
+ // src/openapi/models/TokenTrader.ts
2782
+ function TokenTraderFromJSON(json) {
2783
+ return TokenTraderFromJSONTyped(json, false);
2784
+ }
2785
+ function TokenTraderFromJSONTyped(json, ignoreDiscriminator) {
2786
+ if (json == null) {
2787
+ return json;
2788
+ }
2789
+ return {
2790
+ "address": json["address"],
2791
+ "transactionSignature": json["transactionSignature"] == null ? void 0 : json["transactionSignature"],
2792
+ "blockHash": json["blockHash"] == null ? void 0 : json["blockHash"],
2793
+ "blockHeight": json["blockHeight"] == null ? void 0 : json["blockHeight"],
2794
+ "blockSlot": json["blockSlot"] == null ? void 0 : json["blockSlot"],
2795
+ "blockTimestamp": json["blockTimestamp"] == null ? void 0 : new Date(json["blockTimestamp"]),
2796
+ "onchainCreatedAt": json["onchainCreatedAt"] == null ? void 0 : json["onchainCreatedAt"],
2797
+ "tradeCount": json["tradeCount"] == null ? void 0 : json["tradeCount"],
2798
+ "tradeAmountInNative": json["tradeAmountInNative"] == null ? void 0 : json["tradeAmountInNative"],
2799
+ "tradeAmountInUsd": json["tradeAmountInUsd"] == null ? void 0 : json["tradeAmountInUsd"],
2800
+ "percentileRankTradeCount": json["percentileRankTradeCount"] == null ? void 0 : json["percentileRankTradeCount"],
2801
+ "percentileRankTradeAmountInUsd": json["percentileRankTradeAmountInUsd"] == null ? void 0 : json["percentileRankTradeAmountInUsd"],
2802
+ "rankTradeAmountInUsd": json["rankTradeAmountInUsd"] == null ? void 0 : json["rankTradeAmountInUsd"]
2803
+ };
2804
+ }
2805
+
2751
2806
  // src/openapi/models/TopTradersDTO.ts
2752
2807
  function TopTradersDTOFromJSON(json) {
2753
2808
  return TopTradersDTOFromJSONTyped(json, false);
@@ -5099,6 +5154,58 @@ var TokenApi = class extends BaseAPI {
5099
5154
  const response = await this.getTokenRaw(requestParameters, initOverrides);
5100
5155
  return await response.value();
5101
5156
  }
5157
+ /**
5158
+ * CONTROLLER.TOKEN.GET_TOKEN_TRADERS.DESCRIPTION
5159
+ * CONTROLLER.TOKEN.GET_TOKEN_TRADERS.SUMMARY
5160
+ */
5161
+ async getTokenTradersRaw(requestParameters, initOverrides) {
5162
+ if (requestParameters["chain"] == null) {
5163
+ throw new RequiredError(
5164
+ "chain",
5165
+ 'Required parameter "chain" was null or undefined when calling getTokenTraders().'
5166
+ );
5167
+ }
5168
+ if (requestParameters["tokenAddress"] == null) {
5169
+ throw new RequiredError(
5170
+ "tokenAddress",
5171
+ 'Required parameter "tokenAddress" was null or undefined when calling getTokenTraders().'
5172
+ );
5173
+ }
5174
+ if (requestParameters["tag"] == null) {
5175
+ throw new RequiredError(
5176
+ "tag",
5177
+ 'Required parameter "tag" was null or undefined when calling getTokenTraders().'
5178
+ );
5179
+ }
5180
+ const queryParameters = {};
5181
+ const headerParameters = {};
5182
+ if (this.configuration && this.configuration.accessToken) {
5183
+ const token = this.configuration.accessToken;
5184
+ const tokenString = await token("bearer", []);
5185
+ if (tokenString) {
5186
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
5187
+ }
5188
+ }
5189
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/traders/{tag}`;
5190
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters["chain"])));
5191
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters["tokenAddress"])));
5192
+ urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters["tag"])));
5193
+ const response = await this.request({
5194
+ path: urlPath,
5195
+ method: "GET",
5196
+ headers: headerParameters,
5197
+ query: queryParameters
5198
+ }, initOverrides);
5199
+ return new JSONApiResponse(response, (jsonValue) => jsonValue.map(TokenTraderFromJSON));
5200
+ }
5201
+ /**
5202
+ * CONTROLLER.TOKEN.GET_TOKEN_TRADERS.DESCRIPTION
5203
+ * CONTROLLER.TOKEN.GET_TOKEN_TRADERS.SUMMARY
5204
+ */
5205
+ async getTokenTraders(requestParameters, initOverrides) {
5206
+ const response = await this.getTokenTradersRaw(requestParameters, initOverrides);
5207
+ return await response.value();
5208
+ }
5102
5209
  /**
5103
5210
  * CONTROLLER.TOKEN.GET_TOKENS.DESCRIPTION
5104
5211
  * CONTROLLER.TOKEN.GET_TOKENS.SUMMARY