zklighter-perps 1.0.13 → 1.0.15

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.
@@ -421,46 +421,46 @@ export class AccountApi extends runtime.BaseAPI {
421
421
  }
422
422
 
423
423
  /**
424
- * @export
425
- * @enum {string}
426
- */
427
- export enum GetAccountByEnum {
428
- Index = 'index',
429
- L1Address = 'l1_address'
430
- }
424
+ * @export
425
+ */
426
+ export const GetAccountByEnum = {
427
+ Index: 'index',
428
+ L1Address: 'l1_address'
429
+ } as const;
430
+ export type GetAccountByEnum = typeof GetAccountByEnum[keyof typeof GetAccountByEnum];
431
431
  /**
432
- * @export
433
- * @enum {string}
434
- */
435
- export enum GetAccountPnlByEnum {
436
- Index = 'index',
437
- L1Address = 'l1_address'
438
- }
432
+ * @export
433
+ */
434
+ export const GetAccountPnlByEnum = {
435
+ Index: 'index',
436
+ L1Address: 'l1_address'
437
+ } as const;
438
+ export type GetAccountPnlByEnum = typeof GetAccountPnlByEnum[keyof typeof GetAccountPnlByEnum];
439
439
  /**
440
- * @export
441
- * @enum {string}
442
- */
443
- export enum GetAccountPnlResolutionEnum {
444
- _1m = '1m',
445
- _5m = '5m',
446
- _15m = '15m',
447
- _1h = '1h',
448
- _4h = '4h',
449
- _1d = '1d'
450
- }
440
+ * @export
441
+ */
442
+ export const GetAccountPnlResolutionEnum = {
443
+ _1m: '1m',
444
+ _5m: '5m',
445
+ _15m: '15m',
446
+ _1h: '1h',
447
+ _4h: '4h',
448
+ _1d: '1d'
449
+ } as const;
450
+ export type GetAccountPnlResolutionEnum = typeof GetAccountPnlResolutionEnum[keyof typeof GetAccountPnlResolutionEnum];
451
451
  /**
452
- * @export
453
- * @enum {string}
454
- */
455
- export enum GetAccountsSortEnum {
456
- Asc = 'asc',
457
- Desc = 'desc'
458
- }
452
+ * @export
453
+ */
454
+ export const GetAccountsSortEnum = {
455
+ Asc: 'asc',
456
+ Desc: 'desc'
457
+ } as const;
458
+ export type GetAccountsSortEnum = typeof GetAccountsSortEnum[keyof typeof GetAccountsSortEnum];
459
459
  /**
460
- * @export
461
- * @enum {string}
462
- */
463
- export enum GetPermissionByEnum {
464
- Index = 'index',
465
- L1Address = 'l1_address'
466
- }
460
+ * @export
461
+ */
462
+ export const GetPermissionByEnum = {
463
+ Index: 'index',
464
+ L1Address: 'l1_address'
465
+ } as const;
466
+ export type GetPermissionByEnum = typeof GetPermissionByEnum[keyof typeof GetPermissionByEnum];
package/apis/BlockApi.ts CHANGED
@@ -170,18 +170,18 @@ export class BlockApi extends runtime.BaseAPI {
170
170
  }
171
171
 
172
172
  /**
173
- * @export
174
- * @enum {string}
175
- */
176
- export enum GetBlockByEnum {
177
- Commitment = 'commitment',
178
- Height = 'height'
179
- }
173
+ * @export
174
+ */
175
+ export const GetBlockByEnum = {
176
+ Commitment: 'commitment',
177
+ Height: 'height'
178
+ } as const;
179
+ export type GetBlockByEnum = typeof GetBlockByEnum[keyof typeof GetBlockByEnum];
180
180
  /**
181
- * @export
182
- * @enum {string}
183
- */
184
- export enum GetBlocksSortEnum {
185
- Asc = 'asc',
186
- Desc = 'desc'
187
- }
181
+ * @export
182
+ */
183
+ export const GetBlocksSortEnum = {
184
+ Asc: 'asc',
185
+ Desc: 'desc'
186
+ } as const;
187
+ export type GetBlocksSortEnum = typeof GetBlocksSortEnum[keyof typeof GetBlocksSortEnum];
@@ -218,21 +218,21 @@ export class CandlestickApi extends runtime.BaseAPI {
218
218
  }
219
219
 
220
220
  /**
221
- * @export
222
- * @enum {string}
223
- */
224
- export enum GetCandlesticksResolutionEnum {
225
- _1m = '1m',
226
- _5m = '5m',
227
- _15m = '15m',
228
- _1h = '1h',
229
- _4h = '4h',
230
- _1d = '1d'
231
- }
221
+ * @export
222
+ */
223
+ export const GetCandlesticksResolutionEnum = {
224
+ _1m: '1m',
225
+ _5m: '5m',
226
+ _15m: '15m',
227
+ _1h: '1h',
228
+ _4h: '4h',
229
+ _1d: '1d'
230
+ } as const;
231
+ export type GetCandlesticksResolutionEnum = typeof GetCandlesticksResolutionEnum[keyof typeof GetCandlesticksResolutionEnum];
232
232
  /**
233
- * @export
234
- * @enum {string}
235
- */
236
- export enum GetFundingsResolutionEnum {
237
- _1h = '1h'
238
- }
233
+ * @export
234
+ */
235
+ export const GetFundingsResolutionEnum = {
236
+ _1h: '1h'
237
+ } as const;
238
+ export type GetFundingsResolutionEnum = typeof GetFundingsResolutionEnum[keyof typeof GetFundingsResolutionEnum];
package/apis/OrderApi.ts CHANGED
@@ -594,35 +594,35 @@ export class OrderApi extends runtime.BaseAPI {
594
594
  }
595
595
 
596
596
  /**
597
- * @export
598
- * @enum {string}
599
- */
600
- export enum GetAccountInactiveOrdersFilterEnum {
601
- MarketId = 'market_id',
602
- All = 'all'
603
- }
597
+ * @export
598
+ */
599
+ export const GetAccountInactiveOrdersFilterEnum = {
600
+ MarketId: 'market_id',
601
+ All: 'all'
602
+ } as const;
603
+ export type GetAccountInactiveOrdersFilterEnum = typeof GetAccountInactiveOrdersFilterEnum[keyof typeof GetAccountInactiveOrdersFilterEnum];
604
604
  /**
605
- * @export
606
- * @enum {string}
607
- */
608
- export enum GetOrderBookDetailsFilterEnum {
609
- MarketId = 'market_id',
610
- All = 'all'
611
- }
605
+ * @export
606
+ */
607
+ export const GetOrderBookDetailsFilterEnum = {
608
+ MarketId: 'market_id',
609
+ All: 'all'
610
+ } as const;
611
+ export type GetOrderBookDetailsFilterEnum = typeof GetOrderBookDetailsFilterEnum[keyof typeof GetOrderBookDetailsFilterEnum];
612
612
  /**
613
- * @export
614
- * @enum {string}
615
- */
616
- export enum GetOrderBooksFilterEnum {
617
- MarketId = 'market_id',
618
- All = 'all'
619
- }
613
+ * @export
614
+ */
615
+ export const GetOrderBooksFilterEnum = {
616
+ MarketId: 'market_id',
617
+ All: 'all'
618
+ } as const;
619
+ export type GetOrderBooksFilterEnum = typeof GetOrderBooksFilterEnum[keyof typeof GetOrderBooksFilterEnum];
620
620
  /**
621
- * @export
622
- * @enum {string}
623
- */
624
- export enum GetTradesByEnum {
625
- BlockHeight = 'block_height',
626
- Timestamp = 'timestamp',
627
- TradeId = 'trade_id'
628
- }
621
+ * @export
622
+ */
623
+ export const GetTradesByEnum = {
624
+ BlockHeight: 'block_height',
625
+ Timestamp: 'timestamp',
626
+ TradeId: 'trade_id'
627
+ } as const;
628
+ export type GetTradesByEnum = typeof GetTradesByEnum[keyof typeof GetTradesByEnum];
@@ -699,34 +699,34 @@ export class TransactionApi extends runtime.BaseAPI {
699
699
  }
700
700
 
701
701
  /**
702
- * @export
703
- * @enum {string}
704
- */
705
- export enum GetAccountPendingTxsByEnum {
706
- AccountIndex = 'account_index',
707
- L1Address = 'l1_address'
708
- }
702
+ * @export
703
+ */
704
+ export const GetAccountPendingTxsByEnum = {
705
+ AccountIndex: 'account_index',
706
+ L1Address: 'l1_address'
707
+ } as const;
708
+ export type GetAccountPendingTxsByEnum = typeof GetAccountPendingTxsByEnum[keyof typeof GetAccountPendingTxsByEnum];
709
709
  /**
710
- * @export
711
- * @enum {string}
712
- */
713
- export enum GetAccountTxsByEnum {
714
- AccountIndex = 'account_index',
715
- L1Address = 'l1_address'
716
- }
710
+ * @export
711
+ */
712
+ export const GetAccountTxsByEnum = {
713
+ AccountIndex: 'account_index',
714
+ L1Address: 'l1_address'
715
+ } as const;
716
+ export type GetAccountTxsByEnum = typeof GetAccountTxsByEnum[keyof typeof GetAccountTxsByEnum];
717
717
  /**
718
- * @export
719
- * @enum {string}
720
- */
721
- export enum GetBlockTxsByEnum {
722
- Height = 'block_height',
723
- Commitment = 'block_commitment'
724
- }
718
+ * @export
719
+ */
720
+ export const GetBlockTxsByEnum = {
721
+ Height: 'block_height',
722
+ Commitment: 'block_commitment'
723
+ } as const;
724
+ export type GetBlockTxsByEnum = typeof GetBlockTxsByEnum[keyof typeof GetBlockTxsByEnum];
725
725
  /**
726
- * @export
727
- * @enum {string}
728
- */
729
- export enum GetTxByEnum {
730
- Hash = 'hash',
731
- SequenceIndex = 'sequence_index'
732
- }
726
+ * @export
727
+ */
728
+ export const GetTxByEnum = {
729
+ Hash: 'hash',
730
+ SequenceIndex: 'sequence_index'
731
+ } as const;
732
+ export type GetTxByEnum = typeof GetTxByEnum[keyof typeof GetTxByEnum];
package/config.yaml CHANGED
@@ -4,4 +4,3 @@ projectName: zklighter
4
4
  additionalProperties:
5
5
  modelPropertyNaming: original
6
6
  paramNaming: original
7
- stringEnums: true
@@ -67,7 +67,7 @@ export interface Layer1BasicInfo {
67
67
  * @type {Array<ValidatorInfo>}
68
68
  * @memberof Layer1BasicInfo
69
69
  */
70
- validator_Info: Array<ValidatorInfo>;
70
+ validator_info: Array<ValidatorInfo>;
71
71
  /**
72
72
  *
73
73
  * @type {Array<ContractAddress>}
@@ -100,7 +100,7 @@ export interface Layer1BasicInfo {
100
100
  export function instanceOfLayer1BasicInfo(value: object): value is Layer1BasicInfo {
101
101
  if (!('l1_providers' in value) || value['l1_providers'] === undefined) return false;
102
102
  if (!('l1_providers_health' in value) || value['l1_providers_health'] === undefined) return false;
103
- if (!('validator_Info' in value) || value['validator_Info'] === undefined) return false;
103
+ if (!('validator_info' in value) || value['validator_info'] === undefined) return false;
104
104
  if (!('contract_addresses' in value) || value['contract_addresses'] === undefined) return false;
105
105
  if (!('latest_l1_generic_block' in value) || value['latest_l1_generic_block'] === undefined) return false;
106
106
  if (!('latest_l1_governance_block' in value) || value['latest_l1_governance_block'] === undefined) return false;
@@ -122,7 +122,7 @@ export function Layer1BasicInfoFromJSONTyped(json: any, ignoreDiscriminator: boo
122
122
  'message': json['message'] == null ? undefined : json['message'],
123
123
  'l1_providers': ((json['l1_providers'] as Array<any>).map(L1ProviderInfoFromJSON)),
124
124
  'l1_providers_health': json['l1_providers_health'],
125
- 'validator_Info': ((json['validator_Info'] as Array<any>).map(ValidatorInfoFromJSON)),
125
+ 'validator_info': ((json['validator_info'] as Array<any>).map(ValidatorInfoFromJSON)),
126
126
  'contract_addresses': ((json['contract_addresses'] as Array<any>).map(ContractAddressFromJSON)),
127
127
  'latest_l1_generic_block': json['latest_l1_generic_block'],
128
128
  'latest_l1_governance_block': json['latest_l1_governance_block'],
@@ -140,7 +140,7 @@ export function Layer1BasicInfoToJSON(value?: Layer1BasicInfo | null): any {
140
140
  'message': value['message'],
141
141
  'l1_providers': ((value['l1_providers'] as Array<any>).map(L1ProviderInfoToJSON)),
142
142
  'l1_providers_health': value['l1_providers_health'],
143
- 'validator_Info': ((value['validator_Info'] as Array<any>).map(ValidatorInfoToJSON)),
143
+ 'validator_info': ((value['validator_info'] as Array<any>).map(ValidatorInfoToJSON)),
144
144
  'contract_addresses': ((value['contract_addresses'] as Array<any>).map(ContractAddressToJSON)),
145
145
  'latest_l1_generic_block': value['latest_l1_generic_block'],
146
146
  'latest_l1_governance_block': value['latest_l1_governance_block'],
package/models/Order.ts CHANGED
@@ -123,23 +123,25 @@ export interface Order {
123
123
  timestamp: number;
124
124
  }
125
125
 
126
+
126
127
  /**
127
- * @export
128
- * @enum {string}
129
- */
130
- export enum OrderTypeEnum {
131
- Limit = 'limit',
132
- Market = 'market'
133
- }
128
+ * @export
129
+ */
130
+ export const OrderTypeEnum = {
131
+ Limit: 'limit',
132
+ Market: 'market'
133
+ } as const;
134
+ export type OrderTypeEnum = typeof OrderTypeEnum[keyof typeof OrderTypeEnum];
135
+
134
136
  /**
135
- * @export
136
- * @enum {string}
137
- */
138
- export enum OrderStatusEnum {
139
- Open = 'open',
140
- Filled = 'filled',
141
- Canceled = 'canceled'
142
- }
137
+ * @export
138
+ */
139
+ export const OrderStatusEnum = {
140
+ Open: 'open',
141
+ Filled: 'filled',
142
+ Canceled: 'canceled'
143
+ } as const;
144
+ export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
143
145
 
144
146
 
145
147
  /**
@@ -87,14 +87,15 @@ export interface OrderBook {
87
87
  supported_quote_decimals: number;
88
88
  }
89
89
 
90
+
90
91
  /**
91
- * @export
92
- * @enum {string}
93
- */
94
- export enum OrderBookStatusEnum {
95
- Frozen = 'frozen',
96
- Active = 'active'
97
- }
92
+ * @export
93
+ */
94
+ export const OrderBookStatusEnum = {
95
+ Frozen: 'frozen',
96
+ Active: 'active'
97
+ } as const;
98
+ export type OrderBookStatusEnum = typeof OrderBookStatusEnum[keyof typeof OrderBookStatusEnum];
98
99
 
99
100
 
100
101
  /**
@@ -195,14 +195,15 @@ export interface OrderBookDetail {
195
195
  daily_chart: { [key: string]: number; };
196
196
  }
197
197
 
198
+
198
199
  /**
199
- * @export
200
- * @enum {string}
201
- */
202
- export enum OrderBookDetailStatusEnum {
203
- Frozen = 'frozen',
204
- Active = 'active'
205
- }
200
+ * @export
201
+ */
202
+ export const OrderBookDetailStatusEnum = {
203
+ Frozen: 'frozen',
204
+ Active: 'active'
205
+ } as const;
206
+ export type OrderBookDetailStatusEnum = typeof OrderBookDetailStatusEnum[keyof typeof OrderBookDetailStatusEnum];
206
207
 
207
208
 
208
209
  /**
@@ -33,14 +33,15 @@ export interface ReqGetAccount {
33
33
  value: string;
34
34
  }
35
35
 
36
+
36
37
  /**
37
- * @export
38
- * @enum {string}
39
- */
40
- export enum ReqGetAccountByEnum {
41
- Index = 'index',
42
- L1Address = 'l1_address'
43
- }
38
+ * @export
39
+ */
40
+ export const ReqGetAccountByEnum = {
41
+ Index: 'index',
42
+ L1Address: 'l1_address'
43
+ } as const;
44
+ export type ReqGetAccountByEnum = typeof ReqGetAccountByEnum[keyof typeof ReqGetAccountByEnum];
44
45
 
45
46
 
46
47
  /**
@@ -57,14 +57,15 @@ export interface ReqGetAccountInactiveOrders {
57
57
  limit: number;
58
58
  }
59
59
 
60
+
60
61
  /**
61
- * @export
62
- * @enum {string}
63
- */
64
- export enum ReqGetAccountInactiveOrdersFilterEnum {
65
- MarketId = 'market_id',
66
- All = 'all'
67
- }
62
+ * @export
63
+ */
64
+ export const ReqGetAccountInactiveOrdersFilterEnum = {
65
+ MarketId: 'market_id',
66
+ All: 'all'
67
+ } as const;
68
+ export type ReqGetAccountInactiveOrdersFilterEnum = typeof ReqGetAccountInactiveOrdersFilterEnum[keyof typeof ReqGetAccountInactiveOrdersFilterEnum];
68
69
 
69
70
 
70
71
  /**
@@ -39,14 +39,15 @@ export interface ReqGetAccountPendingTxs {
39
39
  types?: Array<number>;
40
40
  }
41
41
 
42
+
42
43
  /**
43
- * @export
44
- * @enum {string}
45
- */
46
- export enum ReqGetAccountPendingTxsByEnum {
47
- AccountIndex = 'account_index',
48
- L1Address = 'l1_address'
49
- }
44
+ * @export
45
+ */
46
+ export const ReqGetAccountPendingTxsByEnum = {
47
+ AccountIndex: 'account_index',
48
+ L1Address: 'l1_address'
49
+ } as const;
50
+ export type ReqGetAccountPendingTxsByEnum = typeof ReqGetAccountPendingTxsByEnum[keyof typeof ReqGetAccountPendingTxsByEnum];
50
51
 
51
52
 
52
53
  /**
@@ -57,26 +57,28 @@ export interface ReqGetAccountPnL {
57
57
  count_back: number;
58
58
  }
59
59
 
60
+
60
61
  /**
61
- * @export
62
- * @enum {string}
63
- */
64
- export enum ReqGetAccountPnLByEnum {
65
- Index = 'index',
66
- L1Address = 'l1_address'
67
- }
62
+ * @export
63
+ */
64
+ export const ReqGetAccountPnLByEnum = {
65
+ Index: 'index',
66
+ L1Address: 'l1_address'
67
+ } as const;
68
+ export type ReqGetAccountPnLByEnum = typeof ReqGetAccountPnLByEnum[keyof typeof ReqGetAccountPnLByEnum];
69
+
68
70
  /**
69
- * @export
70
- * @enum {string}
71
- */
72
- export enum ReqGetAccountPnLResolutionEnum {
73
- _1m = '1m',
74
- _5m = '5m',
75
- _15m = '15m',
76
- _1h = '1h',
77
- _4h = '4h',
78
- _1d = '1d'
79
- }
71
+ * @export
72
+ */
73
+ export const ReqGetAccountPnLResolutionEnum = {
74
+ _1m: '1m',
75
+ _5m: '5m',
76
+ _15m: '15m',
77
+ _1h: '1h',
78
+ _4h: '4h',
79
+ _1d: '1d'
80
+ } as const;
81
+ export type ReqGetAccountPnLResolutionEnum = typeof ReqGetAccountPnLResolutionEnum[keyof typeof ReqGetAccountPnLResolutionEnum];
80
82
 
81
83
 
82
84
  /**
@@ -51,14 +51,15 @@ export interface ReqGetAccountTxs {
51
51
  types?: Array<number>;
52
52
  }
53
53
 
54
+
54
55
  /**
55
- * @export
56
- * @enum {string}
57
- */
58
- export enum ReqGetAccountTxsByEnum {
59
- AccountIndex = 'account_index',
60
- L1Address = 'l1_address'
61
- }
56
+ * @export
57
+ */
58
+ export const ReqGetAccountTxsByEnum = {
59
+ AccountIndex: 'account_index',
60
+ L1Address: 'l1_address'
61
+ } as const;
62
+ export type ReqGetAccountTxsByEnum = typeof ReqGetAccountTxsByEnum[keyof typeof ReqGetAccountTxsByEnum];
62
63
 
63
64
 
64
65
  /**
@@ -33,14 +33,15 @@ export interface ReqGetBlock {
33
33
  value: string;
34
34
  }
35
35
 
36
+
36
37
  /**
37
- * @export
38
- * @enum {string}
39
- */
40
- export enum ReqGetBlockByEnum {
41
- Commitment = 'commitment',
42
- Height = 'height'
43
- }
38
+ * @export
39
+ */
40
+ export const ReqGetBlockByEnum = {
41
+ Commitment: 'commitment',
42
+ Height: 'height'
43
+ } as const;
44
+ export type ReqGetBlockByEnum = typeof ReqGetBlockByEnum[keyof typeof ReqGetBlockByEnum];
44
45
 
45
46
 
46
47
  /**
@@ -33,14 +33,15 @@ export interface ReqGetBlockTxs {
33
33
  value: string;
34
34
  }
35
35
 
36
+
36
37
  /**
37
- * @export
38
- * @enum {string}
39
- */
40
- export enum ReqGetBlockTxsByEnum {
41
- Height = 'block_height',
42
- Commitment = 'block_commitment'
43
- }
38
+ * @export
39
+ */
40
+ export const ReqGetBlockTxsByEnum = {
41
+ Height: 'block_height',
42
+ Commitment: 'block_commitment'
43
+ } as const;
44
+ export type ReqGetBlockTxsByEnum = typeof ReqGetBlockTxsByEnum[keyof typeof ReqGetBlockTxsByEnum];
44
45
 
45
46
 
46
47
  /**
@@ -33,14 +33,15 @@ export interface ReqGetByAccount {
33
33
  value: string;
34
34
  }
35
35
 
36
+
36
37
  /**
37
- * @export
38
- * @enum {string}
39
- */
40
- export enum ReqGetByAccountByEnum {
41
- AccountIndex = 'account_index',
42
- L1Address = 'l1_address'
43
- }
38
+ * @export
39
+ */
40
+ export const ReqGetByAccountByEnum = {
41
+ AccountIndex: 'account_index',
42
+ L1Address: 'l1_address'
43
+ } as const;
44
+ export type ReqGetByAccountByEnum = typeof ReqGetByAccountByEnum[keyof typeof ReqGetByAccountByEnum];
44
45
 
45
46
 
46
47
  /**
@@ -51,18 +51,19 @@ export interface ReqGetCandlesticks {
51
51
  count_back: number;
52
52
  }
53
53
 
54
+
54
55
  /**
55
- * @export
56
- * @enum {string}
57
- */
58
- export enum ReqGetCandlesticksResolutionEnum {
59
- _1m = '1m',
60
- _5m = '5m',
61
- _15m = '15m',
62
- _1h = '1h',
63
- _4h = '4h',
64
- _1d = '1d'
65
- }
56
+ * @export
57
+ */
58
+ export const ReqGetCandlesticksResolutionEnum = {
59
+ _1m: '1m',
60
+ _5m: '5m',
61
+ _15m: '15m',
62
+ _1h: '1h',
63
+ _4h: '4h',
64
+ _1d: '1d'
65
+ } as const;
66
+ export type ReqGetCandlesticksResolutionEnum = typeof ReqGetCandlesticksResolutionEnum[keyof typeof ReqGetCandlesticksResolutionEnum];
66
67
 
67
68
 
68
69
  /**
@@ -51,13 +51,14 @@ export interface ReqGetFundings {
51
51
  count_back: number;
52
52
  }
53
53
 
54
+
54
55
  /**
55
- * @export
56
- * @enum {string}
57
- */
58
- export enum ReqGetFundingsResolutionEnum {
59
- _1h = '1h'
60
- }
56
+ * @export
57
+ */
58
+ export const ReqGetFundingsResolutionEnum = {
59
+ _1h: '1h'
60
+ } as const;
61
+ export type ReqGetFundingsResolutionEnum = typeof ReqGetFundingsResolutionEnum[keyof typeof ReqGetFundingsResolutionEnum];
61
62
 
62
63
 
63
64
  /**
@@ -33,14 +33,15 @@ export interface ReqGetOrderBookDetails {
33
33
  market_id?: number;
34
34
  }
35
35
 
36
+
36
37
  /**
37
- * @export
38
- * @enum {string}
39
- */
40
- export enum ReqGetOrderBookDetailsFilterEnum {
41
- MarketId = 'market_id',
42
- All = 'all'
43
- }
38
+ * @export
39
+ */
40
+ export const ReqGetOrderBookDetailsFilterEnum = {
41
+ MarketId: 'market_id',
42
+ All: 'all'
43
+ } as const;
44
+ export type ReqGetOrderBookDetailsFilterEnum = typeof ReqGetOrderBookDetailsFilterEnum[keyof typeof ReqGetOrderBookDetailsFilterEnum];
44
45
 
45
46
 
46
47
  /**
@@ -33,14 +33,15 @@ export interface ReqGetOrderBooks {
33
33
  market_id?: number;
34
34
  }
35
35
 
36
+
36
37
  /**
37
- * @export
38
- * @enum {string}
39
- */
40
- export enum ReqGetOrderBooksFilterEnum {
41
- MarketId = 'market_id',
42
- All = 'all'
43
- }
38
+ * @export
39
+ */
40
+ export const ReqGetOrderBooksFilterEnum = {
41
+ MarketId: 'market_id',
42
+ All: 'all'
43
+ } as const;
44
+ export type ReqGetOrderBooksFilterEnum = typeof ReqGetOrderBooksFilterEnum[keyof typeof ReqGetOrderBooksFilterEnum];
44
45
 
45
46
 
46
47
  /**
@@ -39,14 +39,15 @@ export interface ReqGetPermission {
39
39
  tx_type: number;
40
40
  }
41
41
 
42
+
42
43
  /**
43
- * @export
44
- * @enum {string}
45
- */
46
- export enum ReqGetPermissionByEnum {
47
- Index = 'index',
48
- L1Address = 'l1_address'
49
- }
44
+ * @export
45
+ */
46
+ export const ReqGetPermissionByEnum = {
47
+ Index: 'index',
48
+ L1Address: 'l1_address'
49
+ } as const;
50
+ export type ReqGetPermissionByEnum = typeof ReqGetPermissionByEnum[keyof typeof ReqGetPermissionByEnum];
50
51
 
51
52
 
52
53
  /**
@@ -39,14 +39,15 @@ export interface ReqGetRangeWithIndexSortable {
39
39
  sort?: ReqGetRangeWithIndexSortableSortEnum;
40
40
  }
41
41
 
42
+
42
43
  /**
43
- * @export
44
- * @enum {string}
45
- */
46
- export enum ReqGetRangeWithIndexSortableSortEnum {
47
- Asc = 'asc',
48
- Desc = 'desc'
49
- }
44
+ * @export
45
+ */
46
+ export const ReqGetRangeWithIndexSortableSortEnum = {
47
+ Asc: 'asc',
48
+ Desc: 'desc'
49
+ } as const;
50
+ export type ReqGetRangeWithIndexSortableSortEnum = typeof ReqGetRangeWithIndexSortableSortEnum[keyof typeof ReqGetRangeWithIndexSortableSortEnum];
50
51
 
51
52
 
52
53
  /**
@@ -39,14 +39,15 @@ export interface ReqGetSubAccount {
39
39
  sub_account_index: number;
40
40
  }
41
41
 
42
+
42
43
  /**
43
- * @export
44
- * @enum {string}
45
- */
46
- export enum ReqGetSubAccountByEnum {
47
- Index = 'index',
48
- L1Address = 'l1_address'
49
- }
44
+ * @export
45
+ */
46
+ export const ReqGetSubAccountByEnum = {
47
+ Index: 'index',
48
+ L1Address: 'l1_address'
49
+ } as const;
50
+ export type ReqGetSubAccountByEnum = typeof ReqGetSubAccountByEnum[keyof typeof ReqGetSubAccountByEnum];
50
51
 
51
52
 
52
53
  /**
@@ -51,15 +51,16 @@ export interface ReqGetTrades {
51
51
  limit: number;
52
52
  }
53
53
 
54
+
54
55
  /**
55
- * @export
56
- * @enum {string}
57
- */
58
- export enum ReqGetTradesByEnum {
59
- BlockHeight = 'block_height',
60
- Timestamp = 'timestamp',
61
- TradeId = 'trade_id'
62
- }
56
+ * @export
57
+ */
58
+ export const ReqGetTradesByEnum = {
59
+ BlockHeight: 'block_height',
60
+ Timestamp: 'timestamp',
61
+ TradeId: 'trade_id'
62
+ } as const;
63
+ export type ReqGetTradesByEnum = typeof ReqGetTradesByEnum[keyof typeof ReqGetTradesByEnum];
63
64
 
64
65
 
65
66
  /**
@@ -33,14 +33,15 @@ export interface ReqGetTx {
33
33
  value: string;
34
34
  }
35
35
 
36
+
36
37
  /**
37
- * @export
38
- * @enum {string}
39
- */
40
- export enum ReqGetTxByEnum {
41
- Hash = 'hash',
42
- SequenceIndex = 'sequence_index'
43
- }
38
+ * @export
39
+ */
40
+ export const ReqGetTxByEnum = {
41
+ Hash: 'hash',
42
+ SequenceIndex: 'sequence_index'
43
+ } as const;
44
+ export type ReqGetTxByEnum = typeof ReqGetTxByEnum[keyof typeof ReqGetTxByEnum];
44
45
 
45
46
 
46
47
  /**
package/openapi.json CHANGED
@@ -2451,7 +2451,7 @@
2451
2451
  "format": "boolean",
2452
2452
  "example": "true"
2453
2453
  },
2454
- "validator_Info": {
2454
+ "validator_info": {
2455
2455
  "type": "array",
2456
2456
  "items": {
2457
2457
  "$ref": "#/definitions/ValidatorInfo"
@@ -2483,7 +2483,7 @@
2483
2483
  "required": [
2484
2484
  "l1_providers",
2485
2485
  "l1_providers_health",
2486
- "validator_Info",
2486
+ "validator_info",
2487
2487
  "contract_addresses",
2488
2488
  "latest_l1_generic_block",
2489
2489
  "latest_l1_governance_block",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {