@chainstream-io/sdk 0.1.5 → 0.1.6

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 (147) hide show
  1. package/README.md +46 -0
  2. package/dist/esm/index.d.ts +1 -1
  3. package/dist/esm/index.js +76 -60
  4. package/dist/esm/openapi/apis/BlockchainApi.js +61 -44
  5. package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +67 -50
  6. package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +38 -25
  7. package/dist/esm/openapi/apis/DexApi.js +205 -176
  8. package/dist/esm/openapi/apis/DexPoolApi.js +41 -28
  9. package/dist/esm/openapi/apis/EndpointApi.js +212 -175
  10. package/dist/esm/openapi/apis/IpfsApi.js +38 -25
  11. package/dist/esm/openapi/apis/JobsApi.js +65 -48
  12. package/dist/esm/openapi/apis/RankingApi.js +278 -249
  13. package/dist/esm/openapi/apis/RedPacketApi.js +294 -253
  14. package/dist/esm/openapi/apis/TokenApi.js +1145 -1056
  15. package/dist/esm/openapi/apis/TradeApi.js +233 -208
  16. package/dist/esm/openapi/apis/TransactionApi.js +42 -29
  17. package/dist/esm/openapi/apis/WalletApi.js +148 -123
  18. package/dist/esm/openapi/apis/WatchlistApi.js +41 -28
  19. package/dist/esm/openapi/runtime.js +81 -69
  20. package/dist/esm/stream/index.d.ts +3 -0
  21. package/dist/esm/stream/index.js +3 -0
  22. package/dist/esm/{api → stream}/stream.js +36 -29
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +75 -59
  25. package/dist/openapi/apis/BlockchainApi.js +62 -78
  26. package/dist/openapi/apis/DefiSolanaMoonshotApi.js +68 -84
  27. package/dist/openapi/apis/DefiSolanaPumpfunApi.js +39 -59
  28. package/dist/openapi/apis/DexApi.js +206 -210
  29. package/dist/openapi/apis/DexPoolApi.js +42 -62
  30. package/dist/openapi/apis/EndpointApi.js +213 -209
  31. package/dist/openapi/apis/IpfsApi.js +39 -59
  32. package/dist/openapi/apis/JobsApi.js +66 -82
  33. package/dist/openapi/apis/RankingApi.js +279 -283
  34. package/dist/openapi/apis/RedPacketApi.js +295 -287
  35. package/dist/openapi/apis/TokenApi.js +1146 -1090
  36. package/dist/openapi/apis/TradeApi.js +234 -242
  37. package/dist/openapi/apis/TransactionApi.js +43 -63
  38. package/dist/openapi/apis/WalletApi.js +149 -157
  39. package/dist/openapi/apis/WatchlistApi.js +42 -62
  40. package/dist/openapi/runtime.js +81 -69
  41. package/dist/stream/index.d.ts +3 -0
  42. package/dist/stream/index.js +19 -0
  43. package/dist/{api → stream}/stream.js +36 -29
  44. package/package.json +29 -29
  45. package/src/api/stream.fields.ts +0 -271
  46. package/src/api/stream.model.ts +0 -307
  47. package/src/api/stream.ts +0 -1086
  48. package/src/index.ts +0 -188
  49. package/src/openapi/apis/BlockchainApi.ts +0 -140
  50. package/src/openapi/apis/DefiSolanaMoonshotApi.ts +0 -145
  51. package/src/openapi/apis/DefiSolanaPumpfunApi.ts +0 -86
  52. package/src/openapi/apis/DexApi.ts +0 -490
  53. package/src/openapi/apis/DexPoolApi.ts +0 -107
  54. package/src/openapi/apis/EndpointApi.ts +0 -421
  55. package/src/openapi/apis/IpfsApi.ts +0 -66
  56. package/src/openapi/apis/JobsApi.ts +0 -135
  57. package/src/openapi/apis/RankingApi.ts +0 -939
  58. package/src/openapi/apis/RedPacketApi.ts +0 -621
  59. package/src/openapi/apis/TokenApi.ts +0 -2569
  60. package/src/openapi/apis/TradeApi.ts +0 -596
  61. package/src/openapi/apis/TransactionApi.ts +0 -95
  62. package/src/openapi/apis/WalletApi.ts +0 -365
  63. package/src/openapi/apis/WatchlistApi.ts +0 -107
  64. package/src/openapi/apis/index.ts +0 -17
  65. package/src/openapi/index.ts +0 -5
  66. package/src/openapi/models/BlockchainDTO.ts +0 -93
  67. package/src/openapi/models/BlockchainLatestBlockDTO.ts +0 -75
  68. package/src/openapi/models/BooleanResultDTO.ts +0 -66
  69. package/src/openapi/models/CalculatePnlInput.ts +0 -65
  70. package/src/openapi/models/Candle.ts +0 -130
  71. package/src/openapi/models/ClaimRedPacketInput.ts +0 -90
  72. package/src/openapi/models/CreateEndpointInput.ts +0 -121
  73. package/src/openapi/models/CreateRedPacketInput.ts +0 -124
  74. package/src/openapi/models/CreateRedPacketReply.ts +0 -75
  75. package/src/openapi/models/CreateTokenInput.ts +0 -139
  76. package/src/openapi/models/CreateTokenReply.ts +0 -75
  77. package/src/openapi/models/DexDTO.ts +0 -90
  78. package/src/openapi/models/DexPage.ts +0 -114
  79. package/src/openapi/models/DexPoolDTO.ts +0 -141
  80. package/src/openapi/models/EndpointListResponse.ts +0 -97
  81. package/src/openapi/models/EndpointOperationResponse.ts +0 -65
  82. package/src/openapi/models/EndpointResponse.ts +0 -145
  83. package/src/openapi/models/EndpointSecretResponse.ts +0 -65
  84. package/src/openapi/models/FilterCondition.ts +0 -135
  85. package/src/openapi/models/GainersAndLosersDTO.ts +0 -93
  86. package/src/openapi/models/GainersAndLosersPage.ts +0 -114
  87. package/src/openapi/models/JobDTO.ts +0 -75
  88. package/src/openapi/models/JobStreamingDTO.ts +0 -75
  89. package/src/openapi/models/Link.ts +0 -88
  90. package/src/openapi/models/MoonshotCreateTokenInput.ts +0 -182
  91. package/src/openapi/models/MoonshotCreateTokenReply.ts +0 -75
  92. package/src/openapi/models/MoonshotSubmitCreateToken200Response.ts +0 -73
  93. package/src/openapi/models/MoonshotSubmitCreateTokenInput.ts +0 -74
  94. package/src/openapi/models/PumpCreateTokenInput.ts +0 -180
  95. package/src/openapi/models/PumpCreateTokenReply.ts +0 -74
  96. package/src/openapi/models/QuoteResponse.ts +0 -105
  97. package/src/openapi/models/RedPacketClaimDTO.ts +0 -148
  98. package/src/openapi/models/RedPacketClaimsPage.ts +0 -110
  99. package/src/openapi/models/RedPacketDTO.ts +0 -229
  100. package/src/openapi/models/RedPacketReply.ts +0 -66
  101. package/src/openapi/models/RedPacketSendTxInput.ts +0 -66
  102. package/src/openapi/models/RedPacketSendTxResponse.ts +0 -66
  103. package/src/openapi/models/RedPacketsPage.ts +0 -110
  104. package/src/openapi/models/Resolution.ts +0 -61
  105. package/src/openapi/models/SendTxInput.ts +0 -93
  106. package/src/openapi/models/SendTxResponse.ts +0 -84
  107. package/src/openapi/models/SwapInput.ts +0 -157
  108. package/src/openapi/models/SwapReply.ts +0 -75
  109. package/src/openapi/models/SwapRouteInput.ts +0 -186
  110. package/src/openapi/models/SwapRouteResponse.ts +0 -101
  111. package/src/openapi/models/Token.ts +0 -251
  112. package/src/openapi/models/TokenCreationDTO.ts +0 -131
  113. package/src/openapi/models/TokenCreationPage.ts +0 -114
  114. package/src/openapi/models/TokenCreatorsDTO.ts +0 -81
  115. package/src/openapi/models/TokenExtraDTO.ts +0 -225
  116. package/src/openapi/models/TokenHolder.ts +0 -93
  117. package/src/openapi/models/TokenHolderPage.ts +0 -114
  118. package/src/openapi/models/TokenListPage.ts +0 -114
  119. package/src/openapi/models/TokenMarketData.ts +0 -190
  120. package/src/openapi/models/TokenMetadata.ts +0 -188
  121. package/src/openapi/models/TokenPage.ts +0 -122
  122. package/src/openapi/models/TokenPriceDTO.ts +0 -93
  123. package/src/openapi/models/TokenPricePage.ts +0 -114
  124. package/src/openapi/models/TokenSocialMediasDTO.ts +0 -161
  125. package/src/openapi/models/TokenStat.ts +0 -1152
  126. package/src/openapi/models/TopTradersDTO.ts +0 -164
  127. package/src/openapi/models/TopTradersPage.ts +0 -114
  128. package/src/openapi/models/TradeDetailDTO.ts +0 -282
  129. package/src/openapi/models/TradeEvent.ts +0 -184
  130. package/src/openapi/models/TradePage.ts +0 -114
  131. package/src/openapi/models/TradeType.ts +0 -53
  132. package/src/openapi/models/UpdateEndpointInput.ts +0 -129
  133. package/src/openapi/models/WalletBalanceDetailDTO.ts +0 -282
  134. package/src/openapi/models/WalletBalancesDTO.ts +0 -92
  135. package/src/openapi/models/WalletPnlDTO.ts +0 -264
  136. package/src/openapi/models/index.ts +0 -72
  137. package/src/openapi/runtime.ts +0 -432
  138. /package/dist/{api → esm/stream}/stream.d.ts +0 -0
  139. /package/dist/{api → esm/stream}/stream.fields.d.ts +0 -0
  140. /package/dist/esm/{api → stream}/stream.fields.js +0 -0
  141. /package/dist/{api → esm/stream}/stream.model.d.ts +0 -0
  142. /package/dist/esm/{api → stream}/stream.model.js +0 -0
  143. /package/dist/{esm/api → stream}/stream.d.ts +0 -0
  144. /package/dist/{esm/api → stream}/stream.fields.d.ts +0 -0
  145. /package/dist/{api → stream}/stream.fields.js +0 -0
  146. /package/dist/{esm/api → stream}/stream.model.d.ts +0 -0
  147. /package/dist/{api → stream}/stream.model.js +0 -0
@@ -1,190 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface TokenMarketData
20
- */
21
- export interface TokenMarketData {
22
- /**
23
- * DTO.TOKEN.MARKET_CAP.TOTAL_SUPPLY
24
- * @type {string}
25
- * @memberof TokenMarketData
26
- */
27
- totalSupply: string;
28
- /**
29
- * DTO.TOKEN.MARKET_CAP.MARKET_CAP_IN_SOL
30
- * @type {string}
31
- * @memberof TokenMarketData
32
- */
33
- marketCapInSol?: string;
34
- /**
35
- * DTO.TOKEN.MARKET_CAP.MARKET_CAP_IN_USD
36
- * @type {string}
37
- * @memberof TokenMarketData
38
- */
39
- marketCapInUsd: string;
40
- /**
41
- * DTO.TOKEN.MARKET_CAP.TOP10_TOTAL_HOLDINGS
42
- * @type {string}
43
- * @memberof TokenMarketData
44
- */
45
- top10TotalHoldings?: string;
46
- /**
47
- * DTO.TOKEN.MARKET_CAP.TOP10_HOLDINGS_RATIO
48
- * @type {string}
49
- * @memberof TokenMarketData
50
- */
51
- top10HoldingsRatio?: string;
52
- /**
53
- * DTO.TOKEN.MARKET_CAP.TOP100_TOTAL_HOLDINGS
54
- * @type {string}
55
- * @memberof TokenMarketData
56
- */
57
- top100TotalHoldings?: string;
58
- /**
59
- * DTO.TOKEN.MARKET_CAP.TOP100_HOLDINGS_RATIO
60
- * @type {string}
61
- * @memberof TokenMarketData
62
- */
63
- top100HoldingsRatio?: string;
64
- /**
65
- * DTO.TOKEN.MARKET_CAP.HOLDERS
66
- * @type {number}
67
- * @memberof TokenMarketData
68
- */
69
- holders: number;
70
- /**
71
- * DTO.TOKEN.MARKET_CAP.PRICE_IN_SOL
72
- * @type {string}
73
- * @memberof TokenMarketData
74
- */
75
- priceInSol?: string;
76
- /**
77
- * DTO.TOKEN.MARKET_CAP.PRICE_IN_USD
78
- * @type {string}
79
- * @memberof TokenMarketData
80
- */
81
- priceInUsd: string;
82
- /**
83
- * DTO.TOKEN.MARKET_CAP.LIQUIDITY_IN_SOL
84
- * @type {string}
85
- * @memberof TokenMarketData
86
- */
87
- tvlInSol?: string;
88
- /**
89
- * DTO.TOKEN.MARKET_CAP.LIQUIDITY_IN_USD
90
- * @type {string}
91
- * @memberof TokenMarketData
92
- */
93
- tvlInUsd: string;
94
- /**
95
- * DTO.TOKEN.MARKET_CAP.COMPLETION_RATIO
96
- * @type {string}
97
- * @memberof TokenMarketData
98
- */
99
- completionRatio?: string;
100
- /**
101
- * DTO.TOKEN.MARKET_CAP.DEV_COUNT
102
- * @type {number}
103
- * @memberof TokenMarketData
104
- */
105
- devTeamCount?: number;
106
- /**
107
- * DTO.TOKEN.MARKET_CAP.DEV_AMOUNT
108
- * @type {string}
109
- * @memberof TokenMarketData
110
- */
111
- devTeamAmount?: string;
112
- /**
113
- * DTO.TOKEN.MARKET_CAP.DEV_RATIO
114
- * @type {string}
115
- * @memberof TokenMarketData
116
- */
117
- devTeamRatio?: string;
118
- }
119
-
120
- /**
121
- * Check if a given object implements the TokenMarketData interface.
122
- */
123
- export function instanceOfTokenMarketData(value: object): value is TokenMarketData {
124
- if (!('totalSupply' in value) || value['totalSupply'] === undefined) return false;
125
- if (!('marketCapInUsd' in value) || value['marketCapInUsd'] === undefined) return false;
126
- if (!('holders' in value) || value['holders'] === undefined) return false;
127
- if (!('priceInUsd' in value) || value['priceInUsd'] === undefined) return false;
128
- if (!('tvlInUsd' in value) || value['tvlInUsd'] === undefined) return false;
129
- return true;
130
- }
131
-
132
- export function TokenMarketDataFromJSON(json: any): TokenMarketData {
133
- return TokenMarketDataFromJSONTyped(json, false);
134
- }
135
-
136
- export function TokenMarketDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenMarketData {
137
- if (json == null) {
138
- return json;
139
- }
140
- return {
141
-
142
- 'totalSupply': json['totalSupply'],
143
- 'marketCapInSol': json['marketCapInSol'] == null ? undefined : json['marketCapInSol'],
144
- 'marketCapInUsd': json['marketCapInUsd'],
145
- 'top10TotalHoldings': json['top10TotalHoldings'] == null ? undefined : json['top10TotalHoldings'],
146
- 'top10HoldingsRatio': json['top10HoldingsRatio'] == null ? undefined : json['top10HoldingsRatio'],
147
- 'top100TotalHoldings': json['top100TotalHoldings'] == null ? undefined : json['top100TotalHoldings'],
148
- 'top100HoldingsRatio': json['top100HoldingsRatio'] == null ? undefined : json['top100HoldingsRatio'],
149
- 'holders': json['holders'],
150
- 'priceInSol': json['priceInSol'] == null ? undefined : json['priceInSol'],
151
- 'priceInUsd': json['priceInUsd'],
152
- 'tvlInSol': json['tvlInSol'] == null ? undefined : json['tvlInSol'],
153
- 'tvlInUsd': json['tvlInUsd'],
154
- 'completionRatio': json['completionRatio'] == null ? undefined : json['completionRatio'],
155
- 'devTeamCount': json['devTeamCount'] == null ? undefined : json['devTeamCount'],
156
- 'devTeamAmount': json['devTeamAmount'] == null ? undefined : json['devTeamAmount'],
157
- 'devTeamRatio': json['devTeamRatio'] == null ? undefined : json['devTeamRatio'],
158
- };
159
- }
160
-
161
- export function TokenMarketDataToJSON(json: any): TokenMarketData {
162
- return TokenMarketDataToJSONTyped(json, false);
163
- }
164
-
165
- export function TokenMarketDataToJSONTyped(value?: TokenMarketData | null, ignoreDiscriminator: boolean = false): any {
166
- if (value == null) {
167
- return value;
168
- }
169
-
170
- return {
171
-
172
- 'totalSupply': value['totalSupply'],
173
- 'marketCapInSol': value['marketCapInSol'],
174
- 'marketCapInUsd': value['marketCapInUsd'],
175
- 'top10TotalHoldings': value['top10TotalHoldings'],
176
- 'top10HoldingsRatio': value['top10HoldingsRatio'],
177
- 'top100TotalHoldings': value['top100TotalHoldings'],
178
- 'top100HoldingsRatio': value['top100HoldingsRatio'],
179
- 'holders': value['holders'],
180
- 'priceInSol': value['priceInSol'],
181
- 'priceInUsd': value['priceInUsd'],
182
- 'tvlInSol': value['tvlInSol'],
183
- 'tvlInUsd': value['tvlInUsd'],
184
- 'completionRatio': value['completionRatio'],
185
- 'devTeamCount': value['devTeamCount'],
186
- 'devTeamAmount': value['devTeamAmount'],
187
- 'devTeamRatio': value['devTeamRatio'],
188
- };
189
- }
190
-
@@ -1,188 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { TokenExtraDTO } from './TokenExtraDTO';
17
- import {
18
- TokenExtraDTOFromJSON,
19
- TokenExtraDTOFromJSONTyped,
20
- TokenExtraDTOToJSON,
21
- TokenExtraDTOToJSONTyped,
22
- } from './TokenExtraDTO';
23
- import type { TokenCreatorsDTO } from './TokenCreatorsDTO';
24
- import {
25
- TokenCreatorsDTOFromJSON,
26
- TokenCreatorsDTOFromJSONTyped,
27
- TokenCreatorsDTOToJSON,
28
- TokenCreatorsDTOToJSONTyped,
29
- } from './TokenCreatorsDTO';
30
- import type { TokenSocialMediasDTO } from './TokenSocialMediasDTO';
31
- import {
32
- TokenSocialMediasDTOFromJSON,
33
- TokenSocialMediasDTOFromJSONTyped,
34
- TokenSocialMediasDTOToJSON,
35
- TokenSocialMediasDTOToJSONTyped,
36
- } from './TokenSocialMediasDTO';
37
-
38
- /**
39
- *
40
- * @export
41
- * @interface TokenMetadata
42
- */
43
- export interface TokenMetadata {
44
- /**
45
- * DTO.TOKEN.METADATA.CHAIN
46
- * @type {string}
47
- * @memberof TokenMetadata
48
- */
49
- chain: string;
50
- /**
51
- * DTO.TOKEN.METADATA.DECIMALS
52
- * @type {number}
53
- * @memberof TokenMetadata
54
- */
55
- decimals: number;
56
- /**
57
- * DTO.TOKEN.METADATA.NAME
58
- * @type {string}
59
- * @memberof TokenMetadata
60
- */
61
- name: string;
62
- /**
63
- * DTO.TOKEN.METADATA.SYMBOL
64
- * @type {string}
65
- * @memberof TokenMetadata
66
- */
67
- symbol: string;
68
- /**
69
- * DTO.TOKEN.METADATA.METADATA_ADDRESS
70
- * @type {string}
71
- * @memberof TokenMetadata
72
- */
73
- metadataAddress?: string;
74
- /**
75
- * DTO.TOKEN.METADATA.ADDRESS
76
- * @type {string}
77
- * @memberof TokenMetadata
78
- */
79
- address: string;
80
- /**
81
- * DTO.TOKEN.METADATA.TOKEN_CREATORS
82
- * @type {Array<TokenCreatorsDTO>}
83
- * @memberof TokenMetadata
84
- */
85
- tokenCreators?: Array<TokenCreatorsDTO>;
86
- /**
87
- * DTO.TOKEN.METADATA.IMAGE_URL
88
- * @type {string}
89
- * @memberof TokenMetadata
90
- */
91
- imageUrl?: string;
92
- /**
93
- * DTO.TOKEN.METADATA.URI
94
- * @type {string}
95
- * @memberof TokenMetadata
96
- */
97
- uri?: string;
98
- /**
99
- * DTO.TOKEN.METADATA.EXTRA
100
- * @type {TokenExtraDTO}
101
- * @memberof TokenMetadata
102
- */
103
- extra?: TokenExtraDTO;
104
- /**
105
- * DTO.TOKEN.METADATA.SOCIAL_MEDIAS
106
- * @type {TokenSocialMediasDTO}
107
- * @memberof TokenMetadata
108
- */
109
- socialMedias?: TokenSocialMediasDTO;
110
- /**
111
- * DTO.TOKEN.METADATA.TOKEN_CREATED_AT
112
- * @type {number}
113
- * @memberof TokenMetadata
114
- */
115
- tokenCreatedAt?: number;
116
- /**
117
- * DTO.TOKEN.METADATA.DESCRIPTION
118
- * @type {string}
119
- * @memberof TokenMetadata
120
- */
121
- description?: string;
122
- }
123
-
124
- /**
125
- * Check if a given object implements the TokenMetadata interface.
126
- */
127
- export function instanceOfTokenMetadata(value: object): value is TokenMetadata {
128
- if (!('chain' in value) || value['chain'] === undefined) return false;
129
- if (!('decimals' in value) || value['decimals'] === undefined) return false;
130
- if (!('name' in value) || value['name'] === undefined) return false;
131
- if (!('symbol' in value) || value['symbol'] === undefined) return false;
132
- if (!('address' in value) || value['address'] === undefined) return false;
133
- return true;
134
- }
135
-
136
- export function TokenMetadataFromJSON(json: any): TokenMetadata {
137
- return TokenMetadataFromJSONTyped(json, false);
138
- }
139
-
140
- export function TokenMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenMetadata {
141
- if (json == null) {
142
- return json;
143
- }
144
- return {
145
-
146
- 'chain': json['chain'],
147
- 'decimals': json['decimals'],
148
- 'name': json['name'],
149
- 'symbol': json['symbol'],
150
- 'metadataAddress': json['metadataAddress'] == null ? undefined : json['metadataAddress'],
151
- 'address': json['address'],
152
- 'tokenCreators': json['tokenCreators'] == null ? undefined : ((json['tokenCreators'] as Array<any>).map(TokenCreatorsDTOFromJSON)),
153
- 'imageUrl': json['imageUrl'] == null ? undefined : json['imageUrl'],
154
- 'uri': json['uri'] == null ? undefined : json['uri'],
155
- 'extra': json['extra'] == null ? undefined : TokenExtraDTOFromJSON(json['extra']),
156
- 'socialMedias': json['socialMedias'] == null ? undefined : TokenSocialMediasDTOFromJSON(json['socialMedias']),
157
- 'tokenCreatedAt': json['tokenCreatedAt'] == null ? undefined : json['tokenCreatedAt'],
158
- 'description': json['description'] == null ? undefined : json['description'],
159
- };
160
- }
161
-
162
- export function TokenMetadataToJSON(json: any): TokenMetadata {
163
- return TokenMetadataToJSONTyped(json, false);
164
- }
165
-
166
- export function TokenMetadataToJSONTyped(value?: TokenMetadata | null, ignoreDiscriminator: boolean = false): any {
167
- if (value == null) {
168
- return value;
169
- }
170
-
171
- return {
172
-
173
- 'chain': value['chain'],
174
- 'decimals': value['decimals'],
175
- 'name': value['name'],
176
- 'symbol': value['symbol'],
177
- 'metadataAddress': value['metadataAddress'],
178
- 'address': value['address'],
179
- 'tokenCreators': value['tokenCreators'] == null ? undefined : ((value['tokenCreators'] as Array<any>).map(TokenCreatorsDTOToJSON)),
180
- 'imageUrl': value['imageUrl'],
181
- 'uri': value['uri'],
182
- 'extra': TokenExtraDTOToJSON(value['extra']),
183
- 'socialMedias': TokenSocialMediasDTOToJSON(value['socialMedias']),
184
- 'tokenCreatedAt': value['tokenCreatedAt'],
185
- 'description': value['description'],
186
- };
187
- }
188
-
@@ -1,122 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { Token } from './Token';
17
- import {
18
- TokenFromJSON,
19
- TokenFromJSONTyped,
20
- TokenToJSON,
21
- TokenToJSONTyped,
22
- } from './Token';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface TokenPage
28
- */
29
- export interface TokenPage {
30
- /**
31
- * DTO.PAGE.HAS_NEXT
32
- * @type {boolean}
33
- * @memberof TokenPage
34
- */
35
- hasNext?: boolean;
36
- /**
37
- * DTO.PAGE.HAS_PREV
38
- * @type {boolean}
39
- * @memberof TokenPage
40
- */
41
- hasPrev?: boolean;
42
- /**
43
- * DTO.PAGE.START_CURSOR
44
- * @type {string}
45
- * @memberof TokenPage
46
- */
47
- startCursor?: string;
48
- /**
49
- * DTO.PAGE.END_CURSOR
50
- * @type {string}
51
- * @memberof TokenPage
52
- */
53
- endCursor?: string;
54
- /**
55
- * DTO.PAGE.TOTAL
56
- * @type {number}
57
- * @memberof TokenPage
58
- */
59
- total?: number;
60
- /**
61
- * DTO.TOKEN.PAGE.COUNTS_BY_PROTOCOLS
62
- * @type {object}
63
- * @memberof TokenPage
64
- */
65
- countsByProtocols?: object;
66
- /**
67
- * DTO.TOKEN.PAGE.DATA
68
- * @type {Array<Token>}
69
- * @memberof TokenPage
70
- */
71
- data: Array<Token>;
72
- }
73
-
74
- /**
75
- * Check if a given object implements the TokenPage interface.
76
- */
77
- export function instanceOfTokenPage(value: object): value is TokenPage {
78
- if (!('data' in value) || value['data'] === undefined) return false;
79
- return true;
80
- }
81
-
82
- export function TokenPageFromJSON(json: any): TokenPage {
83
- return TokenPageFromJSONTyped(json, false);
84
- }
85
-
86
- export function TokenPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenPage {
87
- if (json == null) {
88
- return json;
89
- }
90
- return {
91
-
92
- 'hasNext': json['hasNext'] == null ? undefined : json['hasNext'],
93
- 'hasPrev': json['hasPrev'] == null ? undefined : json['hasPrev'],
94
- 'startCursor': json['startCursor'] == null ? undefined : json['startCursor'],
95
- 'endCursor': json['endCursor'] == null ? undefined : json['endCursor'],
96
- 'total': json['total'] == null ? undefined : json['total'],
97
- 'countsByProtocols': json['countsByProtocols'] == null ? undefined : json['countsByProtocols'],
98
- 'data': ((json['data'] as Array<any>).map(TokenFromJSON)),
99
- };
100
- }
101
-
102
- export function TokenPageToJSON(json: any): TokenPage {
103
- return TokenPageToJSONTyped(json, false);
104
- }
105
-
106
- export function TokenPageToJSONTyped(value?: TokenPage | null, ignoreDiscriminator: boolean = false): any {
107
- if (value == null) {
108
- return value;
109
- }
110
-
111
- return {
112
-
113
- 'hasNext': value['hasNext'],
114
- 'hasPrev': value['hasPrev'],
115
- 'startCursor': value['startCursor'],
116
- 'endCursor': value['endCursor'],
117
- 'total': value['total'],
118
- 'countsByProtocols': value['countsByProtocols'],
119
- 'data': ((value['data'] as Array<any>).map(TokenToJSON)),
120
- };
121
- }
122
-
@@ -1,93 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface TokenPriceDTO
20
- */
21
- export interface TokenPriceDTO {
22
- /**
23
- * DTO.TOKEN.PRICE.TOKEN_ADDRESS
24
- * @type {string}
25
- * @memberof TokenPriceDTO
26
- */
27
- tokenAddress: string;
28
- /**
29
- * DTO.TOKEN.PRICE.PRICE_IN_USD
30
- * @type {string}
31
- * @memberof TokenPriceDTO
32
- */
33
- priceInUsd: string;
34
- /**
35
- * DTO.TOKEN.PRICE.PRICE_IN_NATIVE
36
- * @type {string}
37
- * @memberof TokenPriceDTO
38
- */
39
- priceInNative: string;
40
- /**
41
- * DTO.TOKEN.PRICE.TIMESTAMP
42
- * @type {number}
43
- * @memberof TokenPriceDTO
44
- */
45
- timestamp: number;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the TokenPriceDTO interface.
50
- */
51
- export function instanceOfTokenPriceDTO(value: object): value is TokenPriceDTO {
52
- if (!('tokenAddress' in value) || value['tokenAddress'] === undefined) return false;
53
- if (!('priceInUsd' in value) || value['priceInUsd'] === undefined) return false;
54
- if (!('priceInNative' in value) || value['priceInNative'] === undefined) return false;
55
- if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
56
- return true;
57
- }
58
-
59
- export function TokenPriceDTOFromJSON(json: any): TokenPriceDTO {
60
- return TokenPriceDTOFromJSONTyped(json, false);
61
- }
62
-
63
- export function TokenPriceDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenPriceDTO {
64
- if (json == null) {
65
- return json;
66
- }
67
- return {
68
-
69
- 'tokenAddress': json['tokenAddress'],
70
- 'priceInUsd': json['priceInUsd'],
71
- 'priceInNative': json['priceInNative'],
72
- 'timestamp': json['timestamp'],
73
- };
74
- }
75
-
76
- export function TokenPriceDTOToJSON(json: any): TokenPriceDTO {
77
- return TokenPriceDTOToJSONTyped(json, false);
78
- }
79
-
80
- export function TokenPriceDTOToJSONTyped(value?: TokenPriceDTO | null, ignoreDiscriminator: boolean = false): any {
81
- if (value == null) {
82
- return value;
83
- }
84
-
85
- return {
86
-
87
- 'tokenAddress': value['tokenAddress'],
88
- 'priceInUsd': value['priceInUsd'],
89
- 'priceInNative': value['priceInNative'],
90
- 'timestamp': value['timestamp'],
91
- };
92
- }
93
-
@@ -1,114 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { TokenPriceDTO } from './TokenPriceDTO';
17
- import {
18
- TokenPriceDTOFromJSON,
19
- TokenPriceDTOFromJSONTyped,
20
- TokenPriceDTOToJSON,
21
- TokenPriceDTOToJSONTyped,
22
- } from './TokenPriceDTO';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface TokenPricePage
28
- */
29
- export interface TokenPricePage {
30
- /**
31
- * DTO.PAGE.HAS_NEXT
32
- * @type {boolean}
33
- * @memberof TokenPricePage
34
- */
35
- hasNext?: boolean;
36
- /**
37
- * DTO.PAGE.HAS_PREV
38
- * @type {boolean}
39
- * @memberof TokenPricePage
40
- */
41
- hasPrev?: boolean;
42
- /**
43
- * DTO.PAGE.START_CURSOR
44
- * @type {string}
45
- * @memberof TokenPricePage
46
- */
47
- startCursor?: string;
48
- /**
49
- * DTO.PAGE.END_CURSOR
50
- * @type {string}
51
- * @memberof TokenPricePage
52
- */
53
- endCursor?: string;
54
- /**
55
- * DTO.PAGE.TOTAL
56
- * @type {number}
57
- * @memberof TokenPricePage
58
- */
59
- total?: number;
60
- /**
61
- * DTO.TOKEN.PRICE.PAGE.DATA
62
- * @type {Array<TokenPriceDTO>}
63
- * @memberof TokenPricePage
64
- */
65
- data: Array<TokenPriceDTO>;
66
- }
67
-
68
- /**
69
- * Check if a given object implements the TokenPricePage interface.
70
- */
71
- export function instanceOfTokenPricePage(value: object): value is TokenPricePage {
72
- if (!('data' in value) || value['data'] === undefined) return false;
73
- return true;
74
- }
75
-
76
- export function TokenPricePageFromJSON(json: any): TokenPricePage {
77
- return TokenPricePageFromJSONTyped(json, false);
78
- }
79
-
80
- export function TokenPricePageFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenPricePage {
81
- if (json == null) {
82
- return json;
83
- }
84
- return {
85
-
86
- 'hasNext': json['hasNext'] == null ? undefined : json['hasNext'],
87
- 'hasPrev': json['hasPrev'] == null ? undefined : json['hasPrev'],
88
- 'startCursor': json['startCursor'] == null ? undefined : json['startCursor'],
89
- 'endCursor': json['endCursor'] == null ? undefined : json['endCursor'],
90
- 'total': json['total'] == null ? undefined : json['total'],
91
- 'data': ((json['data'] as Array<any>).map(TokenPriceDTOFromJSON)),
92
- };
93
- }
94
-
95
- export function TokenPricePageToJSON(json: any): TokenPricePage {
96
- return TokenPricePageToJSONTyped(json, false);
97
- }
98
-
99
- export function TokenPricePageToJSONTyped(value?: TokenPricePage | null, ignoreDiscriminator: boolean = false): any {
100
- if (value == null) {
101
- return value;
102
- }
103
-
104
- return {
105
-
106
- 'hasNext': value['hasNext'],
107
- 'hasPrev': value['hasPrev'],
108
- 'startCursor': value['startCursor'],
109
- 'endCursor': value['endCursor'],
110
- 'total': value['total'],
111
- 'data': ((value['data'] as Array<any>).map(TokenPriceDTOToJSON)),
112
- };
113
- }
114
-