zklighter-perps 1.0.28 → 1.0.30
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.
- package/apis/AccountApi.ts +157 -235
- package/apis/BlockApi.ts +28 -26
- package/apis/CandlestickApi.ts +28 -28
- package/apis/InfoApi.ts +21 -21
- package/apis/LiquidationApi.ts +4 -4
- package/apis/OrderApi.ts +85 -85
- package/apis/RootApi.ts +5 -5
- package/apis/TransactionApi.ts +208 -208
- package/openapi.json +80 -131
- package/package.json +1 -1
package/apis/OrderApi.ts
CHANGED
|
@@ -40,49 +40,49 @@ import {
|
|
|
40
40
|
TradesToJSON,
|
|
41
41
|
} from '../models/index';
|
|
42
42
|
|
|
43
|
-
export interface
|
|
43
|
+
export interface AccountActiveOrdersRequest {
|
|
44
44
|
account_index: number;
|
|
45
45
|
market_id: number;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export interface
|
|
48
|
+
export interface AccountInactiveOrdersRequest {
|
|
49
49
|
account_index: number;
|
|
50
|
-
filter:
|
|
50
|
+
filter: AccountInactiveOrdersFilterEnum;
|
|
51
51
|
limit: number;
|
|
52
52
|
market_id?: number;
|
|
53
53
|
cursor?: string;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
export interface
|
|
56
|
+
export interface AccountOrdersRequest {
|
|
57
57
|
account_index: number;
|
|
58
58
|
market_id: number;
|
|
59
59
|
limit: number;
|
|
60
60
|
cursor?: string;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export interface
|
|
64
|
-
filter:
|
|
63
|
+
export interface OrderBookDetailsRequest {
|
|
64
|
+
filter: OrderBookDetailsFilterEnum;
|
|
65
65
|
market_id?: number;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
export interface
|
|
68
|
+
export interface OrderBookOrdersRequest {
|
|
69
69
|
market_id: number;
|
|
70
70
|
limit: number;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
export interface
|
|
74
|
-
filter:
|
|
73
|
+
export interface OrderBooksRequest {
|
|
74
|
+
filter: OrderBooksFilterEnum;
|
|
75
75
|
market_id?: number;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
export interface
|
|
78
|
+
export interface RecentTradesRequest {
|
|
79
79
|
market_id: number;
|
|
80
80
|
limit: number;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export interface
|
|
83
|
+
export interface TradesRequest {
|
|
84
84
|
market_id: number;
|
|
85
|
-
by:
|
|
85
|
+
by: TradesByEnum;
|
|
86
86
|
from: number;
|
|
87
87
|
limit: number;
|
|
88
88
|
order_index?: number;
|
|
@@ -95,20 +95,20 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* Get account active orders
|
|
98
|
-
*
|
|
98
|
+
* accountActiveOrders
|
|
99
99
|
*/
|
|
100
|
-
async
|
|
100
|
+
async accountActiveOrdersRaw(requestParameters: AccountActiveOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Orders>> {
|
|
101
101
|
if (requestParameters['account_index'] == null) {
|
|
102
102
|
throw new runtime.RequiredError(
|
|
103
103
|
'account_index',
|
|
104
|
-
'Required parameter "account_index" was null or undefined when calling
|
|
104
|
+
'Required parameter "account_index" was null or undefined when calling accountActiveOrders().'
|
|
105
105
|
);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
if (requestParameters['market_id'] == null) {
|
|
109
109
|
throw new runtime.RequiredError(
|
|
110
110
|
'market_id',
|
|
111
|
-
'Required parameter "market_id" was null or undefined when calling
|
|
111
|
+
'Required parameter "market_id" was null or undefined when calling accountActiveOrders().'
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -136,36 +136,36 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
138
|
* Get account active orders
|
|
139
|
-
*
|
|
139
|
+
* accountActiveOrders
|
|
140
140
|
*/
|
|
141
|
-
async
|
|
142
|
-
const response = await this.
|
|
141
|
+
async accountActiveOrders(requestParameters: AccountActiveOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Orders> {
|
|
142
|
+
const response = await this.accountActiveOrdersRaw(requestParameters, initOverrides);
|
|
143
143
|
return await response.value();
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* Get account active orders
|
|
148
|
-
*
|
|
148
|
+
* accountInactiveOrders
|
|
149
149
|
*/
|
|
150
|
-
async
|
|
150
|
+
async accountInactiveOrdersRaw(requestParameters: AccountInactiveOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Orders>> {
|
|
151
151
|
if (requestParameters['account_index'] == null) {
|
|
152
152
|
throw new runtime.RequiredError(
|
|
153
153
|
'account_index',
|
|
154
|
-
'Required parameter "account_index" was null or undefined when calling
|
|
154
|
+
'Required parameter "account_index" was null or undefined when calling accountInactiveOrders().'
|
|
155
155
|
);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
if (requestParameters['filter'] == null) {
|
|
159
159
|
throw new runtime.RequiredError(
|
|
160
160
|
'filter',
|
|
161
|
-
'Required parameter "filter" was null or undefined when calling
|
|
161
|
+
'Required parameter "filter" was null or undefined when calling accountInactiveOrders().'
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
if (requestParameters['limit'] == null) {
|
|
166
166
|
throw new runtime.RequiredError(
|
|
167
167
|
'limit',
|
|
168
|
-
'Required parameter "limit" was null or undefined when calling
|
|
168
|
+
'Required parameter "limit" was null or undefined when calling accountInactiveOrders().'
|
|
169
169
|
);
|
|
170
170
|
}
|
|
171
171
|
|
|
@@ -205,36 +205,36 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
207
|
* Get account active orders
|
|
208
|
-
*
|
|
208
|
+
* accountInactiveOrders
|
|
209
209
|
*/
|
|
210
|
-
async
|
|
211
|
-
const response = await this.
|
|
210
|
+
async accountInactiveOrders(requestParameters: AccountInactiveOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Orders> {
|
|
211
|
+
const response = await this.accountInactiveOrdersRaw(requestParameters, initOverrides);
|
|
212
212
|
return await response.value();
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
/**
|
|
216
216
|
* Get account orders
|
|
217
|
-
*
|
|
217
|
+
* accountOrders
|
|
218
218
|
*/
|
|
219
|
-
async
|
|
219
|
+
async accountOrdersRaw(requestParameters: AccountOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Orders>> {
|
|
220
220
|
if (requestParameters['account_index'] == null) {
|
|
221
221
|
throw new runtime.RequiredError(
|
|
222
222
|
'account_index',
|
|
223
|
-
'Required parameter "account_index" was null or undefined when calling
|
|
223
|
+
'Required parameter "account_index" was null or undefined when calling accountOrders().'
|
|
224
224
|
);
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
if (requestParameters['market_id'] == null) {
|
|
228
228
|
throw new runtime.RequiredError(
|
|
229
229
|
'market_id',
|
|
230
|
-
'Required parameter "market_id" was null or undefined when calling
|
|
230
|
+
'Required parameter "market_id" was null or undefined when calling accountOrders().'
|
|
231
231
|
);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
if (requestParameters['limit'] == null) {
|
|
235
235
|
throw new runtime.RequiredError(
|
|
236
236
|
'limit',
|
|
237
|
-
'Required parameter "limit" was null or undefined when calling
|
|
237
|
+
'Required parameter "limit" was null or undefined when calling accountOrders().'
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
240
|
|
|
@@ -270,18 +270,18 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
272
|
* Get account orders
|
|
273
|
-
*
|
|
273
|
+
* accountOrders
|
|
274
274
|
*/
|
|
275
|
-
async
|
|
276
|
-
const response = await this.
|
|
275
|
+
async accountOrders(requestParameters: AccountOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Orders> {
|
|
276
|
+
const response = await this.accountOrdersRaw(requestParameters, initOverrides);
|
|
277
277
|
return await response.value();
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
281
|
* Get exchange stats
|
|
282
|
-
*
|
|
282
|
+
* exchangeStats
|
|
283
283
|
*/
|
|
284
|
-
async
|
|
284
|
+
async exchangeStatsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExchangeStats>> {
|
|
285
285
|
const queryParameters: any = {};
|
|
286
286
|
|
|
287
287
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -298,22 +298,22 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
298
298
|
|
|
299
299
|
/**
|
|
300
300
|
* Get exchange stats
|
|
301
|
-
*
|
|
301
|
+
* exchangeStats
|
|
302
302
|
*/
|
|
303
|
-
async
|
|
304
|
-
const response = await this.
|
|
303
|
+
async exchangeStats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExchangeStats> {
|
|
304
|
+
const response = await this.exchangeStatsRaw(initOverrides);
|
|
305
305
|
return await response.value();
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
/**
|
|
309
309
|
* Get order books metadata
|
|
310
|
-
*
|
|
310
|
+
* orderBookDetails
|
|
311
311
|
*/
|
|
312
|
-
async
|
|
312
|
+
async orderBookDetailsRaw(requestParameters: OrderBookDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderBookDetails>> {
|
|
313
313
|
if (requestParameters['filter'] == null) {
|
|
314
314
|
throw new runtime.RequiredError(
|
|
315
315
|
'filter',
|
|
316
|
-
'Required parameter "filter" was null or undefined when calling
|
|
316
|
+
'Required parameter "filter" was null or undefined when calling orderBookDetails().'
|
|
317
317
|
);
|
|
318
318
|
}
|
|
319
319
|
|
|
@@ -341,29 +341,29 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
341
341
|
|
|
342
342
|
/**
|
|
343
343
|
* Get order books metadata
|
|
344
|
-
*
|
|
344
|
+
* orderBookDetails
|
|
345
345
|
*/
|
|
346
|
-
async
|
|
347
|
-
const response = await this.
|
|
346
|
+
async orderBookDetails(requestParameters: OrderBookDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderBookDetails> {
|
|
347
|
+
const response = await this.orderBookDetailsRaw(requestParameters, initOverrides);
|
|
348
348
|
return await response.value();
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
352
|
* Get order book orders
|
|
353
|
-
*
|
|
353
|
+
* orderBookOrders
|
|
354
354
|
*/
|
|
355
|
-
async
|
|
355
|
+
async orderBookOrdersRaw(requestParameters: OrderBookOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderBookOrders>> {
|
|
356
356
|
if (requestParameters['market_id'] == null) {
|
|
357
357
|
throw new runtime.RequiredError(
|
|
358
358
|
'market_id',
|
|
359
|
-
'Required parameter "market_id" was null or undefined when calling
|
|
359
|
+
'Required parameter "market_id" was null or undefined when calling orderBookOrders().'
|
|
360
360
|
);
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
if (requestParameters['limit'] == null) {
|
|
364
364
|
throw new runtime.RequiredError(
|
|
365
365
|
'limit',
|
|
366
|
-
'Required parameter "limit" was null or undefined when calling
|
|
366
|
+
'Required parameter "limit" was null or undefined when calling orderBookOrders().'
|
|
367
367
|
);
|
|
368
368
|
}
|
|
369
369
|
|
|
@@ -391,22 +391,22 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
391
391
|
|
|
392
392
|
/**
|
|
393
393
|
* Get order book orders
|
|
394
|
-
*
|
|
394
|
+
* orderBookOrders
|
|
395
395
|
*/
|
|
396
|
-
async
|
|
397
|
-
const response = await this.
|
|
396
|
+
async orderBookOrders(requestParameters: OrderBookOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderBookOrders> {
|
|
397
|
+
const response = await this.orderBookOrdersRaw(requestParameters, initOverrides);
|
|
398
398
|
return await response.value();
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
/**
|
|
402
|
-
* Get order books metadata
|
|
403
|
-
*
|
|
402
|
+
* Get order books metadata.<hr>**Response Description:**<br><br>1) **Taker and maker fees** are in percentage.<br>2) **Min base amount:** The amount of base token that can be traded in a single order.<br>3) **Min quote amount:** The amount of quote token that can be traded in a single order.<br>4) **Supported size decimals:** The number of decimal places that can be used for the size of the order.<br>5) **Supported price decimals:** The number of decimal places that can be used for the price of the order.<br>6) **Supported quote decimals:** Size Decimals + Quote Decimals.
|
|
403
|
+
* orderBooks
|
|
404
404
|
*/
|
|
405
|
-
async
|
|
405
|
+
async orderBooksRaw(requestParameters: OrderBooksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderBooks>> {
|
|
406
406
|
if (requestParameters['filter'] == null) {
|
|
407
407
|
throw new runtime.RequiredError(
|
|
408
408
|
'filter',
|
|
409
|
-
'Required parameter "filter" was null or undefined when calling
|
|
409
|
+
'Required parameter "filter" was null or undefined when calling orderBooks().'
|
|
410
410
|
);
|
|
411
411
|
}
|
|
412
412
|
|
|
@@ -433,30 +433,30 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
/**
|
|
436
|
-
* Get order books metadata
|
|
437
|
-
*
|
|
436
|
+
* Get order books metadata.<hr>**Response Description:**<br><br>1) **Taker and maker fees** are in percentage.<br>2) **Min base amount:** The amount of base token that can be traded in a single order.<br>3) **Min quote amount:** The amount of quote token that can be traded in a single order.<br>4) **Supported size decimals:** The number of decimal places that can be used for the size of the order.<br>5) **Supported price decimals:** The number of decimal places that can be used for the price of the order.<br>6) **Supported quote decimals:** Size Decimals + Quote Decimals.
|
|
437
|
+
* orderBooks
|
|
438
438
|
*/
|
|
439
|
-
async
|
|
440
|
-
const response = await this.
|
|
439
|
+
async orderBooks(requestParameters: OrderBooksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderBooks> {
|
|
440
|
+
const response = await this.orderBooksRaw(requestParameters, initOverrides);
|
|
441
441
|
return await response.value();
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
/**
|
|
445
445
|
* Get recent trades
|
|
446
|
-
*
|
|
446
|
+
* recentTrades
|
|
447
447
|
*/
|
|
448
|
-
async
|
|
448
|
+
async recentTradesRaw(requestParameters: RecentTradesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Trades>> {
|
|
449
449
|
if (requestParameters['market_id'] == null) {
|
|
450
450
|
throw new runtime.RequiredError(
|
|
451
451
|
'market_id',
|
|
452
|
-
'Required parameter "market_id" was null or undefined when calling
|
|
452
|
+
'Required parameter "market_id" was null or undefined when calling recentTrades().'
|
|
453
453
|
);
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
if (requestParameters['limit'] == null) {
|
|
457
457
|
throw new runtime.RequiredError(
|
|
458
458
|
'limit',
|
|
459
|
-
'Required parameter "limit" was null or undefined when calling
|
|
459
|
+
'Required parameter "limit" was null or undefined when calling recentTrades().'
|
|
460
460
|
);
|
|
461
461
|
}
|
|
462
462
|
|
|
@@ -484,43 +484,43 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
484
484
|
|
|
485
485
|
/**
|
|
486
486
|
* Get recent trades
|
|
487
|
-
*
|
|
487
|
+
* recentTrades
|
|
488
488
|
*/
|
|
489
|
-
async
|
|
490
|
-
const response = await this.
|
|
489
|
+
async recentTrades(requestParameters: RecentTradesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Trades> {
|
|
490
|
+
const response = await this.recentTradesRaw(requestParameters, initOverrides);
|
|
491
491
|
return await response.value();
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
/**
|
|
495
495
|
* Get trades
|
|
496
|
-
*
|
|
496
|
+
* trades
|
|
497
497
|
*/
|
|
498
|
-
async
|
|
498
|
+
async tradesRaw(requestParameters: TradesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Trades>> {
|
|
499
499
|
if (requestParameters['market_id'] == null) {
|
|
500
500
|
throw new runtime.RequiredError(
|
|
501
501
|
'market_id',
|
|
502
|
-
'Required parameter "market_id" was null or undefined when calling
|
|
502
|
+
'Required parameter "market_id" was null or undefined when calling trades().'
|
|
503
503
|
);
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
if (requestParameters['by'] == null) {
|
|
507
507
|
throw new runtime.RequiredError(
|
|
508
508
|
'by',
|
|
509
|
-
'Required parameter "by" was null or undefined when calling
|
|
509
|
+
'Required parameter "by" was null or undefined when calling trades().'
|
|
510
510
|
);
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
if (requestParameters['from'] == null) {
|
|
514
514
|
throw new runtime.RequiredError(
|
|
515
515
|
'from',
|
|
516
|
-
'Required parameter "from" was null or undefined when calling
|
|
516
|
+
'Required parameter "from" was null or undefined when calling trades().'
|
|
517
517
|
);
|
|
518
518
|
}
|
|
519
519
|
|
|
520
520
|
if (requestParameters['limit'] == null) {
|
|
521
521
|
throw new runtime.RequiredError(
|
|
522
522
|
'limit',
|
|
523
|
-
'Required parameter "limit" was null or undefined when calling
|
|
523
|
+
'Required parameter "limit" was null or undefined when calling trades().'
|
|
524
524
|
);
|
|
525
525
|
}
|
|
526
526
|
|
|
@@ -560,10 +560,10 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
560
560
|
|
|
561
561
|
/**
|
|
562
562
|
* Get trades
|
|
563
|
-
*
|
|
563
|
+
* trades
|
|
564
564
|
*/
|
|
565
|
-
async
|
|
566
|
-
const response = await this.
|
|
565
|
+
async trades(requestParameters: TradesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Trades> {
|
|
566
|
+
const response = await this.tradesRaw(requestParameters, initOverrides);
|
|
567
567
|
return await response.value();
|
|
568
568
|
}
|
|
569
569
|
|
|
@@ -572,33 +572,33 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
572
572
|
/**
|
|
573
573
|
* @export
|
|
574
574
|
*/
|
|
575
|
-
export const
|
|
575
|
+
export const AccountInactiveOrdersFilterEnum = {
|
|
576
576
|
MarketId: 'market_id',
|
|
577
577
|
All: 'all'
|
|
578
578
|
} as const;
|
|
579
|
-
export type
|
|
579
|
+
export type AccountInactiveOrdersFilterEnum = typeof AccountInactiveOrdersFilterEnum[keyof typeof AccountInactiveOrdersFilterEnum];
|
|
580
580
|
/**
|
|
581
581
|
* @export
|
|
582
582
|
*/
|
|
583
|
-
export const
|
|
583
|
+
export const OrderBookDetailsFilterEnum = {
|
|
584
584
|
MarketId: 'market_id',
|
|
585
585
|
All: 'all'
|
|
586
586
|
} as const;
|
|
587
|
-
export type
|
|
587
|
+
export type OrderBookDetailsFilterEnum = typeof OrderBookDetailsFilterEnum[keyof typeof OrderBookDetailsFilterEnum];
|
|
588
588
|
/**
|
|
589
589
|
* @export
|
|
590
590
|
*/
|
|
591
|
-
export const
|
|
591
|
+
export const OrderBooksFilterEnum = {
|
|
592
592
|
MarketId: 'market_id',
|
|
593
593
|
All: 'all'
|
|
594
594
|
} as const;
|
|
595
|
-
export type
|
|
595
|
+
export type OrderBooksFilterEnum = typeof OrderBooksFilterEnum[keyof typeof OrderBooksFilterEnum];
|
|
596
596
|
/**
|
|
597
597
|
* @export
|
|
598
598
|
*/
|
|
599
|
-
export const
|
|
599
|
+
export const TradesByEnum = {
|
|
600
600
|
BlockHeight: 'block_height',
|
|
601
601
|
Timestamp: 'timestamp',
|
|
602
602
|
TradeId: 'trade_id'
|
|
603
603
|
} as const;
|
|
604
|
-
export type
|
|
604
|
+
export type TradesByEnum = typeof TradesByEnum[keyof typeof TradesByEnum];
|
package/apis/RootApi.ts
CHANGED
|
@@ -32,9 +32,9 @@ export class RootApi extends runtime.BaseAPI {
|
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Get status of zklighter
|
|
35
|
-
*
|
|
35
|
+
* status
|
|
36
36
|
*/
|
|
37
|
-
async
|
|
37
|
+
async statusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Status>> {
|
|
38
38
|
const queryParameters: any = {};
|
|
39
39
|
|
|
40
40
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -51,10 +51,10 @@ export class RootApi extends runtime.BaseAPI {
|
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* Get status of zklighter
|
|
54
|
-
*
|
|
54
|
+
* status
|
|
55
55
|
*/
|
|
56
|
-
async
|
|
57
|
-
const response = await this.
|
|
56
|
+
async status(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Status> {
|
|
57
|
+
const response = await this.statusRaw(initOverrides);
|
|
58
58
|
return await response.value();
|
|
59
59
|
}
|
|
60
60
|
|