@chainstream-io/sdk 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/README.md +46 -0
  2. package/dist/esm/index.d.ts +1 -1
  3. package/dist/esm/index.js +76 -60
  4. package/dist/esm/openapi/apis/BlockchainApi.js +61 -44
  5. package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +67 -50
  6. package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +38 -25
  7. package/dist/esm/openapi/apis/DexApi.js +205 -176
  8. package/dist/esm/openapi/apis/DexPoolApi.js +41 -28
  9. package/dist/esm/openapi/apis/EndpointApi.js +212 -175
  10. package/dist/esm/openapi/apis/IpfsApi.js +38 -25
  11. package/dist/esm/openapi/apis/JobsApi.js +65 -48
  12. package/dist/esm/openapi/apis/RankingApi.js +278 -249
  13. package/dist/esm/openapi/apis/RedPacketApi.js +294 -253
  14. package/dist/esm/openapi/apis/TokenApi.js +1145 -1056
  15. package/dist/esm/openapi/apis/TradeApi.js +233 -208
  16. package/dist/esm/openapi/apis/TransactionApi.js +42 -29
  17. package/dist/esm/openapi/apis/WalletApi.js +148 -123
  18. package/dist/esm/openapi/apis/WatchlistApi.js +41 -28
  19. package/dist/esm/openapi/runtime.js +81 -69
  20. package/dist/esm/stream/index.d.ts +3 -0
  21. package/dist/esm/stream/index.js +3 -0
  22. package/dist/esm/{api → stream}/stream.js +36 -29
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +75 -59
  25. package/dist/openapi/apis/BlockchainApi.js +62 -78
  26. package/dist/openapi/apis/DefiSolanaMoonshotApi.js +68 -84
  27. package/dist/openapi/apis/DefiSolanaPumpfunApi.js +39 -59
  28. package/dist/openapi/apis/DexApi.js +206 -210
  29. package/dist/openapi/apis/DexPoolApi.js +42 -62
  30. package/dist/openapi/apis/EndpointApi.js +213 -209
  31. package/dist/openapi/apis/IpfsApi.js +39 -59
  32. package/dist/openapi/apis/JobsApi.js +66 -82
  33. package/dist/openapi/apis/RankingApi.js +279 -283
  34. package/dist/openapi/apis/RedPacketApi.js +295 -287
  35. package/dist/openapi/apis/TokenApi.js +1146 -1090
  36. package/dist/openapi/apis/TradeApi.js +234 -242
  37. package/dist/openapi/apis/TransactionApi.js +43 -63
  38. package/dist/openapi/apis/WalletApi.js +149 -157
  39. package/dist/openapi/apis/WatchlistApi.js +42 -62
  40. package/dist/openapi/runtime.js +81 -69
  41. package/dist/stream/index.d.ts +3 -0
  42. package/dist/stream/index.js +19 -0
  43. package/dist/{api → stream}/stream.js +36 -29
  44. package/package.json +29 -29
  45. package/src/api/stream.fields.ts +0 -271
  46. package/src/api/stream.model.ts +0 -307
  47. package/src/api/stream.ts +0 -1086
  48. package/src/index.ts +0 -188
  49. package/src/openapi/apis/BlockchainApi.ts +0 -140
  50. package/src/openapi/apis/DefiSolanaMoonshotApi.ts +0 -145
  51. package/src/openapi/apis/DefiSolanaPumpfunApi.ts +0 -86
  52. package/src/openapi/apis/DexApi.ts +0 -490
  53. package/src/openapi/apis/DexPoolApi.ts +0 -107
  54. package/src/openapi/apis/EndpointApi.ts +0 -421
  55. package/src/openapi/apis/IpfsApi.ts +0 -66
  56. package/src/openapi/apis/JobsApi.ts +0 -135
  57. package/src/openapi/apis/RankingApi.ts +0 -939
  58. package/src/openapi/apis/RedPacketApi.ts +0 -621
  59. package/src/openapi/apis/TokenApi.ts +0 -2569
  60. package/src/openapi/apis/TradeApi.ts +0 -596
  61. package/src/openapi/apis/TransactionApi.ts +0 -95
  62. package/src/openapi/apis/WalletApi.ts +0 -365
  63. package/src/openapi/apis/WatchlistApi.ts +0 -107
  64. package/src/openapi/apis/index.ts +0 -17
  65. package/src/openapi/index.ts +0 -5
  66. package/src/openapi/models/BlockchainDTO.ts +0 -93
  67. package/src/openapi/models/BlockchainLatestBlockDTO.ts +0 -75
  68. package/src/openapi/models/BooleanResultDTO.ts +0 -66
  69. package/src/openapi/models/CalculatePnlInput.ts +0 -65
  70. package/src/openapi/models/Candle.ts +0 -130
  71. package/src/openapi/models/ClaimRedPacketInput.ts +0 -90
  72. package/src/openapi/models/CreateEndpointInput.ts +0 -121
  73. package/src/openapi/models/CreateRedPacketInput.ts +0 -124
  74. package/src/openapi/models/CreateRedPacketReply.ts +0 -75
  75. package/src/openapi/models/CreateTokenInput.ts +0 -139
  76. package/src/openapi/models/CreateTokenReply.ts +0 -75
  77. package/src/openapi/models/DexDTO.ts +0 -90
  78. package/src/openapi/models/DexPage.ts +0 -114
  79. package/src/openapi/models/DexPoolDTO.ts +0 -141
  80. package/src/openapi/models/EndpointListResponse.ts +0 -97
  81. package/src/openapi/models/EndpointOperationResponse.ts +0 -65
  82. package/src/openapi/models/EndpointResponse.ts +0 -145
  83. package/src/openapi/models/EndpointSecretResponse.ts +0 -65
  84. package/src/openapi/models/FilterCondition.ts +0 -135
  85. package/src/openapi/models/GainersAndLosersDTO.ts +0 -93
  86. package/src/openapi/models/GainersAndLosersPage.ts +0 -114
  87. package/src/openapi/models/JobDTO.ts +0 -75
  88. package/src/openapi/models/JobStreamingDTO.ts +0 -75
  89. package/src/openapi/models/Link.ts +0 -88
  90. package/src/openapi/models/MoonshotCreateTokenInput.ts +0 -182
  91. package/src/openapi/models/MoonshotCreateTokenReply.ts +0 -75
  92. package/src/openapi/models/MoonshotSubmitCreateToken200Response.ts +0 -73
  93. package/src/openapi/models/MoonshotSubmitCreateTokenInput.ts +0 -74
  94. package/src/openapi/models/PumpCreateTokenInput.ts +0 -180
  95. package/src/openapi/models/PumpCreateTokenReply.ts +0 -74
  96. package/src/openapi/models/QuoteResponse.ts +0 -105
  97. package/src/openapi/models/RedPacketClaimDTO.ts +0 -148
  98. package/src/openapi/models/RedPacketClaimsPage.ts +0 -110
  99. package/src/openapi/models/RedPacketDTO.ts +0 -229
  100. package/src/openapi/models/RedPacketReply.ts +0 -66
  101. package/src/openapi/models/RedPacketSendTxInput.ts +0 -66
  102. package/src/openapi/models/RedPacketSendTxResponse.ts +0 -66
  103. package/src/openapi/models/RedPacketsPage.ts +0 -110
  104. package/src/openapi/models/Resolution.ts +0 -61
  105. package/src/openapi/models/SendTxInput.ts +0 -93
  106. package/src/openapi/models/SendTxResponse.ts +0 -84
  107. package/src/openapi/models/SwapInput.ts +0 -157
  108. package/src/openapi/models/SwapReply.ts +0 -75
  109. package/src/openapi/models/SwapRouteInput.ts +0 -186
  110. package/src/openapi/models/SwapRouteResponse.ts +0 -101
  111. package/src/openapi/models/Token.ts +0 -251
  112. package/src/openapi/models/TokenCreationDTO.ts +0 -131
  113. package/src/openapi/models/TokenCreationPage.ts +0 -114
  114. package/src/openapi/models/TokenCreatorsDTO.ts +0 -81
  115. package/src/openapi/models/TokenExtraDTO.ts +0 -225
  116. package/src/openapi/models/TokenHolder.ts +0 -93
  117. package/src/openapi/models/TokenHolderPage.ts +0 -114
  118. package/src/openapi/models/TokenListPage.ts +0 -114
  119. package/src/openapi/models/TokenMarketData.ts +0 -190
  120. package/src/openapi/models/TokenMetadata.ts +0 -188
  121. package/src/openapi/models/TokenPage.ts +0 -122
  122. package/src/openapi/models/TokenPriceDTO.ts +0 -93
  123. package/src/openapi/models/TokenPricePage.ts +0 -114
  124. package/src/openapi/models/TokenSocialMediasDTO.ts +0 -161
  125. package/src/openapi/models/TokenStat.ts +0 -1152
  126. package/src/openapi/models/TopTradersDTO.ts +0 -164
  127. package/src/openapi/models/TopTradersPage.ts +0 -114
  128. package/src/openapi/models/TradeDetailDTO.ts +0 -282
  129. package/src/openapi/models/TradeEvent.ts +0 -184
  130. package/src/openapi/models/TradePage.ts +0 -114
  131. package/src/openapi/models/TradeType.ts +0 -53
  132. package/src/openapi/models/UpdateEndpointInput.ts +0 -129
  133. package/src/openapi/models/WalletBalanceDetailDTO.ts +0 -282
  134. package/src/openapi/models/WalletBalancesDTO.ts +0 -92
  135. package/src/openapi/models/WalletPnlDTO.ts +0 -264
  136. package/src/openapi/models/index.ts +0 -72
  137. package/src/openapi/runtime.ts +0 -432
  138. /package/dist/{api → esm/stream}/stream.d.ts +0 -0
  139. /package/dist/{api → esm/stream}/stream.fields.d.ts +0 -0
  140. /package/dist/esm/{api → stream}/stream.fields.js +0 -0
  141. /package/dist/{api → esm/stream}/stream.model.d.ts +0 -0
  142. /package/dist/esm/{api → stream}/stream.model.js +0 -0
  143. /package/dist/{esm/api → stream}/stream.d.ts +0 -0
  144. /package/dist/{esm/api → stream}/stream.fields.d.ts +0 -0
  145. /package/dist/{api → stream}/stream.fields.js +0 -0
  146. /package/dist/{esm/api → stream}/stream.model.d.ts +0 -0
  147. /package/dist/{api → stream}/stream.model.js +0 -0
@@ -1,180 +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 PumpCreateTokenInput
20
- */
21
- export interface PumpCreateTokenInput {
22
- /**
23
- * DTO.DEX.IDENTIFIER
24
- * @type {string}
25
- * @memberof PumpCreateTokenInput
26
- */
27
- dex: PumpCreateTokenInputDexEnum;
28
- /**
29
- * DTO.DEX.WALLET
30
- * @type {string}
31
- * @memberof PumpCreateTokenInput
32
- */
33
- userAddress: string;
34
- /**
35
- * DTO.DEX.BASE.PRIORITY_FEE
36
- * @type {string}
37
- * @memberof PumpCreateTokenInput
38
- */
39
- priorityFee?: string;
40
- /**
41
- * DTO.DEX.PUMPFUN.MINT.TWITTER
42
- * @type {string}
43
- * @memberof PumpCreateTokenInput
44
- */
45
- twitter?: string;
46
- /**
47
- * DTO.DEX.PUMPFUN.MINT.TELEGRAM
48
- * @type {string}
49
- * @memberof PumpCreateTokenInput
50
- */
51
- telegram?: string;
52
- /**
53
- * DTO.DEX.PUMPFUN.MINT.WEBSITE
54
- * @type {string}
55
- * @memberof PumpCreateTokenInput
56
- */
57
- website?: string;
58
- /**
59
- * DTO.DEX.PUMPFUN.MINT.NAME
60
- * @type {string}
61
- * @memberof PumpCreateTokenInput
62
- */
63
- name: string;
64
- /**
65
- * DTO.DEX.PUMPFUN.MINT.SYMBOL
66
- * @type {string}
67
- * @memberof PumpCreateTokenInput
68
- */
69
- symbol: string;
70
- /**
71
- * DTO.DEX.PUMPFUN.MINT.MIGRATION_DEX
72
- * @type {string}
73
- * @memberof PumpCreateTokenInput
74
- */
75
- migrationDex: PumpCreateTokenInputMigrationDexEnum;
76
- /**
77
- * DTO.DEX.PUMPFUN.MINT.IMAGE
78
- * @type {string}
79
- * @memberof PumpCreateTokenInput
80
- */
81
- image: string;
82
- /**
83
- * DTO.DEX.PUMPFUN.MINT.MINT_ADDRESS
84
- * @type {string}
85
- * @memberof PumpCreateTokenInput
86
- */
87
- mintAddress: string;
88
- /**
89
- * DTO.DEX.PUMPFUN.MINT.DESCRIPTION
90
- * @type {string}
91
- * @memberof PumpCreateTokenInput
92
- */
93
- description: string;
94
- }
95
-
96
-
97
- /**
98
- * @export
99
- */
100
- export const PumpCreateTokenInputDexEnum = {
101
- Pumpfun: 'pumpfun'
102
- } as const;
103
- export type PumpCreateTokenInputDexEnum = typeof PumpCreateTokenInputDexEnum[keyof typeof PumpCreateTokenInputDexEnum];
104
-
105
- /**
106
- * @export
107
- */
108
- export const PumpCreateTokenInputMigrationDexEnum = {
109
- Raydium: 'RAYDIUM',
110
- Meteora: 'METEORA'
111
- } as const;
112
- export type PumpCreateTokenInputMigrationDexEnum = typeof PumpCreateTokenInputMigrationDexEnum[keyof typeof PumpCreateTokenInputMigrationDexEnum];
113
-
114
-
115
- /**
116
- * Check if a given object implements the PumpCreateTokenInput interface.
117
- */
118
- export function instanceOfPumpCreateTokenInput(value: object): value is PumpCreateTokenInput {
119
- if (!('dex' in value) || value['dex'] === undefined) return false;
120
- if (!('userAddress' in value) || value['userAddress'] === undefined) return false;
121
- if (!('name' in value) || value['name'] === undefined) return false;
122
- if (!('symbol' in value) || value['symbol'] === undefined) return false;
123
- if (!('migrationDex' in value) || value['migrationDex'] === undefined) return false;
124
- if (!('image' in value) || value['image'] === undefined) return false;
125
- if (!('mintAddress' in value) || value['mintAddress'] === undefined) return false;
126
- if (!('description' in value) || value['description'] === undefined) return false;
127
- return true;
128
- }
129
-
130
- export function PumpCreateTokenInputFromJSON(json: any): PumpCreateTokenInput {
131
- return PumpCreateTokenInputFromJSONTyped(json, false);
132
- }
133
-
134
- export function PumpCreateTokenInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PumpCreateTokenInput {
135
- if (json == null) {
136
- return json;
137
- }
138
- return {
139
-
140
- 'dex': json['dex'],
141
- 'userAddress': json['userAddress'],
142
- 'priorityFee': json['priorityFee'] == null ? undefined : json['priorityFee'],
143
- 'twitter': json['twitter'] == null ? undefined : json['twitter'],
144
- 'telegram': json['telegram'] == null ? undefined : json['telegram'],
145
- 'website': json['website'] == null ? undefined : json['website'],
146
- 'name': json['name'],
147
- 'symbol': json['symbol'],
148
- 'migrationDex': json['migrationDex'],
149
- 'image': json['image'],
150
- 'mintAddress': json['mintAddress'],
151
- 'description': json['description'],
152
- };
153
- }
154
-
155
- export function PumpCreateTokenInputToJSON(json: any): PumpCreateTokenInput {
156
- return PumpCreateTokenInputToJSONTyped(json, false);
157
- }
158
-
159
- export function PumpCreateTokenInputToJSONTyped(value?: PumpCreateTokenInput | null, ignoreDiscriminator: boolean = false): any {
160
- if (value == null) {
161
- return value;
162
- }
163
-
164
- return {
165
-
166
- 'dex': value['dex'],
167
- 'userAddress': value['userAddress'],
168
- 'priorityFee': value['priorityFee'],
169
- 'twitter': value['twitter'],
170
- 'telegram': value['telegram'],
171
- 'website': value['website'],
172
- 'name': value['name'],
173
- 'symbol': value['symbol'],
174
- 'migrationDex': value['migrationDex'],
175
- 'image': value['image'],
176
- 'mintAddress': value['mintAddress'],
177
- 'description': value['description'],
178
- };
179
- }
180
-
@@ -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 PumpCreateTokenReply
20
- */
21
- export interface PumpCreateTokenReply {
22
- /**
23
- * DTO.DEX.PUMPFUN.MINT.SERIALIZED_TX
24
- * @type {string}
25
- * @memberof PumpCreateTokenReply
26
- */
27
- serializedTx: string;
28
- /**
29
- * DTO.DEX.PUMPFUN.MINT.EXTRA
30
- * @type {object}
31
- * @memberof PumpCreateTokenReply
32
- */
33
- extra?: object;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the PumpCreateTokenReply interface.
38
- */
39
- export function instanceOfPumpCreateTokenReply(value: object): value is PumpCreateTokenReply {
40
- if (!('serializedTx' in value) || value['serializedTx'] === undefined) return false;
41
- return true;
42
- }
43
-
44
- export function PumpCreateTokenReplyFromJSON(json: any): PumpCreateTokenReply {
45
- return PumpCreateTokenReplyFromJSONTyped(json, false);
46
- }
47
-
48
- export function PumpCreateTokenReplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): PumpCreateTokenReply {
49
- if (json == null) {
50
- return json;
51
- }
52
- return {
53
-
54
- 'serializedTx': json['serializedTx'],
55
- 'extra': json['extra'] == null ? undefined : json['extra'],
56
- };
57
- }
58
-
59
- export function PumpCreateTokenReplyToJSON(json: any): PumpCreateTokenReply {
60
- return PumpCreateTokenReplyToJSONTyped(json, false);
61
- }
62
-
63
- export function PumpCreateTokenReplyToJSONTyped(value?: PumpCreateTokenReply | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'serializedTx': value['serializedTx'],
71
- 'extra': value['extra'],
72
- };
73
- }
74
-
@@ -1,105 +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 QuoteResponse
20
- */
21
- export interface QuoteResponse {
22
- /**
23
- * DTO.DEX.QUOTE.AMOUNT_OUT
24
- * @type {string}
25
- * @memberof QuoteResponse
26
- */
27
- amountOut?: string;
28
- /**
29
- * DTO.DEX.QUOTE.MIN_AMOUNT_OUT
30
- * @type {string}
31
- * @memberof QuoteResponse
32
- */
33
- minAmountOut?: string;
34
- /**
35
- * DTO.DEX.QUOTE.CURRENT_PRICE
36
- * @type {string}
37
- * @memberof QuoteResponse
38
- */
39
- currentPrice?: string;
40
- /**
41
- * DTO.DEX.QUOTE.EXECUTION_PRICE
42
- * @type {string}
43
- * @memberof QuoteResponse
44
- */
45
- executionPrice?: string;
46
- /**
47
- * DTO.DEX.QUOTE.PRICE_IMPACT
48
- * @type {string}
49
- * @memberof QuoteResponse
50
- */
51
- priceImpact?: string;
52
- /**
53
- * DTO.DEX.QUOTE.FEE
54
- * @type {string}
55
- * @memberof QuoteResponse
56
- */
57
- fee?: string;
58
- }
59
-
60
- /**
61
- * Check if a given object implements the QuoteResponse interface.
62
- */
63
- export function instanceOfQuoteResponse(value: object): value is QuoteResponse {
64
- return true;
65
- }
66
-
67
- export function QuoteResponseFromJSON(json: any): QuoteResponse {
68
- return QuoteResponseFromJSONTyped(json, false);
69
- }
70
-
71
- export function QuoteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuoteResponse {
72
- if (json == null) {
73
- return json;
74
- }
75
- return {
76
-
77
- 'amountOut': json['amountOut'] == null ? undefined : json['amountOut'],
78
- 'minAmountOut': json['minAmountOut'] == null ? undefined : json['minAmountOut'],
79
- 'currentPrice': json['currentPrice'] == null ? undefined : json['currentPrice'],
80
- 'executionPrice': json['executionPrice'] == null ? undefined : json['executionPrice'],
81
- 'priceImpact': json['priceImpact'] == null ? undefined : json['priceImpact'],
82
- 'fee': json['fee'] == null ? undefined : json['fee'],
83
- };
84
- }
85
-
86
- export function QuoteResponseToJSON(json: any): QuoteResponse {
87
- return QuoteResponseToJSONTyped(json, false);
88
- }
89
-
90
- export function QuoteResponseToJSONTyped(value?: QuoteResponse | null, ignoreDiscriminator: boolean = false): any {
91
- if (value == null) {
92
- return value;
93
- }
94
-
95
- return {
96
-
97
- 'amountOut': value['amountOut'],
98
- 'minAmountOut': value['minAmountOut'],
99
- 'currentPrice': value['currentPrice'],
100
- 'executionPrice': value['executionPrice'],
101
- 'priceImpact': value['priceImpact'],
102
- 'fee': value['fee'],
103
- };
104
- }
105
-
@@ -1,148 +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 RedPacketClaimDTO
20
- */
21
- export interface RedPacketClaimDTO {
22
- /**
23
- * DTO.RED_PACKET.PACKET_ID
24
- * @type {string}
25
- * @memberof RedPacketClaimDTO
26
- */
27
- packetId: string;
28
- /**
29
- * DTO.RED_PACKET.CHAIN
30
- * @type {string}
31
- * @memberof RedPacketClaimDTO
32
- */
33
- chain: RedPacketClaimDTOChainEnum;
34
- /**
35
- * DTO.RED_PACKET.CLAIMER
36
- * @type {string}
37
- * @memberof RedPacketClaimDTO
38
- */
39
- claimer: string;
40
- /**
41
- * DTO.RED_PACKET.MINT
42
- * @type {string}
43
- * @memberof RedPacketClaimDTO
44
- */
45
- mint: string;
46
- /**
47
- * DTO.RED_PACKET.AMOUNT
48
- * @type {string}
49
- * @memberof RedPacketClaimDTO
50
- */
51
- amount: string;
52
- /**
53
- * DTO.RED_PACKET.CLAIMED_AT
54
- * @type {number}
55
- * @memberof RedPacketClaimDTO
56
- */
57
- claimedAt: number;
58
- /**
59
- * DTO.RED_PACKET.CREATOR
60
- * @type {string}
61
- * @memberof RedPacketClaimDTO
62
- */
63
- creator: string;
64
- /**
65
- * DTO.RED_PACKET.TX_HASH
66
- * @type {string}
67
- * @memberof RedPacketClaimDTO
68
- */
69
- txHash: string;
70
- }
71
-
72
-
73
- /**
74
- * @export
75
- */
76
- export const RedPacketClaimDTOChainEnum = {
77
- Sol: 'sol',
78
- Base: 'base',
79
- Bsc: 'bsc',
80
- Polygon: 'polygon',
81
- Arbitrum: 'arbitrum',
82
- Optimism: 'optimism',
83
- Avalanche: 'avalanche',
84
- Ethereum: 'ethereum',
85
- Zksync: 'zksync',
86
- Sui: 'sui'
87
- } as const;
88
- export type RedPacketClaimDTOChainEnum = typeof RedPacketClaimDTOChainEnum[keyof typeof RedPacketClaimDTOChainEnum];
89
-
90
-
91
- /**
92
- * Check if a given object implements the RedPacketClaimDTO interface.
93
- */
94
- export function instanceOfRedPacketClaimDTO(value: object): value is RedPacketClaimDTO {
95
- if (!('packetId' in value) || value['packetId'] === undefined) return false;
96
- if (!('chain' in value) || value['chain'] === undefined) return false;
97
- if (!('claimer' in value) || value['claimer'] === undefined) return false;
98
- if (!('mint' in value) || value['mint'] === undefined) return false;
99
- if (!('amount' in value) || value['amount'] === undefined) return false;
100
- if (!('claimedAt' in value) || value['claimedAt'] === undefined) return false;
101
- if (!('creator' in value) || value['creator'] === undefined) return false;
102
- if (!('txHash' in value) || value['txHash'] === undefined) return false;
103
- return true;
104
- }
105
-
106
- export function RedPacketClaimDTOFromJSON(json: any): RedPacketClaimDTO {
107
- return RedPacketClaimDTOFromJSONTyped(json, false);
108
- }
109
-
110
- export function RedPacketClaimDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedPacketClaimDTO {
111
- if (json == null) {
112
- return json;
113
- }
114
- return {
115
-
116
- 'packetId': json['packetId'],
117
- 'chain': json['chain'],
118
- 'claimer': json['claimer'],
119
- 'mint': json['mint'],
120
- 'amount': json['amount'],
121
- 'claimedAt': json['claimedAt'],
122
- 'creator': json['creator'],
123
- 'txHash': json['txHash'],
124
- };
125
- }
126
-
127
- export function RedPacketClaimDTOToJSON(json: any): RedPacketClaimDTO {
128
- return RedPacketClaimDTOToJSONTyped(json, false);
129
- }
130
-
131
- export function RedPacketClaimDTOToJSONTyped(value?: RedPacketClaimDTO | null, ignoreDiscriminator: boolean = false): any {
132
- if (value == null) {
133
- return value;
134
- }
135
-
136
- return {
137
-
138
- 'packetId': value['packetId'],
139
- 'chain': value['chain'],
140
- 'claimer': value['claimer'],
141
- 'mint': value['mint'],
142
- 'amount': value['amount'],
143
- 'claimedAt': value['claimedAt'],
144
- 'creator': value['creator'],
145
- 'txHash': value['txHash'],
146
- };
147
- }
148
-
@@ -1,110 +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 { RedPacketClaimDTO } from './RedPacketClaimDTO';
17
- import {
18
- RedPacketClaimDTOFromJSON,
19
- RedPacketClaimDTOFromJSONTyped,
20
- RedPacketClaimDTOToJSON,
21
- RedPacketClaimDTOToJSONTyped,
22
- } from './RedPacketClaimDTO';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface RedPacketClaimsPage
28
- */
29
- export interface RedPacketClaimsPage {
30
- /**
31
- * DTO.PAGE.TOTAL
32
- * @type {number}
33
- * @memberof RedPacketClaimsPage
34
- */
35
- total: number;
36
- /**
37
- * DTO.PAGE.HAS_NEXT
38
- * @type {boolean}
39
- * @memberof RedPacketClaimsPage
40
- */
41
- hasNextPage: boolean;
42
- /**
43
- * DTO.PAGE.START_CURSOR
44
- * @type {string}
45
- * @memberof RedPacketClaimsPage
46
- */
47
- startCursor: string;
48
- /**
49
- * DTO.PAGE.END_CURSOR
50
- * @type {string}
51
- * @memberof RedPacketClaimsPage
52
- */
53
- endCursor: string;
54
- /**
55
- * Array of claim records
56
- * @type {Array<RedPacketClaimDTO>}
57
- * @memberof RedPacketClaimsPage
58
- */
59
- records: Array<RedPacketClaimDTO>;
60
- }
61
-
62
- /**
63
- * Check if a given object implements the RedPacketClaimsPage interface.
64
- */
65
- export function instanceOfRedPacketClaimsPage(value: object): value is RedPacketClaimsPage {
66
- if (!('total' in value) || value['total'] === undefined) return false;
67
- if (!('hasNextPage' in value) || value['hasNextPage'] === undefined) return false;
68
- if (!('startCursor' in value) || value['startCursor'] === undefined) return false;
69
- if (!('endCursor' in value) || value['endCursor'] === undefined) return false;
70
- if (!('records' in value) || value['records'] === undefined) return false;
71
- return true;
72
- }
73
-
74
- export function RedPacketClaimsPageFromJSON(json: any): RedPacketClaimsPage {
75
- return RedPacketClaimsPageFromJSONTyped(json, false);
76
- }
77
-
78
- export function RedPacketClaimsPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedPacketClaimsPage {
79
- if (json == null) {
80
- return json;
81
- }
82
- return {
83
-
84
- 'total': json['total'],
85
- 'hasNextPage': json['hasNextPage'],
86
- 'startCursor': json['startCursor'],
87
- 'endCursor': json['endCursor'],
88
- 'records': ((json['records'] as Array<any>).map(RedPacketClaimDTOFromJSON)),
89
- };
90
- }
91
-
92
- export function RedPacketClaimsPageToJSON(json: any): RedPacketClaimsPage {
93
- return RedPacketClaimsPageToJSONTyped(json, false);
94
- }
95
-
96
- export function RedPacketClaimsPageToJSONTyped(value?: RedPacketClaimsPage | null, ignoreDiscriminator: boolean = false): any {
97
- if (value == null) {
98
- return value;
99
- }
100
-
101
- return {
102
-
103
- 'total': value['total'],
104
- 'hasNextPage': value['hasNextPage'],
105
- 'startCursor': value['startCursor'],
106
- 'endCursor': value['endCursor'],
107
- 'records': ((value['records'] as Array<any>).map(RedPacketClaimDTOToJSON)),
108
- };
109
- }
110
-