@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.
Files changed (147) hide show
  1. package/README.md +46 -0
  2. package/dist/esm/index.d.ts +1 -1
  3. package/dist/esm/index.js +76 -60
  4. package/dist/esm/openapi/apis/BlockchainApi.js +61 -44
  5. package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +67 -50
  6. package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +38 -25
  7. package/dist/esm/openapi/apis/DexApi.js +205 -176
  8. package/dist/esm/openapi/apis/DexPoolApi.js +41 -28
  9. package/dist/esm/openapi/apis/EndpointApi.js +212 -175
  10. package/dist/esm/openapi/apis/IpfsApi.js +38 -25
  11. package/dist/esm/openapi/apis/JobsApi.js +65 -48
  12. package/dist/esm/openapi/apis/RankingApi.js +278 -249
  13. package/dist/esm/openapi/apis/RedPacketApi.js +294 -253
  14. package/dist/esm/openapi/apis/TokenApi.js +1145 -1056
  15. package/dist/esm/openapi/apis/TradeApi.js +233 -208
  16. package/dist/esm/openapi/apis/TransactionApi.js +42 -29
  17. package/dist/esm/openapi/apis/WalletApi.js +148 -123
  18. package/dist/esm/openapi/apis/WatchlistApi.js +41 -28
  19. package/dist/esm/openapi/runtime.js +81 -69
  20. package/dist/esm/stream/index.d.ts +3 -0
  21. package/dist/esm/stream/index.js +3 -0
  22. package/dist/esm/{api → stream}/stream.js +36 -29
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +75 -59
  25. package/dist/openapi/apis/BlockchainApi.js +62 -78
  26. package/dist/openapi/apis/DefiSolanaMoonshotApi.js +68 -84
  27. package/dist/openapi/apis/DefiSolanaPumpfunApi.js +39 -59
  28. package/dist/openapi/apis/DexApi.js +206 -210
  29. package/dist/openapi/apis/DexPoolApi.js +42 -62
  30. package/dist/openapi/apis/EndpointApi.js +213 -209
  31. package/dist/openapi/apis/IpfsApi.js +39 -59
  32. package/dist/openapi/apis/JobsApi.js +66 -82
  33. package/dist/openapi/apis/RankingApi.js +279 -283
  34. package/dist/openapi/apis/RedPacketApi.js +295 -287
  35. package/dist/openapi/apis/TokenApi.js +1146 -1090
  36. package/dist/openapi/apis/TradeApi.js +234 -242
  37. package/dist/openapi/apis/TransactionApi.js +43 -63
  38. package/dist/openapi/apis/WalletApi.js +149 -157
  39. package/dist/openapi/apis/WatchlistApi.js +42 -62
  40. package/dist/openapi/runtime.js +81 -69
  41. package/dist/stream/index.d.ts +3 -0
  42. package/dist/stream/index.js +19 -0
  43. package/dist/{api → stream}/stream.js +36 -29
  44. package/package.json +29 -26
  45. package/src/api/stream.fields.ts +0 -271
  46. package/src/api/stream.model.ts +0 -307
  47. package/src/api/stream.ts +0 -1086
  48. package/src/index.ts +0 -188
  49. package/src/openapi/apis/BlockchainApi.ts +0 -140
  50. package/src/openapi/apis/DefiSolanaMoonshotApi.ts +0 -145
  51. package/src/openapi/apis/DefiSolanaPumpfunApi.ts +0 -86
  52. package/src/openapi/apis/DexApi.ts +0 -490
  53. package/src/openapi/apis/DexPoolApi.ts +0 -107
  54. package/src/openapi/apis/EndpointApi.ts +0 -421
  55. package/src/openapi/apis/IpfsApi.ts +0 -66
  56. package/src/openapi/apis/JobsApi.ts +0 -135
  57. package/src/openapi/apis/RankingApi.ts +0 -939
  58. package/src/openapi/apis/RedPacketApi.ts +0 -621
  59. package/src/openapi/apis/TokenApi.ts +0 -2569
  60. package/src/openapi/apis/TradeApi.ts +0 -596
  61. package/src/openapi/apis/TransactionApi.ts +0 -95
  62. package/src/openapi/apis/WalletApi.ts +0 -365
  63. package/src/openapi/apis/WatchlistApi.ts +0 -107
  64. package/src/openapi/apis/index.ts +0 -17
  65. package/src/openapi/index.ts +0 -5
  66. package/src/openapi/models/BlockchainDTO.ts +0 -93
  67. package/src/openapi/models/BlockchainLatestBlockDTO.ts +0 -75
  68. package/src/openapi/models/BooleanResultDTO.ts +0 -66
  69. package/src/openapi/models/CalculatePnlInput.ts +0 -65
  70. package/src/openapi/models/Candle.ts +0 -130
  71. package/src/openapi/models/ClaimRedPacketInput.ts +0 -90
  72. package/src/openapi/models/CreateEndpointInput.ts +0 -121
  73. package/src/openapi/models/CreateRedPacketInput.ts +0 -124
  74. package/src/openapi/models/CreateRedPacketReply.ts +0 -75
  75. package/src/openapi/models/CreateTokenInput.ts +0 -139
  76. package/src/openapi/models/CreateTokenReply.ts +0 -75
  77. package/src/openapi/models/DexDTO.ts +0 -90
  78. package/src/openapi/models/DexPage.ts +0 -114
  79. package/src/openapi/models/DexPoolDTO.ts +0 -141
  80. package/src/openapi/models/EndpointListResponse.ts +0 -97
  81. package/src/openapi/models/EndpointOperationResponse.ts +0 -65
  82. package/src/openapi/models/EndpointResponse.ts +0 -145
  83. package/src/openapi/models/EndpointSecretResponse.ts +0 -65
  84. package/src/openapi/models/FilterCondition.ts +0 -135
  85. package/src/openapi/models/GainersAndLosersDTO.ts +0 -93
  86. package/src/openapi/models/GainersAndLosersPage.ts +0 -114
  87. package/src/openapi/models/JobDTO.ts +0 -75
  88. package/src/openapi/models/JobStreamingDTO.ts +0 -75
  89. package/src/openapi/models/Link.ts +0 -88
  90. package/src/openapi/models/MoonshotCreateTokenInput.ts +0 -182
  91. package/src/openapi/models/MoonshotCreateTokenReply.ts +0 -75
  92. package/src/openapi/models/MoonshotSubmitCreateToken200Response.ts +0 -73
  93. package/src/openapi/models/MoonshotSubmitCreateTokenInput.ts +0 -74
  94. package/src/openapi/models/PumpCreateTokenInput.ts +0 -180
  95. package/src/openapi/models/PumpCreateTokenReply.ts +0 -74
  96. package/src/openapi/models/QuoteResponse.ts +0 -105
  97. package/src/openapi/models/RedPacketClaimDTO.ts +0 -148
  98. package/src/openapi/models/RedPacketClaimsPage.ts +0 -110
  99. package/src/openapi/models/RedPacketDTO.ts +0 -229
  100. package/src/openapi/models/RedPacketReply.ts +0 -66
  101. package/src/openapi/models/RedPacketSendTxInput.ts +0 -66
  102. package/src/openapi/models/RedPacketSendTxResponse.ts +0 -66
  103. package/src/openapi/models/RedPacketsPage.ts +0 -110
  104. package/src/openapi/models/Resolution.ts +0 -61
  105. package/src/openapi/models/SendTxInput.ts +0 -93
  106. package/src/openapi/models/SendTxResponse.ts +0 -84
  107. package/src/openapi/models/SwapInput.ts +0 -157
  108. package/src/openapi/models/SwapReply.ts +0 -75
  109. package/src/openapi/models/SwapRouteInput.ts +0 -186
  110. package/src/openapi/models/SwapRouteResponse.ts +0 -101
  111. package/src/openapi/models/Token.ts +0 -251
  112. package/src/openapi/models/TokenCreationDTO.ts +0 -131
  113. package/src/openapi/models/TokenCreationPage.ts +0 -114
  114. package/src/openapi/models/TokenCreatorsDTO.ts +0 -81
  115. package/src/openapi/models/TokenExtraDTO.ts +0 -225
  116. package/src/openapi/models/TokenHolder.ts +0 -93
  117. package/src/openapi/models/TokenHolderPage.ts +0 -114
  118. package/src/openapi/models/TokenListPage.ts +0 -114
  119. package/src/openapi/models/TokenMarketData.ts +0 -190
  120. package/src/openapi/models/TokenMetadata.ts +0 -188
  121. package/src/openapi/models/TokenPage.ts +0 -122
  122. package/src/openapi/models/TokenPriceDTO.ts +0 -93
  123. package/src/openapi/models/TokenPricePage.ts +0 -114
  124. package/src/openapi/models/TokenSocialMediasDTO.ts +0 -161
  125. package/src/openapi/models/TokenStat.ts +0 -1152
  126. package/src/openapi/models/TopTradersDTO.ts +0 -164
  127. package/src/openapi/models/TopTradersPage.ts +0 -114
  128. package/src/openapi/models/TradeDetailDTO.ts +0 -282
  129. package/src/openapi/models/TradeEvent.ts +0 -184
  130. package/src/openapi/models/TradePage.ts +0 -114
  131. package/src/openapi/models/TradeType.ts +0 -53
  132. package/src/openapi/models/UpdateEndpointInput.ts +0 -129
  133. package/src/openapi/models/WalletBalanceDetailDTO.ts +0 -282
  134. package/src/openapi/models/WalletBalancesDTO.ts +0 -92
  135. package/src/openapi/models/WalletPnlDTO.ts +0 -264
  136. package/src/openapi/models/index.ts +0 -72
  137. package/src/openapi/runtime.ts +0 -432
  138. /package/dist/{api → esm/stream}/stream.d.ts +0 -0
  139. /package/dist/{api → esm/stream}/stream.fields.d.ts +0 -0
  140. /package/dist/esm/{api → stream}/stream.fields.js +0 -0
  141. /package/dist/{api → esm/stream}/stream.model.d.ts +0 -0
  142. /package/dist/esm/{api → stream}/stream.model.js +0 -0
  143. /package/dist/{esm/api → stream}/stream.d.ts +0 -0
  144. /package/dist/{esm/api → stream}/stream.fields.d.ts +0 -0
  145. /package/dist/{api → stream}/stream.fields.js +0 -0
  146. /package/dist/{esm/api → stream}/stream.model.d.ts +0 -0
  147. /package/dist/{api → stream}/stream.model.js +0 -0
@@ -1,75 +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 JobStreamingDTO
20
- */
21
- export interface JobStreamingDTO {
22
- /**
23
- * DTO.JOB.STREAMING.ID
24
- * @type {number}
25
- * @memberof JobStreamingDTO
26
- */
27
- id: number;
28
- /**
29
- * DTO.JOB.STREAMING.DATA
30
- * @type {object}
31
- * @memberof JobStreamingDTO
32
- */
33
- data: object;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the JobStreamingDTO interface.
38
- */
39
- export function instanceOfJobStreamingDTO(value: object): value is JobStreamingDTO {
40
- if (!('id' in value) || value['id'] === undefined) return false;
41
- if (!('data' in value) || value['data'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function JobStreamingDTOFromJSON(json: any): JobStreamingDTO {
46
- return JobStreamingDTOFromJSONTyped(json, false);
47
- }
48
-
49
- export function JobStreamingDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobStreamingDTO {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'id': json['id'],
56
- 'data': json['data'],
57
- };
58
- }
59
-
60
- export function JobStreamingDTOToJSON(json: any): JobStreamingDTO {
61
- return JobStreamingDTOToJSONTyped(json, false);
62
- }
63
-
64
- export function JobStreamingDTOToJSONTyped(value?: JobStreamingDTO | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'id': value['id'],
72
- 'data': value['data'],
73
- };
74
- }
75
-
@@ -1,88 +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 Link
20
- */
21
- export interface Link {
22
- /**
23
- * DTO.DEX.MOONSHOT.LINK.URL
24
- * @type {string}
25
- * @memberof Link
26
- */
27
- url: string;
28
- /**
29
- * DTO.DEX.MOONSHOT.LINK.LABEL
30
- * @type {string}
31
- * @memberof Link
32
- */
33
- label: LinkLabelEnum;
34
- }
35
-
36
-
37
- /**
38
- * @export
39
- */
40
- export const LinkLabelEnum = {
41
- Website: 'website',
42
- Twitter: 'twitter',
43
- Telegram: 'telegram',
44
- Discord: 'discord'
45
- } as const;
46
- export type LinkLabelEnum = typeof LinkLabelEnum[keyof typeof LinkLabelEnum];
47
-
48
-
49
- /**
50
- * Check if a given object implements the Link interface.
51
- */
52
- export function instanceOfLink(value: object): value is Link {
53
- if (!('url' in value) || value['url'] === undefined) return false;
54
- if (!('label' in value) || value['label'] === undefined) return false;
55
- return true;
56
- }
57
-
58
- export function LinkFromJSON(json: any): Link {
59
- return LinkFromJSONTyped(json, false);
60
- }
61
-
62
- export function LinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Link {
63
- if (json == null) {
64
- return json;
65
- }
66
- return {
67
-
68
- 'url': json['url'],
69
- 'label': json['label'],
70
- };
71
- }
72
-
73
- export function LinkToJSON(json: any): Link {
74
- return LinkToJSONTyped(json, false);
75
- }
76
-
77
- export function LinkToJSONTyped(value?: Link | null, ignoreDiscriminator: boolean = false): any {
78
- if (value == null) {
79
- return value;
80
- }
81
-
82
- return {
83
-
84
- 'url': value['url'],
85
- 'label': value['label'],
86
- };
87
- }
88
-
@@ -1,182 +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 { Link } from './Link';
17
- import {
18
- LinkFromJSON,
19
- LinkFromJSONTyped,
20
- LinkToJSON,
21
- LinkToJSONTyped,
22
- } from './Link';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface MoonshotCreateTokenInput
28
- */
29
- export interface MoonshotCreateTokenInput {
30
- /**
31
- * DTO.DEX.IDENTIFIER
32
- * @type {string}
33
- * @memberof MoonshotCreateTokenInput
34
- */
35
- dex: MoonshotCreateTokenInputDexEnum;
36
- /**
37
- * DTO.DEX.WALLET
38
- * @type {string}
39
- * @memberof MoonshotCreateTokenInput
40
- */
41
- userAddress: string;
42
- /**
43
- * DTO.DEX.BASE.PRIORITY_FEE
44
- * @type {string}
45
- * @memberof MoonshotCreateTokenInput
46
- */
47
- priorityFee?: string;
48
- /**
49
- * DTO.DEX.MOONSHOT.MINT.NAME
50
- * @type {string}
51
- * @memberof MoonshotCreateTokenInput
52
- */
53
- name: string;
54
- /**
55
- * DTO.DEX.MOONSHOT.MINT.SYMBOL
56
- * @type {string}
57
- * @memberof MoonshotCreateTokenInput
58
- */
59
- symbol: string;
60
- /**
61
- * DTO.DEX.MOONSHOT.MINT.MIGRATION_DEX
62
- * @type {string}
63
- * @memberof MoonshotCreateTokenInput
64
- */
65
- migrationDex: MoonshotCreateTokenInputMigrationDexEnum;
66
- /**
67
- * DTO.DEX.MOONSHOT.MINT.ICON
68
- * @type {string}
69
- * @memberof MoonshotCreateTokenInput
70
- */
71
- icon: string;
72
- /**
73
- * DTO.DEX.MOONSHOT.MINT.DESCRIPTION
74
- * @type {string}
75
- * @memberof MoonshotCreateTokenInput
76
- */
77
- description: string;
78
- /**
79
- * DTO.DEX.MOONSHOT.MINT.LINKS
80
- * @type {Array<Link>}
81
- * @memberof MoonshotCreateTokenInput
82
- */
83
- links: Array<Link>;
84
- /**
85
- * DTO.DEX.MOONSHOT.MINT.BANNER
86
- * @type {string}
87
- * @memberof MoonshotCreateTokenInput
88
- */
89
- banner?: string;
90
- /**
91
- * DTO.DEX.MOONSHOT.MINT.TOKEN_AMOUNT
92
- * @type {string}
93
- * @memberof MoonshotCreateTokenInput
94
- */
95
- tokenAmount: string;
96
- }
97
-
98
-
99
- /**
100
- * @export
101
- */
102
- export const MoonshotCreateTokenInputDexEnum = {
103
- Moonshot: 'moonshot'
104
- } as const;
105
- export type MoonshotCreateTokenInputDexEnum = typeof MoonshotCreateTokenInputDexEnum[keyof typeof MoonshotCreateTokenInputDexEnum];
106
-
107
- /**
108
- * @export
109
- */
110
- export const MoonshotCreateTokenInputMigrationDexEnum = {
111
- Raydium: 'RAYDIUM',
112
- Meteora: 'METEORA',
113
- Uniswap: 'UNISWAP'
114
- } as const;
115
- export type MoonshotCreateTokenInputMigrationDexEnum = typeof MoonshotCreateTokenInputMigrationDexEnum[keyof typeof MoonshotCreateTokenInputMigrationDexEnum];
116
-
117
-
118
- /**
119
- * Check if a given object implements the MoonshotCreateTokenInput interface.
120
- */
121
- export function instanceOfMoonshotCreateTokenInput(value: object): value is MoonshotCreateTokenInput {
122
- if (!('dex' in value) || value['dex'] === undefined) return false;
123
- if (!('userAddress' in value) || value['userAddress'] === undefined) return false;
124
- if (!('name' in value) || value['name'] === undefined) return false;
125
- if (!('symbol' in value) || value['symbol'] === undefined) return false;
126
- if (!('migrationDex' in value) || value['migrationDex'] === undefined) return false;
127
- if (!('icon' in value) || value['icon'] === undefined) return false;
128
- if (!('description' in value) || value['description'] === undefined) return false;
129
- if (!('links' in value) || value['links'] === undefined) return false;
130
- if (!('tokenAmount' in value) || value['tokenAmount'] === undefined) return false;
131
- return true;
132
- }
133
-
134
- export function MoonshotCreateTokenInputFromJSON(json: any): MoonshotCreateTokenInput {
135
- return MoonshotCreateTokenInputFromJSONTyped(json, false);
136
- }
137
-
138
- export function MoonshotCreateTokenInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoonshotCreateTokenInput {
139
- if (json == null) {
140
- return json;
141
- }
142
- return {
143
-
144
- 'dex': json['dex'],
145
- 'userAddress': json['userAddress'],
146
- 'priorityFee': json['priorityFee'] == null ? undefined : json['priorityFee'],
147
- 'name': json['name'],
148
- 'symbol': json['symbol'],
149
- 'migrationDex': json['migrationDex'],
150
- 'icon': json['icon'],
151
- 'description': json['description'],
152
- 'links': ((json['links'] as Array<any>).map(LinkFromJSON)),
153
- 'banner': json['banner'] == null ? undefined : json['banner'],
154
- 'tokenAmount': json['tokenAmount'],
155
- };
156
- }
157
-
158
- export function MoonshotCreateTokenInputToJSON(json: any): MoonshotCreateTokenInput {
159
- return MoonshotCreateTokenInputToJSONTyped(json, false);
160
- }
161
-
162
- export function MoonshotCreateTokenInputToJSONTyped(value?: MoonshotCreateTokenInput | null, ignoreDiscriminator: boolean = false): any {
163
- if (value == null) {
164
- return value;
165
- }
166
-
167
- return {
168
-
169
- 'dex': value['dex'],
170
- 'userAddress': value['userAddress'],
171
- 'priorityFee': value['priorityFee'],
172
- 'name': value['name'],
173
- 'symbol': value['symbol'],
174
- 'migrationDex': value['migrationDex'],
175
- 'icon': value['icon'],
176
- 'description': value['description'],
177
- 'links': ((value['links'] as Array<any>).map(LinkToJSON)),
178
- 'banner': value['banner'],
179
- 'tokenAmount': value['tokenAmount'],
180
- };
181
- }
182
-
@@ -1,75 +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 MoonshotCreateTokenReply
20
- */
21
- export interface MoonshotCreateTokenReply {
22
- /**
23
- * DTO.DEX.MOONSHOT.CREATE_TOKEN.SERIALIZED_TX
24
- * @type {string}
25
- * @memberof MoonshotCreateTokenReply
26
- */
27
- serializedTx: string;
28
- /**
29
- * DTO.DEX.MOONSHOT.CREATE_TOKEN.EXTRA
30
- * @type {object}
31
- * @memberof MoonshotCreateTokenReply
32
- */
33
- extra: object;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the MoonshotCreateTokenReply interface.
38
- */
39
- export function instanceOfMoonshotCreateTokenReply(value: object): value is MoonshotCreateTokenReply {
40
- if (!('serializedTx' in value) || value['serializedTx'] === undefined) return false;
41
- if (!('extra' in value) || value['extra'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function MoonshotCreateTokenReplyFromJSON(json: any): MoonshotCreateTokenReply {
46
- return MoonshotCreateTokenReplyFromJSONTyped(json, false);
47
- }
48
-
49
- export function MoonshotCreateTokenReplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoonshotCreateTokenReply {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'serializedTx': json['serializedTx'],
56
- 'extra': json['extra'],
57
- };
58
- }
59
-
60
- export function MoonshotCreateTokenReplyToJSON(json: any): MoonshotCreateTokenReply {
61
- return MoonshotCreateTokenReplyToJSONTyped(json, false);
62
- }
63
-
64
- export function MoonshotCreateTokenReplyToJSONTyped(value?: MoonshotCreateTokenReply | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'serializedTx': value['serializedTx'],
72
- 'extra': value['extra'],
73
- };
74
- }
75
-
@@ -1,73 +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 MoonshotSubmitCreateToken200Response
20
- */
21
- export interface MoonshotSubmitCreateToken200Response {
22
- /**
23
- * Transaction signature
24
- * @type {string}
25
- * @memberof MoonshotSubmitCreateToken200Response
26
- */
27
- signature?: string;
28
- /**
29
- * Block slot number
30
- * @type {number}
31
- * @memberof MoonshotSubmitCreateToken200Response
32
- */
33
- slot?: number;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the MoonshotSubmitCreateToken200Response interface.
38
- */
39
- export function instanceOfMoonshotSubmitCreateToken200Response(value: object): value is MoonshotSubmitCreateToken200Response {
40
- return true;
41
- }
42
-
43
- export function MoonshotSubmitCreateToken200ResponseFromJSON(json: any): MoonshotSubmitCreateToken200Response {
44
- return MoonshotSubmitCreateToken200ResponseFromJSONTyped(json, false);
45
- }
46
-
47
- export function MoonshotSubmitCreateToken200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoonshotSubmitCreateToken200Response {
48
- if (json == null) {
49
- return json;
50
- }
51
- return {
52
-
53
- 'signature': json['signature'] == null ? undefined : json['signature'],
54
- 'slot': json['slot'] == null ? undefined : json['slot'],
55
- };
56
- }
57
-
58
- export function MoonshotSubmitCreateToken200ResponseToJSON(json: any): MoonshotSubmitCreateToken200Response {
59
- return MoonshotSubmitCreateToken200ResponseToJSONTyped(json, false);
60
- }
61
-
62
- export function MoonshotSubmitCreateToken200ResponseToJSONTyped(value?: MoonshotSubmitCreateToken200Response | null, ignoreDiscriminator: boolean = false): any {
63
- if (value == null) {
64
- return value;
65
- }
66
-
67
- return {
68
-
69
- 'signature': value['signature'],
70
- 'slot': value['slot'],
71
- };
72
- }
73
-
@@ -1,74 +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 MoonshotSubmitCreateTokenInput
20
- */
21
- export interface MoonshotSubmitCreateTokenInput {
22
- /**
23
- * DTO.DEX.MOONSHOT.SUBMIT.CREATE_TOKEN.SIGNED_TX
24
- * @type {string}
25
- * @memberof MoonshotSubmitCreateTokenInput
26
- */
27
- signedTx: string;
28
- /**
29
- * DTO.DEX.MOONSHOT.SUBMIT.CREATE_TOKEN.EXTRA
30
- * @type {object}
31
- * @memberof MoonshotSubmitCreateTokenInput
32
- */
33
- extra?: object;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the MoonshotSubmitCreateTokenInput interface.
38
- */
39
- export function instanceOfMoonshotSubmitCreateTokenInput(value: object): value is MoonshotSubmitCreateTokenInput {
40
- if (!('signedTx' in value) || value['signedTx'] === undefined) return false;
41
- return true;
42
- }
43
-
44
- export function MoonshotSubmitCreateTokenInputFromJSON(json: any): MoonshotSubmitCreateTokenInput {
45
- return MoonshotSubmitCreateTokenInputFromJSONTyped(json, false);
46
- }
47
-
48
- export function MoonshotSubmitCreateTokenInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoonshotSubmitCreateTokenInput {
49
- if (json == null) {
50
- return json;
51
- }
52
- return {
53
-
54
- 'signedTx': json['signedTx'],
55
- 'extra': json['extra'] == null ? undefined : json['extra'],
56
- };
57
- }
58
-
59
- export function MoonshotSubmitCreateTokenInputToJSON(json: any): MoonshotSubmitCreateTokenInput {
60
- return MoonshotSubmitCreateTokenInputToJSONTyped(json, false);
61
- }
62
-
63
- export function MoonshotSubmitCreateTokenInputToJSONTyped(value?: MoonshotSubmitCreateTokenInput | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'signedTx': value['signedTx'],
71
- 'extra': value['extra'],
72
- };
73
- }
74
-