zklighter-perps 1.0.75 → 1.0.77

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.
@@ -97,9 +97,9 @@ export interface PnlRequest {
97
97
  }
98
98
 
99
99
  export interface PublicPoolsRequest {
100
- filter: string;
101
100
  index: number;
102
101
  limit: number;
102
+ filter?: PublicPoolsFilterEnum;
103
103
  account_index?: number;
104
104
  }
105
105
 
@@ -557,13 +557,6 @@ export class AccountApi extends runtime.BaseAPI {
557
557
  * publicPools
558
558
  */
559
559
  async publicPoolsRaw(requestParameters: PublicPoolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicPools>> {
560
- if (requestParameters['filter'] == null) {
561
- throw new runtime.RequiredError(
562
- 'filter',
563
- 'Required parameter "filter" was null or undefined when calling publicPools().'
564
- );
565
- }
566
-
567
560
  if (requestParameters['index'] == null) {
568
561
  throw new runtime.RequiredError(
569
562
  'index',
@@ -662,3 +655,13 @@ export const PnlResolutionEnum = {
662
655
  _1d: '1d'
663
656
  } as const;
664
657
  export type PnlResolutionEnum = typeof PnlResolutionEnum[keyof typeof PnlResolutionEnum];
658
+ /**
659
+ * @export
660
+ */
661
+ export const PublicPoolsFilterEnum = {
662
+ All: 'all',
663
+ User: 'user',
664
+ Protocol: 'protocol',
665
+ AccountIndex: 'account_index'
666
+ } as const;
667
+ export type PublicPoolsFilterEnum = typeof PublicPoolsFilterEnum[keyof typeof PublicPoolsFilterEnum];
package/apis/BridgeApi.ts CHANGED
@@ -18,9 +18,7 @@ import type {
18
18
  BridgeSupportedNetworks,
19
19
  CreateIntentAddressResp,
20
20
  Deposit,
21
- DepositHistory,
22
21
  ResultCode,
23
- WithdrawHistory,
24
22
  } from '../models/index';
25
23
  import {
26
24
  BridgeSupportedNetworksFromJSON,
@@ -29,12 +27,8 @@ import {
29
27
  CreateIntentAddressRespToJSON,
30
28
  DepositFromJSON,
31
29
  DepositToJSON,
32
- DepositHistoryFromJSON,
33
- DepositHistoryToJSON,
34
30
  ResultCodeFromJSON,
35
31
  ResultCodeToJSON,
36
- WithdrawHistoryFromJSON,
37
- WithdrawHistoryToJSON,
38
32
  } from '../models/index';
39
33
 
40
34
  export interface CreateIntentAddressRequest {
@@ -49,20 +43,10 @@ export interface DepositCancelRequest {
49
43
  chain_id: string;
50
44
  }
51
45
 
52
- export interface DepositHistoryRequest {
53
- l1_address: string;
54
- cursor?: string;
55
- }
56
-
57
46
  export interface DepositLatestRequest {
58
47
  l1_address: string;
59
48
  }
60
49
 
61
- export interface WithdrawHistoryRequest {
62
- l1_address: string;
63
- cursor?: string;
64
- }
65
-
66
50
  /**
67
51
  *
68
52
  */
@@ -213,49 +197,6 @@ export class BridgeApi extends runtime.BaseAPI {
213
197
  return await response.value();
214
198
  }
215
199
 
216
- /**
217
- * Get deposit history
218
- * deposit_history
219
- */
220
- async depositHistoryRaw(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DepositHistory>> {
221
- if (requestParameters['l1_address'] == null) {
222
- throw new runtime.RequiredError(
223
- 'l1_address',
224
- 'Required parameter "l1_address" was null or undefined when calling depositHistory().'
225
- );
226
- }
227
-
228
- const queryParameters: any = {};
229
-
230
- if (requestParameters['l1_address'] != null) {
231
- queryParameters['l1_address'] = requestParameters['l1_address'];
232
- }
233
-
234
- if (requestParameters['cursor'] != null) {
235
- queryParameters['cursor'] = requestParameters['cursor'];
236
- }
237
-
238
- const headerParameters: runtime.HTTPHeaders = {};
239
-
240
- const response = await this.request({
241
- path: `/api/v1/deposit/history`,
242
- method: 'GET',
243
- headers: headerParameters,
244
- query: queryParameters,
245
- }, initOverrides);
246
-
247
- return new runtime.JSONApiResponse(response, (jsonValue) => DepositHistoryFromJSON(jsonValue));
248
- }
249
-
250
- /**
251
- * Get deposit history
252
- * deposit_history
253
- */
254
- async depositHistory(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DepositHistory> {
255
- const response = await this.depositHistoryRaw(requestParameters, initOverrides);
256
- return await response.value();
257
- }
258
-
259
200
  /**
260
201
  * Get most recent deposit for given l1 address
261
202
  * deposit_latest
@@ -323,47 +264,4 @@ export class BridgeApi extends runtime.BaseAPI {
323
264
  return await response.value();
324
265
  }
325
266
 
326
- /**
327
- * Get withdraw history
328
- * withdraw_history
329
- */
330
- async withdrawHistoryRaw(requestParameters: WithdrawHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WithdrawHistory>> {
331
- if (requestParameters['l1_address'] == null) {
332
- throw new runtime.RequiredError(
333
- 'l1_address',
334
- 'Required parameter "l1_address" was null or undefined when calling withdrawHistory().'
335
- );
336
- }
337
-
338
- const queryParameters: any = {};
339
-
340
- if (requestParameters['l1_address'] != null) {
341
- queryParameters['l1_address'] = requestParameters['l1_address'];
342
- }
343
-
344
- if (requestParameters['cursor'] != null) {
345
- queryParameters['cursor'] = requestParameters['cursor'];
346
- }
347
-
348
- const headerParameters: runtime.HTTPHeaders = {};
349
-
350
- const response = await this.request({
351
- path: `/api/v1/withdraw/history`,
352
- method: 'GET',
353
- headers: headerParameters,
354
- query: queryParameters,
355
- }, initOverrides);
356
-
357
- return new runtime.JSONApiResponse(response, (jsonValue) => WithdrawHistoryFromJSON(jsonValue));
358
- }
359
-
360
- /**
361
- * Get withdraw history
362
- * withdraw_history
363
- */
364
- async withdrawHistory(requestParameters: WithdrawHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WithdrawHistory> {
365
- const response = await this.withdrawHistoryRaw(requestParameters, initOverrides);
366
- return await response.value();
367
- }
368
-
369
267
  }
@@ -23,7 +23,7 @@ import {
23
23
  } from '../models/index';
24
24
 
25
25
  export interface MarkNotifReadRequest {
26
- notif_type: string;
26
+ notif_type: MarkNotifReadNotifTypeEnum;
27
27
  account_index: number;
28
28
  api_key_index: number;
29
29
  liquidation_ids: string;
@@ -134,3 +134,11 @@ export class LiquidationApi extends runtime.BaseAPI {
134
134
  }
135
135
 
136
136
  }
137
+
138
+ /**
139
+ * @export
140
+ */
141
+ export const MarkNotifReadNotifTypeEnum = {
142
+ Liquidation: 'liquidation'
143
+ } as const;
144
+ export type MarkNotifReadNotifTypeEnum = typeof MarkNotifReadNotifTypeEnum[keyof typeof MarkNotifReadNotifTypeEnum];
@@ -15,14 +15,18 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ DepositHistory,
18
19
  EnrichedTx,
19
20
  NextNonce,
20
21
  ResultCode,
21
22
  TxHash,
22
23
  TxHashes,
23
24
  Txs,
25
+ WithdrawHistory,
24
26
  } from '../models/index';
25
27
  import {
28
+ DepositHistoryFromJSON,
29
+ DepositHistoryToJSON,
26
30
  EnrichedTxFromJSON,
27
31
  EnrichedTxToJSON,
28
32
  NextNonceFromJSON,
@@ -35,6 +39,8 @@ import {
35
39
  TxHashesToJSON,
36
40
  TxsFromJSON,
37
41
  TxsToJSON,
42
+ WithdrawHistoryFromJSON,
43
+ WithdrawHistoryToJSON,
38
44
  } from '../models/index';
39
45
 
40
46
  export interface AccountPendingTxsRequest {
@@ -56,6 +62,12 @@ export interface BlockTxsRequest {
56
62
  value: string;
57
63
  }
58
64
 
65
+ export interface DepositHistoryRequest {
66
+ l1_address: string;
67
+ cursor?: string;
68
+ filter?: DepositHistoryFilterEnum;
69
+ }
70
+
59
71
  export interface NextNonceRequest {
60
72
  account_index: number;
61
73
  api_key_index: number;
@@ -99,6 +111,12 @@ export interface TxsRequest {
99
111
  index?: number;
100
112
  }
101
113
 
114
+ export interface WithdrawHistoryRequest {
115
+ l1_address: string;
116
+ cursor?: string;
117
+ filter?: WithdrawHistoryFilterEnum;
118
+ }
119
+
102
120
  /**
103
121
  *
104
122
  */
@@ -277,6 +295,53 @@ export class TransactionApi extends runtime.BaseAPI {
277
295
  return await response.value();
278
296
  }
279
297
 
298
+ /**
299
+ * Get deposit history
300
+ * deposit_history
301
+ */
302
+ async depositHistoryRaw(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DepositHistory>> {
303
+ if (requestParameters['l1_address'] == null) {
304
+ throw new runtime.RequiredError(
305
+ 'l1_address',
306
+ 'Required parameter "l1_address" was null or undefined when calling depositHistory().'
307
+ );
308
+ }
309
+
310
+ const queryParameters: any = {};
311
+
312
+ if (requestParameters['l1_address'] != null) {
313
+ queryParameters['l1_address'] = requestParameters['l1_address'];
314
+ }
315
+
316
+ if (requestParameters['cursor'] != null) {
317
+ queryParameters['cursor'] = requestParameters['cursor'];
318
+ }
319
+
320
+ if (requestParameters['filter'] != null) {
321
+ queryParameters['filter'] = requestParameters['filter'];
322
+ }
323
+
324
+ const headerParameters: runtime.HTTPHeaders = {};
325
+
326
+ const response = await this.request({
327
+ path: `/api/v1/deposit/history`,
328
+ method: 'GET',
329
+ headers: headerParameters,
330
+ query: queryParameters,
331
+ }, initOverrides);
332
+
333
+ return new runtime.JSONApiResponse(response, (jsonValue) => DepositHistoryFromJSON(jsonValue));
334
+ }
335
+
336
+ /**
337
+ * Get deposit history
338
+ * deposit_history
339
+ */
340
+ async depositHistory(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DepositHistory> {
341
+ const response = await this.depositHistoryRaw(requestParameters, initOverrides);
342
+ return await response.value();
343
+ }
344
+
280
345
  /**
281
346
  * Get next nonce for a specific account
282
347
  * nextNonce
@@ -734,6 +799,53 @@ export class TransactionApi extends runtime.BaseAPI {
734
799
  return await response.value();
735
800
  }
736
801
 
802
+ /**
803
+ * Get withdraw history
804
+ * withdraw_history
805
+ */
806
+ async withdrawHistoryRaw(requestParameters: WithdrawHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WithdrawHistory>> {
807
+ if (requestParameters['l1_address'] == null) {
808
+ throw new runtime.RequiredError(
809
+ 'l1_address',
810
+ 'Required parameter "l1_address" was null or undefined when calling withdrawHistory().'
811
+ );
812
+ }
813
+
814
+ const queryParameters: any = {};
815
+
816
+ if (requestParameters['l1_address'] != null) {
817
+ queryParameters['l1_address'] = requestParameters['l1_address'];
818
+ }
819
+
820
+ if (requestParameters['cursor'] != null) {
821
+ queryParameters['cursor'] = requestParameters['cursor'];
822
+ }
823
+
824
+ if (requestParameters['filter'] != null) {
825
+ queryParameters['filter'] = requestParameters['filter'];
826
+ }
827
+
828
+ const headerParameters: runtime.HTTPHeaders = {};
829
+
830
+ const response = await this.request({
831
+ path: `/api/v1/withdraw/history`,
832
+ method: 'GET',
833
+ headers: headerParameters,
834
+ query: queryParameters,
835
+ }, initOverrides);
836
+
837
+ return new runtime.JSONApiResponse(response, (jsonValue) => WithdrawHistoryFromJSON(jsonValue));
838
+ }
839
+
840
+ /**
841
+ * Get withdraw history
842
+ * withdraw_history
843
+ */
844
+ async withdrawHistory(requestParameters: WithdrawHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WithdrawHistory> {
845
+ const response = await this.withdrawHistoryRaw(requestParameters, initOverrides);
846
+ return await response.value();
847
+ }
848
+
737
849
  }
738
850
 
739
851
  /**
@@ -758,6 +870,15 @@ export const BlockTxsByEnum = {
758
870
  Commitment: 'block_commitment'
759
871
  } as const;
760
872
  export type BlockTxsByEnum = typeof BlockTxsByEnum[keyof typeof BlockTxsByEnum];
873
+ /**
874
+ * @export
875
+ */
876
+ export const DepositHistoryFilterEnum = {
877
+ All: 'all',
878
+ Pending: 'pending',
879
+ Claimable: 'claimable'
880
+ } as const;
881
+ export type DepositHistoryFilterEnum = typeof DepositHistoryFilterEnum[keyof typeof DepositHistoryFilterEnum];
761
882
  /**
762
883
  * @export
763
884
  */
@@ -766,3 +887,12 @@ export const TxByEnum = {
766
887
  SequenceIndex: 'sequence_index'
767
888
  } as const;
768
889
  export type TxByEnum = typeof TxByEnum[keyof typeof TxByEnum];
890
+ /**
891
+ * @export
892
+ */
893
+ export const WithdrawHistoryFilterEnum = {
894
+ All: 'all',
895
+ Pending: 'pending',
896
+ Claimable: 'claimable'
897
+ } as const;
898
+ export type WithdrawHistoryFilterEnum = typeof WithdrawHistoryFilterEnum[keyof typeof WithdrawHistoryFilterEnum];
@@ -37,6 +37,12 @@ export interface DepositHistoryItem {
37
37
  * @memberof DepositHistoryItem
38
38
  */
39
39
  timestamp: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof DepositHistoryItem
44
+ */
45
+ status: string;
40
46
  }
41
47
 
42
48
  /**
@@ -46,6 +52,7 @@ export function instanceOfDepositHistoryItem(value: object): value is DepositHis
46
52
  if (!('id' in value) || value['id'] === undefined) return false;
47
53
  if (!('amount' in value) || value['amount'] === undefined) return false;
48
54
  if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
55
+ if (!('status' in value) || value['status'] === undefined) return false;
49
56
  return true;
50
57
  }
51
58
 
@@ -62,6 +69,7 @@ export function DepositHistoryItemFromJSONTyped(json: any, ignoreDiscriminator:
62
69
  'id': json['id'],
63
70
  'amount': json['amount'],
64
71
  'timestamp': json['timestamp'],
72
+ 'status': json['status'],
65
73
  };
66
74
  }
67
75
 
@@ -74,6 +82,7 @@ export function DepositHistoryItemToJSON(value?: DepositHistoryItem | null): any
74
82
  'id': value['id'],
75
83
  'amount': value['amount'],
76
84
  'timestamp': value['timestamp'],
85
+ 'status': value['status'],
77
86
  };
78
87
  }
79
88
 
@@ -31,8 +31,26 @@ export interface ReqGetDepositHistory {
31
31
  * @memberof ReqGetDepositHistory
32
32
  */
33
33
  cursor?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ReqGetDepositHistory
38
+ */
39
+ filter?: ReqGetDepositHistoryFilterEnum;
34
40
  }
35
41
 
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const ReqGetDepositHistoryFilterEnum = {
47
+ All: 'all',
48
+ Pending: 'pending',
49
+ Claimable: 'claimable'
50
+ } as const;
51
+ export type ReqGetDepositHistoryFilterEnum = typeof ReqGetDepositHistoryFilterEnum[keyof typeof ReqGetDepositHistoryFilterEnum];
52
+
53
+
36
54
  /**
37
55
  * Check if a given object implements the ReqGetDepositHistory interface.
38
56
  */
@@ -53,6 +71,7 @@ export function ReqGetDepositHistoryFromJSONTyped(json: any, ignoreDiscriminator
53
71
 
54
72
  'l1_address': json['l1_address'],
55
73
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
74
+ 'filter': json['filter'] == null ? undefined : json['filter'],
56
75
  };
57
76
  }
58
77
 
@@ -64,6 +83,7 @@ export function ReqGetDepositHistoryToJSON(value?: ReqGetDepositHistory | null):
64
83
 
65
84
  'l1_address': value['l1_address'],
66
85
  'cursor': value['cursor'],
86
+ 'filter': value['filter'],
67
87
  };
68
88
  }
69
89
 
@@ -24,7 +24,7 @@ export interface ReqGetPublicPools {
24
24
  * @type {string}
25
25
  * @memberof ReqGetPublicPools
26
26
  */
27
- filter: string;
27
+ filter?: ReqGetPublicPoolsFilterEnum;
28
28
  /**
29
29
  *
30
30
  * @type {number}
@@ -45,11 +45,23 @@ export interface ReqGetPublicPools {
45
45
  account_index?: number;
46
46
  }
47
47
 
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const ReqGetPublicPoolsFilterEnum = {
53
+ All: 'all',
54
+ User: 'user',
55
+ Protocol: 'protocol',
56
+ AccountIndex: 'account_index'
57
+ } as const;
58
+ export type ReqGetPublicPoolsFilterEnum = typeof ReqGetPublicPoolsFilterEnum[keyof typeof ReqGetPublicPoolsFilterEnum];
59
+
60
+
48
61
  /**
49
62
  * Check if a given object implements the ReqGetPublicPools interface.
50
63
  */
51
64
  export function instanceOfReqGetPublicPools(value: object): value is ReqGetPublicPools {
52
- if (!('filter' in value) || value['filter'] === undefined) return false;
53
65
  if (!('index' in value) || value['index'] === undefined) return false;
54
66
  if (!('limit' in value) || value['limit'] === undefined) return false;
55
67
  return true;
@@ -65,7 +77,7 @@ export function ReqGetPublicPoolsFromJSONTyped(json: any, ignoreDiscriminator: b
65
77
  }
66
78
  return {
67
79
 
68
- 'filter': json['filter'],
80
+ 'filter': json['filter'] == null ? undefined : json['filter'],
69
81
  'index': json['index'],
70
82
  'limit': json['limit'],
71
83
  'account_index': json['account_index'] == null ? undefined : json['account_index'],
@@ -31,8 +31,26 @@ export interface ReqGetWithdrawHistory {
31
31
  * @memberof ReqGetWithdrawHistory
32
32
  */
33
33
  cursor?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ReqGetWithdrawHistory
38
+ */
39
+ filter?: ReqGetWithdrawHistoryFilterEnum;
34
40
  }
35
41
 
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const ReqGetWithdrawHistoryFilterEnum = {
47
+ All: 'all',
48
+ Pending: 'pending',
49
+ Claimable: 'claimable'
50
+ } as const;
51
+ export type ReqGetWithdrawHistoryFilterEnum = typeof ReqGetWithdrawHistoryFilterEnum[keyof typeof ReqGetWithdrawHistoryFilterEnum];
52
+
53
+
36
54
  /**
37
55
  * Check if a given object implements the ReqGetWithdrawHistory interface.
38
56
  */
@@ -53,6 +71,7 @@ export function ReqGetWithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminato
53
71
 
54
72
  'l1_address': json['l1_address'],
55
73
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
74
+ 'filter': json['filter'] == null ? undefined : json['filter'],
56
75
  };
57
76
  }
58
77
 
@@ -64,6 +83,7 @@ export function ReqGetWithdrawHistoryToJSON(value?: ReqGetWithdrawHistory | null
64
83
 
65
84
  'l1_address': value['l1_address'],
66
85
  'cursor': value['cursor'],
86
+ 'filter': value['filter'],
67
87
  };
68
88
  }
69
89
 
@@ -37,6 +37,12 @@ export interface WithdrawHistoryItem {
37
37
  * @memberof WithdrawHistoryItem
38
38
  */
39
39
  timestamp: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof WithdrawHistoryItem
44
+ */
45
+ status: string;
40
46
  }
41
47
 
42
48
  /**
@@ -46,6 +52,7 @@ export function instanceOfWithdrawHistoryItem(value: object): value is WithdrawH
46
52
  if (!('id' in value) || value['id'] === undefined) return false;
47
53
  if (!('amount' in value) || value['amount'] === undefined) return false;
48
54
  if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
55
+ if (!('status' in value) || value['status'] === undefined) return false;
49
56
  return true;
50
57
  }
51
58
 
@@ -62,6 +69,7 @@ export function WithdrawHistoryItemFromJSONTyped(json: any, ignoreDiscriminator:
62
69
  'id': json['id'],
63
70
  'amount': json['amount'],
64
71
  'timestamp': json['timestamp'],
72
+ 'status': json['status'],
65
73
  };
66
74
  }
67
75
 
@@ -74,6 +82,7 @@ export function WithdrawHistoryItemToJSON(value?: WithdrawHistoryItem | null): a
74
82
  'id': value['id'],
75
83
  'amount': value['amount'],
76
84
  'timestamp': value['timestamp'],
85
+ 'status': value['status'],
77
86
  };
78
87
  }
79
88
 
package/openapi.json CHANGED
@@ -164,14 +164,16 @@
164
164
  "in": "query",
165
165
  "required": false,
166
166
  "type": "integer",
167
- "format": "uint8"
167
+ "format": "uint8",
168
+ "default": "255"
168
169
  },
169
170
  {
170
171
  "name": "ask_filter",
171
172
  "in": "query",
172
173
  "required": false,
173
174
  "type": "integer",
174
- "format": "int8"
175
+ "format": "int8",
176
+ "default": "-1"
175
177
  },
176
178
  {
177
179
  "name": "cursor",
@@ -502,7 +504,8 @@
502
504
  "in": "query",
503
505
  "required": true,
504
506
  "type": "integer",
505
- "format": "uint8"
507
+ "format": "uint8",
508
+ "default": "255"
506
509
  }
507
510
  ],
508
511
  "tags": [
@@ -867,10 +870,21 @@
867
870
  "in": "query",
868
871
  "required": false,
869
872
  "type": "string"
873
+ },
874
+ {
875
+ "name": "filter",
876
+ "in": "query",
877
+ "required": false,
878
+ "type": "string",
879
+ "enum": [
880
+ "all",
881
+ "pending",
882
+ "claimable"
883
+ ]
870
884
  }
871
885
  ],
872
886
  "tags": [
873
- "bridge"
887
+ "transaction"
874
888
  ],
875
889
  "consumes": [
876
890
  "multipart/form-data"
@@ -1330,7 +1344,8 @@
1330
1344
  "in": "query",
1331
1345
  "required": false,
1332
1346
  "type": "integer",
1333
- "format": "uint8"
1347
+ "format": "uint8",
1348
+ "default": "255"
1334
1349
  }
1335
1350
  ],
1336
1351
  "tags": [
@@ -1411,7 +1426,8 @@
1411
1426
  "in": "query",
1412
1427
  "required": false,
1413
1428
  "type": "integer",
1414
- "format": "uint8"
1429
+ "format": "uint8",
1430
+ "default": "255"
1415
1431
  }
1416
1432
  ],
1417
1433
  "tags": [
@@ -1577,8 +1593,14 @@
1577
1593
  {
1578
1594
  "name": "filter",
1579
1595
  "in": "query",
1580
- "required": true,
1581
- "type": "string"
1596
+ "required": false,
1597
+ "type": "string",
1598
+ "enum": [
1599
+ "all",
1600
+ "user",
1601
+ "protocol",
1602
+ "account_index"
1603
+ ]
1582
1604
  },
1583
1605
  {
1584
1606
  "name": "index",
@@ -1793,14 +1815,16 @@
1793
1815
  "in": "query",
1794
1816
  "required": false,
1795
1817
  "type": "integer",
1796
- "format": "uint8"
1818
+ "format": "uint8",
1819
+ "default": "255"
1797
1820
  },
1798
1821
  {
1799
1822
  "name": "account_index",
1800
1823
  "in": "query",
1801
1824
  "required": false,
1802
1825
  "type": "integer",
1803
- "format": "int64"
1826
+ "format": "int64",
1827
+ "default": "-1"
1804
1828
  },
1805
1829
  {
1806
1830
  "name": "order_index",
@@ -1842,14 +1866,16 @@
1842
1866
  "in": "query",
1843
1867
  "required": false,
1844
1868
  "type": "integer",
1845
- "format": "int64"
1869
+ "format": "int64",
1870
+ "default": "-1"
1846
1871
  },
1847
1872
  {
1848
1873
  "name": "ask_filter",
1849
1874
  "in": "query",
1850
1875
  "required": false,
1851
1876
  "type": "integer",
1852
- "format": "int8"
1877
+ "format": "int8",
1878
+ "default": "-1"
1853
1879
  },
1854
1880
  {
1855
1881
  "name": "limit",
@@ -2025,10 +2051,21 @@
2025
2051
  "in": "query",
2026
2052
  "required": false,
2027
2053
  "type": "string"
2054
+ },
2055
+ {
2056
+ "name": "filter",
2057
+ "in": "query",
2058
+ "required": false,
2059
+ "type": "string",
2060
+ "enum": [
2061
+ "all",
2062
+ "pending",
2063
+ "claimable"
2064
+ ]
2028
2065
  }
2029
2066
  ],
2030
2067
  "tags": [
2031
- "bridge"
2068
+ "transaction"
2032
2069
  ],
2033
2070
  "consumes": [
2034
2071
  "multipart/form-data"
@@ -2811,13 +2848,18 @@
2811
2848
  "type": "integer",
2812
2849
  "format": "int64",
2813
2850
  "example": "1640995200"
2851
+ },
2852
+ "status": {
2853
+ "type": "string",
2854
+ "example": "pending|executed|failed"
2814
2855
  }
2815
2856
  },
2816
2857
  "title": "DepositHistoryItem",
2817
2858
  "required": [
2818
2859
  "id",
2819
2860
  "amount",
2820
- "timestamp"
2861
+ "timestamp",
2862
+ "status"
2821
2863
  ]
2822
2864
  },
2823
2865
  "DetailedAccount": {
@@ -4566,7 +4608,8 @@
4566
4608
  },
4567
4609
  "api_key_index": {
4568
4610
  "type": "integer",
4569
- "format": "uint8"
4611
+ "format": "uint8",
4612
+ "default": "255"
4570
4613
  }
4571
4614
  },
4572
4615
  "title": "ReqGetAccountApiKeys",
@@ -4596,11 +4639,13 @@
4596
4639
  },
4597
4640
  "market_id": {
4598
4641
  "type": "integer",
4599
- "format": "uint8"
4642
+ "format": "uint8",
4643
+ "default": "255"
4600
4644
  },
4601
4645
  "ask_filter": {
4602
4646
  "type": "integer",
4603
- "format": "int8"
4647
+ "format": "int8",
4648
+ "default": "-1"
4604
4649
  },
4605
4650
  "cursor": {
4606
4651
  "type": "string"
@@ -4863,6 +4908,14 @@
4863
4908
  },
4864
4909
  "cursor": {
4865
4910
  "type": "string"
4911
+ },
4912
+ "filter": {
4913
+ "type": "string",
4914
+ "enum": [
4915
+ "all",
4916
+ "pending",
4917
+ "claimable"
4918
+ ]
4866
4919
  }
4867
4920
  },
4868
4921
  "title": "ReqGetDepositHistory",
@@ -4988,7 +5041,8 @@
4988
5041
  "properties": {
4989
5042
  "market_id": {
4990
5043
  "type": "integer",
4991
- "format": "uint8"
5044
+ "format": "uint8",
5045
+ "default": "255"
4992
5046
  }
4993
5047
  },
4994
5048
  "title": "ReqGetOrderBookDetails"
@@ -5018,7 +5072,8 @@
5018
5072
  "properties": {
5019
5073
  "market_id": {
5020
5074
  "type": "integer",
5021
- "format": "uint8"
5075
+ "format": "uint8",
5076
+ "default": "255"
5022
5077
  }
5023
5078
  },
5024
5079
  "title": "ReqGetOrderBooks"
@@ -5027,7 +5082,13 @@
5027
5082
  "type": "object",
5028
5083
  "properties": {
5029
5084
  "filter": {
5030
- "type": "string"
5085
+ "type": "string",
5086
+ "enum": [
5087
+ "all",
5088
+ "user",
5089
+ "protocol",
5090
+ "account_index"
5091
+ ]
5031
5092
  },
5032
5093
  "index": {
5033
5094
  "type": "integer",
@@ -5046,7 +5107,6 @@
5046
5107
  },
5047
5108
  "title": "ReqGetPublicPools",
5048
5109
  "required": [
5049
- "filter",
5050
5110
  "index",
5051
5111
  "limit"
5052
5112
  ]
@@ -5137,11 +5197,13 @@
5137
5197
  "properties": {
5138
5198
  "market_id": {
5139
5199
  "type": "integer",
5140
- "format": "uint8"
5200
+ "format": "uint8",
5201
+ "default": "255"
5141
5202
  },
5142
5203
  "account_index": {
5143
5204
  "type": "integer",
5144
- "format": "int64"
5205
+ "format": "int64",
5206
+ "default": "-1"
5145
5207
  },
5146
5208
  "order_index": {
5147
5209
  "type": "integer",
@@ -5168,11 +5230,13 @@
5168
5230
  },
5169
5231
  "from": {
5170
5232
  "type": "integer",
5171
- "format": "int64"
5233
+ "format": "int64",
5234
+ "default": "-1"
5172
5235
  },
5173
5236
  "ask_filter": {
5174
5237
  "type": "integer",
5175
- "format": "int8"
5238
+ "format": "int8",
5239
+ "default": "-1"
5176
5240
  },
5177
5241
  "limit": {
5178
5242
  "type": "integer",
@@ -5215,6 +5279,14 @@
5215
5279
  },
5216
5280
  "cursor": {
5217
5281
  "type": "string"
5282
+ },
5283
+ "filter": {
5284
+ "type": "string",
5285
+ "enum": [
5286
+ "all",
5287
+ "pending",
5288
+ "claimable"
5289
+ ]
5218
5290
  }
5219
5291
  },
5220
5292
  "title": "ReqGetWithdrawHistory",
@@ -5238,7 +5310,10 @@
5238
5310
  "type": "object",
5239
5311
  "properties": {
5240
5312
  "notif_type": {
5241
- "type": "string"
5313
+ "type": "string",
5314
+ "enum": [
5315
+ "liquidation"
5316
+ ]
5242
5317
  },
5243
5318
  "account_index": {
5244
5319
  "type": "integer",
@@ -5276,7 +5351,8 @@
5276
5351
  },
5277
5352
  "price_protection": {
5278
5353
  "type": "boolean",
5279
- "format": "boolean"
5354
+ "format": "boolean",
5355
+ "default": "true"
5280
5356
  }
5281
5357
  },
5282
5358
  "title": "ReqSendTx",
@@ -5806,13 +5882,18 @@
5806
5882
  "type": "integer",
5807
5883
  "format": "int64",
5808
5884
  "example": "1640995200"
5885
+ },
5886
+ "status": {
5887
+ "type": "string",
5888
+ "example": "pending|executed|failed"
5809
5889
  }
5810
5890
  },
5811
5891
  "title": "WithdrawHistoryItem",
5812
5892
  "required": [
5813
5893
  "id",
5814
5894
  "amount",
5815
- "timestamp"
5895
+ "timestamp",
5896
+ "status"
5816
5897
  ]
5817
5898
  },
5818
5899
  "ZkLighterInfo": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.75",
3
+ "version": "1.0.77",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {