zklighter-perps 1.0.32 → 1.0.33
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.
- package/.openapi-generator/FILES +0 -2
- package/apis/InfoApi.ts +0 -46
- package/models/index.ts +0 -2
- package/openapi.json +0 -70
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -77,11 +77,9 @@ models/ReqGetRollbacks.ts
|
|
|
77
77
|
models/ReqGetTrades.ts
|
|
78
78
|
models/ReqGetTx.ts
|
|
79
79
|
models/ReqMarkNotifRead.ts
|
|
80
|
-
models/ReqSearch.ts
|
|
81
80
|
models/ResultCode.ts
|
|
82
81
|
models/Rollback.ts
|
|
83
82
|
models/Rollbacks.ts
|
|
84
|
-
models/Search.ts
|
|
85
83
|
models/SignBody.ts
|
|
86
84
|
models/SimpleOrder.ts
|
|
87
85
|
models/Status.ts
|
package/apis/InfoApi.ts
CHANGED
|
@@ -19,7 +19,6 @@ import type {
|
|
|
19
19
|
Layer2BasicInfo,
|
|
20
20
|
ResultCode,
|
|
21
21
|
Rollbacks,
|
|
22
|
-
Search,
|
|
23
22
|
} from '../models/index';
|
|
24
23
|
import {
|
|
25
24
|
Layer1BasicInfoFromJSON,
|
|
@@ -30,8 +29,6 @@ import {
|
|
|
30
29
|
ResultCodeToJSON,
|
|
31
30
|
RollbacksFromJSON,
|
|
32
31
|
RollbacksToJSON,
|
|
33
|
-
SearchFromJSON,
|
|
34
|
-
SearchToJSON,
|
|
35
32
|
} from '../models/index';
|
|
36
33
|
|
|
37
34
|
export interface RollbacksRequest {
|
|
@@ -40,10 +37,6 @@ export interface RollbacksRequest {
|
|
|
40
37
|
limit: number;
|
|
41
38
|
}
|
|
42
39
|
|
|
43
|
-
export interface SearchRequest {
|
|
44
|
-
keyword: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
40
|
/**
|
|
48
41
|
*
|
|
49
42
|
*/
|
|
@@ -166,43 +159,4 @@ export class InfoApi extends runtime.BaseAPI {
|
|
|
166
159
|
return await response.value();
|
|
167
160
|
}
|
|
168
161
|
|
|
169
|
-
/**
|
|
170
|
-
* Search with a specific keyword
|
|
171
|
-
* search
|
|
172
|
-
*/
|
|
173
|
-
async searchRaw(requestParameters: SearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Search>> {
|
|
174
|
-
if (requestParameters['keyword'] == null) {
|
|
175
|
-
throw new runtime.RequiredError(
|
|
176
|
-
'keyword',
|
|
177
|
-
'Required parameter "keyword" was null or undefined when calling search().'
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
const queryParameters: any = {};
|
|
182
|
-
|
|
183
|
-
if (requestParameters['keyword'] != null) {
|
|
184
|
-
queryParameters['keyword'] = requestParameters['keyword'];
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
188
|
-
|
|
189
|
-
const response = await this.request({
|
|
190
|
-
path: `/api/v1/search`,
|
|
191
|
-
method: 'GET',
|
|
192
|
-
headers: headerParameters,
|
|
193
|
-
query: queryParameters,
|
|
194
|
-
}, initOverrides);
|
|
195
|
-
|
|
196
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SearchFromJSON(jsonValue));
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Search with a specific keyword
|
|
201
|
-
* search
|
|
202
|
-
*/
|
|
203
|
-
async search(requestParameters: SearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Search> {
|
|
204
|
-
const response = await this.searchRaw(requestParameters, initOverrides);
|
|
205
|
-
return await response.value();
|
|
206
|
-
}
|
|
207
|
-
|
|
208
162
|
}
|
package/models/index.ts
CHANGED
|
@@ -69,11 +69,9 @@ export * from './ReqGetRollbacks';
|
|
|
69
69
|
export * from './ReqGetTrades';
|
|
70
70
|
export * from './ReqGetTx';
|
|
71
71
|
export * from './ReqMarkNotifRead';
|
|
72
|
-
export * from './ReqSearch';
|
|
73
72
|
export * from './ResultCode';
|
|
74
73
|
export * from './Rollback';
|
|
75
74
|
export * from './Rollbacks';
|
|
76
|
-
export * from './Search';
|
|
77
75
|
export * from './SignBody';
|
|
78
76
|
export * from './SimpleOrder';
|
|
79
77
|
export * from './Status';
|
package/openapi.json
CHANGED
|
@@ -1420,41 +1420,6 @@
|
|
|
1420
1420
|
"description": "Get rollbacks"
|
|
1421
1421
|
}
|
|
1422
1422
|
},
|
|
1423
|
-
"/api/v1/search": {
|
|
1424
|
-
"get": {
|
|
1425
|
-
"summary": "search",
|
|
1426
|
-
"operationId": "search",
|
|
1427
|
-
"responses": {
|
|
1428
|
-
"200": {
|
|
1429
|
-
"description": "A successful response.",
|
|
1430
|
-
"schema": {
|
|
1431
|
-
"$ref": "#/definitions/Search"
|
|
1432
|
-
}
|
|
1433
|
-
},
|
|
1434
|
-
"400": {
|
|
1435
|
-
"description": "Bad request",
|
|
1436
|
-
"schema": {
|
|
1437
|
-
"$ref": "#/definitions/ResultCode"
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
},
|
|
1441
|
-
"parameters": [
|
|
1442
|
-
{
|
|
1443
|
-
"name": "keyword",
|
|
1444
|
-
"in": "query",
|
|
1445
|
-
"required": true,
|
|
1446
|
-
"type": "string"
|
|
1447
|
-
}
|
|
1448
|
-
],
|
|
1449
|
-
"tags": [
|
|
1450
|
-
"info"
|
|
1451
|
-
],
|
|
1452
|
-
"consumes": [
|
|
1453
|
-
"multipart/form-data"
|
|
1454
|
-
],
|
|
1455
|
-
"description": "Search with a specific keyword"
|
|
1456
|
-
}
|
|
1457
|
-
},
|
|
1458
1423
|
"/api/v1/sendTx": {
|
|
1459
1424
|
"post": {
|
|
1460
1425
|
"summary": "sendTx",
|
|
@@ -4184,18 +4149,6 @@
|
|
|
4184
4149
|
"signature"
|
|
4185
4150
|
]
|
|
4186
4151
|
},
|
|
4187
|
-
"ReqSearch": {
|
|
4188
|
-
"type": "object",
|
|
4189
|
-
"properties": {
|
|
4190
|
-
"keyword": {
|
|
4191
|
-
"type": "string"
|
|
4192
|
-
}
|
|
4193
|
-
},
|
|
4194
|
-
"title": "ReqSearch",
|
|
4195
|
-
"required": [
|
|
4196
|
-
"keyword"
|
|
4197
|
-
]
|
|
4198
|
-
},
|
|
4199
4152
|
"ReqSendTx": {
|
|
4200
4153
|
"type": "object",
|
|
4201
4154
|
"properties": {
|
|
@@ -4308,29 +4261,6 @@
|
|
|
4308
4261
|
"rollbacks"
|
|
4309
4262
|
]
|
|
4310
4263
|
},
|
|
4311
|
-
"Search": {
|
|
4312
|
-
"type": "object",
|
|
4313
|
-
"properties": {
|
|
4314
|
-
"code": {
|
|
4315
|
-
"type": "integer",
|
|
4316
|
-
"format": "int32",
|
|
4317
|
-
"example": "100"
|
|
4318
|
-
},
|
|
4319
|
-
"message": {
|
|
4320
|
-
"type": "string"
|
|
4321
|
-
},
|
|
4322
|
-
"data_type": {
|
|
4323
|
-
"type": "integer",
|
|
4324
|
-
"format": "int32",
|
|
4325
|
-
"example": "1"
|
|
4326
|
-
}
|
|
4327
|
-
},
|
|
4328
|
-
"title": "Search",
|
|
4329
|
-
"required": [
|
|
4330
|
-
"code",
|
|
4331
|
-
"data_type"
|
|
4332
|
-
]
|
|
4333
|
-
},
|
|
4334
4264
|
"SignBody": {
|
|
4335
4265
|
"type": "object",
|
|
4336
4266
|
"properties": {
|