zklighter-perps 1.0.68 → 1.0.70

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.
@@ -32,6 +32,7 @@ models/ExchangeStats.ts
32
32
  models/FeeBucket.ts
33
33
  models/Funding.ts
34
34
  models/Fundings.ts
35
+ models/IsWhitelisted.ts
35
36
  models/L1ProviderInfo.ts
36
37
  models/Layer1BasicInfo.ts
37
38
  models/Layer2BasicInfo.ts
@@ -78,6 +79,7 @@ models/ReqGetNextNonce.ts
78
79
  models/ReqGetOrderBookDetails.ts
79
80
  models/ReqGetOrderBookOrders.ts
80
81
  models/ReqGetOrderBooks.ts
82
+ models/ReqGetPublicPool.ts
81
83
  models/ReqGetPublicPools.ts
82
84
  models/ReqGetRangeWithCursor.ts
83
85
  models/ReqGetRangeWithIndex.ts
@@ -85,6 +87,7 @@ models/ReqGetRangeWithIndexSortable.ts
85
87
  models/ReqGetRecentTrades.ts
86
88
  models/ReqGetTrades.ts
87
89
  models/ReqGetTx.ts
90
+ models/ReqIsWhitelisted.ts
88
91
  models/ResultCode.ts
89
92
  models/SimpleOrder.ts
90
93
  models/Status.ts
@@ -18,8 +18,10 @@ import type {
18
18
  AccountApiKeys,
19
19
  AccountPnL,
20
20
  Accounts,
21
+ DetailedAccount,
21
22
  DetailedAccounts,
22
23
  FeeBucket,
24
+ IsWhitelisted,
23
25
  Leaderboard,
24
26
  PublicPools,
25
27
  ResultCode,
@@ -32,10 +34,14 @@ import {
32
34
  AccountPnLToJSON,
33
35
  AccountsFromJSON,
34
36
  AccountsToJSON,
37
+ DetailedAccountFromJSON,
38
+ DetailedAccountToJSON,
35
39
  DetailedAccountsFromJSON,
36
40
  DetailedAccountsToJSON,
37
41
  FeeBucketFromJSON,
38
42
  FeeBucketToJSON,
43
+ IsWhitelistedFromJSON,
44
+ IsWhitelistedToJSON,
39
45
  LeaderboardFromJSON,
40
46
  LeaderboardToJSON,
41
47
  PublicPoolsFromJSON,
@@ -74,6 +80,10 @@ export interface FeeBucketRequest {
74
80
  account_index: number;
75
81
  }
76
82
 
83
+ export interface IsWhitelistedRequest {
84
+ l1_address: string;
85
+ }
86
+
77
87
  export interface LeaderboardRequest {
78
88
  type: LeaderboardTypeEnum;
79
89
  l1_address?: string;
@@ -89,10 +99,16 @@ export interface PnlRequest {
89
99
  ignore_transfers?: boolean;
90
100
  }
91
101
 
102
+ export interface PublicPoolRequest {
103
+ index: number;
104
+ account_index?: number;
105
+ }
106
+
92
107
  export interface PublicPoolsRequest {
93
108
  filter: string;
94
109
  index: number;
95
110
  limit: number;
111
+ account_index?: number;
96
112
  }
97
113
 
98
114
  /**
@@ -364,6 +380,45 @@ export class AccountApi extends runtime.BaseAPI {
364
380
  return await response.value();
365
381
  }
366
382
 
383
+ /**
384
+ * Get is account whitelisted
385
+ * isWhitelisted
386
+ */
387
+ async isWhitelistedRaw(requestParameters: IsWhitelistedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IsWhitelisted>> {
388
+ if (requestParameters['l1_address'] == null) {
389
+ throw new runtime.RequiredError(
390
+ 'l1_address',
391
+ 'Required parameter "l1_address" was null or undefined when calling isWhitelisted().'
392
+ );
393
+ }
394
+
395
+ const queryParameters: any = {};
396
+
397
+ if (requestParameters['l1_address'] != null) {
398
+ queryParameters['l1_address'] = requestParameters['l1_address'];
399
+ }
400
+
401
+ const headerParameters: runtime.HTTPHeaders = {};
402
+
403
+ const response = await this.request({
404
+ path: `/api/v1/isWhitelisted`,
405
+ method: 'GET',
406
+ headers: headerParameters,
407
+ query: queryParameters,
408
+ }, initOverrides);
409
+
410
+ return new runtime.JSONApiResponse(response, (jsonValue) => IsWhitelistedFromJSON(jsonValue));
411
+ }
412
+
413
+ /**
414
+ * Get is account whitelisted
415
+ * isWhitelisted
416
+ */
417
+ async isWhitelisted(requestParameters: IsWhitelistedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IsWhitelisted> {
418
+ const response = await this.isWhitelistedRaw(requestParameters, initOverrides);
419
+ return await response.value();
420
+ }
421
+
367
422
  /**
368
423
  * Get points leaderboard
369
424
  * leaderboard
@@ -505,6 +560,49 @@ export class AccountApi extends runtime.BaseAPI {
505
560
  return await response.value();
506
561
  }
507
562
 
563
+ /**
564
+ * Get public pool
565
+ * publicPool
566
+ */
567
+ async publicPoolRaw(requestParameters: PublicPoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DetailedAccount>> {
568
+ if (requestParameters['index'] == null) {
569
+ throw new runtime.RequiredError(
570
+ 'index',
571
+ 'Required parameter "index" was null or undefined when calling publicPool().'
572
+ );
573
+ }
574
+
575
+ const queryParameters: any = {};
576
+
577
+ if (requestParameters['index'] != null) {
578
+ queryParameters['index'] = requestParameters['index'];
579
+ }
580
+
581
+ if (requestParameters['account_index'] != null) {
582
+ queryParameters['account_index'] = requestParameters['account_index'];
583
+ }
584
+
585
+ const headerParameters: runtime.HTTPHeaders = {};
586
+
587
+ const response = await this.request({
588
+ path: `/api/v1/publicPool`,
589
+ method: 'GET',
590
+ headers: headerParameters,
591
+ query: queryParameters,
592
+ }, initOverrides);
593
+
594
+ return new runtime.JSONApiResponse(response, (jsonValue) => DetailedAccountFromJSON(jsonValue));
595
+ }
596
+
597
+ /**
598
+ * Get public pool
599
+ * publicPool
600
+ */
601
+ async publicPool(requestParameters: PublicPoolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DetailedAccount> {
602
+ const response = await this.publicPoolRaw(requestParameters, initOverrides);
603
+ return await response.value();
604
+ }
605
+
508
606
  /**
509
607
  * Get public pools
510
608
  * publicPools
@@ -545,6 +643,10 @@ export class AccountApi extends runtime.BaseAPI {
545
643
  queryParameters['limit'] = requestParameters['limit'];
546
644
  }
547
645
 
646
+ if (requestParameters['account_index'] != null) {
647
+ queryParameters['account_index'] = requestParameters['account_index'];
648
+ }
649
+
548
650
  const headerParameters: runtime.HTTPHeaders = {};
549
651
 
550
652
  const response = await this.request({
@@ -146,6 +146,12 @@ export interface DetailedAccount {
146
146
  * @memberof DetailedAccount
147
147
  */
148
148
  shares: Array<PublicPoolShare>;
149
+ /**
150
+ *
151
+ * @type {PublicPoolShare}
152
+ * @memberof DetailedAccount
153
+ */
154
+ account_share: PublicPoolShare;
149
155
  }
150
156
 
151
157
  /**
@@ -168,6 +174,7 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
168
174
  if (!('market_stats' in value) || value['market_stats'] === undefined) return false;
169
175
  if (!('pool_info' in value) || value['pool_info'] === undefined) return false;
170
176
  if (!('shares' in value) || value['shares'] === undefined) return false;
177
+ if (!('account_share' in value) || value['account_share'] === undefined) return false;
171
178
  return true;
172
179
  }
173
180
 
@@ -198,6 +205,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
198
205
  'market_stats': ((json['market_stats'] as Array<any>).map(AccountMarketStatsFromJSON)),
199
206
  'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
200
207
  'shares': ((json['shares'] as Array<any>).map(PublicPoolShareFromJSON)),
208
+ 'account_share': PublicPoolShareFromJSON(json['account_share']),
201
209
  };
202
210
  }
203
211
 
@@ -224,6 +232,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
224
232
  'market_stats': ((value['market_stats'] as Array<any>).map(AccountMarketStatsToJSON)),
225
233
  'pool_info': PublicPoolInfoToJSON(value['pool_info']),
226
234
  'shares': ((value['shares'] as Array<any>).map(PublicPoolShareToJSON)),
235
+ 'account_share': PublicPoolShareToJSON(value['account_share']),
227
236
  };
228
237
  }
229
238
 
@@ -0,0 +1,87 @@
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 IsWhitelisted
20
+ */
21
+ export interface IsWhitelisted {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof IsWhitelisted
26
+ */
27
+ code: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof IsWhitelisted
32
+ */
33
+ message?: string;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof IsWhitelisted
38
+ */
39
+ whitelisted: boolean;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof IsWhitelisted
44
+ */
45
+ deposit_amount_left: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the IsWhitelisted interface.
50
+ */
51
+ export function instanceOfIsWhitelisted(value: object): value is IsWhitelisted {
52
+ if (!('code' in value) || value['code'] === undefined) return false;
53
+ if (!('whitelisted' in value) || value['whitelisted'] === undefined) return false;
54
+ if (!('deposit_amount_left' in value) || value['deposit_amount_left'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function IsWhitelistedFromJSON(json: any): IsWhitelisted {
59
+ return IsWhitelistedFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function IsWhitelistedFromJSONTyped(json: any, ignoreDiscriminator: boolean): IsWhitelisted {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'code': json['code'],
69
+ 'message': json['message'] == null ? undefined : json['message'],
70
+ 'whitelisted': json['whitelisted'],
71
+ 'deposit_amount_left': json['deposit_amount_left'],
72
+ };
73
+ }
74
+
75
+ export function IsWhitelistedToJSON(value?: IsWhitelisted | null): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+ return {
80
+
81
+ 'code': value['code'],
82
+ 'message': value['message'],
83
+ 'whitelisted': value['whitelisted'],
84
+ 'deposit_amount_left': value['deposit_amount_left'],
85
+ };
86
+ }
87
+
@@ -19,6 +19,12 @@ import {
19
19
  PublicPoolInfoFromJSONTyped,
20
20
  PublicPoolInfoToJSON,
21
21
  } from './PublicPoolInfo';
22
+ import type { PublicPoolShare } from './PublicPoolShare';
23
+ import {
24
+ PublicPoolShareFromJSON,
25
+ PublicPoolShareFromJSONTyped,
26
+ PublicPoolShareToJSON,
27
+ } from './PublicPoolShare';
22
28
 
23
29
  /**
24
30
  *
@@ -110,6 +116,12 @@ export interface PublicPool {
110
116
  * @memberof PublicPool
111
117
  */
112
118
  pool_info: PublicPoolInfo;
119
+ /**
120
+ *
121
+ * @type {PublicPoolShare}
122
+ * @memberof PublicPool
123
+ */
124
+ account_share: PublicPoolShare;
113
125
  }
114
126
 
115
127
  /**
@@ -129,6 +141,7 @@ export function instanceOfPublicPool(value: object): value is PublicPool {
129
141
  if (!('description' in value) || value['description'] === undefined) return false;
130
142
  if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
131
143
  if (!('pool_info' in value) || value['pool_info'] === undefined) return false;
144
+ if (!('account_share' in value) || value['account_share'] === undefined) return false;
132
145
  return true;
133
146
  }
134
147
 
@@ -156,6 +169,7 @@ export function PublicPoolFromJSONTyped(json: any, ignoreDiscriminator: boolean)
156
169
  'description': json['description'],
157
170
  'total_asset_value': json['total_asset_value'],
158
171
  'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
172
+ 'account_share': PublicPoolShareFromJSON(json['account_share']),
159
173
  };
160
174
  }
161
175
 
@@ -179,6 +193,7 @@ export function PublicPoolToJSON(value?: PublicPool | null): any {
179
193
  'description': value['description'],
180
194
  'total_asset_value': value['total_asset_value'],
181
195
  'pool_info': PublicPoolInfoToJSON(value['pool_info']),
196
+ 'account_share': PublicPoolShareToJSON(value['account_share']),
182
197
  };
183
198
  }
184
199
 
@@ -0,0 +1,69 @@
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 ReqGetPublicPool
20
+ */
21
+ export interface ReqGetPublicPool {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ReqGetPublicPool
26
+ */
27
+ index: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ReqGetPublicPool
32
+ */
33
+ account_index?: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ReqGetPublicPool interface.
38
+ */
39
+ export function instanceOfReqGetPublicPool(value: object): value is ReqGetPublicPool {
40
+ if (!('index' in value) || value['index'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function ReqGetPublicPoolFromJSON(json: any): ReqGetPublicPool {
45
+ return ReqGetPublicPoolFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function ReqGetPublicPoolFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetPublicPool {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'index': json['index'],
55
+ 'account_index': json['account_index'] == null ? undefined : json['account_index'],
56
+ };
57
+ }
58
+
59
+ export function ReqGetPublicPoolToJSON(value?: ReqGetPublicPool | null): any {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+
65
+ 'index': value['index'],
66
+ 'account_index': value['account_index'],
67
+ };
68
+ }
69
+
@@ -37,6 +37,12 @@ export interface ReqGetPublicPools {
37
37
  * @memberof ReqGetPublicPools
38
38
  */
39
39
  limit: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof ReqGetPublicPools
44
+ */
45
+ account_index?: number;
40
46
  }
41
47
 
42
48
  /**
@@ -62,6 +68,7 @@ export function ReqGetPublicPoolsFromJSONTyped(json: any, ignoreDiscriminator: b
62
68
  'filter': json['filter'],
63
69
  'index': json['index'],
64
70
  'limit': json['limit'],
71
+ 'account_index': json['account_index'] == null ? undefined : json['account_index'],
65
72
  };
66
73
  }
67
74
 
@@ -74,6 +81,7 @@ export function ReqGetPublicPoolsToJSON(value?: ReqGetPublicPools | null): any {
74
81
  'filter': value['filter'],
75
82
  'index': value['index'],
76
83
  'limit': value['limit'],
84
+ 'account_index': value['account_index'],
77
85
  };
78
86
  }
79
87
 
@@ -0,0 +1,61 @@
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 ReqIsWhitelisted
20
+ */
21
+ export interface ReqIsWhitelisted {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReqIsWhitelisted
26
+ */
27
+ l1_address: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ReqIsWhitelisted interface.
32
+ */
33
+ export function instanceOfReqIsWhitelisted(value: object): value is ReqIsWhitelisted {
34
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ReqIsWhitelistedFromJSON(json: any): ReqIsWhitelisted {
39
+ return ReqIsWhitelistedFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ReqIsWhitelistedFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqIsWhitelisted {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'l1_address': json['l1_address'],
49
+ };
50
+ }
51
+
52
+ export function ReqIsWhitelistedToJSON(value?: ReqIsWhitelisted | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'l1_address': value['l1_address'],
59
+ };
60
+ }
61
+
package/models/index.ts CHANGED
@@ -24,6 +24,7 @@ export * from './ExchangeStats';
24
24
  export * from './FeeBucket';
25
25
  export * from './Funding';
26
26
  export * from './Fundings';
27
+ export * from './IsWhitelisted';
27
28
  export * from './L1ProviderInfo';
28
29
  export * from './Layer1BasicInfo';
29
30
  export * from './Layer2BasicInfo';
@@ -70,6 +71,7 @@ export * from './ReqGetNextNonce';
70
71
  export * from './ReqGetOrderBookDetails';
71
72
  export * from './ReqGetOrderBookOrders';
72
73
  export * from './ReqGetOrderBooks';
74
+ export * from './ReqGetPublicPool';
73
75
  export * from './ReqGetPublicPools';
74
76
  export * from './ReqGetRangeWithCursor';
75
77
  export * from './ReqGetRangeWithIndex';
@@ -77,6 +79,7 @@ export * from './ReqGetRangeWithIndexSortable';
77
79
  export * from './ReqGetRecentTrades';
78
80
  export * from './ReqGetTrades';
79
81
  export * from './ReqGetTx';
82
+ export * from './ReqIsWhitelisted';
80
83
  export * from './ResultCode';
81
84
  export * from './SimpleOrder';
82
85
  export * from './Status';
package/openapi.json CHANGED
@@ -924,6 +924,41 @@
924
924
  "description": "Get fundings"
925
925
  }
926
926
  },
927
+ "/api/v1/isWhitelisted": {
928
+ "get": {
929
+ "summary": "isWhitelisted",
930
+ "operationId": "isWhitelisted",
931
+ "responses": {
932
+ "200": {
933
+ "description": "A successful response.",
934
+ "schema": {
935
+ "$ref": "#/definitions/IsWhitelisted"
936
+ }
937
+ },
938
+ "400": {
939
+ "description": "Bad request",
940
+ "schema": {
941
+ "$ref": "#/definitions/ResultCode"
942
+ }
943
+ }
944
+ },
945
+ "parameters": [
946
+ {
947
+ "name": "l1_address",
948
+ "in": "query",
949
+ "required": true,
950
+ "type": "string"
951
+ }
952
+ ],
953
+ "tags": [
954
+ "account"
955
+ ],
956
+ "consumes": [
957
+ "multipart/form-data"
958
+ ],
959
+ "description": "Get is account whitelisted"
960
+ }
961
+ },
927
962
  "/api/v1/layer1BasicInfo": {
928
963
  "get": {
929
964
  "summary": "layer1BasicInfo",
@@ -1346,6 +1381,49 @@
1346
1381
  "description": "Get account PnL chart"
1347
1382
  }
1348
1383
  },
1384
+ "/api/v1/publicPool": {
1385
+ "get": {
1386
+ "summary": "publicPool",
1387
+ "operationId": "publicPool",
1388
+ "responses": {
1389
+ "200": {
1390
+ "description": "A successful response.",
1391
+ "schema": {
1392
+ "$ref": "#/definitions/DetailedAccount"
1393
+ }
1394
+ },
1395
+ "400": {
1396
+ "description": "Bad request",
1397
+ "schema": {
1398
+ "$ref": "#/definitions/ResultCode"
1399
+ }
1400
+ }
1401
+ },
1402
+ "parameters": [
1403
+ {
1404
+ "name": "index",
1405
+ "in": "query",
1406
+ "required": true,
1407
+ "type": "integer",
1408
+ "format": "int64"
1409
+ },
1410
+ {
1411
+ "name": "account_index",
1412
+ "in": "query",
1413
+ "required": false,
1414
+ "type": "integer",
1415
+ "format": "int64"
1416
+ }
1417
+ ],
1418
+ "tags": [
1419
+ "account"
1420
+ ],
1421
+ "consumes": [
1422
+ "multipart/form-data"
1423
+ ],
1424
+ "description": "Get public pool"
1425
+ }
1426
+ },
1349
1427
  "/api/v1/publicPools": {
1350
1428
  "get": {
1351
1429
  "summary": "publicPools",
@@ -1386,6 +1464,13 @@
1386
1464
  "format": "int64",
1387
1465
  "minimum": 1,
1388
1466
  "maximum": 100
1467
+ },
1468
+ {
1469
+ "name": "account_index",
1470
+ "in": "query",
1471
+ "required": false,
1472
+ "type": "integer",
1473
+ "format": "int64"
1389
1474
  }
1390
1475
  ],
1391
1476
  "tags": [
@@ -2422,6 +2507,9 @@
2422
2507
  "items": {
2423
2508
  "$ref": "#/definitions/PublicPoolShare"
2424
2509
  }
2510
+ },
2511
+ "account_share": {
2512
+ "$ref": "#/definitions/PublicPoolShare"
2425
2513
  }
2426
2514
  },
2427
2515
  "title": "DetailedAccount",
@@ -2441,7 +2529,8 @@
2441
2529
  "total_asset_value",
2442
2530
  "market_stats",
2443
2531
  "pool_info",
2444
- "shares"
2532
+ "shares",
2533
+ "account_share"
2445
2534
  ]
2446
2535
  },
2447
2536
  "DetailedAccounts": {
@@ -2776,6 +2865,32 @@
2776
2865
  "fundings"
2777
2866
  ]
2778
2867
  },
2868
+ "IsWhitelisted": {
2869
+ "type": "object",
2870
+ "properties": {
2871
+ "code": {
2872
+ "type": "integer",
2873
+ "format": "int32",
2874
+ "example": "200"
2875
+ },
2876
+ "message": {
2877
+ "type": "string"
2878
+ },
2879
+ "whitelisted": {
2880
+ "type": "boolean",
2881
+ "format": "boolean"
2882
+ },
2883
+ "deposit_amount_left": {
2884
+ "type": "string"
2885
+ }
2886
+ },
2887
+ "title": "IsWhitelisted",
2888
+ "required": [
2889
+ "code",
2890
+ "whitelisted",
2891
+ "deposit_amount_left"
2892
+ ]
2893
+ },
2779
2894
  "L1ProviderInfo": {
2780
2895
  "type": "object",
2781
2896
  "properties": {
@@ -3847,6 +3962,9 @@
3847
3962
  },
3848
3963
  "pool_info": {
3849
3964
  "$ref": "#/definitions/PublicPoolInfo"
3965
+ },
3966
+ "account_share": {
3967
+ "$ref": "#/definitions/PublicPoolShare"
3850
3968
  }
3851
3969
  },
3852
3970
  "title": "PublicPool",
@@ -3863,7 +3981,8 @@
3863
3981
  "name",
3864
3982
  "description",
3865
3983
  "total_asset_value",
3866
- "pool_info"
3984
+ "pool_info",
3985
+ "account_share"
3867
3986
  ]
3868
3987
  },
3869
3988
  "PublicPoolInfo": {
@@ -4449,6 +4568,23 @@
4449
4568
  },
4450
4569
  "title": "ReqGetOrderBooks"
4451
4570
  },
4571
+ "ReqGetPublicPool": {
4572
+ "type": "object",
4573
+ "properties": {
4574
+ "index": {
4575
+ "type": "integer",
4576
+ "format": "int64"
4577
+ },
4578
+ "account_index": {
4579
+ "type": "integer",
4580
+ "format": "int64"
4581
+ }
4582
+ },
4583
+ "title": "ReqGetPublicPool",
4584
+ "required": [
4585
+ "index"
4586
+ ]
4587
+ },
4452
4588
  "ReqGetPublicPools": {
4453
4589
  "type": "object",
4454
4590
  "properties": {
@@ -4464,6 +4600,10 @@
4464
4600
  "format": "int64",
4465
4601
  "maximum": 100,
4466
4602
  "minimum": 1
4603
+ },
4604
+ "account_index": {
4605
+ "type": "integer",
4606
+ "format": "int64"
4467
4607
  }
4468
4608
  },
4469
4609
  "title": "ReqGetPublicPools",
@@ -4629,6 +4769,18 @@
4629
4769
  "value"
4630
4770
  ]
4631
4771
  },
4772
+ "ReqIsWhitelisted": {
4773
+ "type": "object",
4774
+ "properties": {
4775
+ "l1_address": {
4776
+ "type": "string"
4777
+ }
4778
+ },
4779
+ "title": "ReqIsWhitelisted",
4780
+ "required": [
4781
+ "l1_address"
4782
+ ]
4783
+ },
4632
4784
  "ReqMarkNotifRead": {
4633
4785
  "type": "object",
4634
4786
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.68",
3
+ "version": "1.0.70",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {