zklighter-perps 1.0.155 → 1.0.156

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.
@@ -78,6 +78,7 @@ models/PositionFundings.ts
78
78
  models/PriceLevel.ts
79
79
  models/PublicPool.ts
80
80
  models/PublicPoolInfo.ts
81
+ models/PublicPoolMetadata.ts
81
82
  models/PublicPoolShare.ts
82
83
  models/PublicPools.ts
83
84
  models/ReferralCode.ts
@@ -113,6 +114,7 @@ models/ReqGetOrderBookOrders.ts
113
114
  models/ReqGetOrderBooks.ts
114
115
  models/ReqGetPositionFunding.ts
115
116
  models/ReqGetPublicPools.ts
117
+ models/ReqGetPublicPoolsMetadata.ts
116
118
  models/ReqGetRangeWithCursor.ts
117
119
  models/ReqGetRangeWithIndex.ts
118
120
  models/ReqGetRangeWithIndexSortable.ts
@@ -129,6 +131,7 @@ models/ReqIsWhitelisted.ts
129
131
  models/RespChangeAccountTier.ts
130
132
  models/RespGetFastBridgeInfo.ts
131
133
  models/RespGetFastwithdrawalInfo.ts
134
+ models/RespPublicPoolsMetadata.ts
132
135
  models/RespSendTx.ts
133
136
  models/RespSendTxBatch.ts
134
137
  models/RespWithdrawalDelay.ts
@@ -27,6 +27,7 @@ import type {
27
27
  PositionFundings,
28
28
  PublicPools,
29
29
  RespChangeAccountTier,
30
+ RespPublicPoolsMetadata,
30
31
  ResultCode,
31
32
  SubAccounts,
32
33
  } from '../models/index';
@@ -55,6 +56,8 @@ import {
55
56
  PublicPoolsToJSON,
56
57
  RespChangeAccountTierFromJSON,
57
58
  RespChangeAccountTierToJSON,
59
+ RespPublicPoolsMetadataFromJSON,
60
+ RespPublicPoolsMetadataToJSON,
58
61
  ResultCodeFromJSON,
59
62
  ResultCodeToJSON,
60
63
  SubAccountsFromJSON,
@@ -157,6 +160,15 @@ export interface PublicPoolsRequest {
157
160
  account_index?: number;
158
161
  }
159
162
 
163
+ export interface PublicPoolsMetadataRequest {
164
+ index: number;
165
+ limit: number;
166
+ authorization?: string;
167
+ auth?: string;
168
+ filter?: PublicPoolsMetadataFilterEnum;
169
+ account_index?: number;
170
+ }
171
+
160
172
  /**
161
173
  *
162
174
  */
@@ -960,6 +972,72 @@ export class AccountApi extends runtime.BaseAPI {
960
972
  return await response.value();
961
973
  }
962
974
 
975
+ /**
976
+ * Get public pools metadata
977
+ * publicPoolsMetadata
978
+ */
979
+ async publicPoolsMetadataRaw(requestParameters: PublicPoolsMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespPublicPoolsMetadata>> {
980
+ if (requestParameters['index'] == null) {
981
+ throw new runtime.RequiredError(
982
+ 'index',
983
+ 'Required parameter "index" was null or undefined when calling publicPoolsMetadata().'
984
+ );
985
+ }
986
+
987
+ if (requestParameters['limit'] == null) {
988
+ throw new runtime.RequiredError(
989
+ 'limit',
990
+ 'Required parameter "limit" was null or undefined when calling publicPoolsMetadata().'
991
+ );
992
+ }
993
+
994
+ const queryParameters: any = {};
995
+
996
+ if (requestParameters['auth'] != null) {
997
+ queryParameters['auth'] = requestParameters['auth'];
998
+ }
999
+
1000
+ if (requestParameters['filter'] != null) {
1001
+ queryParameters['filter'] = requestParameters['filter'];
1002
+ }
1003
+
1004
+ if (requestParameters['index'] != null) {
1005
+ queryParameters['index'] = requestParameters['index'];
1006
+ }
1007
+
1008
+ if (requestParameters['limit'] != null) {
1009
+ queryParameters['limit'] = requestParameters['limit'];
1010
+ }
1011
+
1012
+ if (requestParameters['account_index'] != null) {
1013
+ queryParameters['account_index'] = requestParameters['account_index'];
1014
+ }
1015
+
1016
+ const headerParameters: runtime.HTTPHeaders = {};
1017
+
1018
+ if (requestParameters['authorization'] != null) {
1019
+ headerParameters['authorization'] = String(requestParameters['authorization']);
1020
+ }
1021
+
1022
+ const response = await this.request({
1023
+ path: `/api/v1/publicPoolsMetadata`,
1024
+ method: 'GET',
1025
+ headers: headerParameters,
1026
+ query: queryParameters,
1027
+ }, initOverrides);
1028
+
1029
+ return new runtime.JSONApiResponse(response, (jsonValue) => RespPublicPoolsMetadataFromJSON(jsonValue));
1030
+ }
1031
+
1032
+ /**
1033
+ * Get public pools metadata
1034
+ * publicPoolsMetadata
1035
+ */
1036
+ async publicPoolsMetadata(requestParameters: PublicPoolsMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespPublicPoolsMetadata> {
1037
+ const response = await this.publicPoolsMetadataRaw(requestParameters, initOverrides);
1038
+ return await response.value();
1039
+ }
1040
+
963
1041
  }
964
1042
 
965
1043
  /**
@@ -1025,3 +1103,13 @@ export const PublicPoolsFilterEnum = {
1025
1103
  AccountIndex: 'account_index'
1026
1104
  } as const;
1027
1105
  export type PublicPoolsFilterEnum = typeof PublicPoolsFilterEnum[keyof typeof PublicPoolsFilterEnum];
1106
+ /**
1107
+ * @export
1108
+ */
1109
+ export const PublicPoolsMetadataFilterEnum = {
1110
+ All: 'all',
1111
+ User: 'user',
1112
+ Protocol: 'protocol',
1113
+ AccountIndex: 'account_index'
1114
+ } as const;
1115
+ export type PublicPoolsMetadataFilterEnum = typeof PublicPoolsMetadataFilterEnum[keyof typeof PublicPoolsMetadataFilterEnum];
@@ -0,0 +1,156 @@
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
+ import type { PublicPoolShare } from './PublicPoolShare';
17
+ import {
18
+ PublicPoolShareFromJSON,
19
+ PublicPoolShareFromJSONTyped,
20
+ PublicPoolShareToJSON,
21
+ } from './PublicPoolShare';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface PublicPoolMetadata
27
+ */
28
+ export interface PublicPoolMetadata {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof PublicPoolMetadata
33
+ */
34
+ code: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof PublicPoolMetadata
39
+ */
40
+ message?: string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof PublicPoolMetadata
45
+ */
46
+ account_type: number;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof PublicPoolMetadata
51
+ */
52
+ name: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof PublicPoolMetadata
57
+ */
58
+ l1_address: string;
59
+ /**
60
+ *
61
+ * @type {number}
62
+ * @memberof PublicPoolMetadata
63
+ */
64
+ annual_percentage_yield: number;
65
+ /**
66
+ *
67
+ * @type {number}
68
+ * @memberof PublicPoolMetadata
69
+ */
70
+ status: number;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof PublicPoolMetadata
75
+ */
76
+ operator_fee: string;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof PublicPoolMetadata
81
+ */
82
+ total_asset_value: string;
83
+ /**
84
+ *
85
+ * @type {number}
86
+ * @memberof PublicPoolMetadata
87
+ */
88
+ total_shares: number;
89
+ /**
90
+ *
91
+ * @type {PublicPoolShare}
92
+ * @memberof PublicPoolMetadata
93
+ */
94
+ account_share?: PublicPoolShare;
95
+ }
96
+
97
+ /**
98
+ * Check if a given object implements the PublicPoolMetadata interface.
99
+ */
100
+ export function instanceOfPublicPoolMetadata(value: object): value is PublicPoolMetadata {
101
+ if (!('code' in value) || value['code'] === undefined) return false;
102
+ if (!('account_type' in value) || value['account_type'] === undefined) return false;
103
+ if (!('name' in value) || value['name'] === undefined) return false;
104
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
105
+ if (!('annual_percentage_yield' in value) || value['annual_percentage_yield'] === undefined) return false;
106
+ if (!('status' in value) || value['status'] === undefined) return false;
107
+ if (!('operator_fee' in value) || value['operator_fee'] === undefined) return false;
108
+ if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
109
+ if (!('total_shares' in value) || value['total_shares'] === undefined) return false;
110
+ return true;
111
+ }
112
+
113
+ export function PublicPoolMetadataFromJSON(json: any): PublicPoolMetadata {
114
+ return PublicPoolMetadataFromJSONTyped(json, false);
115
+ }
116
+
117
+ export function PublicPoolMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicPoolMetadata {
118
+ if (json == null) {
119
+ return json;
120
+ }
121
+ return {
122
+
123
+ 'code': json['code'],
124
+ 'message': json['message'] == null ? undefined : json['message'],
125
+ 'account_type': json['account_type'],
126
+ 'name': json['name'],
127
+ 'l1_address': json['l1_address'],
128
+ 'annual_percentage_yield': json['annual_percentage_yield'],
129
+ 'status': json['status'],
130
+ 'operator_fee': json['operator_fee'],
131
+ 'total_asset_value': json['total_asset_value'],
132
+ 'total_shares': json['total_shares'],
133
+ 'account_share': json['account_share'] == null ? undefined : PublicPoolShareFromJSON(json['account_share']),
134
+ };
135
+ }
136
+
137
+ export function PublicPoolMetadataToJSON(value?: PublicPoolMetadata | null): any {
138
+ if (value == null) {
139
+ return value;
140
+ }
141
+ return {
142
+
143
+ 'code': value['code'],
144
+ 'message': value['message'],
145
+ 'account_type': value['account_type'],
146
+ 'name': value['name'],
147
+ 'l1_address': value['l1_address'],
148
+ 'annual_percentage_yield': value['annual_percentage_yield'],
149
+ 'status': value['status'],
150
+ 'operator_fee': value['operator_fee'],
151
+ 'total_asset_value': value['total_asset_value'],
152
+ 'total_shares': value['total_shares'],
153
+ 'account_share': PublicPoolShareToJSON(value['account_share']),
154
+ };
155
+ }
156
+
@@ -0,0 +1,107 @@
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 ReqGetPublicPoolsMetadata
20
+ */
21
+ export interface ReqGetPublicPoolsMetadata {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReqGetPublicPoolsMetadata
26
+ */
27
+ auth?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ReqGetPublicPoolsMetadata
32
+ */
33
+ filter?: ReqGetPublicPoolsMetadataFilterEnum;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof ReqGetPublicPoolsMetadata
38
+ */
39
+ index: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof ReqGetPublicPoolsMetadata
44
+ */
45
+ limit: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof ReqGetPublicPoolsMetadata
50
+ */
51
+ account_index?: number;
52
+ }
53
+
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const ReqGetPublicPoolsMetadataFilterEnum = {
59
+ All: 'all',
60
+ User: 'user',
61
+ Protocol: 'protocol',
62
+ AccountIndex: 'account_index'
63
+ } as const;
64
+ export type ReqGetPublicPoolsMetadataFilterEnum = typeof ReqGetPublicPoolsMetadataFilterEnum[keyof typeof ReqGetPublicPoolsMetadataFilterEnum];
65
+
66
+
67
+ /**
68
+ * Check if a given object implements the ReqGetPublicPoolsMetadata interface.
69
+ */
70
+ export function instanceOfReqGetPublicPoolsMetadata(value: object): value is ReqGetPublicPoolsMetadata {
71
+ if (!('index' in value) || value['index'] === undefined) return false;
72
+ if (!('limit' in value) || value['limit'] === undefined) return false;
73
+ return true;
74
+ }
75
+
76
+ export function ReqGetPublicPoolsMetadataFromJSON(json: any): ReqGetPublicPoolsMetadata {
77
+ return ReqGetPublicPoolsMetadataFromJSONTyped(json, false);
78
+ }
79
+
80
+ export function ReqGetPublicPoolsMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetPublicPoolsMetadata {
81
+ if (json == null) {
82
+ return json;
83
+ }
84
+ return {
85
+
86
+ 'auth': json['auth'] == null ? undefined : json['auth'],
87
+ 'filter': json['filter'] == null ? undefined : json['filter'],
88
+ 'index': json['index'],
89
+ 'limit': json['limit'],
90
+ 'account_index': json['account_index'] == null ? undefined : json['account_index'],
91
+ };
92
+ }
93
+
94
+ export function ReqGetPublicPoolsMetadataToJSON(value?: ReqGetPublicPoolsMetadata | null): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+ return {
99
+
100
+ 'auth': value['auth'],
101
+ 'filter': value['filter'],
102
+ 'index': value['index'],
103
+ 'limit': value['limit'],
104
+ 'account_index': value['account_index'],
105
+ };
106
+ }
107
+
@@ -0,0 +1,85 @@
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
+ import type { PublicPoolMetadata } from './PublicPoolMetadata';
17
+ import {
18
+ PublicPoolMetadataFromJSON,
19
+ PublicPoolMetadataFromJSONTyped,
20
+ PublicPoolMetadataToJSON,
21
+ } from './PublicPoolMetadata';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface RespPublicPoolsMetadata
27
+ */
28
+ export interface RespPublicPoolsMetadata {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof RespPublicPoolsMetadata
33
+ */
34
+ code: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof RespPublicPoolsMetadata
39
+ */
40
+ message?: string;
41
+ /**
42
+ *
43
+ * @type {Array<PublicPoolMetadata>}
44
+ * @memberof RespPublicPoolsMetadata
45
+ */
46
+ public_pools: Array<PublicPoolMetadata>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the RespPublicPoolsMetadata interface.
51
+ */
52
+ export function instanceOfRespPublicPoolsMetadata(value: object): value is RespPublicPoolsMetadata {
53
+ if (!('code' in value) || value['code'] === undefined) return false;
54
+ if (!('public_pools' in value) || value['public_pools'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function RespPublicPoolsMetadataFromJSON(json: any): RespPublicPoolsMetadata {
59
+ return RespPublicPoolsMetadataFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function RespPublicPoolsMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespPublicPoolsMetadata {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'code': json['code'],
69
+ 'message': json['message'] == null ? undefined : json['message'],
70
+ 'public_pools': ((json['public_pools'] as Array<any>).map(PublicPoolMetadataFromJSON)),
71
+ };
72
+ }
73
+
74
+ export function RespPublicPoolsMetadataToJSON(value?: RespPublicPoolsMetadata | null): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+ return {
79
+
80
+ 'code': value['code'],
81
+ 'message': value['message'],
82
+ 'public_pools': ((value['public_pools'] as Array<any>).map(PublicPoolMetadataToJSON)),
83
+ };
84
+ }
85
+
package/models/index.ts CHANGED
@@ -66,6 +66,7 @@ export * from './PositionFundings';
66
66
  export * from './PriceLevel';
67
67
  export * from './PublicPool';
68
68
  export * from './PublicPoolInfo';
69
+ export * from './PublicPoolMetadata';
69
70
  export * from './PublicPoolShare';
70
71
  export * from './PublicPools';
71
72
  export * from './ReferralCode';
@@ -101,6 +102,7 @@ export * from './ReqGetOrderBookOrders';
101
102
  export * from './ReqGetOrderBooks';
102
103
  export * from './ReqGetPositionFunding';
103
104
  export * from './ReqGetPublicPools';
105
+ export * from './ReqGetPublicPoolsMetadata';
104
106
  export * from './ReqGetRangeWithCursor';
105
107
  export * from './ReqGetRangeWithIndex';
106
108
  export * from './ReqGetRangeWithIndexSortable';
@@ -117,6 +119,7 @@ export * from './ReqIsWhitelisted';
117
119
  export * from './RespChangeAccountTier';
118
120
  export * from './RespGetFastBridgeInfo';
119
121
  export * from './RespGetFastwithdrawalInfo';
122
+ export * from './RespPublicPoolsMetadata';
120
123
  export * from './RespSendTx';
121
124
  export * from './RespSendTxBatch';
122
125
  export * from './RespWithdrawalDelay';
package/openapi.json CHANGED
@@ -2174,6 +2174,82 @@
2174
2174
  "description": "Get public pools"
2175
2175
  }
2176
2176
  },
2177
+ "/api/v1/publicPoolsMetadata": {
2178
+ "get": {
2179
+ "summary": "publicPoolsMetadata",
2180
+ "operationId": "publicPoolsMetadata",
2181
+ "responses": {
2182
+ "200": {
2183
+ "description": "A successful response.",
2184
+ "schema": {
2185
+ "$ref": "#/definitions/RespPublicPoolsMetadata"
2186
+ }
2187
+ },
2188
+ "400": {
2189
+ "description": "Bad request",
2190
+ "schema": {
2191
+ "$ref": "#/definitions/ResultCode"
2192
+ }
2193
+ }
2194
+ },
2195
+ "parameters": [
2196
+ {
2197
+ "name": "authorization",
2198
+ "in": "header",
2199
+ "required": false,
2200
+ "type": "string"
2201
+ },
2202
+ {
2203
+ "name": "auth",
2204
+ "in": "query",
2205
+ "required": false,
2206
+ "type": "string"
2207
+ },
2208
+ {
2209
+ "name": "filter",
2210
+ "in": "query",
2211
+ "required": false,
2212
+ "type": "string",
2213
+ "enum": [
2214
+ "all",
2215
+ "user",
2216
+ "protocol",
2217
+ "account_index"
2218
+ ]
2219
+ },
2220
+ {
2221
+ "name": "index",
2222
+ "in": "query",
2223
+ "required": true,
2224
+ "type": "integer",
2225
+ "format": "int64"
2226
+ },
2227
+ {
2228
+ "name": "limit",
2229
+ "in": "query",
2230
+ "required": true,
2231
+ "type": "integer",
2232
+ "format": "int64",
2233
+ "minimum": 1,
2234
+ "maximum": 100
2235
+ },
2236
+ {
2237
+ "name": "account_index",
2238
+ "in": "query",
2239
+ "required": false,
2240
+ "type": "integer",
2241
+ "format": "int64"
2242
+ }
2243
+ ],
2244
+ "tags": [
2245
+ "account"
2246
+ ],
2247
+ "consumes": [
2248
+ "multipart/form-data"
2249
+ ],
2250
+ "description": "Get public pools metadata"
2251
+ }
2252
+ },
2177
2253
  "/api/v1/recentTrades": {
2178
2254
  "get": {
2179
2255
  "summary": "recentTrades",
@@ -6021,6 +6097,69 @@
6021
6097
  "share_prices"
6022
6098
  ]
6023
6099
  },
6100
+ "PublicPoolMetadata": {
6101
+ "type": "object",
6102
+ "properties": {
6103
+ "code": {
6104
+ "type": "integer",
6105
+ "format": "int32",
6106
+ "example": "200"
6107
+ },
6108
+ "message": {
6109
+ "type": "string"
6110
+ },
6111
+ "account_type": {
6112
+ "type": "integer",
6113
+ "format": "uint8",
6114
+ "example": "1"
6115
+ },
6116
+ "name": {
6117
+ "type": "string"
6118
+ },
6119
+ "l1_address": {
6120
+ "type": "string",
6121
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
6122
+ },
6123
+ "annual_percentage_yield": {
6124
+ "type": "number",
6125
+ "format": "double",
6126
+ "example": "20.5000"
6127
+ },
6128
+ "status": {
6129
+ "type": "integer",
6130
+ "format": "uint8",
6131
+ "example": "0"
6132
+ },
6133
+ "operator_fee": {
6134
+ "type": "string",
6135
+ "example": "100"
6136
+ },
6137
+ "total_asset_value": {
6138
+ "type": "string",
6139
+ "example": "19995"
6140
+ },
6141
+ "total_shares": {
6142
+ "type": "integer",
6143
+ "format": "int64",
6144
+ "example": "100000"
6145
+ },
6146
+ "account_share": {
6147
+ "$ref": "#/definitions/PublicPoolShare"
6148
+ }
6149
+ },
6150
+ "title": "PublicPoolMetadata",
6151
+ "required": [
6152
+ "code",
6153
+ "account_type",
6154
+ "name",
6155
+ "l1_address",
6156
+ "annual_percentage_yield",
6157
+ "status",
6158
+ "operator_fee",
6159
+ "total_asset_value",
6160
+ "total_shares"
6161
+ ]
6162
+ },
6024
6163
  "PublicPoolShare": {
6025
6164
  "type": "object",
6026
6165
  "properties": {
@@ -7045,6 +7184,42 @@
7045
7184
  "limit"
7046
7185
  ]
7047
7186
  },
7187
+ "ReqGetPublicPoolsMetadata": {
7188
+ "type": "object",
7189
+ "properties": {
7190
+ "auth": {
7191
+ "type": "string"
7192
+ },
7193
+ "filter": {
7194
+ "type": "string",
7195
+ "enum": [
7196
+ "all",
7197
+ "user",
7198
+ "protocol",
7199
+ "account_index"
7200
+ ]
7201
+ },
7202
+ "index": {
7203
+ "type": "integer",
7204
+ "format": "int64"
7205
+ },
7206
+ "limit": {
7207
+ "type": "integer",
7208
+ "format": "int64",
7209
+ "maximum": 100,
7210
+ "minimum": 1
7211
+ },
7212
+ "account_index": {
7213
+ "type": "integer",
7214
+ "format": "int64"
7215
+ }
7216
+ },
7217
+ "title": "ReqGetPublicPoolsMetadata",
7218
+ "required": [
7219
+ "index",
7220
+ "limit"
7221
+ ]
7222
+ },
7048
7223
  "ReqGetRangeWithCursor": {
7049
7224
  "type": "object",
7050
7225
  "properties": {
@@ -7499,6 +7674,30 @@
7499
7674
  "max_withdrawal_amount"
7500
7675
  ]
7501
7676
  },
7677
+ "RespPublicPoolsMetadata": {
7678
+ "type": "object",
7679
+ "properties": {
7680
+ "code": {
7681
+ "type": "integer",
7682
+ "format": "int32",
7683
+ "example": "200"
7684
+ },
7685
+ "message": {
7686
+ "type": "string"
7687
+ },
7688
+ "public_pools": {
7689
+ "type": "array",
7690
+ "items": {
7691
+ "$ref": "#/definitions/PublicPoolMetadata"
7692
+ }
7693
+ }
7694
+ },
7695
+ "title": "RespPublicPoolsMetadata",
7696
+ "required": [
7697
+ "code",
7698
+ "public_pools"
7699
+ ]
7700
+ },
7502
7701
  "RespSendTx": {
7503
7702
  "type": "object",
7504
7703
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.155",
3
+ "version": "1.0.156",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {