@chainstream-io/sdk 0.0.6 → 0.0.8

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 (78) hide show
  1. package/dist/api/stream.js +3 -0
  2. package/dist/api/stream.js.map +1 -1
  3. package/dist/api/stream.model.d.ts +3 -0
  4. package/dist/api/stream.model.js.map +1 -1
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/openapi/apis/DefiSolanaMoonshotApi.d.ts +8 -8
  8. package/dist/openapi/apis/DefiSolanaMoonshotApi.js +16 -16
  9. package/dist/openapi/apis/DefiSolanaMoonshotApi.js.map +1 -1
  10. package/dist/openapi/apis/DefiSolanaPumpfunApi.d.ts +4 -4
  11. package/dist/openapi/apis/DefiSolanaPumpfunApi.js +8 -8
  12. package/dist/openapi/apis/DefiSolanaPumpfunApi.js.map +1 -1
  13. package/dist/openapi/apis/DexApi.d.ts +4 -4
  14. package/dist/openapi/apis/DexApi.js +37 -37
  15. package/dist/openapi/apis/DexApi.js.map +1 -1
  16. package/dist/openapi/index.d.ts +1 -1
  17. package/dist/openapi/index.js.map +1 -1
  18. package/dist/openapi/models/CreateTokenReply.d.ts +21 -0
  19. package/dist/openapi/models/CreateTokenReply.js +28 -0
  20. package/dist/openapi/models/CreateTokenReply.js.map +1 -0
  21. package/dist/openapi/models/DexCreateTokenInput.d.ts +34 -0
  22. package/dist/openapi/models/DexCreateTokenInput.js +72 -0
  23. package/dist/openapi/models/DexCreateTokenInput.js.map +1 -0
  24. package/dist/openapi/models/MoonshotCreateTokenInput.d.ts +39 -0
  25. package/dist/openapi/models/MoonshotCreateTokenInput.js +92 -0
  26. package/dist/openapi/models/MoonshotCreateTokenInput.js.map +1 -0
  27. package/dist/openapi/models/MoonshotCreateTokenReply.d.ts +21 -0
  28. package/dist/openapi/models/MoonshotCreateTokenReply.js +28 -0
  29. package/dist/openapi/models/MoonshotCreateTokenReply.js.map +1 -0
  30. package/dist/openapi/models/MoonshotSubmitCreateToken200Response.d.ts +21 -0
  31. package/dist/openapi/models/MoonshotSubmitCreateToken200Response.js +28 -0
  32. package/dist/openapi/models/MoonshotSubmitCreateToken200Response.js.map +1 -0
  33. package/dist/openapi/models/MoonshotSubmitCreateTokenInput.d.ts +21 -0
  34. package/dist/openapi/models/MoonshotSubmitCreateTokenInput.js +28 -0
  35. package/dist/openapi/models/MoonshotSubmitCreateTokenInput.js.map +1 -0
  36. package/dist/openapi/models/ObjectSerializer.d.ts +8 -8
  37. package/dist/openapi/models/ObjectSerializer.js +29 -29
  38. package/dist/openapi/models/ObjectSerializer.js.map +1 -1
  39. package/dist/openapi/models/PumpCreateTokenInput.d.ts +38 -0
  40. package/dist/openapi/models/PumpCreateTokenInput.js +97 -0
  41. package/dist/openapi/models/PumpCreateTokenInput.js.map +1 -0
  42. package/dist/openapi/models/PumpCreateTokenReply.d.ts +21 -0
  43. package/dist/openapi/models/PumpCreateTokenReply.js +28 -0
  44. package/dist/openapi/models/PumpCreateTokenReply.js.map +1 -0
  45. package/dist/openapi/models/all.d.ts +8 -8
  46. package/dist/openapi/models/all.js +8 -8
  47. package/dist/openapi/models/all.js.map +1 -1
  48. package/dist/openapi/types/ObjectParamAPI.d.ts +26 -26
  49. package/dist/openapi/types/ObjectParamAPI.js +18 -18
  50. package/dist/openapi/types/ObjectParamAPI.js.map +1 -1
  51. package/dist/openapi/types/ObservableAPI.d.ts +16 -16
  52. package/dist/openapi/types/ObservableAPI.js +25 -25
  53. package/dist/openapi/types/ObservableAPI.js.map +1 -1
  54. package/dist/openapi/types/PromiseAPI.d.ts +16 -16
  55. package/dist/openapi/types/PromiseAPI.js +20 -20
  56. package/dist/openapi/types/PromiseAPI.js.map +1 -1
  57. package/package.json +1 -1
  58. package/src/api/stream.model.ts +3 -0
  59. package/src/api/stream.ts +3 -0
  60. package/src/index.ts +1 -1
  61. package/src/openapi/.openapi-generator/FILES +8 -8
  62. package/src/openapi/apis/DefiSolanaMoonshotApi.ts +38 -38
  63. package/src/openapi/apis/DefiSolanaPumpfunApi.ts +19 -19
  64. package/src/openapi/apis/DexApi.ts +70 -70
  65. package/src/openapi/index.ts +1 -1
  66. package/src/openapi/models/{MintReply.ts → CreateTokenReply.ts} +4 -4
  67. package/src/openapi/models/{DexMintInput.ts → DexCreateTokenInput.ts} +5 -5
  68. package/src/openapi/models/{MintInput.ts → MoonshotCreateTokenInput.ts} +8 -8
  69. package/src/openapi/models/{MoonshotMintReply.ts → MoonshotCreateTokenReply.ts} +4 -4
  70. package/src/openapi/models/{MoonshotSubmitMint200Response.ts → MoonshotSubmitCreateToken200Response.ts} +2 -2
  71. package/src/openapi/models/{SubmitInput.ts → MoonshotSubmitCreateTokenInput.ts} +4 -4
  72. package/src/openapi/models/ObjectSerializer.ts +29 -29
  73. package/src/openapi/models/{PumpMintInput.ts → PumpCreateTokenInput.ts} +8 -8
  74. package/src/openapi/models/{PumpMintReply.ts → PumpCreateTokenReply.ts} +2 -2
  75. package/src/openapi/models/all.ts +8 -8
  76. package/src/openapi/types/ObjectParamAPI.ts +76 -76
  77. package/src/openapi/types/ObservableAPI.ts +68 -68
  78. package/src/openapi/types/PromiseAPI.ts +60 -60
@@ -8,9 +8,9 @@ import {canConsumeForm, isCodeInRange} from '../util';
8
8
  import {SecurityAuthentication} from '../auth/auth';
9
9
 
10
10
 
11
- import { DexMintInput } from '../models/DexMintInput';
11
+ import { CreateTokenReply } from '../models/CreateTokenReply';
12
+ import { DexCreateTokenInput } from '../models/DexCreateTokenInput';
12
13
  import { DexPage } from '../models/DexPage';
13
- import { MintReply } from '../models/MintReply';
14
14
  import { SwapInput } from '../models/SwapInput';
15
15
  import { SwapReply } from '../models/SwapReply';
16
16
  import { SwapRouteInput } from '../models/SwapRouteInput';
@@ -22,46 +22,48 @@ import { SwapRouteResponse } from '../models/SwapRouteResponse';
22
22
  export class DexApiRequestFactory extends BaseAPIRequestFactory {
23
23
 
24
24
  /**
25
- * CONTROLLER.DEX.LIST.DESCRIPTION
26
- * CONTROLLER.DEX.LIST.SUMMARY
27
- * @param chains
28
- * @param limit DTO.DEX.QUERY.LIMIT
29
- * @param dexProgram DTO.DEX.QUERY.DEX_PROGRAM
25
+ * CONTROLLER.DEX.CREATE.DESCRIPTION
26
+ * CONTROLLER.DEX.CREATE.SUMMARY
27
+ * @param chain GLOBAL.CHAIN.DESCRIPTION
28
+ * @param dexCreateTokenInput Token creation parameters
30
29
  */
31
- public async list(chains?: Array<string>, limit?: number, dexProgram?: string, _options?: Configuration): Promise<RequestContext> {
30
+ public async createToken(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', dexCreateTokenInput: DexCreateTokenInput, _options?: Configuration): Promise<RequestContext> {
32
31
  let _config = _options || this.configuration;
33
32
 
33
+ // verify required parameter 'chain' is not null or undefined
34
+ if (chain === null || chain === undefined) {
35
+ throw new RequiredError("DexApi", "createToken", "chain");
36
+ }
34
37
 
35
38
 
39
+ // verify required parameter 'dexCreateTokenInput' is not null or undefined
40
+ if (dexCreateTokenInput === null || dexCreateTokenInput === undefined) {
41
+ throw new RequiredError("DexApi", "createToken", "dexCreateTokenInput");
42
+ }
43
+
36
44
 
37
45
  // Path Params
38
- const localVarPath = '/v1/dex';
46
+ const localVarPath = '/v1/dex/{chain}/create'
47
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
39
48
 
40
49
  // Make Request Context
41
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
50
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
42
51
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
43
52
  const randomId = Math.floor(Math.random() * Math.pow(2, 32))
44
53
  requestContext.setHeaderParam("x-req-id", randomId.toString())
45
54
 
46
55
 
47
- // Query Params
48
- if (chains !== undefined) {
49
- const serializedParams = ObjectSerializer.serialize(chains, "Array<string>", "");
50
- for (const serializedParam of serializedParams) {
51
- requestContext.appendQueryParam("chains", serializedParam);
52
- }
53
- }
54
-
55
- // Query Params
56
- if (limit !== undefined) {
57
- requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", ""));
58
- }
59
-
60
- // Query Params
61
- if (dexProgram !== undefined) {
62
- requestContext.setQueryParam("dexProgram", ObjectSerializer.serialize(dexProgram, "string", ""));
63
- }
64
56
 
57
+ // Body Params
58
+ const contentType = ObjectSerializer.getPreferredMediaType([
59
+ "application/json"
60
+ ]);
61
+ requestContext.setHeaderParam("Content-Type", contentType);
62
+ const serializedBody = ObjectSerializer.stringify(
63
+ ObjectSerializer.serialize(dexCreateTokenInput, "DexCreateTokenInput", ""),
64
+ contentType
65
+ );
66
+ requestContext.setBody(serializedBody);
65
67
 
66
68
  let authMethod: SecurityAuthentication | undefined;
67
69
  // Apply auth methods
@@ -79,48 +81,46 @@ export class DexApiRequestFactory extends BaseAPIRequestFactory {
79
81
  }
80
82
 
81
83
  /**
82
- * CONTROLLER.DEX.MINT.DESCRIPTION
83
- * CONTROLLER.DEX.MINT.SUMMARY
84
- * @param chain GLOBAL.CHAIN.DESCRIPTION
85
- * @param dexMintInput Token creation parameters
84
+ * CONTROLLER.DEX.LIST.DESCRIPTION
85
+ * CONTROLLER.DEX.LIST.SUMMARY
86
+ * @param chains
87
+ * @param limit DTO.DEX.QUERY.LIMIT
88
+ * @param dexProgram DTO.DEX.QUERY.DEX_PROGRAM
86
89
  */
87
- public async mint(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', dexMintInput: DexMintInput, _options?: Configuration): Promise<RequestContext> {
90
+ public async list(chains?: Array<string>, limit?: number, dexProgram?: string, _options?: Configuration): Promise<RequestContext> {
88
91
  let _config = _options || this.configuration;
89
92
 
90
- // verify required parameter 'chain' is not null or undefined
91
- if (chain === null || chain === undefined) {
92
- throw new RequiredError("DexApi", "mint", "chain");
93
- }
94
-
95
93
 
96
- // verify required parameter 'dexMintInput' is not null or undefined
97
- if (dexMintInput === null || dexMintInput === undefined) {
98
- throw new RequiredError("DexApi", "mint", "dexMintInput");
99
- }
100
94
 
101
95
 
102
96
  // Path Params
103
- const localVarPath = '/v1/dex/{chain}/mint'
104
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
97
+ const localVarPath = '/v1/dex';
105
98
 
106
99
  // Make Request Context
107
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
100
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
108
101
  requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
109
102
  const randomId = Math.floor(Math.random() * Math.pow(2, 32))
110
103
  requestContext.setHeaderParam("x-req-id", randomId.toString())
111
104
 
112
105
 
106
+ // Query Params
107
+ if (chains !== undefined) {
108
+ const serializedParams = ObjectSerializer.serialize(chains, "Array<string>", "");
109
+ for (const serializedParam of serializedParams) {
110
+ requestContext.appendQueryParam("chains", serializedParam);
111
+ }
112
+ }
113
+
114
+ // Query Params
115
+ if (limit !== undefined) {
116
+ requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", ""));
117
+ }
118
+
119
+ // Query Params
120
+ if (dexProgram !== undefined) {
121
+ requestContext.setQueryParam("dexProgram", ObjectSerializer.serialize(dexProgram, "string", ""));
122
+ }
113
123
 
114
- // Body Params
115
- const contentType = ObjectSerializer.getPreferredMediaType([
116
- "application/json"
117
- ]);
118
- requestContext.setHeaderParam("Content-Type", contentType);
119
- const serializedBody = ObjectSerializer.stringify(
120
- ObjectSerializer.serialize(dexMintInput, "DexMintInput", ""),
121
- contentType
122
- );
123
- requestContext.setBody(serializedBody);
124
124
 
125
125
  let authMethod: SecurityAuthentication | undefined;
126
126
  // Apply auth methods
@@ -263,25 +263,25 @@ export class DexApiResponseProcessor {
263
263
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
264
264
  * to the expected objects
265
265
  *
266
- * @params response Response returned by the server for a request to list
266
+ * @params response Response returned by the server for a request to createToken
267
267
  * @throws ApiException if the response code was not in [200, 299]
268
268
  */
269
- public async listWithHttpInfo(response: ResponseContext): Promise<HttpInfo<DexPage >> {
269
+ public async createTokenWithHttpInfo(response: ResponseContext): Promise<HttpInfo<CreateTokenReply >> {
270
270
  const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
271
271
  if (isCodeInRange("200", response.httpStatusCode)) {
272
- const body: DexPage = ObjectSerializer.deserialize(
272
+ const body: CreateTokenReply = ObjectSerializer.deserialize(
273
273
  ObjectSerializer.parse(await response.body.text(), contentType),
274
- "DexPage", ""
275
- ) as DexPage;
274
+ "CreateTokenReply", ""
275
+ ) as CreateTokenReply;
276
276
  return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
277
277
  }
278
278
 
279
279
  // Work around for missing responses in specification, e.g. for petstore.yaml
280
280
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
281
- const body: DexPage = ObjectSerializer.deserialize(
281
+ const body: CreateTokenReply = ObjectSerializer.deserialize(
282
282
  ObjectSerializer.parse(await response.body.text(), contentType),
283
- "DexPage", ""
284
- ) as DexPage;
283
+ "CreateTokenReply", ""
284
+ ) as CreateTokenReply;
285
285
  return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
286
286
  }
287
287
  throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
@@ -291,25 +291,25 @@ export class DexApiResponseProcessor {
291
291
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
292
292
  * to the expected objects
293
293
  *
294
- * @params response Response returned by the server for a request to mint
294
+ * @params response Response returned by the server for a request to list
295
295
  * @throws ApiException if the response code was not in [200, 299]
296
296
  */
297
- public async mintWithHttpInfo(response: ResponseContext): Promise<HttpInfo<MintReply >> {
297
+ public async listWithHttpInfo(response: ResponseContext): Promise<HttpInfo<DexPage >> {
298
298
  const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
299
299
  if (isCodeInRange("200", response.httpStatusCode)) {
300
- const body: MintReply = ObjectSerializer.deserialize(
300
+ const body: DexPage = ObjectSerializer.deserialize(
301
301
  ObjectSerializer.parse(await response.body.text(), contentType),
302
- "MintReply", ""
303
- ) as MintReply;
302
+ "DexPage", ""
303
+ ) as DexPage;
304
304
  return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
305
305
  }
306
306
 
307
307
  // Work around for missing responses in specification, e.g. for petstore.yaml
308
308
  if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
309
- const body: MintReply = ObjectSerializer.deserialize(
309
+ const body: DexPage = ObjectSerializer.deserialize(
310
310
  ObjectSerializer.parse(await response.body.text(), contentType),
311
- "MintReply", ""
312
- ) as MintReply;
311
+ "DexPage", ""
312
+ ) as DexPage;
313
313
  return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
314
314
  }
315
315
  throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
@@ -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, 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 DefiSolanaMoonshotApiMoonshotCreateTokenRequest, type DefiSolanaMoonshotApiMoonshotSubmitCreateTokenRequest, ObjectDefiSolanaMoonshotApi as DefiSolanaMoonshotApi, type DefiSolanaPumpfunApiPumpfunCreateTokenRequest, ObjectDefiSolanaPumpfunApi as DefiSolanaPumpfunApi, type DexApiCreateTokenRequest, type DexApiListRequest, 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
 
@@ -12,13 +12,13 @@
12
12
 
13
13
  import { HttpFile } from '../http/http';
14
14
 
15
- export class MintReply {
15
+ export class CreateTokenReply {
16
16
  /**
17
- * DTO.DEX.MINT.SERIALIZED_TX
17
+ * DTO.DEX.CREATE_TOKEN.SERIALIZED_TX
18
18
  */
19
19
  'serializedTx': string;
20
20
  /**
21
- * DTO.DEX.MINT.MINT_ADDRESS
21
+ * DTO.DEX.CREATE_TOKEN.MINT_ADDRESS
22
22
  */
23
23
  'mintAddress': string;
24
24
 
@@ -41,7 +41,7 @@ export class MintReply {
41
41
  } ];
42
42
 
43
43
  static getAttributeTypeMap() {
44
- return MintReply.attributeTypeMap;
44
+ return CreateTokenReply.attributeTypeMap;
45
45
  }
46
46
 
47
47
  public constructor() {
@@ -12,11 +12,11 @@
12
12
 
13
13
  import { HttpFile } from '../http/http';
14
14
 
15
- export class DexMintInput {
15
+ export class DexCreateTokenInput {
16
16
  /**
17
17
  * DTO.DEX.IDENTIFIER
18
18
  */
19
- 'dex': DexMintInputDexEnum;
19
+ 'dex': DexCreateTokenInputDexEnum;
20
20
  /**
21
21
  * DTO.DEX.WALLET
22
22
  */
@@ -54,7 +54,7 @@ export class DexMintInput {
54
54
  {
55
55
  "name": "dex",
56
56
  "baseName": "dex",
57
- "type": "DexMintInputDexEnum",
57
+ "type": "DexCreateTokenInputDexEnum",
58
58
  "format": ""
59
59
  },
60
60
  {
@@ -101,14 +101,14 @@ export class DexMintInput {
101
101
  } ];
102
102
 
103
103
  static getAttributeTypeMap() {
104
- return DexMintInput.attributeTypeMap;
104
+ return DexCreateTokenInput.attributeTypeMap;
105
105
  }
106
106
 
107
107
  public constructor() {
108
108
  }
109
109
  }
110
110
 
111
- export enum DexMintInputDexEnum {
111
+ export enum DexCreateTokenInputDexEnum {
112
112
  Raydium = 'raydium',
113
113
  Pumpfun = 'pumpfun',
114
114
  Moonshot = 'moonshot',
@@ -13,11 +13,11 @@
13
13
  import { Link } from '../models/Link';
14
14
  import { HttpFile } from '../http/http';
15
15
 
16
- export class MintInput {
16
+ export class MoonshotCreateTokenInput {
17
17
  /**
18
18
  * DTO.DEX.IDENTIFIER
19
19
  */
20
- 'dex': MintInputDexEnum;
20
+ 'dex': MoonshotCreateTokenInputDexEnum;
21
21
  /**
22
22
  * DTO.DEX.WALLET
23
23
  */
@@ -37,7 +37,7 @@ export class MintInput {
37
37
  /**
38
38
  * DTO.DEX.MOONSHOT.MINT.MIGRATION_DEX
39
39
  */
40
- 'migrationDex': MintInputMigrationDexEnum;
40
+ 'migrationDex': MoonshotCreateTokenInputMigrationDexEnum;
41
41
  /**
42
42
  * DTO.DEX.MOONSHOT.MINT.ICON
43
43
  */
@@ -67,7 +67,7 @@ export class MintInput {
67
67
  {
68
68
  "name": "dex",
69
69
  "baseName": "dex",
70
- "type": "MintInputDexEnum",
70
+ "type": "MoonshotCreateTokenInputDexEnum",
71
71
  "format": ""
72
72
  },
73
73
  {
@@ -97,7 +97,7 @@ export class MintInput {
97
97
  {
98
98
  "name": "migrationDex",
99
99
  "baseName": "migrationDex",
100
- "type": "MintInputMigrationDexEnum",
100
+ "type": "MoonshotCreateTokenInputMigrationDexEnum",
101
101
  "format": ""
102
102
  },
103
103
  {
@@ -132,17 +132,17 @@ export class MintInput {
132
132
  } ];
133
133
 
134
134
  static getAttributeTypeMap() {
135
- return MintInput.attributeTypeMap;
135
+ return MoonshotCreateTokenInput.attributeTypeMap;
136
136
  }
137
137
 
138
138
  public constructor() {
139
139
  }
140
140
  }
141
141
 
142
- export enum MintInputDexEnum {
142
+ export enum MoonshotCreateTokenInputDexEnum {
143
143
  Moonshot = 'moonshot'
144
144
  }
145
- export enum MintInputMigrationDexEnum {
145
+ export enum MoonshotCreateTokenInputMigrationDexEnum {
146
146
  Raydium = 'RAYDIUM',
147
147
  Meteora = 'METEORA',
148
148
  Uniswap = 'UNISWAP'
@@ -12,13 +12,13 @@
12
12
 
13
13
  import { HttpFile } from '../http/http';
14
14
 
15
- export class MoonshotMintReply {
15
+ export class MoonshotCreateTokenReply {
16
16
  /**
17
- * DTO.DEX.MOONSHOT.MINT.SERIALIZED_TX
17
+ * DTO.DEX.MOONSHOT.CREATE_TOKEN.SERIALIZED_TX
18
18
  */
19
19
  'serializedTx': string;
20
20
  /**
21
- * DTO.DEX.MOONSHOT.MINT.EXTRA
21
+ * DTO.DEX.MOONSHOT.CREATE_TOKEN.EXTRA
22
22
  */
23
23
  'extra': any;
24
24
 
@@ -41,7 +41,7 @@ export class MoonshotMintReply {
41
41
  } ];
42
42
 
43
43
  static getAttributeTypeMap() {
44
- return MoonshotMintReply.attributeTypeMap;
44
+ return MoonshotCreateTokenReply.attributeTypeMap;
45
45
  }
46
46
 
47
47
  public constructor() {
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { HttpFile } from '../http/http';
14
14
 
15
- export class MoonshotSubmitMint200Response {
15
+ export class MoonshotSubmitCreateToken200Response {
16
16
  /**
17
17
  * Transaction signature
18
18
  */
@@ -41,7 +41,7 @@ export class MoonshotSubmitMint200Response {
41
41
  } ];
42
42
 
43
43
  static getAttributeTypeMap() {
44
- return MoonshotSubmitMint200Response.attributeTypeMap;
44
+ return MoonshotSubmitCreateToken200Response.attributeTypeMap;
45
45
  }
46
46
 
47
47
  public constructor() {
@@ -12,13 +12,13 @@
12
12
 
13
13
  import { HttpFile } from '../http/http';
14
14
 
15
- export class SubmitInput {
15
+ export class MoonshotSubmitCreateTokenInput {
16
16
  /**
17
- * DTO.DEX.MOONSHOT.SUBMIT.SIGNED_TX
17
+ * DTO.DEX.MOONSHOT.SUBMIT.CREATE_TOKEN.SIGNED_TX
18
18
  */
19
19
  'signedTx': string;
20
20
  /**
21
- * DTO.DEX.MOONSHOT.SUBMIT.EXTRA
21
+ * DTO.DEX.MOONSHOT.SUBMIT.CREATE_TOKEN.EXTRA
22
22
  */
23
23
  'extra'?: any;
24
24
 
@@ -41,7 +41,7 @@ export class SubmitInput {
41
41
  } ];
42
42
 
43
43
  static getAttributeTypeMap() {
44
- return SubmitInput.attributeTypeMap;
44
+ return MoonshotSubmitCreateTokenInput.attributeTypeMap;
45
45
  }
46
46
 
47
47
  public constructor() {
@@ -4,20 +4,21 @@ export * from '../models/Candle';
4
4
  export * from '../models/ClaimRedPacketInput';
5
5
  export * from '../models/CreateRedPacketInput';
6
6
  export * from '../models/CreateRedPacketReply';
7
+ export * from '../models/CreateTokenReply';
8
+ export * from '../models/DexCreateTokenInput';
7
9
  export * from '../models/DexDTO';
8
- export * from '../models/DexMintInput';
9
10
  export * from '../models/DexPage';
10
11
  export * from '../models/DexPoolDTO';
11
12
  export * from '../models/FilterCondition';
12
13
  export * from '../models/GainersAndLosersDTO';
13
14
  export * from '../models/GainersAndLosersPage';
14
15
  export * from '../models/Link';
15
- export * from '../models/MintInput';
16
- export * from '../models/MintReply';
17
- export * from '../models/MoonshotMintReply';
18
- export * from '../models/MoonshotSubmitMint200Response';
19
- export * from '../models/PumpMintInput';
20
- export * from '../models/PumpMintReply';
16
+ export * from '../models/MoonshotCreateTokenInput';
17
+ export * from '../models/MoonshotCreateTokenReply';
18
+ export * from '../models/MoonshotSubmitCreateToken200Response';
19
+ export * from '../models/MoonshotSubmitCreateTokenInput';
20
+ export * from '../models/PumpCreateTokenInput';
21
+ export * from '../models/PumpCreateTokenReply';
21
22
  export * from '../models/RedPacketClaimDTO';
22
23
  export * from '../models/RedPacketClaimsPage';
23
24
  export * from '../models/RedPacketDTO';
@@ -28,7 +29,6 @@ export * from '../models/RedPacketsPage';
28
29
  export * from '../models/Resolution';
29
30
  export * from '../models/SendTxInput';
30
31
  export * from '../models/SendTxResponse';
31
- export * from '../models/SubmitInput';
32
32
  export * from '../models/SwapInput';
33
33
  export * from '../models/SwapReply';
34
34
  export * from '../models/SwapRouteInput';
@@ -64,20 +64,21 @@ import { Candle } from '../models/Candle';
64
64
  import { ClaimRedPacketInput } from '../models/ClaimRedPacketInput';
65
65
  import { CreateRedPacketInput } from '../models/CreateRedPacketInput';
66
66
  import { CreateRedPacketReply } from '../models/CreateRedPacketReply';
67
+ import { CreateTokenReply } from '../models/CreateTokenReply';
68
+ import { DexCreateTokenInput, DexCreateTokenInputDexEnum } from '../models/DexCreateTokenInput';
67
69
  import { DexDTO } from '../models/DexDTO';
68
- import { DexMintInput, DexMintInputDexEnum } from '../models/DexMintInput';
69
70
  import { DexPage } from '../models/DexPage';
70
71
  import { DexPoolDTO } from '../models/DexPoolDTO';
71
72
  import { FilterCondition, FilterConditionFieldEnum } from '../models/FilterCondition';
72
73
  import { GainersAndLosersDTO } from '../models/GainersAndLosersDTO';
73
74
  import { GainersAndLosersPage } from '../models/GainersAndLosersPage';
74
75
  import { Link , LinkLabelEnum } from '../models/Link';
75
- import { MintInput, MintInputDexEnum , MintInputMigrationDexEnum } from '../models/MintInput';
76
- import { MintReply } from '../models/MintReply';
77
- import { MoonshotMintReply } from '../models/MoonshotMintReply';
78
- import { MoonshotSubmitMint200Response } from '../models/MoonshotSubmitMint200Response';
79
- import { PumpMintInput, PumpMintInputDexEnum , PumpMintInputMigrationDexEnum } from '../models/PumpMintInput';
80
- import { PumpMintReply } from '../models/PumpMintReply';
76
+ import { MoonshotCreateTokenInput, MoonshotCreateTokenInputDexEnum , MoonshotCreateTokenInputMigrationDexEnum } from '../models/MoonshotCreateTokenInput';
77
+ import { MoonshotCreateTokenReply } from '../models/MoonshotCreateTokenReply';
78
+ import { MoonshotSubmitCreateToken200Response } from '../models/MoonshotSubmitCreateToken200Response';
79
+ import { MoonshotSubmitCreateTokenInput } from '../models/MoonshotSubmitCreateTokenInput';
80
+ import { PumpCreateTokenInput, PumpCreateTokenInputDexEnum , PumpCreateTokenInputMigrationDexEnum } from '../models/PumpCreateTokenInput';
81
+ import { PumpCreateTokenReply } from '../models/PumpCreateTokenReply';
81
82
  import { RedPacketClaimDTO , RedPacketClaimDTOChainEnum } from '../models/RedPacketClaimDTO';
82
83
  import { RedPacketClaimsPage } from '../models/RedPacketClaimsPage';
83
84
  import { RedPacketDTO, RedPacketDTOChainEnum } from '../models/RedPacketDTO';
@@ -88,7 +89,6 @@ import { RedPacketsPage } from '../models/RedPacketsPage';
88
89
  import { Resolution } from '../models/Resolution';
89
90
  import { SendTxInput , SendTxInputSubmitTypeEnum } from '../models/SendTxInput';
90
91
  import { SendTxResponse } from '../models/SendTxResponse';
91
- import { SubmitInput } from '../models/SubmitInput';
92
92
  import { SwapInput, SwapInputDexEnum , SwapInputSwapModeEnum } from '../models/SwapInput';
93
93
  import { SwapReply } from '../models/SwapReply';
94
94
  import { SwapRouteInput, SwapRouteInputDexEnum , SwapRouteInputSwapModeEnum } from '../models/SwapRouteInput';
@@ -131,13 +131,13 @@ let primitives = [
131
131
  ];
132
132
 
133
133
  let enumsMap: Set<string> = new Set<string>([
134
- "DexMintInputDexEnum",
134
+ "DexCreateTokenInputDexEnum",
135
135
  "FilterConditionFieldEnum",
136
136
  "LinkLabelEnum",
137
- "MintInputDexEnum",
138
- "MintInputMigrationDexEnum",
139
- "PumpMintInputDexEnum",
140
- "PumpMintInputMigrationDexEnum",
137
+ "MoonshotCreateTokenInputDexEnum",
138
+ "MoonshotCreateTokenInputMigrationDexEnum",
139
+ "PumpCreateTokenInputDexEnum",
140
+ "PumpCreateTokenInputMigrationDexEnum",
141
141
  "RedPacketClaimDTOChainEnum",
142
142
  "RedPacketDTOChainEnum",
143
143
  "Resolution",
@@ -157,20 +157,21 @@ let typeMap: {[index: string]: any} = {
157
157
  "ClaimRedPacketInput": ClaimRedPacketInput,
158
158
  "CreateRedPacketInput": CreateRedPacketInput,
159
159
  "CreateRedPacketReply": CreateRedPacketReply,
160
+ "CreateTokenReply": CreateTokenReply,
161
+ "DexCreateTokenInput": DexCreateTokenInput,
160
162
  "DexDTO": DexDTO,
161
- "DexMintInput": DexMintInput,
162
163
  "DexPage": DexPage,
163
164
  "DexPoolDTO": DexPoolDTO,
164
165
  "FilterCondition": FilterCondition,
165
166
  "GainersAndLosersDTO": GainersAndLosersDTO,
166
167
  "GainersAndLosersPage": GainersAndLosersPage,
167
168
  "Link": Link,
168
- "MintInput": MintInput,
169
- "MintReply": MintReply,
170
- "MoonshotMintReply": MoonshotMintReply,
171
- "MoonshotSubmitMint200Response": MoonshotSubmitMint200Response,
172
- "PumpMintInput": PumpMintInput,
173
- "PumpMintReply": PumpMintReply,
169
+ "MoonshotCreateTokenInput": MoonshotCreateTokenInput,
170
+ "MoonshotCreateTokenReply": MoonshotCreateTokenReply,
171
+ "MoonshotSubmitCreateToken200Response": MoonshotSubmitCreateToken200Response,
172
+ "MoonshotSubmitCreateTokenInput": MoonshotSubmitCreateTokenInput,
173
+ "PumpCreateTokenInput": PumpCreateTokenInput,
174
+ "PumpCreateTokenReply": PumpCreateTokenReply,
174
175
  "RedPacketClaimDTO": RedPacketClaimDTO,
175
176
  "RedPacketClaimsPage": RedPacketClaimsPage,
176
177
  "RedPacketDTO": RedPacketDTO,
@@ -180,7 +181,6 @@ let typeMap: {[index: string]: any} = {
180
181
  "RedPacketsPage": RedPacketsPage,
181
182
  "SendTxInput": SendTxInput,
182
183
  "SendTxResponse": SendTxResponse,
183
- "SubmitInput": SubmitInput,
184
184
  "SwapInput": SwapInput,
185
185
  "SwapReply": SwapReply,
186
186
  "SwapRouteInput": SwapRouteInput,
@@ -12,11 +12,11 @@
12
12
 
13
13
  import { HttpFile } from '../http/http';
14
14
 
15
- export class PumpMintInput {
15
+ export class PumpCreateTokenInput {
16
16
  /**
17
17
  * DTO.DEX.IDENTIFIER
18
18
  */
19
- 'dex': PumpMintInputDexEnum;
19
+ 'dex': PumpCreateTokenInputDexEnum;
20
20
  /**
21
21
  * DTO.DEX.WALLET
22
22
  */
@@ -48,7 +48,7 @@ export class PumpMintInput {
48
48
  /**
49
49
  * DTO.DEX.PUMPFUN.MINT.MIGRATION_DEX
50
50
  */
51
- 'migrationDex': PumpMintInputMigrationDexEnum;
51
+ 'migrationDex': PumpCreateTokenInputMigrationDexEnum;
52
52
  /**
53
53
  * DTO.DEX.PUMPFUN.MINT.IMAGE
54
54
  */
@@ -70,7 +70,7 @@ export class PumpMintInput {
70
70
  {
71
71
  "name": "dex",
72
72
  "baseName": "dex",
73
- "type": "PumpMintInputDexEnum",
73
+ "type": "PumpCreateTokenInputDexEnum",
74
74
  "format": ""
75
75
  },
76
76
  {
@@ -118,7 +118,7 @@ export class PumpMintInput {
118
118
  {
119
119
  "name": "migrationDex",
120
120
  "baseName": "migrationDex",
121
- "type": "PumpMintInputMigrationDexEnum",
121
+ "type": "PumpCreateTokenInputMigrationDexEnum",
122
122
  "format": ""
123
123
  },
124
124
  {
@@ -141,17 +141,17 @@ export class PumpMintInput {
141
141
  } ];
142
142
 
143
143
  static getAttributeTypeMap() {
144
- return PumpMintInput.attributeTypeMap;
144
+ return PumpCreateTokenInput.attributeTypeMap;
145
145
  }
146
146
 
147
147
  public constructor() {
148
148
  }
149
149
  }
150
150
 
151
- export enum PumpMintInputDexEnum {
151
+ export enum PumpCreateTokenInputDexEnum {
152
152
  Pumpfun = 'pumpfun'
153
153
  }
154
- export enum PumpMintInputMigrationDexEnum {
154
+ export enum PumpCreateTokenInputMigrationDexEnum {
155
155
  Raydium = 'RAYDIUM',
156
156
  Meteora = 'METEORA'
157
157
  }
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { HttpFile } from '../http/http';
14
14
 
15
- export class PumpMintReply {
15
+ export class PumpCreateTokenReply {
16
16
  /**
17
17
  * DTO.DEX.PUMPFUN.MINT.SERIALIZED_TX
18
18
  */
@@ -41,7 +41,7 @@ export class PumpMintReply {
41
41
  } ];
42
42
 
43
43
  static getAttributeTypeMap() {
44
- return PumpMintReply.attributeTypeMap;
44
+ return PumpCreateTokenReply.attributeTypeMap;
45
45
  }
46
46
 
47
47
  public constructor() {