zklighter-perps 1.0.110 → 1.0.112

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.
@@ -16,7 +16,6 @@ models/Account.ts
16
16
  models/AccountApiKeys.ts
17
17
  models/AccountMarketStats.ts
18
18
  models/AccountMetadata.ts
19
- models/AccountMetadatas.ts
20
19
  models/AccountPnL.ts
21
20
  models/AccountPosition.ts
22
21
  models/AccountStats.ts
@@ -83,7 +82,6 @@ models/ReqGetAccountActiveOrders.ts
83
82
  models/ReqGetAccountApiKeys.ts
84
83
  models/ReqGetAccountByL1Address.ts
85
84
  models/ReqGetAccountInactiveOrders.ts
86
- models/ReqGetAccountMetadata.ts
87
85
  models/ReqGetAccountOrders.ts
88
86
  models/ReqGetAccountPendingTxs.ts
89
87
  models/ReqGetAccountPnL.ts
@@ -93,6 +91,7 @@ models/ReqGetBlockTxs.ts
93
91
  models/ReqGetByAccount.ts
94
92
  models/ReqGetCandlesticks.ts
95
93
  models/ReqGetDepositHistory.ts
94
+ models/ReqGetFastWithdrawInfo.ts
96
95
  models/ReqGetFeeBucket.ts
97
96
  models/ReqGetFundings.ts
98
97
  models/ReqGetL1Tx.ts
@@ -16,7 +16,6 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  AccountApiKeys,
19
- AccountMetadatas,
20
19
  AccountPnL,
21
20
  Accounts,
22
21
  DetailedAccounts,
@@ -31,8 +30,6 @@ import type {
31
30
  import {
32
31
  AccountApiKeysFromJSON,
33
32
  AccountApiKeysToJSON,
34
- AccountMetadatasFromJSON,
35
- AccountMetadatasToJSON,
36
33
  AccountPnLFromJSON,
37
34
  AccountPnLToJSON,
38
35
  AccountsFromJSON,
@@ -60,12 +57,6 @@ export interface AccountRequest {
60
57
  value: string;
61
58
  }
62
59
 
63
- export interface AccountMetadataRequest {
64
- by: AccountMetadataByEnum;
65
- value: string;
66
- auth?: string;
67
- }
68
-
69
60
  export interface AccountsRequest {
70
61
  limit: number;
71
62
  index?: number;
@@ -178,60 +169,6 @@ export class AccountApi extends runtime.BaseAPI {
178
169
  return await response.value();
179
170
  }
180
171
 
181
- /**
182
- * Get account metadatas
183
- * accountMetadata
184
- */
185
- async accountMetadataRaw(requestParameters: AccountMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountMetadatas>> {
186
- if (requestParameters['by'] == null) {
187
- throw new runtime.RequiredError(
188
- 'by',
189
- 'Required parameter "by" was null or undefined when calling accountMetadata().'
190
- );
191
- }
192
-
193
- if (requestParameters['value'] == null) {
194
- throw new runtime.RequiredError(
195
- 'value',
196
- 'Required parameter "value" was null or undefined when calling accountMetadata().'
197
- );
198
- }
199
-
200
- const queryParameters: any = {};
201
-
202
- if (requestParameters['by'] != null) {
203
- queryParameters['by'] = requestParameters['by'];
204
- }
205
-
206
- if (requestParameters['value'] != null) {
207
- queryParameters['value'] = requestParameters['value'];
208
- }
209
-
210
- if (requestParameters['auth'] != null) {
211
- queryParameters['auth'] = requestParameters['auth'];
212
- }
213
-
214
- const headerParameters: runtime.HTTPHeaders = {};
215
-
216
- const response = await this.request({
217
- path: `/api/v1/accountMetadata`,
218
- method: 'GET',
219
- headers: headerParameters,
220
- query: queryParameters,
221
- }, initOverrides);
222
-
223
- return new runtime.JSONApiResponse(response, (jsonValue) => AccountMetadatasFromJSON(jsonValue));
224
- }
225
-
226
- /**
227
- * Get account metadatas
228
- * accountMetadata
229
- */
230
- async accountMetadata(requestParameters: AccountMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountMetadatas> {
231
- const response = await this.accountMetadataRaw(requestParameters, initOverrides);
232
- return await response.value();
233
- }
234
-
235
172
  /**
236
173
  * Get accounts returns accounts by account index
237
174
  * accounts
@@ -749,14 +686,6 @@ export const AccountByEnum = {
749
686
  L1Address: 'l1_address'
750
687
  } as const;
751
688
  export type AccountByEnum = typeof AccountByEnum[keyof typeof AccountByEnum];
752
- /**
753
- * @export
754
- */
755
- export const AccountMetadataByEnum = {
756
- Index: 'index',
757
- L1Address: 'l1_address'
758
- } as const;
759
- export type AccountMetadataByEnum = typeof AccountMetadataByEnum[keyof typeof AccountMetadataByEnum];
760
689
  /**
761
690
  * @export
762
691
  */
package/apis/BridgeApi.ts CHANGED
@@ -59,6 +59,11 @@ export interface FastwithdrawRequest {
59
59
  auth: string;
60
60
  }
61
61
 
62
+ export interface FastwithdrawInfoRequest {
63
+ account_index: number;
64
+ auth: string;
65
+ }
66
+
62
67
  /**
63
68
  *
64
69
  */
@@ -384,9 +389,31 @@ export class BridgeApi extends runtime.BaseAPI {
384
389
  * Get fast withdraw info
385
390
  * fastwithdraw_info
386
391
  */
387
- async fastwithdrawInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespGetFastwithdrawalInfo>> {
392
+ async fastwithdrawInfoRaw(requestParameters: FastwithdrawInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespGetFastwithdrawalInfo>> {
393
+ if (requestParameters['account_index'] == null) {
394
+ throw new runtime.RequiredError(
395
+ 'account_index',
396
+ 'Required parameter "account_index" was null or undefined when calling fastwithdrawInfo().'
397
+ );
398
+ }
399
+
400
+ if (requestParameters['auth'] == null) {
401
+ throw new runtime.RequiredError(
402
+ 'auth',
403
+ 'Required parameter "auth" was null or undefined when calling fastwithdrawInfo().'
404
+ );
405
+ }
406
+
388
407
  const queryParameters: any = {};
389
408
 
409
+ if (requestParameters['account_index'] != null) {
410
+ queryParameters['account_index'] = requestParameters['account_index'];
411
+ }
412
+
413
+ if (requestParameters['auth'] != null) {
414
+ queryParameters['auth'] = requestParameters['auth'];
415
+ }
416
+
390
417
  const headerParameters: runtime.HTTPHeaders = {};
391
418
 
392
419
  const response = await this.request({
@@ -403,8 +430,8 @@ export class BridgeApi extends runtime.BaseAPI {
403
430
  * Get fast withdraw info
404
431
  * fastwithdraw_info
405
432
  */
406
- async fastwithdrawInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespGetFastwithdrawalInfo> {
407
- const response = await this.fastwithdrawInfoRaw(initOverrides);
433
+ async fastwithdrawInfo(requestParameters: FastwithdrawInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespGetFastwithdrawalInfo> {
434
+ const response = await this.fastwithdrawInfoRaw(requestParameters, initOverrides);
408
435
  return await response.value();
409
436
  }
410
437
 
package/apis/OrderApi.ts CHANGED
@@ -47,6 +47,7 @@ export interface AccountActiveOrdersRequest {
47
47
  }
48
48
 
49
49
  export interface AccountInactiveOrdersRequest {
50
+ auth: string;
50
51
  account_index: number;
51
52
  limit: number;
52
53
  market_id?: number;
@@ -163,6 +164,13 @@ export class OrderApi extends runtime.BaseAPI {
163
164
  * accountInactiveOrders
164
165
  */
165
166
  async accountInactiveOrdersRaw(requestParameters: AccountInactiveOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Orders>> {
167
+ if (requestParameters['auth'] == null) {
168
+ throw new runtime.RequiredError(
169
+ 'auth',
170
+ 'Required parameter "auth" was null or undefined when calling accountInactiveOrders().'
171
+ );
172
+ }
173
+
166
174
  if (requestParameters['account_index'] == null) {
167
175
  throw new runtime.RequiredError(
168
176
  'account_index',
@@ -179,6 +187,10 @@ export class OrderApi extends runtime.BaseAPI {
179
187
 
180
188
  const queryParameters: any = {};
181
189
 
190
+ if (requestParameters['auth'] != null) {
191
+ queryParameters['auth'] = requestParameters['auth'];
192
+ }
193
+
182
194
  if (requestParameters['account_index'] != null) {
183
195
  queryParameters['account_index'] = requestParameters['account_index'];
184
196
  }
@@ -63,6 +63,8 @@ export interface BlockTxsRequest {
63
63
  }
64
64
 
65
65
  export interface DepositHistoryRequest {
66
+ account_index: number;
67
+ auth: string;
66
68
  l1_address: string;
67
69
  cursor?: string;
68
70
  filter?: DepositHistoryFilterEnum;
@@ -113,6 +115,7 @@ export interface TxsRequest {
113
115
 
114
116
  export interface WithdrawHistoryRequest {
115
117
  account_index: number;
118
+ auth: string;
116
119
  cursor?: string;
117
120
  filter?: WithdrawHistoryFilterEnum;
118
121
  }
@@ -300,6 +303,20 @@ export class TransactionApi extends runtime.BaseAPI {
300
303
  * deposit_history
301
304
  */
302
305
  async depositHistoryRaw(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DepositHistory>> {
306
+ if (requestParameters['account_index'] == null) {
307
+ throw new runtime.RequiredError(
308
+ 'account_index',
309
+ 'Required parameter "account_index" was null or undefined when calling depositHistory().'
310
+ );
311
+ }
312
+
313
+ if (requestParameters['auth'] == null) {
314
+ throw new runtime.RequiredError(
315
+ 'auth',
316
+ 'Required parameter "auth" was null or undefined when calling depositHistory().'
317
+ );
318
+ }
319
+
303
320
  if (requestParameters['l1_address'] == null) {
304
321
  throw new runtime.RequiredError(
305
322
  'l1_address',
@@ -309,6 +326,14 @@ export class TransactionApi extends runtime.BaseAPI {
309
326
 
310
327
  const queryParameters: any = {};
311
328
 
329
+ if (requestParameters['account_index'] != null) {
330
+ queryParameters['account_index'] = requestParameters['account_index'];
331
+ }
332
+
333
+ if (requestParameters['auth'] != null) {
334
+ queryParameters['auth'] = requestParameters['auth'];
335
+ }
336
+
312
337
  if (requestParameters['l1_address'] != null) {
313
338
  queryParameters['l1_address'] = requestParameters['l1_address'];
314
339
  }
@@ -811,12 +836,23 @@ export class TransactionApi extends runtime.BaseAPI {
811
836
  );
812
837
  }
813
838
 
839
+ if (requestParameters['auth'] == null) {
840
+ throw new runtime.RequiredError(
841
+ 'auth',
842
+ 'Required parameter "auth" was null or undefined when calling withdrawHistory().'
843
+ );
844
+ }
845
+
814
846
  const queryParameters: any = {};
815
847
 
816
848
  if (requestParameters['account_index'] != null) {
817
849
  queryParameters['account_index'] = requestParameters['account_index'];
818
850
  }
819
851
 
852
+ if (requestParameters['auth'] != null) {
853
+ queryParameters['auth'] = requestParameters['auth'];
854
+ }
855
+
820
856
  if (requestParameters['cursor'] != null) {
821
857
  queryParameters['cursor'] = requestParameters['cursor'];
822
858
  }
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
19
19
  * @interface ReqGetAccountInactiveOrders
20
20
  */
21
21
  export interface ReqGetAccountInactiveOrders {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReqGetAccountInactiveOrders
26
+ */
27
+ auth: string;
22
28
  /**
23
29
  *
24
30
  * @type {number}
@@ -61,6 +67,7 @@ export interface ReqGetAccountInactiveOrders {
61
67
  * Check if a given object implements the ReqGetAccountInactiveOrders interface.
62
68
  */
63
69
  export function instanceOfReqGetAccountInactiveOrders(value: object): value is ReqGetAccountInactiveOrders {
70
+ if (!('auth' in value) || value['auth'] === undefined) return false;
64
71
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
65
72
  if (!('limit' in value) || value['limit'] === undefined) return false;
66
73
  return true;
@@ -76,6 +83,7 @@ export function ReqGetAccountInactiveOrdersFromJSONTyped(json: any, ignoreDiscri
76
83
  }
77
84
  return {
78
85
 
86
+ 'auth': json['auth'],
79
87
  'account_index': json['account_index'],
80
88
  'market_id': json['market_id'] == null ? undefined : json['market_id'],
81
89
  'ask_filter': json['ask_filter'] == null ? undefined : json['ask_filter'],
@@ -91,6 +99,7 @@ export function ReqGetAccountInactiveOrdersToJSON(value?: ReqGetAccountInactiveO
91
99
  }
92
100
  return {
93
101
 
102
+ 'auth': value['auth'],
94
103
  'account_index': value['account_index'],
95
104
  'market_id': value['market_id'],
96
105
  'ask_filter': value['ask_filter'],
@@ -19,6 +19,18 @@ import { mapValues } from '../runtime';
19
19
  * @interface ReqGetDepositHistory
20
20
  */
21
21
  export interface ReqGetDepositHistory {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ReqGetDepositHistory
26
+ */
27
+ account_index: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ReqGetDepositHistory
32
+ */
33
+ auth: string;
22
34
  /**
23
35
  *
24
36
  * @type {string}
@@ -55,6 +67,8 @@ export type ReqGetDepositHistoryFilterEnum = typeof ReqGetDepositHistoryFilterEn
55
67
  * Check if a given object implements the ReqGetDepositHistory interface.
56
68
  */
57
69
  export function instanceOfReqGetDepositHistory(value: object): value is ReqGetDepositHistory {
70
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
71
+ if (!('auth' in value) || value['auth'] === undefined) return false;
58
72
  if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
59
73
  return true;
60
74
  }
@@ -69,6 +83,8 @@ export function ReqGetDepositHistoryFromJSONTyped(json: any, ignoreDiscriminator
69
83
  }
70
84
  return {
71
85
 
86
+ 'account_index': json['account_index'],
87
+ 'auth': json['auth'],
72
88
  'l1_address': json['l1_address'],
73
89
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
74
90
  'filter': json['filter'] == null ? undefined : json['filter'],
@@ -81,6 +97,8 @@ export function ReqGetDepositHistoryToJSON(value?: ReqGetDepositHistory | null):
81
97
  }
82
98
  return {
83
99
 
100
+ 'account_index': value['account_index'],
101
+ 'auth': value['auth'],
84
102
  'l1_address': value['l1_address'],
85
103
  'cursor': value['cursor'],
86
104
  'filter': value['filter'],
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ReqGetFastWithdrawInfo
20
+ */
21
+ export interface ReqGetFastWithdrawInfo {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ReqGetFastWithdrawInfo
26
+ */
27
+ account_index: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ReqGetFastWithdrawInfo
32
+ */
33
+ auth: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ReqGetFastWithdrawInfo interface.
38
+ */
39
+ export function instanceOfReqGetFastWithdrawInfo(value: object): value is ReqGetFastWithdrawInfo {
40
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
41
+ if (!('auth' in value) || value['auth'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ReqGetFastWithdrawInfoFromJSON(json: any): ReqGetFastWithdrawInfo {
46
+ return ReqGetFastWithdrawInfoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ReqGetFastWithdrawInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetFastWithdrawInfo {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'account_index': json['account_index'],
56
+ 'auth': json['auth'],
57
+ };
58
+ }
59
+
60
+ export function ReqGetFastWithdrawInfoToJSON(value?: ReqGetFastWithdrawInfo | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'account_index': value['account_index'],
67
+ 'auth': value['auth'],
68
+ };
69
+ }
70
+
@@ -25,6 +25,12 @@ export interface ReqGetWithdrawHistory {
25
25
  * @memberof ReqGetWithdrawHistory
26
26
  */
27
27
  account_index: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ReqGetWithdrawHistory
32
+ */
33
+ auth: string;
28
34
  /**
29
35
  *
30
36
  * @type {string}
@@ -56,6 +62,7 @@ export type ReqGetWithdrawHistoryFilterEnum = typeof ReqGetWithdrawHistoryFilter
56
62
  */
57
63
  export function instanceOfReqGetWithdrawHistory(value: object): value is ReqGetWithdrawHistory {
58
64
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
65
+ if (!('auth' in value) || value['auth'] === undefined) return false;
59
66
  return true;
60
67
  }
61
68
 
@@ -70,6 +77,7 @@ export function ReqGetWithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminato
70
77
  return {
71
78
 
72
79
  'account_index': json['account_index'],
80
+ 'auth': json['auth'],
73
81
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
74
82
  'filter': json['filter'] == null ? undefined : json['filter'],
75
83
  };
@@ -82,6 +90,7 @@ export function ReqGetWithdrawHistoryToJSON(value?: ReqGetWithdrawHistory | null
82
90
  return {
83
91
 
84
92
  'account_index': value['account_index'],
93
+ 'auth': value['auth'],
85
94
  'cursor': value['cursor'],
86
95
  'filter': value['filter'],
87
96
  };
package/models/index.ts CHANGED
@@ -4,7 +4,6 @@ export * from './Account';
4
4
  export * from './AccountApiKeys';
5
5
  export * from './AccountMarketStats';
6
6
  export * from './AccountMetadata';
7
- export * from './AccountMetadatas';
8
7
  export * from './AccountPnL';
9
8
  export * from './AccountPosition';
10
9
  export * from './AccountStats';
@@ -71,7 +70,6 @@ export * from './ReqGetAccountActiveOrders';
71
70
  export * from './ReqGetAccountApiKeys';
72
71
  export * from './ReqGetAccountByL1Address';
73
72
  export * from './ReqGetAccountInactiveOrders';
74
- export * from './ReqGetAccountMetadata';
75
73
  export * from './ReqGetAccountOrders';
76
74
  export * from './ReqGetAccountPendingTxs';
77
75
  export * from './ReqGetAccountPnL';
@@ -81,6 +79,7 @@ export * from './ReqGetBlockTxs';
81
79
  export * from './ReqGetByAccount';
82
80
  export * from './ReqGetCandlesticks';
83
81
  export * from './ReqGetDepositHistory';
82
+ export * from './ReqGetFastWithdrawInfo';
84
83
  export * from './ReqGetFeeBucket';
85
84
  export * from './ReqGetFundings';
86
85
  export * from './ReqGetL1Tx';
package/openapi.json CHANGED
@@ -152,6 +152,12 @@
152
152
  }
153
153
  },
154
154
  "parameters": [
155
+ {
156
+ "name": "auth",
157
+ "in": "query",
158
+ "required": true,
159
+ "type": "string"
160
+ },
155
161
  {
156
162
  "name": "account_index",
157
163
  "in": "query",
@@ -206,57 +212,6 @@
206
212
  "description": "Get account inactive orders"
207
213
  }
208
214
  },
209
- "/api/v1/accountMetadata": {
210
- "get": {
211
- "summary": "accountMetadata",
212
- "operationId": "accountMetadata",
213
- "responses": {
214
- "200": {
215
- "description": "A successful response.",
216
- "schema": {
217
- "$ref": "#/definitions/AccountMetadatas"
218
- }
219
- },
220
- "400": {
221
- "description": "Bad request",
222
- "schema": {
223
- "$ref": "#/definitions/ResultCode"
224
- }
225
- }
226
- },
227
- "parameters": [
228
- {
229
- "name": "by",
230
- "in": "query",
231
- "required": true,
232
- "type": "string",
233
- "enum": [
234
- "index",
235
- "l1_address"
236
- ]
237
- },
238
- {
239
- "name": "value",
240
- "in": "query",
241
- "required": true,
242
- "type": "string"
243
- },
244
- {
245
- "name": "auth",
246
- "in": "query",
247
- "required": false,
248
- "type": "string"
249
- }
250
- ],
251
- "tags": [
252
- "account"
253
- ],
254
- "consumes": [
255
- "multipart/form-data"
256
- ],
257
- "description": "Get account metadatas"
258
- }
259
- },
260
215
  "/api/v1/accountOrders": {
261
216
  "get": {
262
217
  "summary": "accountOrders",
@@ -944,6 +899,19 @@
944
899
  }
945
900
  },
946
901
  "parameters": [
902
+ {
903
+ "name": "account_index",
904
+ "in": "query",
905
+ "required": true,
906
+ "type": "integer",
907
+ "format": "int64"
908
+ },
909
+ {
910
+ "name": "auth",
911
+ "in": "query",
912
+ "required": true,
913
+ "type": "string"
914
+ },
947
915
  {
948
916
  "name": "l1_address",
949
917
  "in": "query",
@@ -1139,9 +1107,27 @@
1139
1107
  }
1140
1108
  }
1141
1109
  },
1110
+ "parameters": [
1111
+ {
1112
+ "name": "account_index",
1113
+ "in": "query",
1114
+ "required": true,
1115
+ "type": "integer",
1116
+ "format": "int64"
1117
+ },
1118
+ {
1119
+ "name": "auth",
1120
+ "in": "query",
1121
+ "required": true,
1122
+ "type": "string"
1123
+ }
1124
+ ],
1142
1125
  "tags": [
1143
1126
  "bridge"
1144
1127
  ],
1128
+ "consumes": [
1129
+ "multipart/form-data"
1130
+ ],
1145
1131
  "description": "Get fast withdraw info"
1146
1132
  }
1147
1133
  },
@@ -2478,6 +2464,12 @@
2478
2464
  "type": "integer",
2479
2465
  "format": "int64"
2480
2466
  },
2467
+ {
2468
+ "name": "auth",
2469
+ "in": "query",
2470
+ "required": true,
2471
+ "type": "string"
2472
+ },
2481
2473
  {
2482
2474
  "name": "cursor",
2483
2475
  "in": "query",
@@ -2734,27 +2726,6 @@
2734
2726
  "max_referral_usage_limit"
2735
2727
  ]
2736
2728
  },
2737
- "AccountMetadatas": {
2738
- "type": "object",
2739
- "properties": {
2740
- "code": {
2741
- "type": "integer",
2742
- "format": "int32",
2743
- "example": "200"
2744
- },
2745
- "message": {
2746
- "type": "string"
2747
- },
2748
- "account_metadatas": {
2749
- "$ref": "#/definitions/mapint64AccountMetadata"
2750
- }
2751
- },
2752
- "title": "AccountMetadatas",
2753
- "required": [
2754
- "code",
2755
- "account_metadatas"
2756
- ]
2757
- },
2758
2729
  "AccountPnL": {
2759
2730
  "type": "object",
2760
2731
  "properties": {
@@ -5657,6 +5628,9 @@
5657
5628
  "ReqGetAccountInactiveOrders": {
5658
5629
  "type": "object",
5659
5630
  "properties": {
5631
+ "auth": {
5632
+ "type": "string"
5633
+ },
5660
5634
  "account_index": {
5661
5635
  "type": "integer",
5662
5636
  "format": "int64"
@@ -5686,33 +5660,11 @@
5686
5660
  },
5687
5661
  "title": "ReqGetAccountInactiveOrders",
5688
5662
  "required": [
5663
+ "auth",
5689
5664
  "account_index",
5690
5665
  "limit"
5691
5666
  ]
5692
5667
  },
5693
- "ReqGetAccountMetadata": {
5694
- "type": "object",
5695
- "properties": {
5696
- "by": {
5697
- "type": "string",
5698
- "enum": [
5699
- "index",
5700
- "l1_address"
5701
- ]
5702
- },
5703
- "value": {
5704
- "type": "string"
5705
- },
5706
- "auth": {
5707
- "type": "string"
5708
- }
5709
- },
5710
- "title": "ReqGetAccountMetadata",
5711
- "required": [
5712
- "by",
5713
- "value"
5714
- ]
5715
- },
5716
5668
  "ReqGetAccountOrders": {
5717
5669
  "type": "object",
5718
5670
  "properties": {
@@ -5957,6 +5909,13 @@
5957
5909
  "ReqGetDepositHistory": {
5958
5910
  "type": "object",
5959
5911
  "properties": {
5912
+ "account_index": {
5913
+ "type": "integer",
5914
+ "format": "int64"
5915
+ },
5916
+ "auth": {
5917
+ "type": "string"
5918
+ },
5960
5919
  "l1_address": {
5961
5920
  "type": "string"
5962
5921
  },
@@ -5974,6 +5933,8 @@
5974
5933
  },
5975
5934
  "title": "ReqGetDepositHistory",
5976
5935
  "required": [
5936
+ "account_index",
5937
+ "auth",
5977
5938
  "l1_address"
5978
5939
  ]
5979
5940
  },
@@ -5981,6 +5942,23 @@
5981
5942
  "type": "object",
5982
5943
  "title": "ReqGetExchangeStats"
5983
5944
  },
5945
+ "ReqGetFastWithdrawInfo": {
5946
+ "type": "object",
5947
+ "properties": {
5948
+ "account_index": {
5949
+ "type": "integer",
5950
+ "format": "int64"
5951
+ },
5952
+ "auth": {
5953
+ "type": "string"
5954
+ }
5955
+ },
5956
+ "title": "ReqGetFastWithdrawInfo",
5957
+ "required": [
5958
+ "account_index",
5959
+ "auth"
5960
+ ]
5961
+ },
5984
5962
  "ReqGetFeeBucket": {
5985
5963
  "type": "object",
5986
5964
  "properties": {
@@ -6405,6 +6383,9 @@
6405
6383
  "type": "integer",
6406
6384
  "format": "int64"
6407
6385
  },
6386
+ "auth": {
6387
+ "type": "string"
6388
+ },
6408
6389
  "cursor": {
6409
6390
  "type": "string"
6410
6391
  },
@@ -6419,7 +6400,8 @@
6419
6400
  },
6420
6401
  "title": "ReqGetWithdrawHistory",
6421
6402
  "required": [
6422
- "account_index"
6403
+ "account_index",
6404
+ "auth"
6423
6405
  ]
6424
6406
  },
6425
6407
  "ReqIsWhitelisted": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.110",
3
+ "version": "1.0.112",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {