@chainstream-io/sdk 0.1.5 → 0.1.7
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/README.md +46 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +76 -60
- package/dist/esm/openapi/apis/BlockchainApi.js +61 -44
- package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +67 -50
- package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +38 -25
- package/dist/esm/openapi/apis/DexApi.js +205 -176
- package/dist/esm/openapi/apis/DexPoolApi.js +41 -28
- package/dist/esm/openapi/apis/EndpointApi.js +212 -175
- package/dist/esm/openapi/apis/IpfsApi.js +38 -25
- package/dist/esm/openapi/apis/JobsApi.js +65 -48
- package/dist/esm/openapi/apis/RankingApi.js +278 -249
- package/dist/esm/openapi/apis/RedPacketApi.js +294 -253
- package/dist/esm/openapi/apis/TokenApi.js +1145 -1056
- package/dist/esm/openapi/apis/TradeApi.js +233 -208
- package/dist/esm/openapi/apis/TransactionApi.js +42 -29
- package/dist/esm/openapi/apis/WalletApi.js +148 -123
- package/dist/esm/openapi/apis/WatchlistApi.js +41 -28
- package/dist/esm/openapi/runtime.js +81 -69
- package/dist/esm/stream/index.d.ts +3 -0
- package/dist/esm/stream/index.js +3 -0
- package/dist/esm/{api → stream}/stream.js +36 -29
- package/dist/index.d.ts +1 -1
- package/dist/index.js +75 -59
- package/dist/openapi/apis/BlockchainApi.js +62 -78
- package/dist/openapi/apis/DefiSolanaMoonshotApi.js +68 -84
- package/dist/openapi/apis/DefiSolanaPumpfunApi.js +39 -59
- package/dist/openapi/apis/DexApi.js +206 -210
- package/dist/openapi/apis/DexPoolApi.js +42 -62
- package/dist/openapi/apis/EndpointApi.js +213 -209
- package/dist/openapi/apis/IpfsApi.js +39 -59
- package/dist/openapi/apis/JobsApi.js +66 -82
- package/dist/openapi/apis/RankingApi.js +279 -283
- package/dist/openapi/apis/RedPacketApi.js +295 -287
- package/dist/openapi/apis/TokenApi.js +1146 -1090
- package/dist/openapi/apis/TradeApi.js +234 -242
- package/dist/openapi/apis/TransactionApi.js +43 -63
- package/dist/openapi/apis/WalletApi.js +149 -157
- package/dist/openapi/apis/WatchlistApi.js +42 -62
- package/dist/openapi/runtime.js +81 -69
- package/dist/stream/index.d.ts +3 -0
- package/dist/stream/index.js +19 -0
- package/dist/{api → stream}/stream.js +36 -29
- package/package.json +29 -26
- package/src/api/stream.fields.ts +0 -271
- package/src/api/stream.model.ts +0 -307
- package/src/api/stream.ts +0 -1086
- package/src/index.ts +0 -188
- package/src/openapi/apis/BlockchainApi.ts +0 -140
- package/src/openapi/apis/DefiSolanaMoonshotApi.ts +0 -145
- package/src/openapi/apis/DefiSolanaPumpfunApi.ts +0 -86
- package/src/openapi/apis/DexApi.ts +0 -490
- package/src/openapi/apis/DexPoolApi.ts +0 -107
- package/src/openapi/apis/EndpointApi.ts +0 -421
- package/src/openapi/apis/IpfsApi.ts +0 -66
- package/src/openapi/apis/JobsApi.ts +0 -135
- package/src/openapi/apis/RankingApi.ts +0 -939
- package/src/openapi/apis/RedPacketApi.ts +0 -621
- package/src/openapi/apis/TokenApi.ts +0 -2569
- package/src/openapi/apis/TradeApi.ts +0 -596
- package/src/openapi/apis/TransactionApi.ts +0 -95
- package/src/openapi/apis/WalletApi.ts +0 -365
- package/src/openapi/apis/WatchlistApi.ts +0 -107
- package/src/openapi/apis/index.ts +0 -17
- package/src/openapi/index.ts +0 -5
- package/src/openapi/models/BlockchainDTO.ts +0 -93
- package/src/openapi/models/BlockchainLatestBlockDTO.ts +0 -75
- package/src/openapi/models/BooleanResultDTO.ts +0 -66
- package/src/openapi/models/CalculatePnlInput.ts +0 -65
- package/src/openapi/models/Candle.ts +0 -130
- package/src/openapi/models/ClaimRedPacketInput.ts +0 -90
- package/src/openapi/models/CreateEndpointInput.ts +0 -121
- package/src/openapi/models/CreateRedPacketInput.ts +0 -124
- package/src/openapi/models/CreateRedPacketReply.ts +0 -75
- package/src/openapi/models/CreateTokenInput.ts +0 -139
- package/src/openapi/models/CreateTokenReply.ts +0 -75
- package/src/openapi/models/DexDTO.ts +0 -90
- package/src/openapi/models/DexPage.ts +0 -114
- package/src/openapi/models/DexPoolDTO.ts +0 -141
- package/src/openapi/models/EndpointListResponse.ts +0 -97
- package/src/openapi/models/EndpointOperationResponse.ts +0 -65
- package/src/openapi/models/EndpointResponse.ts +0 -145
- package/src/openapi/models/EndpointSecretResponse.ts +0 -65
- package/src/openapi/models/FilterCondition.ts +0 -135
- package/src/openapi/models/GainersAndLosersDTO.ts +0 -93
- package/src/openapi/models/GainersAndLosersPage.ts +0 -114
- package/src/openapi/models/JobDTO.ts +0 -75
- package/src/openapi/models/JobStreamingDTO.ts +0 -75
- package/src/openapi/models/Link.ts +0 -88
- package/src/openapi/models/MoonshotCreateTokenInput.ts +0 -182
- package/src/openapi/models/MoonshotCreateTokenReply.ts +0 -75
- package/src/openapi/models/MoonshotSubmitCreateToken200Response.ts +0 -73
- package/src/openapi/models/MoonshotSubmitCreateTokenInput.ts +0 -74
- package/src/openapi/models/PumpCreateTokenInput.ts +0 -180
- package/src/openapi/models/PumpCreateTokenReply.ts +0 -74
- package/src/openapi/models/QuoteResponse.ts +0 -105
- package/src/openapi/models/RedPacketClaimDTO.ts +0 -148
- package/src/openapi/models/RedPacketClaimsPage.ts +0 -110
- package/src/openapi/models/RedPacketDTO.ts +0 -229
- package/src/openapi/models/RedPacketReply.ts +0 -66
- package/src/openapi/models/RedPacketSendTxInput.ts +0 -66
- package/src/openapi/models/RedPacketSendTxResponse.ts +0 -66
- package/src/openapi/models/RedPacketsPage.ts +0 -110
- package/src/openapi/models/Resolution.ts +0 -61
- package/src/openapi/models/SendTxInput.ts +0 -93
- package/src/openapi/models/SendTxResponse.ts +0 -84
- package/src/openapi/models/SwapInput.ts +0 -157
- package/src/openapi/models/SwapReply.ts +0 -75
- package/src/openapi/models/SwapRouteInput.ts +0 -186
- package/src/openapi/models/SwapRouteResponse.ts +0 -101
- package/src/openapi/models/Token.ts +0 -251
- package/src/openapi/models/TokenCreationDTO.ts +0 -131
- package/src/openapi/models/TokenCreationPage.ts +0 -114
- package/src/openapi/models/TokenCreatorsDTO.ts +0 -81
- package/src/openapi/models/TokenExtraDTO.ts +0 -225
- package/src/openapi/models/TokenHolder.ts +0 -93
- package/src/openapi/models/TokenHolderPage.ts +0 -114
- package/src/openapi/models/TokenListPage.ts +0 -114
- package/src/openapi/models/TokenMarketData.ts +0 -190
- package/src/openapi/models/TokenMetadata.ts +0 -188
- package/src/openapi/models/TokenPage.ts +0 -122
- package/src/openapi/models/TokenPriceDTO.ts +0 -93
- package/src/openapi/models/TokenPricePage.ts +0 -114
- package/src/openapi/models/TokenSocialMediasDTO.ts +0 -161
- package/src/openapi/models/TokenStat.ts +0 -1152
- package/src/openapi/models/TopTradersDTO.ts +0 -164
- package/src/openapi/models/TopTradersPage.ts +0 -114
- package/src/openapi/models/TradeDetailDTO.ts +0 -282
- package/src/openapi/models/TradeEvent.ts +0 -184
- package/src/openapi/models/TradePage.ts +0 -114
- package/src/openapi/models/TradeType.ts +0 -53
- package/src/openapi/models/UpdateEndpointInput.ts +0 -129
- package/src/openapi/models/WalletBalanceDetailDTO.ts +0 -282
- package/src/openapi/models/WalletBalancesDTO.ts +0 -92
- package/src/openapi/models/WalletPnlDTO.ts +0 -264
- package/src/openapi/models/index.ts +0 -72
- package/src/openapi/runtime.ts +0 -432
- /package/dist/{api → esm/stream}/stream.d.ts +0 -0
- /package/dist/{api → esm/stream}/stream.fields.d.ts +0 -0
- /package/dist/esm/{api → stream}/stream.fields.js +0 -0
- /package/dist/{api → esm/stream}/stream.model.d.ts +0 -0
- /package/dist/esm/{api → stream}/stream.model.js +0 -0
- /package/dist/{esm/api → stream}/stream.d.ts +0 -0
- /package/dist/{esm/api → stream}/stream.fields.d.ts +0 -0
- /package/dist/{api → stream}/stream.fields.js +0 -0
- /package/dist/{esm/api → stream}/stream.model.d.ts +0 -0
- /package/dist/{api → stream}/stream.model.js +0 -0
|
@@ -1,251 +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 { DexPoolDTO } from './DexPoolDTO';
|
|
17
|
-
import {
|
|
18
|
-
DexPoolDTOFromJSON,
|
|
19
|
-
DexPoolDTOFromJSONTyped,
|
|
20
|
-
DexPoolDTOToJSON,
|
|
21
|
-
DexPoolDTOToJSONTyped,
|
|
22
|
-
} from './DexPoolDTO';
|
|
23
|
-
import type { TokenMarketData } from './TokenMarketData';
|
|
24
|
-
import {
|
|
25
|
-
TokenMarketDataFromJSON,
|
|
26
|
-
TokenMarketDataFromJSONTyped,
|
|
27
|
-
TokenMarketDataToJSON,
|
|
28
|
-
TokenMarketDataToJSONTyped,
|
|
29
|
-
} from './TokenMarketData';
|
|
30
|
-
import type { TokenExtraDTO } from './TokenExtraDTO';
|
|
31
|
-
import {
|
|
32
|
-
TokenExtraDTOFromJSON,
|
|
33
|
-
TokenExtraDTOFromJSONTyped,
|
|
34
|
-
TokenExtraDTOToJSON,
|
|
35
|
-
TokenExtraDTOToJSONTyped,
|
|
36
|
-
} from './TokenExtraDTO';
|
|
37
|
-
import type { TokenCreatorsDTO } from './TokenCreatorsDTO';
|
|
38
|
-
import {
|
|
39
|
-
TokenCreatorsDTOFromJSON,
|
|
40
|
-
TokenCreatorsDTOFromJSONTyped,
|
|
41
|
-
TokenCreatorsDTOToJSON,
|
|
42
|
-
TokenCreatorsDTOToJSONTyped,
|
|
43
|
-
} from './TokenCreatorsDTO';
|
|
44
|
-
import type { TokenStat } from './TokenStat';
|
|
45
|
-
import {
|
|
46
|
-
TokenStatFromJSON,
|
|
47
|
-
TokenStatFromJSONTyped,
|
|
48
|
-
TokenStatToJSON,
|
|
49
|
-
TokenStatToJSONTyped,
|
|
50
|
-
} from './TokenStat';
|
|
51
|
-
import type { TokenSocialMediasDTO } from './TokenSocialMediasDTO';
|
|
52
|
-
import {
|
|
53
|
-
TokenSocialMediasDTOFromJSON,
|
|
54
|
-
TokenSocialMediasDTOFromJSONTyped,
|
|
55
|
-
TokenSocialMediasDTOToJSON,
|
|
56
|
-
TokenSocialMediasDTOToJSONTyped,
|
|
57
|
-
} from './TokenSocialMediasDTO';
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @export
|
|
62
|
-
* @interface Token
|
|
63
|
-
*/
|
|
64
|
-
export interface Token {
|
|
65
|
-
/**
|
|
66
|
-
* DTO.TOKEN.METADATA.CHAIN
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof Token
|
|
69
|
-
*/
|
|
70
|
-
chain: string;
|
|
71
|
-
/**
|
|
72
|
-
* DTO.TOKEN.METADATA.DECIMALS
|
|
73
|
-
* @type {number}
|
|
74
|
-
* @memberof Token
|
|
75
|
-
*/
|
|
76
|
-
decimals: number;
|
|
77
|
-
/**
|
|
78
|
-
* DTO.TOKEN.METADATA.NAME
|
|
79
|
-
* @type {string}
|
|
80
|
-
* @memberof Token
|
|
81
|
-
*/
|
|
82
|
-
name: string;
|
|
83
|
-
/**
|
|
84
|
-
* DTO.TOKEN.METADATA.SYMBOL
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof Token
|
|
87
|
-
*/
|
|
88
|
-
symbol: string;
|
|
89
|
-
/**
|
|
90
|
-
* DTO.TOKEN.METADATA.METADATA_ADDRESS
|
|
91
|
-
* @type {string}
|
|
92
|
-
* @memberof Token
|
|
93
|
-
*/
|
|
94
|
-
metadataAddress?: string;
|
|
95
|
-
/**
|
|
96
|
-
* DTO.TOKEN.METADATA.ADDRESS
|
|
97
|
-
* @type {string}
|
|
98
|
-
* @memberof Token
|
|
99
|
-
*/
|
|
100
|
-
address: string;
|
|
101
|
-
/**
|
|
102
|
-
* DTO.TOKEN.METADATA.TOKEN_CREATORS
|
|
103
|
-
* @type {Array<TokenCreatorsDTO>}
|
|
104
|
-
* @memberof Token
|
|
105
|
-
*/
|
|
106
|
-
tokenCreators?: Array<TokenCreatorsDTO>;
|
|
107
|
-
/**
|
|
108
|
-
* DTO.TOKEN.METADATA.IMAGE_URL
|
|
109
|
-
* @type {string}
|
|
110
|
-
* @memberof Token
|
|
111
|
-
*/
|
|
112
|
-
imageUrl?: string;
|
|
113
|
-
/**
|
|
114
|
-
* DTO.TOKEN.METADATA.URI
|
|
115
|
-
* @type {string}
|
|
116
|
-
* @memberof Token
|
|
117
|
-
*/
|
|
118
|
-
uri?: string;
|
|
119
|
-
/**
|
|
120
|
-
* DTO.TOKEN.METADATA.EXTRA
|
|
121
|
-
* @type {TokenExtraDTO}
|
|
122
|
-
* @memberof Token
|
|
123
|
-
*/
|
|
124
|
-
extra?: TokenExtraDTO;
|
|
125
|
-
/**
|
|
126
|
-
* DTO.TOKEN.METADATA.SOCIAL_MEDIAS
|
|
127
|
-
* @type {TokenSocialMediasDTO}
|
|
128
|
-
* @memberof Token
|
|
129
|
-
*/
|
|
130
|
-
socialMedias?: TokenSocialMediasDTO;
|
|
131
|
-
/**
|
|
132
|
-
* DTO.TOKEN.METADATA.TOKEN_CREATED_AT
|
|
133
|
-
* @type {number}
|
|
134
|
-
* @memberof Token
|
|
135
|
-
*/
|
|
136
|
-
tokenCreatedAt?: number;
|
|
137
|
-
/**
|
|
138
|
-
* DTO.TOKEN.METADATA.DESCRIPTION
|
|
139
|
-
* @type {string}
|
|
140
|
-
* @memberof Token
|
|
141
|
-
*/
|
|
142
|
-
description?: string;
|
|
143
|
-
/**
|
|
144
|
-
* DTO.TOKEN.MARKET_ID
|
|
145
|
-
* @type {string}
|
|
146
|
-
* @memberof Token
|
|
147
|
-
*/
|
|
148
|
-
market?: string;
|
|
149
|
-
/**
|
|
150
|
-
* DTO.TOKEN.EXTENSION
|
|
151
|
-
* @type {object}
|
|
152
|
-
* @memberof Token
|
|
153
|
-
*/
|
|
154
|
-
extension?: object;
|
|
155
|
-
/**
|
|
156
|
-
* DTO.TOKEN.STATS
|
|
157
|
-
* @type {TokenStat}
|
|
158
|
-
* @memberof Token
|
|
159
|
-
*/
|
|
160
|
-
stats: TokenStat;
|
|
161
|
-
/**
|
|
162
|
-
* DTO.TOKEN.LIQUIDITY
|
|
163
|
-
* @type {Array<DexPoolDTO>}
|
|
164
|
-
* @memberof Token
|
|
165
|
-
*/
|
|
166
|
-
liquidity?: Array<DexPoolDTO>;
|
|
167
|
-
/**
|
|
168
|
-
* DTO.TOKEN.MARKET_CAP_INFO
|
|
169
|
-
* @type {TokenMarketData}
|
|
170
|
-
* @memberof Token
|
|
171
|
-
*/
|
|
172
|
-
marketData: TokenMarketData;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Check if a given object implements the Token interface.
|
|
177
|
-
*/
|
|
178
|
-
export function instanceOfToken(value: object): value is Token {
|
|
179
|
-
if (!('chain' in value) || value['chain'] === undefined) return false;
|
|
180
|
-
if (!('decimals' in value) || value['decimals'] === undefined) return false;
|
|
181
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
182
|
-
if (!('symbol' in value) || value['symbol'] === undefined) return false;
|
|
183
|
-
if (!('address' in value) || value['address'] === undefined) return false;
|
|
184
|
-
if (!('stats' in value) || value['stats'] === undefined) return false;
|
|
185
|
-
if (!('marketData' in value) || value['marketData'] === undefined) return false;
|
|
186
|
-
return true;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export function TokenFromJSON(json: any): Token {
|
|
190
|
-
return TokenFromJSONTyped(json, false);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export function TokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): Token {
|
|
194
|
-
if (json == null) {
|
|
195
|
-
return json;
|
|
196
|
-
}
|
|
197
|
-
return {
|
|
198
|
-
|
|
199
|
-
'chain': json['chain'],
|
|
200
|
-
'decimals': json['decimals'],
|
|
201
|
-
'name': json['name'],
|
|
202
|
-
'symbol': json['symbol'],
|
|
203
|
-
'metadataAddress': json['metadataAddress'] == null ? undefined : json['metadataAddress'],
|
|
204
|
-
'address': json['address'],
|
|
205
|
-
'tokenCreators': json['tokenCreators'] == null ? undefined : ((json['tokenCreators'] as Array<any>).map(TokenCreatorsDTOFromJSON)),
|
|
206
|
-
'imageUrl': json['imageUrl'] == null ? undefined : json['imageUrl'],
|
|
207
|
-
'uri': json['uri'] == null ? undefined : json['uri'],
|
|
208
|
-
'extra': json['extra'] == null ? undefined : TokenExtraDTOFromJSON(json['extra']),
|
|
209
|
-
'socialMedias': json['socialMedias'] == null ? undefined : TokenSocialMediasDTOFromJSON(json['socialMedias']),
|
|
210
|
-
'tokenCreatedAt': json['tokenCreatedAt'] == null ? undefined : json['tokenCreatedAt'],
|
|
211
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
212
|
-
'market': json['market'] == null ? undefined : json['market'],
|
|
213
|
-
'extension': json['extension'] == null ? undefined : json['extension'],
|
|
214
|
-
'stats': TokenStatFromJSON(json['stats']),
|
|
215
|
-
'liquidity': json['liquidity'] == null ? undefined : ((json['liquidity'] as Array<any>).map(DexPoolDTOFromJSON)),
|
|
216
|
-
'marketData': TokenMarketDataFromJSON(json['marketData']),
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export function TokenToJSON(json: any): Token {
|
|
221
|
-
return TokenToJSONTyped(json, false);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export function TokenToJSONTyped(value?: Token | null, ignoreDiscriminator: boolean = false): any {
|
|
225
|
-
if (value == null) {
|
|
226
|
-
return value;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
return {
|
|
230
|
-
|
|
231
|
-
'chain': value['chain'],
|
|
232
|
-
'decimals': value['decimals'],
|
|
233
|
-
'name': value['name'],
|
|
234
|
-
'symbol': value['symbol'],
|
|
235
|
-
'metadataAddress': value['metadataAddress'],
|
|
236
|
-
'address': value['address'],
|
|
237
|
-
'tokenCreators': value['tokenCreators'] == null ? undefined : ((value['tokenCreators'] as Array<any>).map(TokenCreatorsDTOToJSON)),
|
|
238
|
-
'imageUrl': value['imageUrl'],
|
|
239
|
-
'uri': value['uri'],
|
|
240
|
-
'extra': TokenExtraDTOToJSON(value['extra']),
|
|
241
|
-
'socialMedias': TokenSocialMediasDTOToJSON(value['socialMedias']),
|
|
242
|
-
'tokenCreatedAt': value['tokenCreatedAt'],
|
|
243
|
-
'description': value['description'],
|
|
244
|
-
'market': value['market'],
|
|
245
|
-
'extension': value['extension'],
|
|
246
|
-
'stats': TokenStatToJSON(value['stats']),
|
|
247
|
-
'liquidity': value['liquidity'] == null ? undefined : ((value['liquidity'] as Array<any>).map(DexPoolDTOToJSON)),
|
|
248
|
-
'marketData': TokenMarketDataToJSON(value['marketData']),
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
|
|
@@ -1,131 +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 TokenCreationDTO
|
|
20
|
-
*/
|
|
21
|
-
export interface TokenCreationDTO {
|
|
22
|
-
/**
|
|
23
|
-
* DTO.TOKEN.CREATION.TOKEN_ADDRESS
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof TokenCreationDTO
|
|
26
|
-
*/
|
|
27
|
-
tokenAddress: string;
|
|
28
|
-
/**
|
|
29
|
-
* DTO.TOKEN.CREATION.BLOCK_HEIGHT
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof TokenCreationDTO
|
|
32
|
-
*/
|
|
33
|
-
blockHeight: number;
|
|
34
|
-
/**
|
|
35
|
-
* DTO.TOKEN.CREATION.BLOCK_SLOT
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof TokenCreationDTO
|
|
38
|
-
*/
|
|
39
|
-
blockSlot: number;
|
|
40
|
-
/**
|
|
41
|
-
* DTO.TOKEN.CREATION.BLOCK_HASH
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof TokenCreationDTO
|
|
44
|
-
*/
|
|
45
|
-
blockHash: string;
|
|
46
|
-
/**
|
|
47
|
-
* DTO.TOKEN.CREATION.BLOCK_TIMESTAMP
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof TokenCreationDTO
|
|
50
|
-
*/
|
|
51
|
-
blockTimestamp?: number;
|
|
52
|
-
/**
|
|
53
|
-
* DTO.TOKEN.CREATION.TRANSACTION_SIGNATURE
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof TokenCreationDTO
|
|
56
|
-
*/
|
|
57
|
-
transactionSignature: string;
|
|
58
|
-
/**
|
|
59
|
-
* DTO.TOKEN.CREATION.TYPE
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof TokenCreationDTO
|
|
62
|
-
*/
|
|
63
|
-
type: TokenCreationDTOTypeEnum;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @export
|
|
69
|
-
*/
|
|
70
|
-
export const TokenCreationDTOTypeEnum = {
|
|
71
|
-
Create: 'create',
|
|
72
|
-
Mint: 'mint',
|
|
73
|
-
Burn: 'burn'
|
|
74
|
-
} as const;
|
|
75
|
-
export type TokenCreationDTOTypeEnum = typeof TokenCreationDTOTypeEnum[keyof typeof TokenCreationDTOTypeEnum];
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Check if a given object implements the TokenCreationDTO interface.
|
|
80
|
-
*/
|
|
81
|
-
export function instanceOfTokenCreationDTO(value: object): value is TokenCreationDTO {
|
|
82
|
-
if (!('tokenAddress' in value) || value['tokenAddress'] === undefined) return false;
|
|
83
|
-
if (!('blockHeight' in value) || value['blockHeight'] === undefined) return false;
|
|
84
|
-
if (!('blockSlot' in value) || value['blockSlot'] === undefined) return false;
|
|
85
|
-
if (!('blockHash' in value) || value['blockHash'] === undefined) return false;
|
|
86
|
-
if (!('transactionSignature' in value) || value['transactionSignature'] === undefined) return false;
|
|
87
|
-
if (!('type' in value) || value['type'] === undefined) return false;
|
|
88
|
-
return true;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function TokenCreationDTOFromJSON(json: any): TokenCreationDTO {
|
|
92
|
-
return TokenCreationDTOFromJSONTyped(json, false);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function TokenCreationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenCreationDTO {
|
|
96
|
-
if (json == null) {
|
|
97
|
-
return json;
|
|
98
|
-
}
|
|
99
|
-
return {
|
|
100
|
-
|
|
101
|
-
'tokenAddress': json['tokenAddress'],
|
|
102
|
-
'blockHeight': json['blockHeight'],
|
|
103
|
-
'blockSlot': json['blockSlot'],
|
|
104
|
-
'blockHash': json['blockHash'],
|
|
105
|
-
'blockTimestamp': json['blockTimestamp'] == null ? undefined : json['blockTimestamp'],
|
|
106
|
-
'transactionSignature': json['transactionSignature'],
|
|
107
|
-
'type': json['type'],
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function TokenCreationDTOToJSON(json: any): TokenCreationDTO {
|
|
112
|
-
return TokenCreationDTOToJSONTyped(json, false);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export function TokenCreationDTOToJSONTyped(value?: TokenCreationDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
-
if (value == null) {
|
|
117
|
-
return value;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
return {
|
|
121
|
-
|
|
122
|
-
'tokenAddress': value['tokenAddress'],
|
|
123
|
-
'blockHeight': value['blockHeight'],
|
|
124
|
-
'blockSlot': value['blockSlot'],
|
|
125
|
-
'blockHash': value['blockHash'],
|
|
126
|
-
'blockTimestamp': value['blockTimestamp'],
|
|
127
|
-
'transactionSignature': value['transactionSignature'],
|
|
128
|
-
'type': value['type'],
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
|
|
@@ -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 { TokenCreationDTO } from './TokenCreationDTO';
|
|
17
|
-
import {
|
|
18
|
-
TokenCreationDTOFromJSON,
|
|
19
|
-
TokenCreationDTOFromJSONTyped,
|
|
20
|
-
TokenCreationDTOToJSON,
|
|
21
|
-
TokenCreationDTOToJSONTyped,
|
|
22
|
-
} from './TokenCreationDTO';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface TokenCreationPage
|
|
28
|
-
*/
|
|
29
|
-
export interface TokenCreationPage {
|
|
30
|
-
/**
|
|
31
|
-
* DTO.PAGE.HAS_NEXT
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof TokenCreationPage
|
|
34
|
-
*/
|
|
35
|
-
hasNext?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* DTO.PAGE.HAS_PREV
|
|
38
|
-
* @type {boolean}
|
|
39
|
-
* @memberof TokenCreationPage
|
|
40
|
-
*/
|
|
41
|
-
hasPrev?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* DTO.PAGE.START_CURSOR
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof TokenCreationPage
|
|
46
|
-
*/
|
|
47
|
-
startCursor?: string;
|
|
48
|
-
/**
|
|
49
|
-
* DTO.PAGE.END_CURSOR
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof TokenCreationPage
|
|
52
|
-
*/
|
|
53
|
-
endCursor?: string;
|
|
54
|
-
/**
|
|
55
|
-
* DTO.PAGE.TOTAL
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof TokenCreationPage
|
|
58
|
-
*/
|
|
59
|
-
total?: number;
|
|
60
|
-
/**
|
|
61
|
-
* DTO.TOKEN.CREATION.PAGE.DATA
|
|
62
|
-
* @type {Array<TokenCreationDTO>}
|
|
63
|
-
* @memberof TokenCreationPage
|
|
64
|
-
*/
|
|
65
|
-
data: Array<TokenCreationDTO>;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Check if a given object implements the TokenCreationPage interface.
|
|
70
|
-
*/
|
|
71
|
-
export function instanceOfTokenCreationPage(value: object): value is TokenCreationPage {
|
|
72
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
73
|
-
return true;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function TokenCreationPageFromJSON(json: any): TokenCreationPage {
|
|
77
|
-
return TokenCreationPageFromJSONTyped(json, false);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function TokenCreationPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenCreationPage {
|
|
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(TokenCreationDTOFromJSON)),
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function TokenCreationPageToJSON(json: any): TokenCreationPage {
|
|
96
|
-
return TokenCreationPageToJSONTyped(json, false);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function TokenCreationPageToJSONTyped(value?: TokenCreationPage | 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(TokenCreationDTOToJSON)),
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
|
|
@@ -1,81 +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 TokenCreatorsDTO
|
|
20
|
-
*/
|
|
21
|
-
export interface TokenCreatorsDTO {
|
|
22
|
-
/**
|
|
23
|
-
* DTO.TOKEN.CREATORS.ADDRESS
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof TokenCreatorsDTO
|
|
26
|
-
*/
|
|
27
|
-
address?: string;
|
|
28
|
-
/**
|
|
29
|
-
* DTO.TOKEN.CREATORS.SHARE
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof TokenCreatorsDTO
|
|
32
|
-
*/
|
|
33
|
-
share?: number;
|
|
34
|
-
/**
|
|
35
|
-
* DTO.TOKEN.CREATORS.IS_VERIFIED
|
|
36
|
-
* @type {boolean}
|
|
37
|
-
* @memberof TokenCreatorsDTO
|
|
38
|
-
*/
|
|
39
|
-
isVerified?: boolean;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the TokenCreatorsDTO interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfTokenCreatorsDTO(value: object): value is TokenCreatorsDTO {
|
|
46
|
-
return true;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function TokenCreatorsDTOFromJSON(json: any): TokenCreatorsDTO {
|
|
50
|
-
return TokenCreatorsDTOFromJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function TokenCreatorsDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenCreatorsDTO {
|
|
54
|
-
if (json == null) {
|
|
55
|
-
return json;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
|
|
59
|
-
'address': json['address'] == null ? undefined : json['address'],
|
|
60
|
-
'share': json['share'] == null ? undefined : json['share'],
|
|
61
|
-
'isVerified': json['isVerified'] == null ? undefined : json['isVerified'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function TokenCreatorsDTOToJSON(json: any): TokenCreatorsDTO {
|
|
66
|
-
return TokenCreatorsDTOToJSONTyped(json, false);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function TokenCreatorsDTOToJSONTyped(value?: TokenCreatorsDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
-
if (value == null) {
|
|
71
|
-
return value;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
return {
|
|
75
|
-
|
|
76
|
-
'address': value['address'],
|
|
77
|
-
'share': value['share'],
|
|
78
|
-
'isVerified': value['isVerified'],
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
|