@avalabs/glacier-sdk 2.8.0-alpha.8 → 2.8.0-alpha.81

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 (203) hide show
  1. package/README.md +10 -0
  2. package/dist/index.d.ts +3091 -3
  3. package/dist/index.js +1480 -153
  4. package/esm/generated/Glacier.d.ts +18 -0
  5. package/esm/generated/Glacier.js +28 -0
  6. package/esm/generated/core/ApiError.d.ts +13 -0
  7. package/esm/generated/core/ApiError.js +13 -0
  8. package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
  9. package/esm/generated/core/ApiResult.d.ts +9 -0
  10. package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
  11. package/esm/generated/core/BaseHttpRequest.js +7 -0
  12. package/esm/generated/core/CancelablePromise.d.ts +28 -0
  13. package/esm/generated/core/CancelablePromise.js +86 -0
  14. package/esm/generated/core/FetchHttpRequest.js +13 -0
  15. package/esm/generated/core/OpenAPI.d.ts +18 -0
  16. package/esm/generated/core/OpenAPI.js +13 -0
  17. package/esm/generated/core/request.js +244 -0
  18. package/esm/generated/models/Address.d.ts +8 -0
  19. package/esm/generated/models/Asset.d.ts +28 -0
  20. package/esm/generated/models/AssetType.d.ts +8 -0
  21. package/esm/generated/models/AssetType.js +9 -0
  22. package/esm/generated/models/Block.d.ts +15 -0
  23. package/esm/generated/models/BlockchainId.d.ts +9 -0
  24. package/esm/generated/models/BlockchainId.js +10 -0
  25. package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
  26. package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
  27. package/esm/generated/models/CChainExportTransaction.js +8 -0
  28. package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
  29. package/esm/generated/models/CChainImportTransaction.js +8 -0
  30. package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
  31. package/esm/generated/models/CPBlockchainId.d.ts +7 -0
  32. package/esm/generated/models/CPBlockchainId.js +8 -0
  33. package/esm/generated/models/CancelListingEventResponse.d.ts +5 -0
  34. package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
  35. package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
  36. package/esm/generated/models/ChainInfo.d.ts +22 -0
  37. package/esm/generated/models/CloseAuctionEventResponse.d.ts +6 -0
  38. package/esm/generated/models/CollectionMetrics.d.ts +40 -0
  39. package/esm/generated/models/CollectionSortByOption.d.ts +8 -0
  40. package/esm/generated/models/CollectionSortByOption.js +9 -0
  41. package/esm/generated/models/ContractType.d.ts +7 -0
  42. package/esm/generated/models/ContractType.js +8 -0
  43. package/esm/generated/models/CreateTransactionExportRequest.d.ts +11 -0
  44. package/esm/generated/models/CurrencyCode.d.ts +18 -0
  45. package/esm/generated/models/CurrencyCode.js +19 -0
  46. package/esm/generated/models/EVMInput.d.ts +14 -0
  47. package/esm/generated/models/EVMOutput.d.ts +14 -0
  48. package/esm/generated/models/Erc1155Token.d.ts +19 -0
  49. package/esm/generated/models/Erc1155Token.js +8 -0
  50. package/esm/generated/models/Erc1155TokenBalance.d.ts +28 -0
  51. package/esm/generated/models/Erc1155TokenBalance.js +8 -0
  52. package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
  53. package/esm/generated/models/Erc1155Transfer.d.ts +27 -0
  54. package/esm/generated/models/Erc1155TransferDetails.d.ts +11 -0
  55. package/esm/generated/models/Erc20Token.d.ts +38 -0
  56. package/esm/generated/models/Erc20Token.js +8 -0
  57. package/esm/generated/models/Erc20TokenBalance.d.ts +51 -0
  58. package/esm/generated/models/Erc20TokenBalance.js +8 -0
  59. package/esm/generated/models/Erc20Transfer.d.ts +27 -0
  60. package/esm/generated/models/Erc20TransferDetails.d.ts +11 -0
  61. package/esm/generated/models/Erc721Token.d.ts +27 -0
  62. package/esm/generated/models/Erc721Token.js +8 -0
  63. package/esm/generated/models/Erc721TokenBalance.d.ts +31 -0
  64. package/esm/generated/models/Erc721TokenBalance.js +8 -0
  65. package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
  66. package/esm/generated/models/Erc721Transfer.d.ts +26 -0
  67. package/esm/generated/models/Erc721TransferDetails.d.ts +10 -0
  68. package/esm/generated/models/ErcType.d.ts +8 -0
  69. package/esm/generated/models/ErcType.js +9 -0
  70. package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
  71. package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
  72. package/esm/generated/models/GetBlockResponse.d.ts +49 -0
  73. package/esm/generated/models/GetChainResponse.d.ts +22 -0
  74. package/esm/generated/models/GetContractInformationResponse.d.ts +58 -0
  75. package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
  76. package/esm/generated/models/GetTransactionResponse.d.ts +35 -0
  77. package/esm/generated/models/InternalTransaction.d.ts +33 -0
  78. package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
  79. package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
  80. package/esm/generated/models/InternalTransactionOpCall.js +12 -0
  81. package/esm/generated/models/ListBlocksResponse.d.ts +11 -0
  82. package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +7 -0
  83. package/esm/generated/models/ListCChainExportTxsResponse.d.ts +11 -0
  84. package/esm/generated/models/ListCChainImportTxsResponse.d.ts +11 -0
  85. package/esm/generated/models/ListChainsResponse.d.ts +7 -0
  86. package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +16 -0
  87. package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
  88. package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
  89. package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
  90. package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
  91. package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
  92. package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
  93. package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
  94. package/esm/generated/models/ListListingsResponse.d.ts +11 -0
  95. package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
  96. package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +11 -0
  97. package/esm/generated/models/ListPChainBalancesResponse.d.ts +7 -0
  98. package/esm/generated/models/ListPChainTransactionsResponse.d.ts +11 -0
  99. package/esm/generated/models/ListPChainUtxosResponse.d.ts +11 -0
  100. package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
  101. package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
  102. package/esm/generated/models/ListUtxosResponse.d.ts +11 -0
  103. package/esm/generated/models/ListXChainBalancesResponse.d.ts +7 -0
  104. package/esm/generated/models/ListXChainTransactionsResponse.d.ts +11 -0
  105. package/esm/generated/models/ListXChainVerticesResponse.d.ts +11 -0
  106. package/esm/generated/models/ListingCurrencyType.d.ts +6 -0
  107. package/esm/generated/models/ListingCurrencyType.js +7 -0
  108. package/esm/generated/models/ListingEventType.d.ts +8 -0
  109. package/esm/generated/models/ListingEventType.js +9 -0
  110. package/esm/generated/models/ListingResponse.d.ts +19 -0
  111. package/esm/generated/models/ListingType.d.ts +6 -0
  112. package/esm/generated/models/ListingType.js +7 -0
  113. package/esm/generated/models/ListingsSortByOption.d.ts +5 -0
  114. package/esm/generated/models/ListingsSortByOption.js +6 -0
  115. package/esm/generated/models/Method.d.ts +24 -0
  116. package/esm/generated/models/Money.d.ts +14 -0
  117. package/esm/generated/models/NativeTokenBalance.d.ts +41 -0
  118. package/esm/generated/models/NativeTransaction.d.ts +55 -0
  119. package/esm/generated/models/Network.d.ts +6 -0
  120. package/esm/generated/models/Network.js +7 -0
  121. package/esm/generated/models/NetworkToken.d.ts +23 -0
  122. package/esm/generated/models/NetworkTokenDetails.d.ts +18 -0
  123. package/esm/generated/models/NftCollection.d.ts +22 -0
  124. package/esm/generated/models/NftCollectionWithMetrics.d.ts +24 -0
  125. package/esm/generated/models/NftFilterOptionsProperty.d.ts +10 -0
  126. package/esm/generated/models/NftSearchBody.d.ts +10 -0
  127. package/esm/generated/models/NftSearchResultTypeOption.d.ts +6 -0
  128. package/esm/generated/models/NftSearchResultTypeOption.js +7 -0
  129. package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
  130. package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
  131. package/esm/generated/models/OpenListingEventResponse.d.ts +17 -0
  132. package/esm/generated/models/OperationMetadata.d.ts +3 -0
  133. package/esm/generated/models/OperationStatusResponse.d.ts +14 -0
  134. package/esm/generated/models/PChainAsset.d.ts +6 -0
  135. package/esm/generated/models/PChainBalance.d.ts +30 -0
  136. package/esm/generated/models/PChainConsumedUtxo.d.ts +9 -0
  137. package/esm/generated/models/PChainEmittedUtxo.d.ts +13 -0
  138. package/esm/generated/models/PChainId.d.ts +6 -0
  139. package/esm/generated/models/PChainId.js +7 -0
  140. package/esm/generated/models/PChainTransaction.d.ts +45 -0
  141. package/esm/generated/models/PChainUtxo.d.ts +20 -0
  142. package/esm/generated/models/PaginationParams.d.ts +13 -0
  143. package/esm/generated/models/PrimaryNetworkOptions.d.ts +6 -0
  144. package/esm/generated/models/ProposerDetails.d.ts +9 -0
  145. package/esm/generated/models/PurchaseListingEventResponse.d.ts +17 -0
  146. package/esm/generated/models/ResourceLink.d.ts +8 -0
  147. package/esm/generated/models/ResourceLinkType.d.ts +18 -0
  148. package/esm/generated/models/ResourceLinkType.js +19 -0
  149. package/esm/generated/models/ReviewStatus.d.ts +6 -0
  150. package/esm/generated/models/ReviewStatus.js +7 -0
  151. package/esm/generated/models/RichAddress.d.ts +26 -0
  152. package/esm/generated/models/SortOrder.d.ts +6 -0
  153. package/esm/generated/models/SortOrder.js +7 -0
  154. package/esm/generated/models/TokenWithPrice.d.ts +28 -0
  155. package/esm/generated/models/TransactionDetails.d.ts +36 -0
  156. package/esm/generated/models/TransactionMethodType.d.ts +7 -0
  157. package/esm/generated/models/TransactionMethodType.js +8 -0
  158. package/esm/generated/models/TransactionStatus.d.ts +6 -0
  159. package/esm/generated/models/TransactionStatus.js +7 -0
  160. package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
  161. package/esm/generated/models/TrendingTimeframe.d.ts +7 -0
  162. package/esm/generated/models/TrendingTimeframe.js +8 -0
  163. package/esm/generated/models/UtilityAddresses.d.ts +5 -0
  164. package/esm/generated/models/Utxo.d.ts +60 -0
  165. package/esm/generated/models/UtxoCredential.d.ts +12 -0
  166. package/esm/generated/models/VmName.d.ts +7 -0
  167. package/esm/generated/models/VmName.js +8 -0
  168. package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
  169. package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
  170. package/esm/generated/models/XChainBalances.d.ts +17 -0
  171. package/esm/generated/models/XChainId.d.ts +6 -0
  172. package/esm/generated/models/XChainId.js +7 -0
  173. package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
  174. package/esm/generated/models/XChainTransaction.d.ts +51 -0
  175. package/esm/generated/models/XChainVertex.d.ts +12 -0
  176. package/esm/generated/services/EvmService.d.ts +734 -0
  177. package/esm/generated/services/EvmService.js +518 -0
  178. package/esm/generated/services/HealthCheckService.d.ts +20 -0
  179. package/esm/generated/services/HealthCheckService.js +16 -0
  180. package/esm/generated/services/OperationsService.d.ts +30 -0
  181. package/esm/generated/services/OperationsService.js +28 -0
  182. package/esm/generated/services/PrimaryNetworkService.d.ts +359 -0
  183. package/esm/generated/services/PrimaryNetworkService.js +252 -0
  184. package/esm/index.d.ts +135 -0
  185. package/esm/index.js +41 -0
  186. package/package.json +12 -15
  187. package/CHANGELOG.md +0 -212
  188. package/__tests__/glacier-sdk.test.js +0 -7
  189. package/dist/index.d.ts.map +0 -1
  190. package/dist/index.js.map +0 -1
  191. package/dist/src/generated/models.d.ts +0 -385
  192. package/dist/src/generated/models.d.ts.map +0 -1
  193. package/dist/src/glacierClient.d.ts +0 -93
  194. package/dist/src/glacierClient.d.ts.map +0 -1
  195. package/dist/src/types.d.ts +0 -13
  196. package/dist/src/types.d.ts.map +0 -1
  197. package/index.ts +0 -2
  198. package/rollup.config.js +0 -33
  199. package/src/generated/models.ts +0 -460
  200. package/src/glacierClient.ts +0 -190
  201. package/src/types.ts +0 -6
  202. package/swagger/generateModels.js +0 -40
  203. package/tsconfig.json +0 -7
@@ -0,0 +1,518 @@
1
+ class EvmService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ getNativeBalance({
6
+ chainId,
7
+ address,
8
+ currency
9
+ }) {
10
+ return this.httpRequest.request({
11
+ method: "GET",
12
+ url: "/v1/chains/{chainId}/addresses/{address}/balances:getNative",
13
+ path: {
14
+ "chainId": chainId,
15
+ "address": address
16
+ },
17
+ query: {
18
+ "currency": currency
19
+ }
20
+ });
21
+ }
22
+ listErc20Balances({
23
+ chainId,
24
+ address,
25
+ pageSize = 10,
26
+ pageToken,
27
+ currency
28
+ }) {
29
+ return this.httpRequest.request({
30
+ method: "GET",
31
+ url: "/v1/chains/{chainId}/addresses/{address}/balances:listErc20",
32
+ path: {
33
+ "chainId": chainId,
34
+ "address": address
35
+ },
36
+ query: {
37
+ "pageSize": pageSize,
38
+ "pageToken": pageToken,
39
+ "currency": currency
40
+ }
41
+ });
42
+ }
43
+ listErc721Balances({
44
+ chainId,
45
+ address,
46
+ pageSize = 10,
47
+ pageToken
48
+ }) {
49
+ return this.httpRequest.request({
50
+ method: "GET",
51
+ url: "/v1/chains/{chainId}/addresses/{address}/balances:listErc721",
52
+ path: {
53
+ "chainId": chainId,
54
+ "address": address
55
+ },
56
+ query: {
57
+ "pageSize": pageSize,
58
+ "pageToken": pageToken
59
+ }
60
+ });
61
+ }
62
+ listErc1155Balances({
63
+ chainId,
64
+ address,
65
+ pageSize = 10,
66
+ pageToken
67
+ }) {
68
+ return this.httpRequest.request({
69
+ method: "GET",
70
+ url: "/v1/chains/{chainId}/addresses/{address}/balances:listErc1155",
71
+ path: {
72
+ "chainId": chainId,
73
+ "address": address
74
+ },
75
+ query: {
76
+ "pageSize": pageSize,
77
+ "pageToken": pageToken
78
+ }
79
+ });
80
+ }
81
+ listCollectibleBalances({
82
+ chainId,
83
+ address,
84
+ pageSize = 10,
85
+ pageToken
86
+ }) {
87
+ return this.httpRequest.request({
88
+ method: "GET",
89
+ url: "/v1/chains/{chainId}/addresses/{address}/balances:listCollectibles",
90
+ path: {
91
+ "chainId": chainId,
92
+ "address": address
93
+ },
94
+ query: {
95
+ "pageSize": pageSize,
96
+ "pageToken": pageToken
97
+ }
98
+ });
99
+ }
100
+ getLatestBlocks({
101
+ chainId,
102
+ pageSize = 10,
103
+ pageToken
104
+ }) {
105
+ return this.httpRequest.request({
106
+ method: "GET",
107
+ url: "/v1/chains/{chainId}/blocks",
108
+ path: {
109
+ "chainId": chainId
110
+ },
111
+ query: {
112
+ "pageSize": pageSize,
113
+ "pageToken": pageToken
114
+ }
115
+ });
116
+ }
117
+ getBlock({
118
+ chainId,
119
+ blockId
120
+ }) {
121
+ return this.httpRequest.request({
122
+ method: "GET",
123
+ url: "/v1/chains/{chainId}/blocks/{blockId}",
124
+ path: {
125
+ "chainId": chainId,
126
+ "blockId": blockId
127
+ }
128
+ });
129
+ }
130
+ getDeploymentTransaction({
131
+ chainId,
132
+ address,
133
+ currency
134
+ }) {
135
+ return this.httpRequest.request({
136
+ method: "GET",
137
+ url: "/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",
138
+ path: {
139
+ "chainId": chainId,
140
+ "address": address
141
+ },
142
+ query: {
143
+ "currency": currency
144
+ }
145
+ });
146
+ }
147
+ getContractInfo({
148
+ chainId,
149
+ address
150
+ }) {
151
+ return this.httpRequest.request({
152
+ method: "GET",
153
+ url: "/v1/chains/{chainId}/contracts/{address}/information",
154
+ path: {
155
+ "chainId": chainId,
156
+ "address": address
157
+ }
158
+ });
159
+ }
160
+ listTransfers({
161
+ chainId,
162
+ address,
163
+ pageSize = 10,
164
+ pageToken
165
+ }) {
166
+ return this.httpRequest.request({
167
+ method: "GET",
168
+ url: "/v1/chains/{chainId}/tokens/{address}/transfers",
169
+ path: {
170
+ "chainId": chainId,
171
+ "address": address
172
+ },
173
+ query: {
174
+ "pageSize": pageSize,
175
+ "pageToken": pageToken
176
+ }
177
+ });
178
+ }
179
+ listTransactions({
180
+ chainId,
181
+ address,
182
+ pageSize = 10,
183
+ pageToken
184
+ }) {
185
+ return this.httpRequest.request({
186
+ method: "GET",
187
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions",
188
+ path: {
189
+ "chainId": chainId,
190
+ "address": address
191
+ },
192
+ query: {
193
+ "pageSize": pageSize,
194
+ "pageToken": pageToken
195
+ }
196
+ });
197
+ }
198
+ listNativeTransactions({
199
+ chainId,
200
+ address,
201
+ pageSize = 10,
202
+ pageToken
203
+ }) {
204
+ return this.httpRequest.request({
205
+ method: "GET",
206
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listNative",
207
+ path: {
208
+ "chainId": chainId,
209
+ "address": address
210
+ },
211
+ query: {
212
+ "pageSize": pageSize,
213
+ "pageToken": pageToken
214
+ }
215
+ });
216
+ }
217
+ listErc20Transactions({
218
+ chainId,
219
+ address,
220
+ pageSize = 10,
221
+ pageToken
222
+ }) {
223
+ return this.httpRequest.request({
224
+ method: "GET",
225
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",
226
+ path: {
227
+ "chainId": chainId,
228
+ "address": address
229
+ },
230
+ query: {
231
+ "pageSize": pageSize,
232
+ "pageToken": pageToken
233
+ }
234
+ });
235
+ }
236
+ listErc721Transactions({
237
+ chainId,
238
+ address,
239
+ pageSize = 10,
240
+ pageToken
241
+ }) {
242
+ return this.httpRequest.request({
243
+ method: "GET",
244
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",
245
+ path: {
246
+ "chainId": chainId,
247
+ "address": address
248
+ },
249
+ query: {
250
+ "pageSize": pageSize,
251
+ "pageToken": pageToken
252
+ }
253
+ });
254
+ }
255
+ listErc1155Transactions({
256
+ chainId,
257
+ address,
258
+ pageSize = 10,
259
+ pageToken
260
+ }) {
261
+ return this.httpRequest.request({
262
+ method: "GET",
263
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",
264
+ path: {
265
+ "chainId": chainId,
266
+ "address": address
267
+ },
268
+ query: {
269
+ "pageSize": pageSize,
270
+ "pageToken": pageToken
271
+ }
272
+ });
273
+ }
274
+ listInternalTransactions({
275
+ chainId,
276
+ address,
277
+ pageSize = 10,
278
+ pageToken
279
+ }) {
280
+ return this.httpRequest.request({
281
+ method: "GET",
282
+ url: "/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",
283
+ path: {
284
+ "chainId": chainId,
285
+ "address": address
286
+ },
287
+ query: {
288
+ "pageSize": pageSize,
289
+ "pageToken": pageToken
290
+ }
291
+ });
292
+ }
293
+ getTransaction({
294
+ chainId,
295
+ txHash
296
+ }) {
297
+ return this.httpRequest.request({
298
+ method: "GET",
299
+ url: "/v1/chains/{chainId}/transactions/{txHash}",
300
+ path: {
301
+ "chainId": chainId,
302
+ "txHash": txHash
303
+ }
304
+ });
305
+ }
306
+ getTransactionsForBlock({
307
+ chainId,
308
+ blockId
309
+ }) {
310
+ return this.httpRequest.request({
311
+ method: "GET",
312
+ url: "/v1/chains/{chainId}/blocks/{blockId}/transactions",
313
+ path: {
314
+ "chainId": chainId,
315
+ "blockId": blockId
316
+ }
317
+ });
318
+ }
319
+ listLatestTransactions({
320
+ chainId,
321
+ pageSize = 10,
322
+ pageToken,
323
+ status
324
+ }) {
325
+ return this.httpRequest.request({
326
+ method: "GET",
327
+ url: "/v1/chains/{chainId}/transactions",
328
+ path: {
329
+ "chainId": chainId
330
+ },
331
+ query: {
332
+ "pageSize": pageSize,
333
+ "pageToken": pageToken,
334
+ "status": status
335
+ }
336
+ });
337
+ }
338
+ supportedChains() {
339
+ return this.httpRequest.request({
340
+ method: "GET",
341
+ url: "/v1/chains"
342
+ });
343
+ }
344
+ getChainInfo({
345
+ chainId
346
+ }) {
347
+ return this.httpRequest.request({
348
+ method: "GET",
349
+ url: "/v1/chains/{chainId}",
350
+ path: {
351
+ "chainId": chainId
352
+ }
353
+ });
354
+ }
355
+ reindexNft({
356
+ chainId,
357
+ address,
358
+ tokenId
359
+ }) {
360
+ return this.httpRequest.request({
361
+ method: "POST",
362
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",
363
+ path: {
364
+ "chainId": chainId,
365
+ "address": address,
366
+ "tokenId": tokenId
367
+ }
368
+ });
369
+ }
370
+ getTokenMetadata({
371
+ chainId,
372
+ address,
373
+ tokenId
374
+ }) {
375
+ return this.httpRequest.request({
376
+ method: "GET",
377
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
378
+ path: {
379
+ "chainId": chainId,
380
+ "address": address,
381
+ "tokenId": tokenId
382
+ }
383
+ });
384
+ }
385
+ getCollection({
386
+ chainId,
387
+ address,
388
+ timeframe
389
+ }) {
390
+ return this.httpRequest.request({
391
+ method: "GET",
392
+ url: "/v1/chains/{chainId}/nfts/collections/{address}",
393
+ path: {
394
+ "chainId": chainId,
395
+ "address": address
396
+ },
397
+ query: {
398
+ "timeframe": timeframe
399
+ }
400
+ });
401
+ }
402
+ listListingsByCollectionTokenId({
403
+ chainId,
404
+ address,
405
+ tokenId,
406
+ pageSize = 10,
407
+ pageToken,
408
+ sortBy,
409
+ sortOrder,
410
+ currency,
411
+ includeHistory = false
412
+ }) {
413
+ return this.httpRequest.request({
414
+ method: "GET",
415
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}/listings",
416
+ path: {
417
+ "chainId": chainId,
418
+ "address": address,
419
+ "tokenId": tokenId
420
+ },
421
+ query: {
422
+ "pageSize": pageSize,
423
+ "pageToken": pageToken,
424
+ "sortBy": sortBy,
425
+ "sortOrder": sortOrder,
426
+ "currency": currency,
427
+ "includeHistory": includeHistory
428
+ }
429
+ });
430
+ }
431
+ listListingsByCollection({
432
+ chainId,
433
+ address,
434
+ pageSize = 10,
435
+ pageToken,
436
+ sortBy,
437
+ sortOrder,
438
+ currency,
439
+ includeHistory = false
440
+ }) {
441
+ return this.httpRequest.request({
442
+ method: "GET",
443
+ url: "/v1/chains/{chainId}/nfts/collections/{address}/listings",
444
+ path: {
445
+ "chainId": chainId,
446
+ "address": address
447
+ },
448
+ query: {
449
+ "pageSize": pageSize,
450
+ "pageToken": pageToken,
451
+ "sortBy": sortBy,
452
+ "sortOrder": sortOrder,
453
+ "currency": currency,
454
+ "includeHistory": includeHistory
455
+ }
456
+ });
457
+ }
458
+ listRecentListings({
459
+ chainId,
460
+ pageSize = 10,
461
+ pageToken,
462
+ eventType,
463
+ currency
464
+ }) {
465
+ return this.httpRequest.request({
466
+ method: "GET",
467
+ url: "/v1/chains/{chainId}/nfts/listings",
468
+ path: {
469
+ "chainId": chainId
470
+ },
471
+ query: {
472
+ "pageSize": pageSize,
473
+ "pageToken": pageToken,
474
+ "eventType": eventType,
475
+ "currency": currency
476
+ }
477
+ });
478
+ }
479
+ listCollections({
480
+ chainId,
481
+ pageSize = 10,
482
+ pageToken,
483
+ timeframe,
484
+ sortBy,
485
+ sortOrder
486
+ }) {
487
+ return this.httpRequest.request({
488
+ method: "GET",
489
+ url: "/v1/chains/{chainId}/nfts/collections",
490
+ path: {
491
+ "chainId": chainId
492
+ },
493
+ query: {
494
+ "pageSize": pageSize,
495
+ "pageToken": pageToken,
496
+ "timeframe": timeframe,
497
+ "sortBy": sortBy,
498
+ "sortOrder": sortOrder
499
+ }
500
+ });
501
+ }
502
+ search({
503
+ chainId,
504
+ requestBody
505
+ }) {
506
+ return this.httpRequest.request({
507
+ method: "POST",
508
+ url: "/v1/chains/{chainId}/nfts/search",
509
+ path: {
510
+ "chainId": chainId
511
+ },
512
+ body: requestBody,
513
+ mediaType: "application/json"
514
+ });
515
+ }
516
+ }
517
+
518
+ export { EvmService };
@@ -0,0 +1,20 @@
1
+ import { CancelablePromise } from '../core/CancelablePromise.js';
2
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
3
+
4
+ declare class HealthCheckService {
5
+ readonly httpRequest: BaseHttpRequest;
6
+ constructor(httpRequest: BaseHttpRequest);
7
+ /**
8
+ * Get the health of the service.
9
+ * @returns any The Health Check is successful
10
+ * @throws ApiError
11
+ */
12
+ healthCheck(): CancelablePromise<{
13
+ status?: string;
14
+ info?: Record<string, Record<string, string>> | null;
15
+ error?: Record<string, Record<string, string>> | null;
16
+ details?: Record<string, Record<string, string>>;
17
+ }>;
18
+ }
19
+
20
+ export { HealthCheckService };
@@ -0,0 +1,16 @@
1
+ class HealthCheckService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ healthCheck() {
6
+ return this.httpRequest.request({
7
+ method: "GET",
8
+ url: "/v1/health-check",
9
+ errors: {
10
+ 503: `The Health Check is not successful`
11
+ }
12
+ });
13
+ }
14
+ }
15
+
16
+ export { HealthCheckService };
@@ -0,0 +1,30 @@
1
+ import { CreateTransactionExportRequest } from '../models/CreateTransactionExportRequest.js';
2
+ import { OperationStatusResponse } from '../models/OperationStatusResponse.js';
3
+ import { CancelablePromise } from '../core/CancelablePromise.js';
4
+ import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
5
+
6
+ declare class OperationsService {
7
+ readonly httpRequest: BaseHttpRequest;
8
+ constructor(httpRequest: BaseHttpRequest);
9
+ /**
10
+ * Trigger a transaction export operation with given parameters.
11
+ * @returns OperationStatusResponse
12
+ * @throws ApiError
13
+ */
14
+ postTransactionExportJob({ requestBody, }: {
15
+ requestBody: CreateTransactionExportRequest;
16
+ }): CancelablePromise<OperationStatusResponse>;
17
+ /**
18
+ * Retrieve operation result with given operation id
19
+ * @returns OperationStatusResponse
20
+ * @throws ApiError
21
+ */
22
+ getOperationResult({ operationId, }: {
23
+ /**
24
+ * UUID of given operation
25
+ */
26
+ operationId: string;
27
+ }): CancelablePromise<OperationStatusResponse>;
28
+ }
29
+
30
+ export { OperationsService };
@@ -0,0 +1,28 @@
1
+ class OperationsService {
2
+ constructor(httpRequest) {
3
+ this.httpRequest = httpRequest;
4
+ }
5
+ postTransactionExportJob({
6
+ requestBody
7
+ }) {
8
+ return this.httpRequest.request({
9
+ method: "POST",
10
+ url: "/v1/operations/transactions:export",
11
+ body: requestBody,
12
+ mediaType: "application/json"
13
+ });
14
+ }
15
+ getOperationResult({
16
+ operationId
17
+ }) {
18
+ return this.httpRequest.request({
19
+ method: "GET",
20
+ url: "/v1/operations/{operationId}",
21
+ path: {
22
+ "operationId": operationId
23
+ }
24
+ });
25
+ }
26
+ }
27
+
28
+ export { OperationsService };