@chainstream-io/sdk 0.0.2 → 0.0.3

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.
Files changed (65) hide show
  1. package/dist/api/stream.d.ts +44 -43
  2. package/dist/api/stream.js +206 -196
  3. package/dist/api/stream.js.map +1 -1
  4. package/dist/index.d.ts +4 -2
  5. package/dist/index.js +3 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/openapi/apis/DexPoolApi.d.ts +0 -2
  8. package/dist/openapi/apis/DexPoolApi.js +0 -47
  9. package/dist/openapi/apis/DexPoolApi.js.map +1 -1
  10. package/dist/openapi/index.d.ts +1 -1
  11. package/dist/openapi/index.js.map +1 -1
  12. package/dist/openapi/models/ObjectSerializer.d.ts +3 -1
  13. package/dist/openapi/models/ObjectSerializer.js +9 -3
  14. package/dist/openapi/models/ObjectSerializer.js.map +1 -1
  15. package/dist/openapi/models/RankingToken.d.ts +2 -0
  16. package/dist/openapi/models/RankingToken.js +6 -0
  17. package/dist/openapi/models/RankingToken.js.map +1 -1
  18. package/dist/openapi/models/Token.d.ts +6 -4
  19. package/dist/openapi/models/Token.js +5 -5
  20. package/dist/openapi/models/Token.js.map +1 -1
  21. package/dist/openapi/models/TokenCreatorsDTO.d.ts +22 -0
  22. package/dist/openapi/models/TokenCreatorsDTO.js +34 -0
  23. package/dist/openapi/models/TokenCreatorsDTO.js.map +1 -0
  24. package/dist/openapi/models/TokenExtraDTO.d.ts +35 -0
  25. package/dist/openapi/models/TokenExtraDTO.js +112 -0
  26. package/dist/openapi/models/TokenExtraDTO.js.map +1 -0
  27. package/dist/openapi/models/TokenMarketData.d.ts +2 -2
  28. package/dist/openapi/models/TokenMarketData.js +4 -4
  29. package/dist/openapi/models/TokenMarketData.js.map +1 -1
  30. package/dist/openapi/models/TokenMetadata.d.ts +6 -4
  31. package/dist/openapi/models/TokenMetadata.js +5 -5
  32. package/dist/openapi/models/TokenMetadata.js.map +1 -1
  33. package/dist/openapi/models/TokenSocialMediasDTO.d.ts +32 -0
  34. package/dist/openapi/models/TokenSocialMediasDTO.js +94 -0
  35. package/dist/openapi/models/TokenSocialMediasDTO.js.map +1 -0
  36. package/dist/openapi/models/all.d.ts +3 -1
  37. package/dist/openapi/models/all.js +3 -1
  38. package/dist/openapi/models/all.js.map +1 -1
  39. package/dist/openapi/types/ObjectParamAPI.d.ts +0 -7
  40. package/dist/openapi/types/ObjectParamAPI.js +0 -6
  41. package/dist/openapi/types/ObjectParamAPI.js.map +1 -1
  42. package/dist/openapi/types/ObservableAPI.d.ts +0 -2
  43. package/dist/openapi/types/ObservableAPI.js +0 -18
  44. package/dist/openapi/types/ObservableAPI.js.map +1 -1
  45. package/dist/openapi/types/PromiseAPI.d.ts +0 -2
  46. package/dist/openapi/types/PromiseAPI.js +0 -8
  47. package/dist/openapi/types/PromiseAPI.js.map +1 -1
  48. package/package.json +1 -1
  49. package/src/api/stream.ts +441 -422
  50. package/src/index.ts +7 -1
  51. package/src/openapi/.openapi-generator/FILES +3 -1
  52. package/src/openapi/apis/DexPoolApi.ts +0 -85
  53. package/src/openapi/index.ts +1 -1
  54. package/src/openapi/models/ObjectSerializer.ts +9 -3
  55. package/src/openapi/models/RankingToken.ts +11 -0
  56. package/src/openapi/models/Token.ts +11 -9
  57. package/src/openapi/models/TokenCreatorsDTO.ts +59 -0
  58. package/src/openapi/models/{TokenExtraJsonDTO.ts → TokenExtraDTO.ts} +2 -2
  59. package/src/openapi/models/TokenMarketData.ts +6 -6
  60. package/src/openapi/models/TokenMetadata.ts +11 -9
  61. package/src/openapi/models/TokenSocialMediasDTO.ts +159 -0
  62. package/src/openapi/models/all.ts +3 -1
  63. package/src/openapi/types/ObjectParamAPI.ts +3 -43
  64. package/src/openapi/types/ObservableAPI.ts +3 -38
  65. package/src/openapi/types/PromiseAPI.ts +3 -25
package/src/index.ts CHANGED
@@ -18,6 +18,8 @@ import {
18
18
  BearerAuthentication,
19
19
  RedPacketApi,
20
20
  IpfsApi,
21
+ WatchlistApi,
22
+ BlockchainApi,
21
23
  } from "./openapi";
22
24
  import { EventSourcePolyfill } from "event-source-polyfill";
23
25
 
@@ -37,7 +39,7 @@ export interface DexAggregatorOptions {
37
39
  streamUrl?: string;
38
40
  }
39
41
 
40
- export const LIB_VERSION = "0.0.2";
42
+ export const LIB_VERSION = "0.0.3";
41
43
 
42
44
  class UserAgentMiddleware implements Middleware {
43
45
  public pre(context: RequestContext): Promise<RequestContext> {
@@ -65,6 +67,8 @@ export class DexClient {
65
67
  public readonly stream: StreamApi;
66
68
  public readonly redPacket: RedPacketApi;
67
69
  public readonly ipfs: IpfsApi;
70
+ public readonly blockchain: BlockchainApi;
71
+ public readonly watchlist: WatchlistApi;
68
72
  public constructor(
69
73
  accessToken: string | TokenProvider,
70
74
  options: DexAggregatorOptions = {}
@@ -104,6 +108,8 @@ export class DexClient {
104
108
  this.wallet = new WalletApi(config);
105
109
  this.redPacket = new RedPacketApi(config);
106
110
  this.ipfs = new IpfsApi(config);
111
+ this.blockchain = new BlockchainApi(config);
112
+ this.watchlist = new WatchlistApi(config);
107
113
  this.stream.connect();
108
114
  }
109
115
 
@@ -67,7 +67,8 @@ models/SwapRouteResponse.ts
67
67
  models/Token.ts
68
68
  models/TokenCreationDTO.ts
69
69
  models/TokenCreationPage.ts
70
- models/TokenExtraJsonDTO.ts
70
+ models/TokenCreatorsDTO.ts
71
+ models/TokenExtraDTO.ts
71
72
  models/TokenHolder.ts
72
73
  models/TokenHolderPage.ts
73
74
  models/TokenListPage.ts
@@ -76,6 +77,7 @@ models/TokenMetadata.ts
76
77
  models/TokenPage.ts
77
78
  models/TokenPriceDTO.ts
78
79
  models/TokenPricePage.ts
80
+ models/TokenSocialMediasDTO.ts
79
81
  models/TokenStat.ts
80
82
  models/TopTradersDTO.ts
81
83
  models/TopTradersPage.ts
@@ -49,63 +49,6 @@ export class DexPoolApiRequestFactory extends BaseAPIRequestFactory {
49
49
 
50
50
 
51
51
 
52
- let authMethod: SecurityAuthentication | undefined;
53
- // Apply auth methods
54
- authMethod = _config.authMethods["bearer"]
55
- if (authMethod?.applySecurityAuthentication) {
56
- await authMethod?.applySecurityAuthentication(requestContext);
57
- }
58
-
59
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
60
- if (defaultAuth?.applySecurityAuthentication) {
61
- await defaultAuth?.applySecurityAuthentication(requestContext);
62
- }
63
-
64
- return requestContext;
65
- }
66
-
67
- /**
68
- * CONTROLLER.DEXPOOL.STATS.DESCRIPTION
69
- * CONTROLLER.DEXPOOL.STATS.SUMMARY
70
- * @param chain GLOBAL.CHAIN.DESCRIPTION
71
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
72
- * @param poolAddress GLOBAL.POOLADDRESS.DESCRIPTION
73
- */
74
- public async getDexpoolStats(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, poolAddress: string, _options?: Configuration): Promise<RequestContext> {
75
- let _config = _options || this.configuration;
76
-
77
- // verify required parameter 'chain' is not null or undefined
78
- if (chain === null || chain === undefined) {
79
- throw new RequiredError("DexPoolApi", "getDexpoolStats", "chain");
80
- }
81
-
82
-
83
- // verify required parameter 'tokenAddress' is not null or undefined
84
- if (tokenAddress === null || tokenAddress === undefined) {
85
- throw new RequiredError("DexPoolApi", "getDexpoolStats", "tokenAddress");
86
- }
87
-
88
-
89
- // verify required parameter 'poolAddress' is not null or undefined
90
- if (poolAddress === null || poolAddress === undefined) {
91
- throw new RequiredError("DexPoolApi", "getDexpoolStats", "poolAddress");
92
- }
93
-
94
-
95
- // Path Params
96
- const localVarPath = '/v1/dexpools/{chain}/{tokenAddress}/{poolAddress}/stats'
97
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
98
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)))
99
- .replace('{' + 'poolAddress' + '}', encodeURIComponent(String(poolAddress)));
100
-
101
- // Make Request Context
102
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
103
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
104
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
105
- requestContext.setHeaderParam("x-req-id", randomId.toString())
106
-
107
-
108
-
109
52
  let authMethod: SecurityAuthentication | undefined;
110
53
  // Apply auth methods
111
54
  authMethod = _config.authMethods["bearer"]
@@ -153,32 +96,4 @@ export class DexPoolApiResponseProcessor {
153
96
  throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
154
97
  }
155
98
 
156
- /**
157
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
158
- * to the expected objects
159
- *
160
- * @params response Response returned by the server for a request to getDexpoolStats
161
- * @throws ApiException if the response code was not in [200, 299]
162
- */
163
- public async getDexpoolStatsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<any >> {
164
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
165
- if (isCodeInRange("200", response.httpStatusCode)) {
166
- const body: any = ObjectSerializer.deserialize(
167
- ObjectSerializer.parse(await response.body.text(), contentType),
168
- "any", ""
169
- ) as any;
170
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
171
- }
172
-
173
- // Work around for missing responses in specification, e.g. for petstore.yaml
174
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
175
- const body: any = ObjectSerializer.deserialize(
176
- ObjectSerializer.parse(await response.body.text(), contentType),
177
- "any", ""
178
- ) as any;
179
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
180
- }
181
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
182
- }
183
-
184
99
  }
@@ -8,5 +8,5 @@ export * from "./servers";
8
8
  export { RequiredError } from "./apis/baseapi";
9
9
 
10
10
  export type { PromiseMiddleware as Middleware } from './middleware';
11
- export { type BlockchainApiGetLatestBlockRequest, type BlockchainApiGetSupportedBlockchainsRequest, ObjectBlockchainApi as BlockchainApi, type DefiSolanaMoonshotApiMoonshotMintRequest, type DefiSolanaMoonshotApiMoonshotSubmitMintRequest, ObjectDefiSolanaMoonshotApi as DefiSolanaMoonshotApi, type DefiSolanaPumpfunApiPumpfunMintRequest, ObjectDefiSolanaPumpfunApi as DefiSolanaPumpfunApi, type DexApiListRequest, type DexApiMintRequest, type DexApiRouteRequest, type DexApiSwapRequest, ObjectDexApi as DexApi, type DexPoolApiGetDexpoolRequest, type DexPoolApiGetDexpoolStatsRequest, ObjectDexPoolApi as DexPoolApi, type IpfsApiPresignRequest, ObjectIpfsApi as IpfsApi, type JobsApiJobControllerGetJobRequest, type JobsApiJobControllerStreamingRequest, ObjectJobsApi as JobsApi, type RankingApiGetFinalStretchTokensRequest, type RankingApiGetHotTokensRequest, type RankingApiGetMigratedTokensRequest, type RankingApiGetNewTokensRequest, type RankingApiGetStocksTokensRequest, ObjectRankingApi as RankingApi, type RedPacketApiClaimRequest, type RedPacketApiCreateRequest, type RedPacketApiGetRequest, type RedPacketApiGetClaimsRequest, type RedPacketApiGetClaimsByAddressRequest, type RedPacketApiGetRedpacketsRequest, type RedPacketApiGetRedpacketsByAddressRequest, type RedPacketApiRedpacketSendRequest, ObjectRedPacketApi as RedPacketApi, type TokenApiGetCandlesRequest, type TokenApiGetCreationRequest, type TokenApiGetHoldersRequest, type TokenApiGetHoldersMultiRequest, type TokenApiGetMarketDataRequest, type TokenApiGetMarketDataMultiRequest, type TokenApiGetMetadataRequest, type TokenApiGetMetadataMultiRequest, type TokenApiGetMintAndBurnRequest, type TokenApiGetPoolsRequest, type TokenApiGetPriceByTimeRequest, type TokenApiGetPricesRequest, type TokenApiGetSecurityRequest, type TokenApiGetStatsRequest, type TokenApiGetStatsMultiRequest, type TokenApiGetTokenRequest, type TokenApiGetTokenListRequest, type TokenApiGetTokensRequest, type TokenApiGetTopHoldersRequest, type TokenApiSearchRequest, ObjectTokenApi as TokenApi, type TradeApiGetGainersLosersRequest, type TradeApiGetTopTradersRequest, type TradeApiGetTradesRequest, ObjectTradeApi as TradeApi, type TransactionApiSendRequest, ObjectTransactionApi as TransactionApi, type WalletApiCalculatePnlRequest, type WalletApiGetBalanceRequest, type WalletApiGetPnlRequest, type WalletApiGetPnlStatsRequest, ObjectWalletApi as WalletApi, type WatchlistApiWatchlistAddRequest, ObjectWatchlistApi as WatchlistApi } from './types/ObjectParamAPI';
11
+ export { type BlockchainApiGetLatestBlockRequest, type BlockchainApiGetSupportedBlockchainsRequest, ObjectBlockchainApi as BlockchainApi, type DefiSolanaMoonshotApiMoonshotMintRequest, type DefiSolanaMoonshotApiMoonshotSubmitMintRequest, ObjectDefiSolanaMoonshotApi as DefiSolanaMoonshotApi, type DefiSolanaPumpfunApiPumpfunMintRequest, ObjectDefiSolanaPumpfunApi as DefiSolanaPumpfunApi, type DexApiListRequest, type DexApiMintRequest, type DexApiRouteRequest, type DexApiSwapRequest, ObjectDexApi as DexApi, type DexPoolApiGetDexpoolRequest, ObjectDexPoolApi as DexPoolApi, type IpfsApiPresignRequest, ObjectIpfsApi as IpfsApi, type JobsApiJobControllerGetJobRequest, type JobsApiJobControllerStreamingRequest, ObjectJobsApi as JobsApi, type RankingApiGetFinalStretchTokensRequest, type RankingApiGetHotTokensRequest, type RankingApiGetMigratedTokensRequest, type RankingApiGetNewTokensRequest, type RankingApiGetStocksTokensRequest, ObjectRankingApi as RankingApi, type RedPacketApiClaimRequest, type RedPacketApiCreateRequest, type RedPacketApiGetRequest, type RedPacketApiGetClaimsRequest, type RedPacketApiGetClaimsByAddressRequest, type RedPacketApiGetRedpacketsRequest, type RedPacketApiGetRedpacketsByAddressRequest, type RedPacketApiRedpacketSendRequest, ObjectRedPacketApi as RedPacketApi, type TokenApiGetCandlesRequest, type TokenApiGetCreationRequest, type TokenApiGetHoldersRequest, type TokenApiGetHoldersMultiRequest, type TokenApiGetMarketDataRequest, type TokenApiGetMarketDataMultiRequest, type TokenApiGetMetadataRequest, type TokenApiGetMetadataMultiRequest, type TokenApiGetMintAndBurnRequest, type TokenApiGetPoolsRequest, type TokenApiGetPriceByTimeRequest, type TokenApiGetPricesRequest, type TokenApiGetSecurityRequest, type TokenApiGetStatsRequest, type TokenApiGetStatsMultiRequest, type TokenApiGetTokenRequest, type TokenApiGetTokenListRequest, type TokenApiGetTokensRequest, type TokenApiGetTopHoldersRequest, type TokenApiSearchRequest, ObjectTokenApi as TokenApi, type TradeApiGetGainersLosersRequest, type TradeApiGetTopTradersRequest, type TradeApiGetTradesRequest, ObjectTradeApi as TradeApi, type TransactionApiSendRequest, ObjectTransactionApi as TransactionApi, type WalletApiCalculatePnlRequest, type WalletApiGetBalanceRequest, type WalletApiGetPnlRequest, type WalletApiGetPnlStatsRequest, ObjectWalletApi as WalletApi, type WatchlistApiWatchlistAddRequest, ObjectWatchlistApi as WatchlistApi } from './types/ObjectParamAPI';
12
12
 
@@ -39,7 +39,8 @@ export * from '../models/SwapRouteResponse';
39
39
  export * from '../models/Token';
40
40
  export * from '../models/TokenCreationDTO';
41
41
  export * from '../models/TokenCreationPage';
42
- export * from '../models/TokenExtraJsonDTO';
42
+ export * from '../models/TokenCreatorsDTO';
43
+ export * from '../models/TokenExtraDTO';
43
44
  export * from '../models/TokenHolder';
44
45
  export * from '../models/TokenHolderPage';
45
46
  export * from '../models/TokenListPage';
@@ -48,6 +49,7 @@ export * from '../models/TokenMetadata';
48
49
  export * from '../models/TokenPage';
49
50
  export * from '../models/TokenPriceDTO';
50
51
  export * from '../models/TokenPricePage';
52
+ export * from '../models/TokenSocialMediasDTO';
51
53
  export * from '../models/TokenStat';
52
54
  export * from '../models/TopTradersDTO';
53
55
  export * from '../models/TopTradersPage';
@@ -100,7 +102,8 @@ import { SwapRouteResponse } from '../models/SwapRouteResponse';
100
102
  import { Token } from '../models/Token';
101
103
  import { TokenCreationDTO , TokenCreationDTOTypeEnum } from '../models/TokenCreationDTO';
102
104
  import { TokenCreationPage } from '../models/TokenCreationPage';
103
- import { TokenExtraJsonDTO } from '../models/TokenExtraJsonDTO';
105
+ import { TokenCreatorsDTO } from '../models/TokenCreatorsDTO';
106
+ import { TokenExtraDTO } from '../models/TokenExtraDTO';
104
107
  import { TokenHolder } from '../models/TokenHolder';
105
108
  import { TokenHolderPage } from '../models/TokenHolderPage';
106
109
  import { TokenListPage } from '../models/TokenListPage';
@@ -109,6 +112,7 @@ import { TokenMetadata } from '../models/TokenMetadata';
109
112
  import { TokenPage } from '../models/TokenPage';
110
113
  import { TokenPriceDTO } from '../models/TokenPriceDTO';
111
114
  import { TokenPricePage } from '../models/TokenPricePage';
115
+ import { TokenSocialMediasDTO } from '../models/TokenSocialMediasDTO';
112
116
  import { TokenStat } from '../models/TokenStat';
113
117
  import { TopTradersDTO } from '../models/TopTradersDTO';
114
118
  import { TopTradersPage } from '../models/TopTradersPage';
@@ -193,7 +197,8 @@ let typeMap: {[index: string]: any} = {
193
197
  "Token": Token,
194
198
  "TokenCreationDTO": TokenCreationDTO,
195
199
  "TokenCreationPage": TokenCreationPage,
196
- "TokenExtraJsonDTO": TokenExtraJsonDTO,
200
+ "TokenCreatorsDTO": TokenCreatorsDTO,
201
+ "TokenExtraDTO": TokenExtraDTO,
197
202
  "TokenHolder": TokenHolder,
198
203
  "TokenHolderPage": TokenHolderPage,
199
204
  "TokenListPage": TokenListPage,
@@ -202,6 +207,7 @@ let typeMap: {[index: string]: any} = {
202
207
  "TokenPage": TokenPage,
203
208
  "TokenPriceDTO": TokenPriceDTO,
204
209
  "TokenPricePage": TokenPricePage,
210
+ "TokenSocialMediasDTO": TokenSocialMediasDTO,
205
211
  "TokenStat": TokenStat,
206
212
  "TopTradersDTO": TopTradersDTO,
207
213
  "TopTradersPage": TopTradersPage,
@@ -12,6 +12,7 @@
12
12
 
13
13
  import { RankingTokenMarketData } from '../models/RankingTokenMarketData';
14
14
  import { RankingTokenStat } from '../models/RankingTokenStat';
15
+ import { TokenCreatorsDTO } from '../models/TokenCreatorsDTO';
15
16
  import { HttpFile } from '../http/http';
16
17
 
17
18
  export class RankingToken {
@@ -32,6 +33,10 @@ export class RankingToken {
32
33
  */
33
34
  'address': string;
34
35
  /**
36
+ * DTO.TOKEN.METADATA.TOKEN_CREATORS
37
+ */
38
+ 'tokenCreators'?: TokenCreatorsDTO;
39
+ /**
35
40
  * DTO.TOKEN.METADATA.IMAGE_URL
36
41
  */
37
42
  'imageUrl'?: string;
@@ -81,6 +86,12 @@ export class RankingToken {
81
86
  "type": "string",
82
87
  "format": ""
83
88
  },
89
+ {
90
+ "name": "tokenCreators",
91
+ "baseName": "tokenCreators",
92
+ "type": "TokenCreatorsDTO",
93
+ "format": ""
94
+ },
84
95
  {
85
96
  "name": "imageUrl",
86
97
  "baseName": "imageUrl",
@@ -11,8 +11,10 @@
11
11
  */
12
12
 
13
13
  import { DexPoolDTO } from '../models/DexPoolDTO';
14
- import { TokenExtraJsonDTO } from '../models/TokenExtraJsonDTO';
14
+ import { TokenCreatorsDTO } from '../models/TokenCreatorsDTO';
15
+ import { TokenExtraDTO } from '../models/TokenExtraDTO';
15
16
  import { TokenMarketData } from '../models/TokenMarketData';
17
+ import { TokenSocialMediasDTO } from '../models/TokenSocialMediasDTO';
16
18
  import { TokenStat } from '../models/TokenStat';
17
19
  import { HttpFile } from '../http/http';
18
20
 
@@ -44,7 +46,7 @@ export class Token {
44
46
  /**
45
47
  * DTO.TOKEN.METADATA.TOKEN_CREATORS
46
48
  */
47
- 'tokenCreators'?: string;
49
+ 'tokenCreators'?: TokenCreatorsDTO;
48
50
  /**
49
51
  * DTO.TOKEN.METADATA.IMAGE_URL
50
52
  */
@@ -56,11 +58,11 @@ export class Token {
56
58
  /**
57
59
  * DTO.TOKEN.METADATA.EXTRA
58
60
  */
59
- 'extraJson'?: TokenExtraJsonDTO;
61
+ 'extra'?: TokenExtraDTO;
60
62
  /**
61
63
  * DTO.TOKEN.METADATA.SOCIAL_MEDIAS
62
64
  */
63
- 'socialMedias'?: string;
65
+ 'socialMedias'?: TokenSocialMediasDTO;
64
66
  /**
65
67
  * DTO.TOKEN.METADATA.TOKEN_CREATED_AT
66
68
  */
@@ -138,7 +140,7 @@ export class Token {
138
140
  {
139
141
  "name": "tokenCreators",
140
142
  "baseName": "tokenCreators",
141
- "type": "string",
143
+ "type": "TokenCreatorsDTO",
142
144
  "format": ""
143
145
  },
144
146
  {
@@ -154,15 +156,15 @@ export class Token {
154
156
  "format": ""
155
157
  },
156
158
  {
157
- "name": "extraJson",
158
- "baseName": "extraJson",
159
- "type": "TokenExtraJsonDTO",
159
+ "name": "extra",
160
+ "baseName": "extra",
161
+ "type": "TokenExtraDTO",
160
162
  "format": ""
161
163
  },
162
164
  {
163
165
  "name": "socialMedias",
164
166
  "baseName": "socialMedias",
165
- "type": "string",
167
+ "type": "TokenSocialMediasDTO",
166
168
  "format": ""
167
169
  },
168
170
  {
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Dex Aggregator API
3
+ * Dex Aggregator API ⚡️
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ * Contact: ai@sx.ai
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { HttpFile } from '../http/http';
14
+
15
+ export class TokenCreatorsDTO {
16
+ /**
17
+ * DTO.TOKEN.CREATORS.ADDRESS
18
+ */
19
+ 'address'?: string;
20
+ /**
21
+ * DTO.TOKEN.CREATORS.SHARE
22
+ */
23
+ 'share'?: number;
24
+ /**
25
+ * DTO.TOKEN.CREATORS.IS_VERIFIED
26
+ */
27
+ 'isVerified'?: boolean;
28
+
29
+ static readonly discriminator: string | undefined = undefined;
30
+
31
+ static readonly mapping: {[index: string]: string} | undefined = undefined;
32
+
33
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
34
+ {
35
+ "name": "address",
36
+ "baseName": "address",
37
+ "type": "string",
38
+ "format": ""
39
+ },
40
+ {
41
+ "name": "share",
42
+ "baseName": "share",
43
+ "type": "number",
44
+ "format": ""
45
+ },
46
+ {
47
+ "name": "isVerified",
48
+ "baseName": "isVerified",
49
+ "type": "boolean",
50
+ "format": ""
51
+ } ];
52
+
53
+ static getAttributeTypeMap() {
54
+ return TokenCreatorsDTO.attributeTypeMap;
55
+ }
56
+
57
+ public constructor() {
58
+ }
59
+ }
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { HttpFile } from '../http/http';
14
14
 
15
- export class TokenExtraJsonDTO {
15
+ export class TokenExtraDTO {
16
16
  /**
17
17
  * DTO.TOKEN.EXTRA.COLLECTION_ADDRESS
18
18
  */
@@ -181,7 +181,7 @@ export class TokenExtraJsonDTO {
181
181
  } ];
182
182
 
183
183
  static getAttributeTypeMap() {
184
- return TokenExtraJsonDTO.attributeTypeMap;
184
+ return TokenExtraDTO.attributeTypeMap;
185
185
  }
186
186
 
187
187
  public constructor() {
@@ -72,11 +72,11 @@ export class TokenMarketData {
72
72
  /**
73
73
  * DTO.TOKEN.MARKET_CAP.CREATORS_AMOUNT
74
74
  */
75
- 'creatorsAmount'?: string;
75
+ 'creatorHoldings'?: string;
76
76
  /**
77
77
  * DTO.TOKEN.MARKET_CAP.CREATORS_RATIO
78
78
  */
79
- 'creatorsRatio'?: string;
79
+ 'creatorHoldingRatio'?: string;
80
80
 
81
81
  static readonly discriminator: string | undefined = undefined;
82
82
 
@@ -168,14 +168,14 @@ export class TokenMarketData {
168
168
  "format": ""
169
169
  },
170
170
  {
171
- "name": "creatorsAmount",
172
- "baseName": "creatorsAmount",
171
+ "name": "creatorHoldings",
172
+ "baseName": "creatorHoldings",
173
173
  "type": "string",
174
174
  "format": ""
175
175
  },
176
176
  {
177
- "name": "creatorsRatio",
178
- "baseName": "creatorsRatio",
177
+ "name": "creatorHoldingRatio",
178
+ "baseName": "creatorHoldingRatio",
179
179
  "type": "string",
180
180
  "format": ""
181
181
  } ];
@@ -10,7 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
 
13
- import { TokenExtraJsonDTO } from '../models/TokenExtraJsonDTO';
13
+ import { TokenCreatorsDTO } from '../models/TokenCreatorsDTO';
14
+ import { TokenExtraDTO } from '../models/TokenExtraDTO';
15
+ import { TokenSocialMediasDTO } from '../models/TokenSocialMediasDTO';
14
16
  import { HttpFile } from '../http/http';
15
17
 
16
18
  export class TokenMetadata {
@@ -41,7 +43,7 @@ export class TokenMetadata {
41
43
  /**
42
44
  * DTO.TOKEN.METADATA.TOKEN_CREATORS
43
45
  */
44
- 'tokenCreators'?: string;
46
+ 'tokenCreators'?: TokenCreatorsDTO;
45
47
  /**
46
48
  * DTO.TOKEN.METADATA.IMAGE_URL
47
49
  */
@@ -53,11 +55,11 @@ export class TokenMetadata {
53
55
  /**
54
56
  * DTO.TOKEN.METADATA.EXTRA
55
57
  */
56
- 'extraJson'?: TokenExtraJsonDTO;
58
+ 'extra'?: TokenExtraDTO;
57
59
  /**
58
60
  * DTO.TOKEN.METADATA.SOCIAL_MEDIAS
59
61
  */
60
- 'socialMedias'?: string;
62
+ 'socialMedias'?: TokenSocialMediasDTO;
61
63
  /**
62
64
  * DTO.TOKEN.METADATA.TOKEN_CREATED_AT
63
65
  */
@@ -111,7 +113,7 @@ export class TokenMetadata {
111
113
  {
112
114
  "name": "tokenCreators",
113
115
  "baseName": "tokenCreators",
114
- "type": "string",
116
+ "type": "TokenCreatorsDTO",
115
117
  "format": ""
116
118
  },
117
119
  {
@@ -127,15 +129,15 @@ export class TokenMetadata {
127
129
  "format": ""
128
130
  },
129
131
  {
130
- "name": "extraJson",
131
- "baseName": "extraJson",
132
- "type": "TokenExtraJsonDTO",
132
+ "name": "extra",
133
+ "baseName": "extra",
134
+ "type": "TokenExtraDTO",
133
135
  "format": ""
134
136
  },
135
137
  {
136
138
  "name": "socialMedias",
137
139
  "baseName": "socialMedias",
138
- "type": "string",
140
+ "type": "TokenSocialMediasDTO",
139
141
  "format": ""
140
142
  },
141
143
  {
@@ -0,0 +1,159 @@
1
+ /**
2
+ * Dex Aggregator API
3
+ * Dex Aggregator API ⚡️
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ * Contact: ai@sx.ai
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { HttpFile } from '../http/http';
14
+
15
+ export class TokenSocialMediasDTO {
16
+ /**
17
+ * DTO.TOKEN.SOCIAL_MEDIAS.TWITTER
18
+ */
19
+ 'twitter'?: string;
20
+ /**
21
+ * DTO.TOKEN.SOCIAL_MEDIAS.TELEGRAM
22
+ */
23
+ 'telegram'?: string;
24
+ /**
25
+ * DTO.TOKEN.SOCIAL_MEDIAS.WEBSITE
26
+ */
27
+ 'website'?: string;
28
+ /**
29
+ * DTO.TOKEN.SOCIAL_MEDIAS.TIKTOK
30
+ */
31
+ 'tiktok'?: string;
32
+ /**
33
+ * DTO.TOKEN.SOCIAL_MEDIAS.DISCORD
34
+ */
35
+ 'discord'?: string;
36
+ /**
37
+ * DTO.TOKEN.SOCIAL_MEDIAS.FACEBOOK
38
+ */
39
+ 'facebook'?: string;
40
+ /**
41
+ * DTO.TOKEN.SOCIAL_MEDIAS.GITHUB
42
+ */
43
+ 'github'?: string;
44
+ /**
45
+ * DTO.TOKEN.SOCIAL_MEDIAS.INSTAGRAM
46
+ */
47
+ 'instagram'?: string;
48
+ /**
49
+ * DTO.TOKEN.SOCIAL_MEDIAS.LINKEDIN
50
+ */
51
+ 'linkedin'?: string;
52
+ /**
53
+ * DTO.TOKEN.SOCIAL_MEDIAS.MEDIUM
54
+ */
55
+ 'medium'?: string;
56
+ /**
57
+ * DTO.TOKEN.SOCIAL_MEDIAS.REDDIT
58
+ */
59
+ 'reddit'?: string;
60
+ /**
61
+ * DTO.TOKEN.SOCIAL_MEDIAS.YOUTUBE
62
+ */
63
+ 'youtube'?: string;
64
+ /**
65
+ * DTO.TOKEN.SOCIAL_MEDIAS.BITBUCKET
66
+ */
67
+ 'bitbucket'?: string;
68
+
69
+ static readonly discriminator: string | undefined = undefined;
70
+
71
+ static readonly mapping: {[index: string]: string} | undefined = undefined;
72
+
73
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
74
+ {
75
+ "name": "twitter",
76
+ "baseName": "twitter",
77
+ "type": "string",
78
+ "format": ""
79
+ },
80
+ {
81
+ "name": "telegram",
82
+ "baseName": "telegram",
83
+ "type": "string",
84
+ "format": ""
85
+ },
86
+ {
87
+ "name": "website",
88
+ "baseName": "website",
89
+ "type": "string",
90
+ "format": ""
91
+ },
92
+ {
93
+ "name": "tiktok",
94
+ "baseName": "tiktok",
95
+ "type": "string",
96
+ "format": ""
97
+ },
98
+ {
99
+ "name": "discord",
100
+ "baseName": "discord",
101
+ "type": "string",
102
+ "format": ""
103
+ },
104
+ {
105
+ "name": "facebook",
106
+ "baseName": "facebook",
107
+ "type": "string",
108
+ "format": ""
109
+ },
110
+ {
111
+ "name": "github",
112
+ "baseName": "github",
113
+ "type": "string",
114
+ "format": ""
115
+ },
116
+ {
117
+ "name": "instagram",
118
+ "baseName": "instagram",
119
+ "type": "string",
120
+ "format": ""
121
+ },
122
+ {
123
+ "name": "linkedin",
124
+ "baseName": "linkedin",
125
+ "type": "string",
126
+ "format": ""
127
+ },
128
+ {
129
+ "name": "medium",
130
+ "baseName": "medium",
131
+ "type": "string",
132
+ "format": ""
133
+ },
134
+ {
135
+ "name": "reddit",
136
+ "baseName": "reddit",
137
+ "type": "string",
138
+ "format": ""
139
+ },
140
+ {
141
+ "name": "youtube",
142
+ "baseName": "youtube",
143
+ "type": "string",
144
+ "format": ""
145
+ },
146
+ {
147
+ "name": "bitbucket",
148
+ "baseName": "bitbucket",
149
+ "type": "string",
150
+ "format": ""
151
+ } ];
152
+
153
+ static getAttributeTypeMap() {
154
+ return TokenSocialMediasDTO.attributeTypeMap;
155
+ }
156
+
157
+ public constructor() {
158
+ }
159
+ }
@@ -39,7 +39,8 @@ export * from '../models/SwapRouteResponse'
39
39
  export * from '../models/Token'
40
40
  export * from '../models/TokenCreationDTO'
41
41
  export * from '../models/TokenCreationPage'
42
- export * from '../models/TokenExtraJsonDTO'
42
+ export * from '../models/TokenCreatorsDTO'
43
+ export * from '../models/TokenExtraDTO'
43
44
  export * from '../models/TokenHolder'
44
45
  export * from '../models/TokenHolderPage'
45
46
  export * from '../models/TokenListPage'
@@ -48,6 +49,7 @@ export * from '../models/TokenMetadata'
48
49
  export * from '../models/TokenPage'
49
50
  export * from '../models/TokenPriceDTO'
50
51
  export * from '../models/TokenPricePage'
52
+ export * from '../models/TokenSocialMediasDTO'
51
53
  export * from '../models/TokenStat'
52
54
  export * from '../models/TopTradersDTO'
53
55
  export * from '../models/TopTradersPage'