@alephium/web3 0.8.2-test.2 → 0.9.0-rc.0

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/LICENSE +165 -0
  2. package/package.json +37 -36
  3. package/src/api/api-alephium.ts +2 -1
  4. package/src/api/node-provider.ts +41 -25
  5. package/src/api/types.ts +10 -15
  6. package/src/contract/contract.ts +63 -40
  7. package/src/index.ts +1 -0
  8. package/{dist/scripts/header.js → src/token/index.ts} +2 -1
  9. package/{dist/src/utils/djb2.js → src/token/nft.ts} +16 -9
  10. package/std/fungible_token_interface.ral +1 -0
  11. package/std/nft_collection_interface.ral +24 -3
  12. package/std/nft_interface.ral +22 -0
  13. package/dist/alephium-web3.min.js +0 -3
  14. package/dist/alephium-web3.min.js.LICENSE.txt +0 -12
  15. package/dist/alephium-web3.min.js.map +0 -1
  16. package/dist/scripts/check-versions.d.ts +0 -1
  17. package/dist/scripts/check-versions.js +0 -39
  18. package/dist/scripts/header.d.ts +0 -0
  19. package/dist/src/api/api-alephium.d.ts +0 -1716
  20. package/dist/src/api/api-alephium.js +0 -1284
  21. package/dist/src/api/api-explorer.d.ts +0 -923
  22. package/dist/src/api/api-explorer.js +0 -711
  23. package/dist/src/api/explorer-provider.d.ts +0 -20
  24. package/dist/src/api/explorer-provider.js +0 -69
  25. package/dist/src/api/index.d.ts +0 -6
  26. package/dist/src/api/index.js +0 -52
  27. package/dist/src/api/node-provider.d.ts +0 -23
  28. package/dist/src/api/node-provider.js +0 -93
  29. package/dist/src/api/types.d.ts +0 -38
  30. package/dist/src/api/types.js +0 -263
  31. package/dist/src/api/utils.d.ts +0 -12
  32. package/dist/src/api/utils.js +0 -59
  33. package/dist/src/constants.d.ts +0 -6
  34. package/dist/src/constants.js +0 -26
  35. package/dist/src/contract/contract.d.ts +0 -293
  36. package/dist/src/contract/contract.js +0 -1079
  37. package/dist/src/contract/events.d.ts +0 -11
  38. package/dist/src/contract/events.js +0 -65
  39. package/dist/src/contract/index.d.ts +0 -3
  40. package/dist/src/contract/index.js +0 -36
  41. package/dist/src/contract/ralph.d.ts +0 -13
  42. package/dist/src/contract/ralph.js +0 -397
  43. package/dist/src/global.d.ts +0 -7
  44. package/dist/src/global.js +0 -54
  45. package/dist/src/index.d.ts +0 -8
  46. package/dist/src/index.js +0 -57
  47. package/dist/src/signer/index.d.ts +0 -3
  48. package/dist/src/signer/index.js +0 -36
  49. package/dist/src/signer/signer.d.ts +0 -60
  50. package/dist/src/signer/signer.js +0 -236
  51. package/dist/src/signer/tx-builder.d.ts +0 -12
  52. package/dist/src/signer/tx-builder.js +0 -96
  53. package/dist/src/signer/types.d.ts +0 -115
  54. package/dist/src/signer/types.js +0 -30
  55. package/dist/src/transaction/index.d.ts +0 -2
  56. package/dist/src/transaction/index.js +0 -35
  57. package/dist/src/transaction/sign-verify.d.ts +0 -3
  58. package/dist/src/transaction/sign-verify.js +0 -52
  59. package/dist/src/transaction/status.d.ts +0 -11
  60. package/dist/src/transaction/status.js +0 -49
  61. package/dist/src/utils/address.d.ts +0 -1
  62. package/dist/src/utils/address.js +0 -42
  63. package/dist/src/utils/bs58.d.ts +0 -5
  64. package/dist/src/utils/bs58.js +0 -40
  65. package/dist/src/utils/djb2.d.ts +0 -1
  66. package/dist/src/utils/index.d.ts +0 -7
  67. package/dist/src/utils/index.js +0 -40
  68. package/dist/src/utils/number.d.ts +0 -18
  69. package/dist/src/utils/number.fixture.d.ts +0 -12
  70. package/dist/src/utils/number.fixture.js +0 -189
  71. package/dist/src/utils/number.js +0 -149
  72. package/dist/src/utils/sign.d.ts +0 -3
  73. package/dist/src/utils/sign.js +0 -89
  74. package/dist/src/utils/subscription.d.ts +0 -21
  75. package/dist/src/utils/subscription.js +0 -51
  76. package/dist/src/utils/utils.d.ts +0 -40
  77. package/dist/src/utils/utils.js +0 -244
  78. package/jest-config.json +0 -11
@@ -1,1284 +0,0 @@
1
- "use strict";
2
- /* eslint-disable */
3
- /* tslint:disable */
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.Api = exports.HttpClient = exports.ContentType = void 0;
14
- require("cross-fetch/polyfill");
15
- const utils_1 = require("./utils");
16
- var ContentType;
17
- (function (ContentType) {
18
- ContentType["Json"] = "application/json";
19
- ContentType["FormData"] = "multipart/form-data";
20
- ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
21
- ContentType["Text"] = "text/plain";
22
- })(ContentType = exports.ContentType || (exports.ContentType = {}));
23
- class HttpClient {
24
- constructor(apiConfig = {}) {
25
- this.baseUrl = '../';
26
- this.securityData = null;
27
- this.abortControllers = new Map();
28
- this.customFetch = (...fetchParams) => fetch(...fetchParams);
29
- this.baseApiParams = {
30
- credentials: 'same-origin',
31
- headers: {},
32
- redirect: 'follow',
33
- referrerPolicy: 'no-referrer'
34
- };
35
- this.setSecurityData = (data) => {
36
- this.securityData = data;
37
- };
38
- this.contentFormatters = {
39
- [ContentType.Json]: (input) => input !== null && (typeof input === 'object' || typeof input === 'string') ? JSON.stringify(input) : input,
40
- [ContentType.Text]: (input) => (input !== null && typeof input !== 'string' ? JSON.stringify(input) : input),
41
- [ContentType.FormData]: (input) => Object.keys(input || {}).reduce((formData, key) => {
42
- const property = input[key];
43
- formData.append(key, property instanceof Blob
44
- ? property
45
- : typeof property === 'object' && property !== null
46
- ? JSON.stringify(property)
47
- : `${property}`);
48
- return formData;
49
- }, new FormData()),
50
- [ContentType.UrlEncoded]: (input) => this.toQueryString(input)
51
- };
52
- this.createAbortSignal = (cancelToken) => {
53
- if (this.abortControllers.has(cancelToken)) {
54
- const abortController = this.abortControllers.get(cancelToken);
55
- if (abortController) {
56
- return abortController.signal;
57
- }
58
- return void 0;
59
- }
60
- const abortController = new AbortController();
61
- this.abortControllers.set(cancelToken, abortController);
62
- return abortController.signal;
63
- };
64
- this.abortRequest = (cancelToken) => {
65
- const abortController = this.abortControllers.get(cancelToken);
66
- if (abortController) {
67
- abortController.abort();
68
- this.abortControllers.delete(cancelToken);
69
- }
70
- };
71
- this.request = async ({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }) => {
72
- const secureParams = ((typeof secure === 'boolean' ? secure : this.baseApiParams.secure) &&
73
- this.securityWorker &&
74
- (await this.securityWorker(this.securityData))) ||
75
- {};
76
- const requestParams = this.mergeRequestParams(params, secureParams);
77
- const queryString = query && this.toQueryString(query);
78
- const payloadFormatter = this.contentFormatters[type || ContentType.Json];
79
- const responseFormat = format || requestParams.format;
80
- return this.customFetch(`${baseUrl || this.baseUrl || ''}${path}${queryString ? `?${queryString}` : ''}`, {
81
- ...requestParams,
82
- headers: {
83
- ...(requestParams.headers || {}),
84
- ...(type && type !== ContentType.FormData ? { 'Content-Type': type } : {})
85
- },
86
- signal: cancelToken ? this.createAbortSignal(cancelToken) : requestParams.signal,
87
- body: typeof body === 'undefined' || body === null ? null : payloadFormatter(body)
88
- }).then(async (response) => {
89
- const r = response;
90
- r.data = null;
91
- r.error = null;
92
- const data = !responseFormat
93
- ? r
94
- : await response[responseFormat]()
95
- .then((data) => {
96
- if (r.ok) {
97
- r.data = data;
98
- }
99
- else {
100
- r.error = data;
101
- }
102
- return r;
103
- })
104
- .catch((e) => {
105
- r.error = e;
106
- return r;
107
- });
108
- if (cancelToken) {
109
- this.abortControllers.delete(cancelToken);
110
- }
111
- return data;
112
- });
113
- };
114
- Object.assign(this, apiConfig);
115
- }
116
- encodeQueryParam(key, value) {
117
- const encodedKey = encodeURIComponent(key);
118
- return `${encodedKey}=${encodeURIComponent(typeof value === 'number' ? value : `${value}`)}`;
119
- }
120
- addQueryParam(query, key) {
121
- return this.encodeQueryParam(key, query[key]);
122
- }
123
- addArrayQueryParam(query, key) {
124
- const value = query[key];
125
- return value.map((v) => this.encodeQueryParam(key, v)).join('&');
126
- }
127
- toQueryString(rawQuery) {
128
- const query = rawQuery || {};
129
- const keys = Object.keys(query).filter((key) => 'undefined' !== typeof query[key]);
130
- return keys
131
- .map((key) => (Array.isArray(query[key]) ? this.addArrayQueryParam(query, key) : this.addQueryParam(query, key)))
132
- .join('&');
133
- }
134
- addQueryParams(rawQuery) {
135
- const queryString = this.toQueryString(rawQuery);
136
- return queryString ? `?${queryString}` : '';
137
- }
138
- mergeRequestParams(params1, params2) {
139
- return {
140
- ...this.baseApiParams,
141
- ...params1,
142
- ...(params2 || {}),
143
- headers: {
144
- ...(this.baseApiParams.headers || {}),
145
- ...(params1.headers || {}),
146
- ...((params2 && params2.headers) || {})
147
- }
148
- };
149
- }
150
- }
151
- exports.HttpClient = HttpClient;
152
- /**
153
- * @title Alephium API
154
- * @version 2.0.1
155
- * @baseUrl ../
156
- */
157
- class Api extends HttpClient {
158
- constructor() {
159
- super(...arguments);
160
- this.wallets = {
161
- /**
162
- * No description
163
- *
164
- * @tags Wallets
165
- * @name GetWallets
166
- * @summary List available wallets
167
- * @request GET:/wallets
168
- */
169
- getWallets: (params = {}) => this.request({
170
- path: `/wallets`,
171
- method: 'GET',
172
- format: 'json',
173
- ...params
174
- }).then(utils_1.convertHttpResponse),
175
- /**
176
- * No description
177
- *
178
- * @tags Wallets
179
- * @name PutWallets
180
- * @summary Restore a wallet from your mnemonic
181
- * @request PUT:/wallets
182
- */
183
- putWallets: (data, params = {}) => this.request({
184
- path: `/wallets`,
185
- method: 'PUT',
186
- body: data,
187
- type: ContentType.Json,
188
- format: 'json',
189
- ...params
190
- }).then(utils_1.convertHttpResponse),
191
- /**
192
- * @description A new wallet will be created and respond with a mnemonic. Make sure to keep that mnemonic safely as it will allows you to recover your wallet. Default mnemonic size is 24, (options: 12, 15, 18, 21, 24).
193
- *
194
- * @tags Wallets
195
- * @name PostWallets
196
- * @summary Create a new wallet
197
- * @request POST:/wallets
198
- */
199
- postWallets: (data, params = {}) => this.request({
200
- path: `/wallets`,
201
- method: 'POST',
202
- body: data,
203
- type: ContentType.Json,
204
- format: 'json',
205
- ...params
206
- }).then(utils_1.convertHttpResponse),
207
- /**
208
- * No description
209
- *
210
- * @tags Wallets
211
- * @name GetWalletsWalletName
212
- * @summary Get wallet's status
213
- * @request GET:/wallets/{wallet_name}
214
- */
215
- getWalletsWalletName: (walletName, params = {}) => this.request({
216
- path: `/wallets/${walletName}`,
217
- method: 'GET',
218
- format: 'json',
219
- ...params
220
- }).then(utils_1.convertHttpResponse),
221
- /**
222
- * No description
223
- *
224
- * @tags Wallets
225
- * @name DeleteWalletsWalletName
226
- * @summary Delete your wallet file (can be recovered with your mnemonic)
227
- * @request DELETE:/wallets/{wallet_name}
228
- */
229
- deleteWalletsWalletName: (walletName, data, params = {}) => this.request({
230
- path: `/wallets/${walletName}`,
231
- method: 'DELETE',
232
- body: data,
233
- type: ContentType.Json,
234
- ...params
235
- }).then(utils_1.convertHttpResponse),
236
- /**
237
- * No description
238
- *
239
- * @tags Wallets
240
- * @name PostWalletsWalletNameLock
241
- * @summary Lock your wallet
242
- * @request POST:/wallets/{wallet_name}/lock
243
- */
244
- postWalletsWalletNameLock: (walletName, params = {}) => this.request({
245
- path: `/wallets/${walletName}/lock`,
246
- method: 'POST',
247
- ...params
248
- }).then(utils_1.convertHttpResponse),
249
- /**
250
- * No description
251
- *
252
- * @tags Wallets
253
- * @name PostWalletsWalletNameUnlock
254
- * @summary Unlock your wallet
255
- * @request POST:/wallets/{wallet_name}/unlock
256
- */
257
- postWalletsWalletNameUnlock: (walletName, data, params = {}) => this.request({
258
- path: `/wallets/${walletName}/unlock`,
259
- method: 'POST',
260
- body: data,
261
- type: ContentType.Json,
262
- ...params
263
- }).then(utils_1.convertHttpResponse),
264
- /**
265
- * No description
266
- *
267
- * @tags Wallets
268
- * @name GetWalletsWalletNameBalances
269
- * @summary Get your total balance
270
- * @request GET:/wallets/{wallet_name}/balances
271
- */
272
- getWalletsWalletNameBalances: (walletName, params = {}) => this.request({
273
- path: `/wallets/${walletName}/balances`,
274
- method: 'GET',
275
- format: 'json',
276
- ...params
277
- }).then(utils_1.convertHttpResponse),
278
- /**
279
- * No description
280
- *
281
- * @tags Wallets
282
- * @name PostWalletsWalletNameRevealMnemonic
283
- * @summary Reveal your mnemonic. !!! use it with caution !!!
284
- * @request POST:/wallets/{wallet_name}/reveal-mnemonic
285
- */
286
- postWalletsWalletNameRevealMnemonic: (walletName, data, params = {}) => this.request({
287
- path: `/wallets/${walletName}/reveal-mnemonic`,
288
- method: 'POST',
289
- body: data,
290
- type: ContentType.Json,
291
- format: 'json',
292
- ...params
293
- }).then(utils_1.convertHttpResponse),
294
- /**
295
- * No description
296
- *
297
- * @tags Wallets
298
- * @name PostWalletsWalletNameTransfer
299
- * @summary Transfer ALPH from the active address
300
- * @request POST:/wallets/{wallet_name}/transfer
301
- */
302
- postWalletsWalletNameTransfer: (walletName, data, params = {}) => this.request({
303
- path: `/wallets/${walletName}/transfer`,
304
- method: 'POST',
305
- body: data,
306
- type: ContentType.Json,
307
- format: 'json',
308
- ...params
309
- }).then(utils_1.convertHttpResponse),
310
- /**
311
- * No description
312
- *
313
- * @tags Wallets
314
- * @name PostWalletsWalletNameSweepActiveAddress
315
- * @summary Transfer all unlocked ALPH from the active address to another address
316
- * @request POST:/wallets/{wallet_name}/sweep-active-address
317
- */
318
- postWalletsWalletNameSweepActiveAddress: (walletName, data, params = {}) => this.request({
319
- path: `/wallets/${walletName}/sweep-active-address`,
320
- method: 'POST',
321
- body: data,
322
- type: ContentType.Json,
323
- format: 'json',
324
- ...params
325
- }).then(utils_1.convertHttpResponse),
326
- /**
327
- * No description
328
- *
329
- * @tags Wallets
330
- * @name PostWalletsWalletNameSweepAllAddresses
331
- * @summary Transfer unlocked ALPH from all addresses (including all mining addresses if applicable) to another address
332
- * @request POST:/wallets/{wallet_name}/sweep-all-addresses
333
- */
334
- postWalletsWalletNameSweepAllAddresses: (walletName, data, params = {}) => this.request({
335
- path: `/wallets/${walletName}/sweep-all-addresses`,
336
- method: 'POST',
337
- body: data,
338
- type: ContentType.Json,
339
- format: 'json',
340
- ...params
341
- }).then(utils_1.convertHttpResponse),
342
- /**
343
- * No description
344
- *
345
- * @tags Wallets
346
- * @name PostWalletsWalletNameSign
347
- * @summary Sign the given data and return back the signature
348
- * @request POST:/wallets/{wallet_name}/sign
349
- */
350
- postWalletsWalletNameSign: (walletName, data, params = {}) => this.request({
351
- path: `/wallets/${walletName}/sign`,
352
- method: 'POST',
353
- body: data,
354
- type: ContentType.Json,
355
- format: 'json',
356
- ...params
357
- }).then(utils_1.convertHttpResponse),
358
- /**
359
- * No description
360
- *
361
- * @tags Wallets
362
- * @name GetWalletsWalletNameAddresses
363
- * @summary List all your wallet's addresses
364
- * @request GET:/wallets/{wallet_name}/addresses
365
- */
366
- getWalletsWalletNameAddresses: (walletName, params = {}) => this.request({
367
- path: `/wallets/${walletName}/addresses`,
368
- method: 'GET',
369
- format: 'json',
370
- ...params
371
- }).then(utils_1.convertHttpResponse),
372
- /**
373
- * No description
374
- *
375
- * @tags Wallets
376
- * @name GetWalletsWalletNameAddressesAddress
377
- * @summary Get address' info
378
- * @request GET:/wallets/{wallet_name}/addresses/{address}
379
- */
380
- getWalletsWalletNameAddressesAddress: (walletName, address, params = {}) => this.request({
381
- path: `/wallets/${walletName}/addresses/${address}`,
382
- method: 'GET',
383
- format: 'json',
384
- ...params
385
- }).then(utils_1.convertHttpResponse),
386
- /**
387
- * @description This endpoint can only be called if the wallet was created with the `isMiner = true` flag
388
- *
389
- * @tags Miners
390
- * @name GetWalletsWalletNameMinerAddresses
391
- * @summary List all miner addresses per group
392
- * @request GET:/wallets/{wallet_name}/miner-addresses
393
- */
394
- getWalletsWalletNameMinerAddresses: (walletName, params = {}) => this.request({
395
- path: `/wallets/${walletName}/miner-addresses`,
396
- method: 'GET',
397
- format: 'json',
398
- ...params
399
- }).then(utils_1.convertHttpResponse),
400
- /**
401
- * @description Cannot be called from a miner wallet
402
- *
403
- * @tags Wallets
404
- * @name PostWalletsWalletNameDeriveNextAddress
405
- * @summary Derive your next address
406
- * @request POST:/wallets/{wallet_name}/derive-next-address
407
- */
408
- postWalletsWalletNameDeriveNextAddress: (walletName, query, params = {}) => this.request({
409
- path: `/wallets/${walletName}/derive-next-address`,
410
- method: 'POST',
411
- query: query,
412
- format: 'json',
413
- ...params
414
- }).then(utils_1.convertHttpResponse),
415
- /**
416
- * @description Your wallet need to have been created with the miner flag set to true
417
- *
418
- * @tags Miners
419
- * @name PostWalletsWalletNameDeriveNextMinerAddresses
420
- * @summary Derive your next miner addresses for each group
421
- * @request POST:/wallets/{wallet_name}/derive-next-miner-addresses
422
- */
423
- postWalletsWalletNameDeriveNextMinerAddresses: (walletName, params = {}) => this.request({
424
- path: `/wallets/${walletName}/derive-next-miner-addresses`,
425
- method: 'POST',
426
- format: 'json',
427
- ...params
428
- }).then(utils_1.convertHttpResponse),
429
- /**
430
- * No description
431
- *
432
- * @tags Wallets
433
- * @name PostWalletsWalletNameChangeActiveAddress
434
- * @summary Choose the active address
435
- * @request POST:/wallets/{wallet_name}/change-active-address
436
- */
437
- postWalletsWalletNameChangeActiveAddress: (walletName, data, params = {}) => this.request({
438
- path: `/wallets/${walletName}/change-active-address`,
439
- method: 'POST',
440
- body: data,
441
- type: ContentType.Json,
442
- ...params
443
- }).then(utils_1.convertHttpResponse)
444
- };
445
- this.infos = {
446
- /**
447
- * No description
448
- *
449
- * @tags Infos
450
- * @name GetInfosNode
451
- * @summary Get info about that node
452
- * @request GET:/infos/node
453
- */
454
- getInfosNode: (params = {}) => this.request({
455
- path: `/infos/node`,
456
- method: 'GET',
457
- format: 'json',
458
- ...params
459
- }).then(utils_1.convertHttpResponse),
460
- /**
461
- * No description
462
- *
463
- * @tags Infos
464
- * @name GetInfosVersion
465
- * @summary Get version about that node
466
- * @request GET:/infos/version
467
- */
468
- getInfosVersion: (params = {}) => this.request({
469
- path: `/infos/version`,
470
- method: 'GET',
471
- format: 'json',
472
- ...params
473
- }).then(utils_1.convertHttpResponse),
474
- /**
475
- * No description
476
- *
477
- * @tags Infos
478
- * @name GetInfosChainParams
479
- * @summary Get key params about your blockchain
480
- * @request GET:/infos/chain-params
481
- */
482
- getInfosChainParams: (params = {}) => this.request({
483
- path: `/infos/chain-params`,
484
- method: 'GET',
485
- format: 'json',
486
- ...params
487
- }).then(utils_1.convertHttpResponse),
488
- /**
489
- * No description
490
- *
491
- * @tags Infos
492
- * @name GetInfosSelfClique
493
- * @summary Get info about your own clique
494
- * @request GET:/infos/self-clique
495
- */
496
- getInfosSelfClique: (params = {}) => this.request({
497
- path: `/infos/self-clique`,
498
- method: 'GET',
499
- format: 'json',
500
- ...params
501
- }).then(utils_1.convertHttpResponse),
502
- /**
503
- * No description
504
- *
505
- * @tags Infos
506
- * @name GetInfosInterCliquePeerInfo
507
- * @summary Get infos about the inter cliques
508
- * @request GET:/infos/inter-clique-peer-info
509
- */
510
- getInfosInterCliquePeerInfo: (params = {}) => this.request({
511
- path: `/infos/inter-clique-peer-info`,
512
- method: 'GET',
513
- format: 'json',
514
- ...params
515
- }).then(utils_1.convertHttpResponse),
516
- /**
517
- * No description
518
- *
519
- * @tags Infos
520
- * @name GetInfosDiscoveredNeighbors
521
- * @summary Get discovered neighbors
522
- * @request GET:/infos/discovered-neighbors
523
- */
524
- getInfosDiscoveredNeighbors: (params = {}) => this.request({
525
- path: `/infos/discovered-neighbors`,
526
- method: 'GET',
527
- format: 'json',
528
- ...params
529
- }).then(utils_1.convertHttpResponse),
530
- /**
531
- * No description
532
- *
533
- * @tags Infos
534
- * @name GetInfosMisbehaviors
535
- * @summary Get the misbehaviors of peers
536
- * @request GET:/infos/misbehaviors
537
- */
538
- getInfosMisbehaviors: (params = {}) => this.request({
539
- path: `/infos/misbehaviors`,
540
- method: 'GET',
541
- format: 'json',
542
- ...params
543
- }).then(utils_1.convertHttpResponse),
544
- /**
545
- * No description
546
- *
547
- * @tags Infos
548
- * @name PostInfosMisbehaviors
549
- * @summary Ban/Unban given peers
550
- * @request POST:/infos/misbehaviors
551
- */
552
- postInfosMisbehaviors: (data, params = {}) => this.request({
553
- path: `/infos/misbehaviors`,
554
- method: 'POST',
555
- body: data,
556
- type: ContentType.Json,
557
- ...params
558
- }).then(utils_1.convertHttpResponse),
559
- /**
560
- * No description
561
- *
562
- * @tags Infos
563
- * @name GetInfosUnreachable
564
- * @summary Get the unreachable brokers
565
- * @request GET:/infos/unreachable
566
- */
567
- getInfosUnreachable: (params = {}) => this.request({
568
- path: `/infos/unreachable`,
569
- method: 'GET',
570
- format: 'json',
571
- ...params
572
- }).then(utils_1.convertHttpResponse),
573
- /**
574
- * No description
575
- *
576
- * @tags Infos
577
- * @name PostInfosDiscovery
578
- * @summary Set brokers to be unreachable/reachable
579
- * @request POST:/infos/discovery
580
- */
581
- postInfosDiscovery: (data, params = {}) => this.request({
582
- path: `/infos/discovery`,
583
- method: 'POST',
584
- body: data,
585
- type: ContentType.Json,
586
- ...params
587
- }).then(utils_1.convertHttpResponse),
588
- /**
589
- * No description
590
- *
591
- * @tags Infos
592
- * @name GetInfosHistoryHashrate
593
- * @summary Get history average hashrate on the given time interval
594
- * @request GET:/infos/history-hashrate
595
- */
596
- getInfosHistoryHashrate: (query, params = {}) => this.request({
597
- path: `/infos/history-hashrate`,
598
- method: 'GET',
599
- query: query,
600
- format: 'json',
601
- ...params
602
- }).then(utils_1.convertHttpResponse),
603
- /**
604
- * No description
605
- *
606
- * @tags Infos
607
- * @name GetInfosCurrentHashrate
608
- * @summary Get average hashrate from `now - timespan(millis)` to `now`
609
- * @request GET:/infos/current-hashrate
610
- */
611
- getInfosCurrentHashrate: (query, params = {}) => this.request({
612
- path: `/infos/current-hashrate`,
613
- method: 'GET',
614
- query: query,
615
- format: 'json',
616
- ...params
617
- }).then(utils_1.convertHttpResponse)
618
- };
619
- this.blockflow = {
620
- /**
621
- * No description
622
- *
623
- * @tags Blockflow
624
- * @name GetBlockflowBlocks
625
- * @summary List blocks on the given time interval
626
- * @request GET:/blockflow/blocks
627
- */
628
- getBlockflowBlocks: (query, params = {}) => this.request({
629
- path: `/blockflow/blocks`,
630
- method: 'GET',
631
- query: query,
632
- format: 'json',
633
- ...params
634
- }).then(utils_1.convertHttpResponse),
635
- /**
636
- * No description
637
- *
638
- * @tags Blockflow
639
- * @name GetBlockflowBlocksWithEvents
640
- * @summary List blocks with events on the given time interval
641
- * @request GET:/blockflow/blocks-with-events
642
- */
643
- getBlockflowBlocksWithEvents: (query, params = {}) => this.request({
644
- path: `/blockflow/blocks-with-events`,
645
- method: 'GET',
646
- query: query,
647
- format: 'json',
648
- ...params
649
- }).then(utils_1.convertHttpResponse),
650
- /**
651
- * No description
652
- *
653
- * @tags Blockflow
654
- * @name GetBlockflowBlocksBlockHash
655
- * @summary Get a block with hash
656
- * @request GET:/blockflow/blocks/{block_hash}
657
- */
658
- getBlockflowBlocksBlockHash: (blockHash, params = {}) => this.request({
659
- path: `/blockflow/blocks/${blockHash}`,
660
- method: 'GET',
661
- format: 'json',
662
- ...params
663
- }).then(utils_1.convertHttpResponse),
664
- /**
665
- * No description
666
- *
667
- * @tags Blockflow
668
- * @name GetBlockflowBlocksWithEventsBlockHash
669
- * @summary Get a block and events with hash
670
- * @request GET:/blockflow/blocks-with-events/{block_hash}
671
- */
672
- getBlockflowBlocksWithEventsBlockHash: (blockHash, params = {}) => this.request({
673
- path: `/blockflow/blocks-with-events/${blockHash}`,
674
- method: 'GET',
675
- format: 'json',
676
- ...params
677
- }).then(utils_1.convertHttpResponse),
678
- /**
679
- * No description
680
- *
681
- * @tags Blockflow
682
- * @name GetBlockflowIsBlockInMainChain
683
- * @summary Check if the block is in main chain
684
- * @request GET:/blockflow/is-block-in-main-chain
685
- */
686
- getBlockflowIsBlockInMainChain: (query, params = {}) => this.request({
687
- path: `/blockflow/is-block-in-main-chain`,
688
- method: 'GET',
689
- query: query,
690
- format: 'json',
691
- ...params
692
- }).then(utils_1.convertHttpResponse),
693
- /**
694
- * No description
695
- *
696
- * @tags Blockflow
697
- * @name GetBlockflowHashes
698
- * @summary Get all block's hashes at given height for given groups
699
- * @request GET:/blockflow/hashes
700
- */
701
- getBlockflowHashes: (query, params = {}) => this.request({
702
- path: `/blockflow/hashes`,
703
- method: 'GET',
704
- query: query,
705
- format: 'json',
706
- ...params
707
- }).then(utils_1.convertHttpResponse),
708
- /**
709
- * No description
710
- *
711
- * @tags Blockflow
712
- * @name GetBlockflowChainInfo
713
- * @summary Get infos about the chain from the given groups
714
- * @request GET:/blockflow/chain-info
715
- */
716
- getBlockflowChainInfo: (query, params = {}) => this.request({
717
- path: `/blockflow/chain-info`,
718
- method: 'GET',
719
- query: query,
720
- format: 'json',
721
- ...params
722
- }).then(utils_1.convertHttpResponse),
723
- /**
724
- * No description
725
- *
726
- * @tags Blockflow
727
- * @name GetBlockflowHeadersBlockHash
728
- * @summary Get block header
729
- * @request GET:/blockflow/headers/{block_hash}
730
- */
731
- getBlockflowHeadersBlockHash: (blockHash, params = {}) => this.request({
732
- path: `/blockflow/headers/${blockHash}`,
733
- method: 'GET',
734
- format: 'json',
735
- ...params
736
- }).then(utils_1.convertHttpResponse)
737
- };
738
- this.addresses = {
739
- /**
740
- * No description
741
- *
742
- * @tags Addresses
743
- * @name GetAddressesAddressBalance
744
- * @summary Get the balance of an address
745
- * @request GET:/addresses/{address}/balance
746
- */
747
- getAddressesAddressBalance: (address, params = {}) => this.request({
748
- path: `/addresses/${address}/balance`,
749
- method: 'GET',
750
- format: 'json',
751
- ...params
752
- }).then(utils_1.convertHttpResponse),
753
- /**
754
- * No description
755
- *
756
- * @tags Addresses
757
- * @name GetAddressesAddressUtxos
758
- * @summary Get the UTXOs of an address
759
- * @request GET:/addresses/{address}/utxos
760
- */
761
- getAddressesAddressUtxos: (address, params = {}) => this.request({
762
- path: `/addresses/${address}/utxos`,
763
- method: 'GET',
764
- format: 'json',
765
- ...params
766
- }).then(utils_1.convertHttpResponse),
767
- /**
768
- * No description
769
- *
770
- * @tags Addresses
771
- * @name GetAddressesAddressGroup
772
- * @summary Get the group of an address
773
- * @request GET:/addresses/{address}/group
774
- */
775
- getAddressesAddressGroup: (address, params = {}) => this.request({
776
- path: `/addresses/${address}/group`,
777
- method: 'GET',
778
- format: 'json',
779
- ...params
780
- }).then(utils_1.convertHttpResponse)
781
- };
782
- this.transactions = {
783
- /**
784
- * No description
785
- *
786
- * @tags Transactions
787
- * @name PostTransactionsBuild
788
- * @summary Build an unsigned transaction to a number of recipients
789
- * @request POST:/transactions/build
790
- */
791
- postTransactionsBuild: (data, params = {}) => this.request({
792
- path: `/transactions/build`,
793
- method: 'POST',
794
- body: data,
795
- type: ContentType.Json,
796
- format: 'json',
797
- ...params
798
- }).then(utils_1.convertHttpResponse),
799
- /**
800
- * No description
801
- *
802
- * @tags Transactions
803
- * @name PostTransactionsSweepAddressBuild
804
- * @summary Build unsigned transactions to send all unlocked ALPH and token balances of one address to another address
805
- * @request POST:/transactions/sweep-address/build
806
- */
807
- postTransactionsSweepAddressBuild: (data, params = {}) => this.request({
808
- path: `/transactions/sweep-address/build`,
809
- method: 'POST',
810
- body: data,
811
- type: ContentType.Json,
812
- format: 'json',
813
- ...params
814
- }).then(utils_1.convertHttpResponse),
815
- /**
816
- * No description
817
- *
818
- * @tags Transactions
819
- * @name PostTransactionsSubmit
820
- * @summary Submit a signed transaction
821
- * @request POST:/transactions/submit
822
- */
823
- postTransactionsSubmit: (data, params = {}) => this.request({
824
- path: `/transactions/submit`,
825
- method: 'POST',
826
- body: data,
827
- type: ContentType.Json,
828
- format: 'json',
829
- ...params
830
- }).then(utils_1.convertHttpResponse),
831
- /**
832
- * No description
833
- *
834
- * @tags Transactions
835
- * @name PostTransactionsDecodeUnsignedTx
836
- * @summary Decode an unsigned transaction
837
- * @request POST:/transactions/decode-unsigned-tx
838
- */
839
- postTransactionsDecodeUnsignedTx: (data, params = {}) => this.request({
840
- path: `/transactions/decode-unsigned-tx`,
841
- method: 'POST',
842
- body: data,
843
- type: ContentType.Json,
844
- format: 'json',
845
- ...params
846
- }).then(utils_1.convertHttpResponse),
847
- /**
848
- * No description
849
- *
850
- * @tags Transactions
851
- * @name GetTransactionsDetailsTxid
852
- * @summary Get transaction details
853
- * @request GET:/transactions/details/{txId}
854
- */
855
- getTransactionsDetailsTxid: (txId, query, params = {}) => this.request({
856
- path: `/transactions/details/${txId}`,
857
- method: 'GET',
858
- query: query,
859
- format: 'json',
860
- ...params
861
- }).then(utils_1.convertHttpResponse),
862
- /**
863
- * No description
864
- *
865
- * @tags Transactions
866
- * @name GetTransactionsStatus
867
- * @summary Get tx status
868
- * @request GET:/transactions/status
869
- */
870
- getTransactionsStatus: (query, params = {}) => this.request({
871
- path: `/transactions/status`,
872
- method: 'GET',
873
- query: query,
874
- format: 'json',
875
- ...params
876
- }).then(utils_1.convertHttpResponse)
877
- };
878
- this.mempool = {
879
- /**
880
- * No description
881
- *
882
- * @tags Mempool
883
- * @name GetMempoolTransactions
884
- * @summary List mempool transactions
885
- * @request GET:/mempool/transactions
886
- */
887
- getMempoolTransactions: (params = {}) => this.request({
888
- path: `/mempool/transactions`,
889
- method: 'GET',
890
- format: 'json',
891
- ...params
892
- }).then(utils_1.convertHttpResponse),
893
- /**
894
- * No description
895
- *
896
- * @tags Mempool
897
- * @name DeleteMempoolTransactions
898
- * @summary Remove all transactions from mempool
899
- * @request DELETE:/mempool/transactions
900
- */
901
- deleteMempoolTransactions: (params = {}) => this.request({
902
- path: `/mempool/transactions`,
903
- method: 'DELETE',
904
- ...params
905
- }).then(utils_1.convertHttpResponse),
906
- /**
907
- * No description
908
- *
909
- * @tags Mempool
910
- * @name PutMempoolTransactionsRebroadcast
911
- * @summary Rebroadcase a mempool transaction to the network
912
- * @request PUT:/mempool/transactions/rebroadcast
913
- */
914
- putMempoolTransactionsRebroadcast: (query, params = {}) => this.request({
915
- path: `/mempool/transactions/rebroadcast`,
916
- method: 'PUT',
917
- query: query,
918
- ...params
919
- }).then(utils_1.convertHttpResponse),
920
- /**
921
- * No description
922
- *
923
- * @tags Mempool
924
- * @name PutMempoolTransactionsValidate
925
- * @summary Validate all mempool transactions and remove invalid ones
926
- * @request PUT:/mempool/transactions/validate
927
- */
928
- putMempoolTransactionsValidate: (params = {}) => this.request({
929
- path: `/mempool/transactions/validate`,
930
- method: 'PUT',
931
- ...params
932
- }).then(utils_1.convertHttpResponse)
933
- };
934
- this.contracts = {
935
- /**
936
- * No description
937
- *
938
- * @tags Contracts
939
- * @name PostContractsCompileScript
940
- * @summary Compile a script
941
- * @request POST:/contracts/compile-script
942
- */
943
- postContractsCompileScript: (data, params = {}) => this.request({
944
- path: `/contracts/compile-script`,
945
- method: 'POST',
946
- body: data,
947
- type: ContentType.Json,
948
- format: 'json',
949
- ...params
950
- }).then(utils_1.convertHttpResponse),
951
- /**
952
- * No description
953
- *
954
- * @tags Contracts
955
- * @name PostContractsUnsignedTxExecuteScript
956
- * @summary Build an unsigned script
957
- * @request POST:/contracts/unsigned-tx/execute-script
958
- */
959
- postContractsUnsignedTxExecuteScript: (data, params = {}) => this.request({
960
- path: `/contracts/unsigned-tx/execute-script`,
961
- method: 'POST',
962
- body: data,
963
- type: ContentType.Json,
964
- format: 'json',
965
- ...params
966
- }).then(utils_1.convertHttpResponse),
967
- /**
968
- * No description
969
- *
970
- * @tags Contracts
971
- * @name PostContractsCompileContract
972
- * @summary Compile a smart contract
973
- * @request POST:/contracts/compile-contract
974
- */
975
- postContractsCompileContract: (data, params = {}) => this.request({
976
- path: `/contracts/compile-contract`,
977
- method: 'POST',
978
- body: data,
979
- type: ContentType.Json,
980
- format: 'json',
981
- ...params
982
- }).then(utils_1.convertHttpResponse),
983
- /**
984
- * No description
985
- *
986
- * @tags Contracts
987
- * @name PostContractsCompileProject
988
- * @summary Compile a project
989
- * @request POST:/contracts/compile-project
990
- */
991
- postContractsCompileProject: (data, params = {}) => this.request({
992
- path: `/contracts/compile-project`,
993
- method: 'POST',
994
- body: data,
995
- type: ContentType.Json,
996
- format: 'json',
997
- ...params
998
- }).then(utils_1.convertHttpResponse),
999
- /**
1000
- * No description
1001
- *
1002
- * @tags Contracts
1003
- * @name PostContractsUnsignedTxDeployContract
1004
- * @summary Build an unsigned contract
1005
- * @request POST:/contracts/unsigned-tx/deploy-contract
1006
- */
1007
- postContractsUnsignedTxDeployContract: (data, params = {}) => this.request({
1008
- path: `/contracts/unsigned-tx/deploy-contract`,
1009
- method: 'POST',
1010
- body: data,
1011
- type: ContentType.Json,
1012
- format: 'json',
1013
- ...params
1014
- }).then(utils_1.convertHttpResponse),
1015
- /**
1016
- * No description
1017
- *
1018
- * @tags Contracts
1019
- * @name GetContractsAddressState
1020
- * @summary Get contract state
1021
- * @request GET:/contracts/{address}/state
1022
- */
1023
- getContractsAddressState: (address, query, params = {}) => this.request({
1024
- path: `/contracts/${address}/state`,
1025
- method: 'GET',
1026
- query: query,
1027
- format: 'json',
1028
- ...params
1029
- }).then(utils_1.convertHttpResponse),
1030
- /**
1031
- * No description
1032
- *
1033
- * @tags Contracts
1034
- * @name PostContractsTestContract
1035
- * @summary Test contract
1036
- * @request POST:/contracts/test-contract
1037
- */
1038
- postContractsTestContract: (data, params = {}) => this.request({
1039
- path: `/contracts/test-contract`,
1040
- method: 'POST',
1041
- body: data,
1042
- type: ContentType.Json,
1043
- format: 'json',
1044
- ...params
1045
- }).then(utils_1.convertHttpResponse),
1046
- /**
1047
- * No description
1048
- *
1049
- * @tags Contracts
1050
- * @name PostContractsCallContract
1051
- * @summary Call contract
1052
- * @request POST:/contracts/call-contract
1053
- */
1054
- postContractsCallContract: (data, params = {}) => this.request({
1055
- path: `/contracts/call-contract`,
1056
- method: 'POST',
1057
- body: data,
1058
- type: ContentType.Json,
1059
- format: 'json',
1060
- ...params
1061
- }).then(utils_1.convertHttpResponse),
1062
- /**
1063
- * No description
1064
- *
1065
- * @tags Contracts
1066
- * @name PostContractsMulticallContract
1067
- * @summary Multiple call contract
1068
- * @request POST:/contracts/multicall-contract
1069
- */
1070
- postContractsMulticallContract: (data, params = {}) => this.request({
1071
- path: `/contracts/multicall-contract`,
1072
- method: 'POST',
1073
- body: data,
1074
- type: ContentType.Json,
1075
- format: 'json',
1076
- ...params
1077
- }).then(utils_1.convertHttpResponse)
1078
- };
1079
- this.multisig = {
1080
- /**
1081
- * No description
1082
- *
1083
- * @tags Multi-signature
1084
- * @name PostMultisigAddress
1085
- * @summary Create the multisig address and unlock script
1086
- * @request POST:/multisig/address
1087
- */
1088
- postMultisigAddress: (data, params = {}) => this.request({
1089
- path: `/multisig/address`,
1090
- method: 'POST',
1091
- body: data,
1092
- type: ContentType.Json,
1093
- format: 'json',
1094
- ...params
1095
- }).then(utils_1.convertHttpResponse),
1096
- /**
1097
- * No description
1098
- *
1099
- * @tags Multi-signature
1100
- * @name PostMultisigBuild
1101
- * @summary Build a multisig unsigned transaction
1102
- * @request POST:/multisig/build
1103
- */
1104
- postMultisigBuild: (data, params = {}) => this.request({
1105
- path: `/multisig/build`,
1106
- method: 'POST',
1107
- body: data,
1108
- type: ContentType.Json,
1109
- format: 'json',
1110
- ...params
1111
- }).then(utils_1.convertHttpResponse),
1112
- /**
1113
- * No description
1114
- *
1115
- * @tags Multi-signature
1116
- * @name PostMultisigSubmit
1117
- * @summary Submit a multi-signed transaction
1118
- * @request POST:/multisig/submit
1119
- */
1120
- postMultisigSubmit: (data, params = {}) => this.request({
1121
- path: `/multisig/submit`,
1122
- method: 'POST',
1123
- body: data,
1124
- type: ContentType.Json,
1125
- format: 'json',
1126
- ...params
1127
- }).then(utils_1.convertHttpResponse)
1128
- };
1129
- this.utils = {
1130
- /**
1131
- * No description
1132
- *
1133
- * @tags Utils
1134
- * @name PostUtilsVerifySignature
1135
- * @summary Verify the SecP256K1 signature of some data
1136
- * @request POST:/utils/verify-signature
1137
- */
1138
- postUtilsVerifySignature: (data, params = {}) => this.request({
1139
- path: `/utils/verify-signature`,
1140
- method: 'POST',
1141
- body: data,
1142
- type: ContentType.Json,
1143
- format: 'json',
1144
- ...params
1145
- }).then(utils_1.convertHttpResponse),
1146
- /**
1147
- * No description
1148
- *
1149
- * @tags Utils
1150
- * @name PutUtilsCheckHashIndexing
1151
- * @summary Check and repair the indexing of block hashes
1152
- * @request PUT:/utils/check-hash-indexing
1153
- */
1154
- putUtilsCheckHashIndexing: (params = {}) => this.request({
1155
- path: `/utils/check-hash-indexing`,
1156
- method: 'PUT',
1157
- ...params
1158
- }).then(utils_1.convertHttpResponse)
1159
- };
1160
- this.miners = {
1161
- /**
1162
- * No description
1163
- *
1164
- * @tags Miners
1165
- * @name PostMinersCpuMining
1166
- * @summary Execute an action on CPU miner. !!! for test only !!!
1167
- * @request POST:/miners/cpu-mining
1168
- */
1169
- postMinersCpuMining: (query, params = {}) => this.request({
1170
- path: `/miners/cpu-mining`,
1171
- method: 'POST',
1172
- query: query,
1173
- format: 'json',
1174
- ...params
1175
- }).then(utils_1.convertHttpResponse),
1176
- /**
1177
- * No description
1178
- *
1179
- * @tags Miners
1180
- * @name PostMinersCpuMiningMineOneBlock
1181
- * @summary Mine a block on CPU miner. !!! for test only !!!
1182
- * @request POST:/miners/cpu-mining/mine-one-block
1183
- */
1184
- postMinersCpuMiningMineOneBlock: (query, params = {}) => this.request({
1185
- path: `/miners/cpu-mining/mine-one-block`,
1186
- method: 'POST',
1187
- query: query,
1188
- format: 'json',
1189
- ...params
1190
- }).then(utils_1.convertHttpResponse),
1191
- /**
1192
- * No description
1193
- *
1194
- * @tags Miners
1195
- * @name GetMinersAddresses
1196
- * @summary List miner's addresses
1197
- * @request GET:/miners/addresses
1198
- */
1199
- getMinersAddresses: (params = {}) => this.request({
1200
- path: `/miners/addresses`,
1201
- method: 'GET',
1202
- format: 'json',
1203
- ...params
1204
- }).then(utils_1.convertHttpResponse),
1205
- /**
1206
- * No description
1207
- *
1208
- * @tags Miners
1209
- * @name PutMinersAddresses
1210
- * @summary Update miner's addresses, but better to use user.conf instead
1211
- * @request PUT:/miners/addresses
1212
- */
1213
- putMinersAddresses: (data, params = {}) => this.request({
1214
- path: `/miners/addresses`,
1215
- method: 'PUT',
1216
- body: data,
1217
- type: ContentType.Json,
1218
- ...params
1219
- }).then(utils_1.convertHttpResponse)
1220
- };
1221
- this.events = {
1222
- /**
1223
- * No description
1224
- *
1225
- * @tags Events
1226
- * @name GetEventsContractContractaddress
1227
- * @summary Get events for a contract within a counter range
1228
- * @request GET:/events/contract/{contractAddress}
1229
- */
1230
- getEventsContractContractaddress: (contractAddress, query, params = {}) => this.request({
1231
- path: `/events/contract/${contractAddress}`,
1232
- method: 'GET',
1233
- query: query,
1234
- format: 'json',
1235
- ...params
1236
- }).then(utils_1.convertHttpResponse),
1237
- /**
1238
- * No description
1239
- *
1240
- * @tags Events
1241
- * @name GetEventsContractContractaddressCurrentCount
1242
- * @summary Get current value of the events counter for a contract
1243
- * @request GET:/events/contract/{contractAddress}/current-count
1244
- */
1245
- getEventsContractContractaddressCurrentCount: (contractAddress, params = {}) => this.request({
1246
- path: `/events/contract/${contractAddress}/current-count`,
1247
- method: 'GET',
1248
- format: 'json',
1249
- ...params
1250
- }).then(utils_1.convertHttpResponse),
1251
- /**
1252
- * No description
1253
- *
1254
- * @tags Events
1255
- * @name GetEventsTxIdTxid
1256
- * @summary Get contract events for a transaction
1257
- * @request GET:/events/tx-id/{txId}
1258
- */
1259
- getEventsTxIdTxid: (txId, query, params = {}) => this.request({
1260
- path: `/events/tx-id/${txId}`,
1261
- method: 'GET',
1262
- query: query,
1263
- format: 'json',
1264
- ...params
1265
- }).then(utils_1.convertHttpResponse),
1266
- /**
1267
- * No description
1268
- *
1269
- * @tags Events
1270
- * @name GetEventsBlockHashBlockhash
1271
- * @summary Get contract events for a block
1272
- * @request GET:/events/block-hash/{blockHash}
1273
- */
1274
- getEventsBlockHashBlockhash: (blockHash, query, params = {}) => this.request({
1275
- path: `/events/block-hash/${blockHash}`,
1276
- method: 'GET',
1277
- query: query,
1278
- format: 'json',
1279
- ...params
1280
- }).then(utils_1.convertHttpResponse)
1281
- };
1282
- }
1283
- }
1284
- exports.Api = Api;