@chainstream-io/sdk 0.0.1 → 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.
- package/dist/api/stream.d.ts +44 -43
- package/dist/api/stream.js +206 -196
- package/dist/api/stream.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/openapi/apis/DexPoolApi.d.ts +0 -2
- package/dist/openapi/apis/DexPoolApi.js +0 -47
- package/dist/openapi/apis/DexPoolApi.js.map +1 -1
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.js.map +1 -1
- package/dist/openapi/models/ObjectSerializer.d.ts +3 -0
- package/dist/openapi/models/ObjectSerializer.js +9 -0
- package/dist/openapi/models/ObjectSerializer.js.map +1 -1
- package/dist/openapi/models/RankingToken.d.ts +2 -1
- package/dist/openapi/models/RankingToken.js +6 -6
- package/dist/openapi/models/RankingToken.js.map +1 -1
- package/dist/openapi/models/Token.d.ts +6 -3
- package/dist/openapi/models/Token.js +3 -3
- package/dist/openapi/models/Token.js.map +1 -1
- package/dist/openapi/models/TokenCreatorsDTO.d.ts +22 -0
- package/dist/openapi/models/TokenCreatorsDTO.js +34 -0
- package/dist/openapi/models/TokenCreatorsDTO.js.map +1 -0
- package/dist/openapi/models/TokenExtraDTO.d.ts +35 -0
- package/dist/openapi/models/TokenExtraDTO.js +112 -0
- package/dist/openapi/models/TokenExtraDTO.js.map +1 -0
- package/dist/openapi/models/TokenExtraJsonDTO.d.ts +35 -0
- package/dist/openapi/models/TokenExtraJsonDTO.js +112 -0
- package/dist/openapi/models/TokenExtraJsonDTO.js.map +1 -0
- package/dist/openapi/models/TokenMarketData.d.ts +3 -0
- package/dist/openapi/models/TokenMarketData.js +18 -0
- package/dist/openapi/models/TokenMarketData.js.map +1 -1
- package/dist/openapi/models/TokenMetadata.d.ts +6 -3
- package/dist/openapi/models/TokenMetadata.js +3 -3
- package/dist/openapi/models/TokenMetadata.js.map +1 -1
- package/dist/openapi/models/TokenSocialMediasDTO.d.ts +32 -0
- package/dist/openapi/models/TokenSocialMediasDTO.js +94 -0
- package/dist/openapi/models/TokenSocialMediasDTO.js.map +1 -0
- package/dist/openapi/models/all.d.ts +3 -0
- package/dist/openapi/models/all.js +3 -0
- package/dist/openapi/models/all.js.map +1 -1
- package/dist/openapi/types/ObjectParamAPI.d.ts +0 -7
- package/dist/openapi/types/ObjectParamAPI.js +0 -6
- package/dist/openapi/types/ObjectParamAPI.js.map +1 -1
- package/dist/openapi/types/ObservableAPI.d.ts +0 -2
- package/dist/openapi/types/ObservableAPI.js +0 -18
- package/dist/openapi/types/ObservableAPI.js.map +1 -1
- package/dist/openapi/types/PromiseAPI.d.ts +0 -2
- package/dist/openapi/types/PromiseAPI.js +0 -8
- package/dist/openapi/types/PromiseAPI.js.map +1 -1
- package/package.json +1 -1
- package/src/api/stream.ts +441 -422
- package/src/index.ts +7 -1
- package/src/openapi/.openapi-generator/FILES +3 -0
- package/src/openapi/apis/DexPoolApi.ts +0 -85
- package/src/openapi/index.ts +1 -1
- package/src/openapi/models/ObjectSerializer.ts +9 -0
- package/src/openapi/models/RankingToken.ts +11 -10
- package/src/openapi/models/Token.ts +9 -6
- package/src/openapi/models/TokenCreatorsDTO.ts +59 -0
- package/src/openapi/models/TokenExtraDTO.ts +189 -0
- package/src/openapi/models/TokenMarketData.ts +30 -0
- package/src/openapi/models/TokenMetadata.ts +9 -6
- package/src/openapi/models/TokenSocialMediasDTO.ts +159 -0
- package/src/openapi/models/all.ts +3 -0
- package/src/openapi/types/ObjectParamAPI.ts +3 -42
- package/src/openapi/types/ObservableAPI.ts +3 -37
- package/src/openapi/types/PromiseAPI.ts +3 -24
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.
|
|
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,6 +67,8 @@ models/SwapRouteResponse.ts
|
|
|
67
67
|
models/Token.ts
|
|
68
68
|
models/TokenCreationDTO.ts
|
|
69
69
|
models/TokenCreationPage.ts
|
|
70
|
+
models/TokenCreatorsDTO.ts
|
|
71
|
+
models/TokenExtraDTO.ts
|
|
70
72
|
models/TokenHolder.ts
|
|
71
73
|
models/TokenHolderPage.ts
|
|
72
74
|
models/TokenListPage.ts
|
|
@@ -75,6 +77,7 @@ models/TokenMetadata.ts
|
|
|
75
77
|
models/TokenPage.ts
|
|
76
78
|
models/TokenPriceDTO.ts
|
|
77
79
|
models/TokenPricePage.ts
|
|
80
|
+
models/TokenSocialMediasDTO.ts
|
|
78
81
|
models/TokenStat.ts
|
|
79
82
|
models/TopTradersDTO.ts
|
|
80
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
|
}
|
package/src/openapi/index.ts
CHANGED
|
@@ -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,
|
|
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,6 +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/TokenCreatorsDTO';
|
|
43
|
+
export * from '../models/TokenExtraDTO';
|
|
42
44
|
export * from '../models/TokenHolder';
|
|
43
45
|
export * from '../models/TokenHolderPage';
|
|
44
46
|
export * from '../models/TokenListPage';
|
|
@@ -47,6 +49,7 @@ export * from '../models/TokenMetadata';
|
|
|
47
49
|
export * from '../models/TokenPage';
|
|
48
50
|
export * from '../models/TokenPriceDTO';
|
|
49
51
|
export * from '../models/TokenPricePage';
|
|
52
|
+
export * from '../models/TokenSocialMediasDTO';
|
|
50
53
|
export * from '../models/TokenStat';
|
|
51
54
|
export * from '../models/TopTradersDTO';
|
|
52
55
|
export * from '../models/TopTradersPage';
|
|
@@ -99,6 +102,8 @@ import { SwapRouteResponse } from '../models/SwapRouteResponse';
|
|
|
99
102
|
import { Token } from '../models/Token';
|
|
100
103
|
import { TokenCreationDTO , TokenCreationDTOTypeEnum } from '../models/TokenCreationDTO';
|
|
101
104
|
import { TokenCreationPage } from '../models/TokenCreationPage';
|
|
105
|
+
import { TokenCreatorsDTO } from '../models/TokenCreatorsDTO';
|
|
106
|
+
import { TokenExtraDTO } from '../models/TokenExtraDTO';
|
|
102
107
|
import { TokenHolder } from '../models/TokenHolder';
|
|
103
108
|
import { TokenHolderPage } from '../models/TokenHolderPage';
|
|
104
109
|
import { TokenListPage } from '../models/TokenListPage';
|
|
@@ -107,6 +112,7 @@ import { TokenMetadata } from '../models/TokenMetadata';
|
|
|
107
112
|
import { TokenPage } from '../models/TokenPage';
|
|
108
113
|
import { TokenPriceDTO } from '../models/TokenPriceDTO';
|
|
109
114
|
import { TokenPricePage } from '../models/TokenPricePage';
|
|
115
|
+
import { TokenSocialMediasDTO } from '../models/TokenSocialMediasDTO';
|
|
110
116
|
import { TokenStat } from '../models/TokenStat';
|
|
111
117
|
import { TopTradersDTO } from '../models/TopTradersDTO';
|
|
112
118
|
import { TopTradersPage } from '../models/TopTradersPage';
|
|
@@ -191,6 +197,8 @@ let typeMap: {[index: string]: any} = {
|
|
|
191
197
|
"Token": Token,
|
|
192
198
|
"TokenCreationDTO": TokenCreationDTO,
|
|
193
199
|
"TokenCreationPage": TokenCreationPage,
|
|
200
|
+
"TokenCreatorsDTO": TokenCreatorsDTO,
|
|
201
|
+
"TokenExtraDTO": TokenExtraDTO,
|
|
194
202
|
"TokenHolder": TokenHolder,
|
|
195
203
|
"TokenHolderPage": TokenHolderPage,
|
|
196
204
|
"TokenListPage": TokenListPage,
|
|
@@ -199,6 +207,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
199
207
|
"TokenPage": TokenPage,
|
|
200
208
|
"TokenPriceDTO": TokenPriceDTO,
|
|
201
209
|
"TokenPricePage": TokenPricePage,
|
|
210
|
+
"TokenSocialMediasDTO": TokenSocialMediasDTO,
|
|
202
211
|
"TokenStat": TokenStat,
|
|
203
212
|
"TopTradersDTO": TopTradersDTO,
|
|
204
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;
|
|
@@ -51,10 +56,6 @@ export class RankingToken {
|
|
|
51
56
|
* DTO.TOKEN.MARKET_CAP_INFO
|
|
52
57
|
*/
|
|
53
58
|
'marketData': RankingTokenMarketData;
|
|
54
|
-
/**
|
|
55
|
-
* DTO.TOKEN.DEX.PROTOCOL_FAMILY
|
|
56
|
-
*/
|
|
57
|
-
'protocolFamily': string;
|
|
58
59
|
|
|
59
60
|
static readonly discriminator: string | undefined = undefined;
|
|
60
61
|
|
|
@@ -85,6 +86,12 @@ export class RankingToken {
|
|
|
85
86
|
"type": "string",
|
|
86
87
|
"format": ""
|
|
87
88
|
},
|
|
89
|
+
{
|
|
90
|
+
"name": "tokenCreators",
|
|
91
|
+
"baseName": "tokenCreators",
|
|
92
|
+
"type": "TokenCreatorsDTO",
|
|
93
|
+
"format": ""
|
|
94
|
+
},
|
|
88
95
|
{
|
|
89
96
|
"name": "imageUrl",
|
|
90
97
|
"baseName": "imageUrl",
|
|
@@ -114,12 +121,6 @@ export class RankingToken {
|
|
|
114
121
|
"baseName": "marketData",
|
|
115
122
|
"type": "RankingTokenMarketData",
|
|
116
123
|
"format": ""
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"name": "protocolFamily",
|
|
120
|
-
"baseName": "protocolFamily",
|
|
121
|
-
"type": "string",
|
|
122
|
-
"format": ""
|
|
123
124
|
} ];
|
|
124
125
|
|
|
125
126
|
static getAttributeTypeMap() {
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { DexPoolDTO } from '../models/DexPoolDTO';
|
|
14
|
+
import { TokenCreatorsDTO } from '../models/TokenCreatorsDTO';
|
|
15
|
+
import { TokenExtraDTO } from '../models/TokenExtraDTO';
|
|
14
16
|
import { TokenMarketData } from '../models/TokenMarketData';
|
|
17
|
+
import { TokenSocialMediasDTO } from '../models/TokenSocialMediasDTO';
|
|
15
18
|
import { TokenStat } from '../models/TokenStat';
|
|
16
19
|
import { HttpFile } from '../http/http';
|
|
17
20
|
|
|
@@ -43,7 +46,7 @@ export class Token {
|
|
|
43
46
|
/**
|
|
44
47
|
* DTO.TOKEN.METADATA.TOKEN_CREATORS
|
|
45
48
|
*/
|
|
46
|
-
'tokenCreators'?:
|
|
49
|
+
'tokenCreators'?: TokenCreatorsDTO;
|
|
47
50
|
/**
|
|
48
51
|
* DTO.TOKEN.METADATA.IMAGE_URL
|
|
49
52
|
*/
|
|
@@ -55,11 +58,11 @@ export class Token {
|
|
|
55
58
|
/**
|
|
56
59
|
* DTO.TOKEN.METADATA.EXTRA
|
|
57
60
|
*/
|
|
58
|
-
'extra'?:
|
|
61
|
+
'extra'?: TokenExtraDTO;
|
|
59
62
|
/**
|
|
60
63
|
* DTO.TOKEN.METADATA.SOCIAL_MEDIAS
|
|
61
64
|
*/
|
|
62
|
-
'socialMedias'?:
|
|
65
|
+
'socialMedias'?: TokenSocialMediasDTO;
|
|
63
66
|
/**
|
|
64
67
|
* DTO.TOKEN.METADATA.TOKEN_CREATED_AT
|
|
65
68
|
*/
|
|
@@ -137,7 +140,7 @@ export class Token {
|
|
|
137
140
|
{
|
|
138
141
|
"name": "tokenCreators",
|
|
139
142
|
"baseName": "tokenCreators",
|
|
140
|
-
"type": "
|
|
143
|
+
"type": "TokenCreatorsDTO",
|
|
141
144
|
"format": ""
|
|
142
145
|
},
|
|
143
146
|
{
|
|
@@ -155,13 +158,13 @@ export class Token {
|
|
|
155
158
|
{
|
|
156
159
|
"name": "extra",
|
|
157
160
|
"baseName": "extra",
|
|
158
|
-
"type": "
|
|
161
|
+
"type": "TokenExtraDTO",
|
|
159
162
|
"format": ""
|
|
160
163
|
},
|
|
161
164
|
{
|
|
162
165
|
"name": "socialMedias",
|
|
163
166
|
"baseName": "socialMedias",
|
|
164
|
-
"type": "
|
|
167
|
+
"type": "TokenSocialMediasDTO",
|
|
165
168
|
"format": ""
|
|
166
169
|
},
|
|
167
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
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
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 TokenExtraDTO {
|
|
16
|
+
/**
|
|
17
|
+
* DTO.TOKEN.EXTRA.COLLECTION_ADDRESS
|
|
18
|
+
*/
|
|
19
|
+
'collectionAddress'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* DTO.TOKEN.EXTRA.EDITION_NONCE
|
|
22
|
+
*/
|
|
23
|
+
'editionNonce'?: number;
|
|
24
|
+
/**
|
|
25
|
+
* DTO.TOKEN.EXTRA.FUNGIBLE
|
|
26
|
+
*/
|
|
27
|
+
'fungible'?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* DTO.TOKEN.EXTRA.IS_MUTABLE
|
|
30
|
+
*/
|
|
31
|
+
'isMutable'?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* DTO.TOKEN.EXTRA.KEY
|
|
34
|
+
*/
|
|
35
|
+
'key'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* DTO.TOKEN.EXTRA.IS_NATIVE
|
|
38
|
+
*/
|
|
39
|
+
'isNative'?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* DTO.TOKEN.EXTRA.PRIMARY_SALE_HAPPENED
|
|
42
|
+
*/
|
|
43
|
+
'primarySaleHappened'?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* DTO.TOKEN.EXTRA.OUTER_PROGRAM_ADDRESS
|
|
46
|
+
*/
|
|
47
|
+
'outerProgramAddress'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* DTO.TOKEN.EXTRA.PROGRAM_ADDRESS
|
|
50
|
+
*/
|
|
51
|
+
'programAddress'?: string;
|
|
52
|
+
/**
|
|
53
|
+
* DTO.TOKEN.EXTRA.SELLER_FEE_BASIS_POINTS
|
|
54
|
+
*/
|
|
55
|
+
'sellerFeeBasisPoints'?: number;
|
|
56
|
+
/**
|
|
57
|
+
* DTO.TOKEN.EXTRA.TOKEN_STANDARD
|
|
58
|
+
*/
|
|
59
|
+
'tokenStandard'?: string;
|
|
60
|
+
/**
|
|
61
|
+
* DTO.TOKEN.EXTRA.MINT_AUTHORITY
|
|
62
|
+
*/
|
|
63
|
+
'mintAuthority'?: string;
|
|
64
|
+
/**
|
|
65
|
+
* DTO.TOKEN.EXTRA.FREEZE_AUTHORITY
|
|
66
|
+
*/
|
|
67
|
+
'freezeAuthority'?: string;
|
|
68
|
+
/**
|
|
69
|
+
* DTO.TOKEN.EXTRA.UPDATE_AUTHORITY
|
|
70
|
+
*/
|
|
71
|
+
'updateAuthority'?: string;
|
|
72
|
+
/**
|
|
73
|
+
* DTO.TOKEN.EXTRA.IS_VERIFIED_COLLECTION
|
|
74
|
+
*/
|
|
75
|
+
'isVerifiedCollection'?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* DTO.TOKEN.EXTRA.IS_WRAPPED
|
|
78
|
+
*/
|
|
79
|
+
'isWrapped'?: boolean;
|
|
80
|
+
|
|
81
|
+
static readonly discriminator: string | undefined = undefined;
|
|
82
|
+
|
|
83
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
84
|
+
|
|
85
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
86
|
+
{
|
|
87
|
+
"name": "collectionAddress",
|
|
88
|
+
"baseName": "collectionAddress",
|
|
89
|
+
"type": "string",
|
|
90
|
+
"format": ""
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "editionNonce",
|
|
94
|
+
"baseName": "editionNonce",
|
|
95
|
+
"type": "number",
|
|
96
|
+
"format": ""
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "fungible",
|
|
100
|
+
"baseName": "fungible",
|
|
101
|
+
"type": "boolean",
|
|
102
|
+
"format": ""
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "isMutable",
|
|
106
|
+
"baseName": "isMutable",
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"format": ""
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "key",
|
|
112
|
+
"baseName": "key",
|
|
113
|
+
"type": "string",
|
|
114
|
+
"format": ""
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "isNative",
|
|
118
|
+
"baseName": "isNative",
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"format": ""
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "primarySaleHappened",
|
|
124
|
+
"baseName": "primarySaleHappened",
|
|
125
|
+
"type": "boolean",
|
|
126
|
+
"format": ""
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "outerProgramAddress",
|
|
130
|
+
"baseName": "outerProgramAddress",
|
|
131
|
+
"type": "string",
|
|
132
|
+
"format": ""
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "programAddress",
|
|
136
|
+
"baseName": "programAddress",
|
|
137
|
+
"type": "string",
|
|
138
|
+
"format": ""
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "sellerFeeBasisPoints",
|
|
142
|
+
"baseName": "sellerFeeBasisPoints",
|
|
143
|
+
"type": "number",
|
|
144
|
+
"format": ""
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "tokenStandard",
|
|
148
|
+
"baseName": "tokenStandard",
|
|
149
|
+
"type": "string",
|
|
150
|
+
"format": ""
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "mintAuthority",
|
|
154
|
+
"baseName": "mintAuthority",
|
|
155
|
+
"type": "string",
|
|
156
|
+
"format": ""
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "freezeAuthority",
|
|
160
|
+
"baseName": "freezeAuthority",
|
|
161
|
+
"type": "string",
|
|
162
|
+
"format": ""
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "updateAuthority",
|
|
166
|
+
"baseName": "updateAuthority",
|
|
167
|
+
"type": "string",
|
|
168
|
+
"format": ""
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "isVerifiedCollection",
|
|
172
|
+
"baseName": "isVerifiedCollection",
|
|
173
|
+
"type": "boolean",
|
|
174
|
+
"format": ""
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "isWrapped",
|
|
178
|
+
"baseName": "isWrapped",
|
|
179
|
+
"type": "boolean",
|
|
180
|
+
"format": ""
|
|
181
|
+
} ];
|
|
182
|
+
|
|
183
|
+
static getAttributeTypeMap() {
|
|
184
|
+
return TokenExtraDTO.attributeTypeMap;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
public constructor() {
|
|
188
|
+
}
|
|
189
|
+
}
|
|
@@ -65,6 +65,18 @@ export class TokenMarketData {
|
|
|
65
65
|
* DTO.TOKEN.MARKET_CAP.COMPLETION_RATIO
|
|
66
66
|
*/
|
|
67
67
|
'completionRatio'?: string;
|
|
68
|
+
/**
|
|
69
|
+
* DTO.TOKEN.MARKET_CAP.CREATORS_COUNT
|
|
70
|
+
*/
|
|
71
|
+
'creatorsCount'?: number;
|
|
72
|
+
/**
|
|
73
|
+
* DTO.TOKEN.MARKET_CAP.CREATORS_AMOUNT
|
|
74
|
+
*/
|
|
75
|
+
'creatorHoldings'?: string;
|
|
76
|
+
/**
|
|
77
|
+
* DTO.TOKEN.MARKET_CAP.CREATORS_RATIO
|
|
78
|
+
*/
|
|
79
|
+
'creatorHoldingRatio'?: string;
|
|
68
80
|
|
|
69
81
|
static readonly discriminator: string | undefined = undefined;
|
|
70
82
|
|
|
@@ -148,6 +160,24 @@ export class TokenMarketData {
|
|
|
148
160
|
"baseName": "completionRatio",
|
|
149
161
|
"type": "string",
|
|
150
162
|
"format": ""
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "creatorsCount",
|
|
166
|
+
"baseName": "creatorsCount",
|
|
167
|
+
"type": "number",
|
|
168
|
+
"format": ""
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "creatorHoldings",
|
|
172
|
+
"baseName": "creatorHoldings",
|
|
173
|
+
"type": "string",
|
|
174
|
+
"format": ""
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "creatorHoldingRatio",
|
|
178
|
+
"baseName": "creatorHoldingRatio",
|
|
179
|
+
"type": "string",
|
|
180
|
+
"format": ""
|
|
151
181
|
} ];
|
|
152
182
|
|
|
153
183
|
static getAttributeTypeMap() {
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { TokenCreatorsDTO } from '../models/TokenCreatorsDTO';
|
|
14
|
+
import { TokenExtraDTO } from '../models/TokenExtraDTO';
|
|
15
|
+
import { TokenSocialMediasDTO } from '../models/TokenSocialMediasDTO';
|
|
13
16
|
import { HttpFile } from '../http/http';
|
|
14
17
|
|
|
15
18
|
export class TokenMetadata {
|
|
@@ -40,7 +43,7 @@ export class TokenMetadata {
|
|
|
40
43
|
/**
|
|
41
44
|
* DTO.TOKEN.METADATA.TOKEN_CREATORS
|
|
42
45
|
*/
|
|
43
|
-
'tokenCreators'?:
|
|
46
|
+
'tokenCreators'?: TokenCreatorsDTO;
|
|
44
47
|
/**
|
|
45
48
|
* DTO.TOKEN.METADATA.IMAGE_URL
|
|
46
49
|
*/
|
|
@@ -52,11 +55,11 @@ export class TokenMetadata {
|
|
|
52
55
|
/**
|
|
53
56
|
* DTO.TOKEN.METADATA.EXTRA
|
|
54
57
|
*/
|
|
55
|
-
'extra'?:
|
|
58
|
+
'extra'?: TokenExtraDTO;
|
|
56
59
|
/**
|
|
57
60
|
* DTO.TOKEN.METADATA.SOCIAL_MEDIAS
|
|
58
61
|
*/
|
|
59
|
-
'socialMedias'?:
|
|
62
|
+
'socialMedias'?: TokenSocialMediasDTO;
|
|
60
63
|
/**
|
|
61
64
|
* DTO.TOKEN.METADATA.TOKEN_CREATED_AT
|
|
62
65
|
*/
|
|
@@ -110,7 +113,7 @@ export class TokenMetadata {
|
|
|
110
113
|
{
|
|
111
114
|
"name": "tokenCreators",
|
|
112
115
|
"baseName": "tokenCreators",
|
|
113
|
-
"type": "
|
|
116
|
+
"type": "TokenCreatorsDTO",
|
|
114
117
|
"format": ""
|
|
115
118
|
},
|
|
116
119
|
{
|
|
@@ -128,13 +131,13 @@ export class TokenMetadata {
|
|
|
128
131
|
{
|
|
129
132
|
"name": "extra",
|
|
130
133
|
"baseName": "extra",
|
|
131
|
-
"type": "
|
|
134
|
+
"type": "TokenExtraDTO",
|
|
132
135
|
"format": ""
|
|
133
136
|
},
|
|
134
137
|
{
|
|
135
138
|
"name": "socialMedias",
|
|
136
139
|
"baseName": "socialMedias",
|
|
137
|
-
"type": "
|
|
140
|
+
"type": "TokenSocialMediasDTO",
|
|
138
141
|
"format": ""
|
|
139
142
|
},
|
|
140
143
|
{
|