zklighter-perps 1.0.111 → 1.0.113

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.
@@ -20,7 +20,6 @@ models/AccountPnL.ts
20
20
  models/AccountPosition.ts
21
21
  models/AccountStats.ts
22
22
  models/AccountTradeStats.ts
23
- models/Accounts.ts
24
23
  models/Announcement.ts
25
24
  models/Announcements.ts
26
25
  models/ApiKey.ts
@@ -51,7 +50,6 @@ models/Fundings.ts
51
50
  models/IsWhitelisted.ts
52
51
  models/L1ProviderInfo.ts
53
52
  models/Layer1BasicInfo.ts
54
- models/Layer2BasicInfo.ts
55
53
  models/Leaderboard.ts
56
54
  models/LeaderboardEntry.ts
57
55
  models/MarketInfo.ts
@@ -91,6 +89,7 @@ models/ReqGetBlockTxs.ts
91
89
  models/ReqGetByAccount.ts
92
90
  models/ReqGetCandlesticks.ts
93
91
  models/ReqGetDepositHistory.ts
92
+ models/ReqGetFastWithdrawInfo.ts
94
93
  models/ReqGetFeeBucket.ts
95
94
  models/ReqGetFundings.ts
96
95
  models/ReqGetL1Tx.ts
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  AccountApiKeys,
19
19
  AccountPnL,
20
- Accounts,
21
20
  DetailedAccounts,
22
21
  FeeBucket,
23
22
  IsWhitelisted,
@@ -32,8 +31,6 @@ import {
32
31
  AccountApiKeysToJSON,
33
32
  AccountPnLFromJSON,
34
33
  AccountPnLToJSON,
35
- AccountsFromJSON,
36
- AccountsToJSON,
37
34
  DetailedAccountsFromJSON,
38
35
  DetailedAccountsToJSON,
39
36
  FeeBucketFromJSON,
@@ -57,12 +54,6 @@ export interface AccountRequest {
57
54
  value: string;
58
55
  }
59
56
 
60
- export interface AccountsRequest {
61
- limit: number;
62
- index?: number;
63
- sort?: AccountsSortEnum;
64
- }
65
-
66
57
  export interface AccountsByL1AddressRequest {
67
58
  l1_address: string;
68
59
  }
@@ -169,53 +160,6 @@ export class AccountApi extends runtime.BaseAPI {
169
160
  return await response.value();
170
161
  }
171
162
 
172
- /**
173
- * Get accounts returns accounts by account index
174
- * accounts
175
- */
176
- async accountsRaw(requestParameters: AccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Accounts>> {
177
- if (requestParameters['limit'] == null) {
178
- throw new runtime.RequiredError(
179
- 'limit',
180
- 'Required parameter "limit" was null or undefined when calling accounts().'
181
- );
182
- }
183
-
184
- const queryParameters: any = {};
185
-
186
- if (requestParameters['index'] != null) {
187
- queryParameters['index'] = requestParameters['index'];
188
- }
189
-
190
- if (requestParameters['limit'] != null) {
191
- queryParameters['limit'] = requestParameters['limit'];
192
- }
193
-
194
- if (requestParameters['sort'] != null) {
195
- queryParameters['sort'] = requestParameters['sort'];
196
- }
197
-
198
- const headerParameters: runtime.HTTPHeaders = {};
199
-
200
- const response = await this.request({
201
- path: `/api/v1/accounts`,
202
- method: 'GET',
203
- headers: headerParameters,
204
- query: queryParameters,
205
- }, initOverrides);
206
-
207
- return new runtime.JSONApiResponse(response, (jsonValue) => AccountsFromJSON(jsonValue));
208
- }
209
-
210
- /**
211
- * Get accounts returns accounts by account index
212
- * accounts
213
- */
214
- async accounts(requestParameters: AccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Accounts> {
215
- const response = await this.accountsRaw(requestParameters, initOverrides);
216
- return await response.value();
217
- }
218
-
219
163
  /**
220
164
  * Get accounts by l1_address returns all accounts associated with the given L1 address
221
165
  * accountsByL1Address
@@ -686,14 +630,6 @@ export const AccountByEnum = {
686
630
  L1Address: 'l1_address'
687
631
  } as const;
688
632
  export type AccountByEnum = typeof AccountByEnum[keyof typeof AccountByEnum];
689
- /**
690
- * @export
691
- */
692
- export const AccountsSortEnum = {
693
- Asc: 'asc',
694
- Desc: 'desc'
695
- } as const;
696
- export type AccountsSortEnum = typeof AccountsSortEnum[keyof typeof AccountsSortEnum];
697
633
  /**
698
634
  * @export
699
635
  */
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/InfoApi.ts CHANGED
@@ -16,14 +16,11 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  Layer1BasicInfo,
19
- Layer2BasicInfo,
20
19
  ResultCode,
21
20
  } from '../models/index';
22
21
  import {
23
22
  Layer1BasicInfoFromJSON,
24
23
  Layer1BasicInfoToJSON,
25
- Layer2BasicInfoFromJSON,
26
- Layer2BasicInfoToJSON,
27
24
  ResultCodeFromJSON,
28
25
  ResultCodeToJSON,
29
26
  } from '../models/index';
@@ -61,32 +58,4 @@ export class InfoApi extends runtime.BaseAPI {
61
58
  return await response.value();
62
59
  }
63
60
 
64
- /**
65
- * Get zklighter general info, including transaction and block stats
66
- * layer2BasicInfo
67
- */
68
- async layer2BasicInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Layer2BasicInfo>> {
69
- const queryParameters: any = {};
70
-
71
- const headerParameters: runtime.HTTPHeaders = {};
72
-
73
- const response = await this.request({
74
- path: `/api/v1/layer2BasicInfo`,
75
- method: 'GET',
76
- headers: headerParameters,
77
- query: queryParameters,
78
- }, initOverrides);
79
-
80
- return new runtime.JSONApiResponse(response, (jsonValue) => Layer2BasicInfoFromJSON(jsonValue));
81
- }
82
-
83
- /**
84
- * Get zklighter general info, including transaction and block stats
85
- * layer2BasicInfo
86
- */
87
- async layer2BasicInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Layer2BasicInfo> {
88
- const response = await this.layer2BasicInfoRaw(initOverrides);
89
- return await response.value();
90
- }
91
-
92
61
  }
@@ -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,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
@@ -8,7 +8,6 @@ export * from './AccountPnL';
8
8
  export * from './AccountPosition';
9
9
  export * from './AccountStats';
10
10
  export * from './AccountTradeStats';
11
- export * from './Accounts';
12
11
  export * from './Announcement';
13
12
  export * from './Announcements';
14
13
  export * from './ApiKey';
@@ -39,7 +38,6 @@ export * from './Fundings';
39
38
  export * from './IsWhitelisted';
40
39
  export * from './L1ProviderInfo';
41
40
  export * from './Layer1BasicInfo';
42
- export * from './Layer2BasicInfo';
43
41
  export * from './Leaderboard';
44
42
  export * from './LeaderboardEntry';
45
43
  export * from './MarketInfo';
@@ -79,6 +77,7 @@ export * from './ReqGetBlockTxs';
79
77
  export * from './ReqGetByAccount';
80
78
  export * from './ReqGetCandlesticks';
81
79
  export * from './ReqGetDepositHistory';
80
+ export * from './ReqGetFastWithdrawInfo';
82
81
  export * from './ReqGetFeeBucket';
83
82
  export * from './ReqGetFundings';
84
83
  export * from './ReqGetL1Tx';
package/openapi.json CHANGED
@@ -394,62 +394,6 @@
394
394
  "description": "Get transactions of a specific account"
395
395
  }
396
396
  },
397
- "/api/v1/accounts": {
398
- "get": {
399
- "summary": "accounts",
400
- "operationId": "accounts",
401
- "responses": {
402
- "200": {
403
- "description": "A successful response.",
404
- "schema": {
405
- "$ref": "#/definitions/Accounts"
406
- }
407
- },
408
- "400": {
409
- "description": "Bad request",
410
- "schema": {
411
- "$ref": "#/definitions/ResultCode"
412
- }
413
- }
414
- },
415
- "parameters": [
416
- {
417
- "name": "index",
418
- "in": "query",
419
- "required": false,
420
- "type": "integer",
421
- "format": "int64"
422
- },
423
- {
424
- "name": "limit",
425
- "in": "query",
426
- "required": true,
427
- "type": "integer",
428
- "format": "int64",
429
- "minimum": 1,
430
- "maximum": 100
431
- },
432
- {
433
- "name": "sort",
434
- "in": "query",
435
- "required": false,
436
- "type": "string",
437
- "enum": [
438
- "asc",
439
- "desc"
440
- ],
441
- "default": "asc"
442
- }
443
- ],
444
- "tags": [
445
- "account"
446
- ],
447
- "consumes": [
448
- "multipart/form-data"
449
- ],
450
- "description": "Get accounts returns accounts by account index"
451
- }
452
- },
453
397
  "/api/v1/accountsByL1Address": {
454
398
  "get": {
455
399
  "summary": "accountsByL1Address",
@@ -899,6 +843,19 @@
899
843
  }
900
844
  },
901
845
  "parameters": [
846
+ {
847
+ "name": "account_index",
848
+ "in": "query",
849
+ "required": true,
850
+ "type": "integer",
851
+ "format": "int64"
852
+ },
853
+ {
854
+ "name": "auth",
855
+ "in": "query",
856
+ "required": true,
857
+ "type": "string"
858
+ },
902
859
  {
903
860
  "name": "l1_address",
904
861
  "in": "query",
@@ -1094,9 +1051,27 @@
1094
1051
  }
1095
1052
  }
1096
1053
  },
1054
+ "parameters": [
1055
+ {
1056
+ "name": "account_index",
1057
+ "in": "query",
1058
+ "required": true,
1059
+ "type": "integer",
1060
+ "format": "int64"
1061
+ },
1062
+ {
1063
+ "name": "auth",
1064
+ "in": "query",
1065
+ "required": true,
1066
+ "type": "string"
1067
+ }
1068
+ ],
1097
1069
  "tags": [
1098
1070
  "bridge"
1099
1071
  ],
1072
+ "consumes": [
1073
+ "multipart/form-data"
1074
+ ],
1100
1075
  "description": "Get fast withdraw info"
1101
1076
  }
1102
1077
  },
@@ -1324,30 +1299,6 @@
1324
1299
  "description": "Get zklighter l1 general info, including contract address and rpc info"
1325
1300
  }
1326
1301
  },
1327
- "/api/v1/layer2BasicInfo": {
1328
- "get": {
1329
- "summary": "layer2BasicInfo",
1330
- "operationId": "layer2BasicInfo",
1331
- "responses": {
1332
- "200": {
1333
- "description": "A successful response.",
1334
- "schema": {
1335
- "$ref": "#/definitions/Layer2BasicInfo"
1336
- }
1337
- },
1338
- "400": {
1339
- "description": "Bad request",
1340
- "schema": {
1341
- "$ref": "#/definitions/ResultCode"
1342
- }
1343
- }
1344
- },
1345
- "tags": [
1346
- "info"
1347
- ],
1348
- "description": "Get zklighter general info, including transaction and block stats"
1349
- }
1350
- },
1351
1302
  "/api/v1/leaderboard": {
1352
1303
  "get": {
1353
1304
  "summary": "leaderboard",
@@ -2433,6 +2384,12 @@
2433
2384
  "type": "integer",
2434
2385
  "format": "int64"
2435
2386
  },
2387
+ {
2388
+ "name": "auth",
2389
+ "in": "query",
2390
+ "required": true,
2391
+ "type": "string"
2392
+ },
2436
2393
  {
2437
2394
  "name": "cursor",
2438
2395
  "in": "query",
@@ -2889,36 +2846,6 @@
2889
2846
  "total_volume"
2890
2847
  ]
2891
2848
  },
2892
- "Accounts": {
2893
- "type": "object",
2894
- "properties": {
2895
- "code": {
2896
- "type": "integer",
2897
- "format": "int32",
2898
- "example": "200"
2899
- },
2900
- "message": {
2901
- "type": "string"
2902
- },
2903
- "total": {
2904
- "type": "integer",
2905
- "format": "int64",
2906
- "example": "1"
2907
- },
2908
- "accounts": {
2909
- "type": "array",
2910
- "items": {
2911
- "$ref": "#/definitions/Account"
2912
- }
2913
- }
2914
- },
2915
- "title": "Accounts",
2916
- "required": [
2917
- "code",
2918
- "total",
2919
- "accounts"
2920
- ]
2921
- },
2922
2849
  "Announcement": {
2923
2850
  "type": "object",
2924
2851
  "properties": {
@@ -4075,41 +4002,6 @@
4075
4002
  "latest_l1_desert_block"
4076
4003
  ]
4077
4004
  },
4078
- "Layer2BasicInfo": {
4079
- "type": "object",
4080
- "properties": {
4081
- "code": {
4082
- "type": "integer",
4083
- "format": "int32",
4084
- "example": "200"
4085
- },
4086
- "message": {
4087
- "type": "string"
4088
- },
4089
- "block_committed": {
4090
- "type": "integer",
4091
- "format": "int64",
4092
- "example": "45434"
4093
- },
4094
- "block_verified": {
4095
- "type": "integer",
4096
- "format": "int64",
4097
- "example": "45434"
4098
- },
4099
- "total_transaction_count": {
4100
- "type": "integer",
4101
- "format": "int64",
4102
- "example": "75434"
4103
- }
4104
- },
4105
- "title": "Layer2BasicInfo",
4106
- "required": [
4107
- "code",
4108
- "block_committed",
4109
- "block_verified",
4110
- "total_transaction_count"
4111
- ]
4112
- },
4113
4005
  "Leaderboard": {
4114
4006
  "type": "object",
4115
4007
  "properties": {
@@ -5872,6 +5764,13 @@
5872
5764
  "ReqGetDepositHistory": {
5873
5765
  "type": "object",
5874
5766
  "properties": {
5767
+ "account_index": {
5768
+ "type": "integer",
5769
+ "format": "int64"
5770
+ },
5771
+ "auth": {
5772
+ "type": "string"
5773
+ },
5875
5774
  "l1_address": {
5876
5775
  "type": "string"
5877
5776
  },
@@ -5889,6 +5788,8 @@
5889
5788
  },
5890
5789
  "title": "ReqGetDepositHistory",
5891
5790
  "required": [
5791
+ "account_index",
5792
+ "auth",
5892
5793
  "l1_address"
5893
5794
  ]
5894
5795
  },
@@ -5896,6 +5797,23 @@
5896
5797
  "type": "object",
5897
5798
  "title": "ReqGetExchangeStats"
5898
5799
  },
5800
+ "ReqGetFastWithdrawInfo": {
5801
+ "type": "object",
5802
+ "properties": {
5803
+ "account_index": {
5804
+ "type": "integer",
5805
+ "format": "int64"
5806
+ },
5807
+ "auth": {
5808
+ "type": "string"
5809
+ }
5810
+ },
5811
+ "title": "ReqGetFastWithdrawInfo",
5812
+ "required": [
5813
+ "account_index",
5814
+ "auth"
5815
+ ]
5816
+ },
5899
5817
  "ReqGetFeeBucket": {
5900
5818
  "type": "object",
5901
5819
  "properties": {
@@ -6320,6 +6238,9 @@
6320
6238
  "type": "integer",
6321
6239
  "format": "int64"
6322
6240
  },
6241
+ "auth": {
6242
+ "type": "string"
6243
+ },
6323
6244
  "cursor": {
6324
6245
  "type": "string"
6325
6246
  },
@@ -6334,7 +6255,8 @@
6334
6255
  },
6335
6256
  "title": "ReqGetWithdrawHistory",
6336
6257
  "required": [
6337
- "account_index"
6258
+ "account_index",
6259
+ "auth"
6338
6260
  ]
6339
6261
  },
6340
6262
  "ReqIsWhitelisted": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.111",
3
+ "version": "1.0.113",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {