zklighter-perps 1.0.112 → 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
@@ -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/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
  }
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';
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",
@@ -1355,30 +1299,6 @@
1355
1299
  "description": "Get zklighter l1 general info, including contract address and rpc info"
1356
1300
  }
1357
1301
  },
1358
- "/api/v1/layer2BasicInfo": {
1359
- "get": {
1360
- "summary": "layer2BasicInfo",
1361
- "operationId": "layer2BasicInfo",
1362
- "responses": {
1363
- "200": {
1364
- "description": "A successful response.",
1365
- "schema": {
1366
- "$ref": "#/definitions/Layer2BasicInfo"
1367
- }
1368
- },
1369
- "400": {
1370
- "description": "Bad request",
1371
- "schema": {
1372
- "$ref": "#/definitions/ResultCode"
1373
- }
1374
- }
1375
- },
1376
- "tags": [
1377
- "info"
1378
- ],
1379
- "description": "Get zklighter general info, including transaction and block stats"
1380
- }
1381
- },
1382
1302
  "/api/v1/leaderboard": {
1383
1303
  "get": {
1384
1304
  "summary": "leaderboard",
@@ -2926,36 +2846,6 @@
2926
2846
  "total_volume"
2927
2847
  ]
2928
2848
  },
2929
- "Accounts": {
2930
- "type": "object",
2931
- "properties": {
2932
- "code": {
2933
- "type": "integer",
2934
- "format": "int32",
2935
- "example": "200"
2936
- },
2937
- "message": {
2938
- "type": "string"
2939
- },
2940
- "total": {
2941
- "type": "integer",
2942
- "format": "int64",
2943
- "example": "1"
2944
- },
2945
- "accounts": {
2946
- "type": "array",
2947
- "items": {
2948
- "$ref": "#/definitions/Account"
2949
- }
2950
- }
2951
- },
2952
- "title": "Accounts",
2953
- "required": [
2954
- "code",
2955
- "total",
2956
- "accounts"
2957
- ]
2958
- },
2959
2849
  "Announcement": {
2960
2850
  "type": "object",
2961
2851
  "properties": {
@@ -4112,41 +4002,6 @@
4112
4002
  "latest_l1_desert_block"
4113
4003
  ]
4114
4004
  },
4115
- "Layer2BasicInfo": {
4116
- "type": "object",
4117
- "properties": {
4118
- "code": {
4119
- "type": "integer",
4120
- "format": "int32",
4121
- "example": "200"
4122
- },
4123
- "message": {
4124
- "type": "string"
4125
- },
4126
- "block_committed": {
4127
- "type": "integer",
4128
- "format": "int64",
4129
- "example": "45434"
4130
- },
4131
- "block_verified": {
4132
- "type": "integer",
4133
- "format": "int64",
4134
- "example": "45434"
4135
- },
4136
- "total_transaction_count": {
4137
- "type": "integer",
4138
- "format": "int64",
4139
- "example": "75434"
4140
- }
4141
- },
4142
- "title": "Layer2BasicInfo",
4143
- "required": [
4144
- "code",
4145
- "block_committed",
4146
- "block_verified",
4147
- "total_transaction_count"
4148
- ]
4149
- },
4150
4005
  "Leaderboard": {
4151
4006
  "type": "object",
4152
4007
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.112",
3
+ "version": "1.0.113",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {