zklighter-perps 1.0.123 → 1.0.124
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/apis/AccountApi.ts +10 -0
- package/models/LiqTrade.ts +4 -4
- package/models/ReqGetLeaderboard.ts +8 -0
- package/openapi.json +23 -8
- package/package.json +1 -1
package/apis/AccountApi.ts
CHANGED
|
@@ -101,7 +101,9 @@ export interface L1MetadataRequest {
|
|
|
101
101
|
|
|
102
102
|
export interface LeaderboardRequest {
|
|
103
103
|
type: LeaderboardTypeEnum;
|
|
104
|
+
authorization?: string;
|
|
104
105
|
l1_address?: string;
|
|
106
|
+
auth?: string;
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
export interface LiquidationsRequest {
|
|
@@ -533,8 +535,16 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
533
535
|
queryParameters['l1_address'] = requestParameters['l1_address'];
|
|
534
536
|
}
|
|
535
537
|
|
|
538
|
+
if (requestParameters['auth'] != null) {
|
|
539
|
+
queryParameters['auth'] = requestParameters['auth'];
|
|
540
|
+
}
|
|
541
|
+
|
|
536
542
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
537
543
|
|
|
544
|
+
if (requestParameters['authorization'] != null) {
|
|
545
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
546
|
+
}
|
|
547
|
+
|
|
538
548
|
const response = await this.request({
|
|
539
549
|
path: `/api/v1/leaderboard`,
|
|
540
550
|
method: 'GET',
|
package/models/LiqTrade.ts
CHANGED
|
@@ -33,16 +33,16 @@ export interface LiqTrade {
|
|
|
33
33
|
size: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {string}
|
|
37
37
|
* @memberof LiqTrade
|
|
38
38
|
*/
|
|
39
|
-
taker_fee:
|
|
39
|
+
taker_fee: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof LiqTrade
|
|
44
44
|
*/
|
|
45
|
-
maker_fee:
|
|
45
|
+
maker_fee: string;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -31,6 +31,12 @@ export interface ReqGetLeaderboard {
|
|
|
31
31
|
* @memberof ReqGetLeaderboard
|
|
32
32
|
*/
|
|
33
33
|
l1_address?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ReqGetLeaderboard
|
|
38
|
+
*/
|
|
39
|
+
auth?: string;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
|
|
@@ -64,6 +70,7 @@ export function ReqGetLeaderboardFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
64
70
|
|
|
65
71
|
'type': json['type'],
|
|
66
72
|
'l1_address': json['l1_address'] == null ? undefined : json['l1_address'],
|
|
73
|
+
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
67
74
|
};
|
|
68
75
|
}
|
|
69
76
|
|
|
@@ -75,6 +82,7 @@ export function ReqGetLeaderboardToJSON(value?: ReqGetLeaderboard | null): any {
|
|
|
75
82
|
|
|
76
83
|
'type': value['type'],
|
|
77
84
|
'l1_address': value['l1_address'],
|
|
85
|
+
'auth': value['auth'],
|
|
78
86
|
};
|
|
79
87
|
}
|
|
80
88
|
|
package/openapi.json
CHANGED
|
@@ -1419,6 +1419,12 @@
|
|
|
1419
1419
|
}
|
|
1420
1420
|
},
|
|
1421
1421
|
"parameters": [
|
|
1422
|
+
{
|
|
1423
|
+
"name": "authorization",
|
|
1424
|
+
"in": "header",
|
|
1425
|
+
"required": false,
|
|
1426
|
+
"type": "string"
|
|
1427
|
+
},
|
|
1422
1428
|
{
|
|
1423
1429
|
"name": "type",
|
|
1424
1430
|
"in": "query",
|
|
@@ -1434,6 +1440,12 @@
|
|
|
1434
1440
|
"in": "query",
|
|
1435
1441
|
"required": false,
|
|
1436
1442
|
"type": "string"
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
"name": "auth",
|
|
1446
|
+
"in": "query",
|
|
1447
|
+
"required": false,
|
|
1448
|
+
"type": "string"
|
|
1437
1449
|
}
|
|
1438
1450
|
],
|
|
1439
1451
|
"tags": [
|
|
@@ -1490,7 +1502,8 @@
|
|
|
1490
1502
|
"in": "query",
|
|
1491
1503
|
"required": false,
|
|
1492
1504
|
"type": "integer",
|
|
1493
|
-
"format": "uint8"
|
|
1505
|
+
"format": "uint8",
|
|
1506
|
+
"default": "255"
|
|
1494
1507
|
},
|
|
1495
1508
|
{
|
|
1496
1509
|
"name": "cursor",
|
|
@@ -4369,12 +4382,10 @@
|
|
|
4369
4382
|
"type": "string"
|
|
4370
4383
|
},
|
|
4371
4384
|
"taker_fee": {
|
|
4372
|
-
"type": "
|
|
4373
|
-
"format": "int32"
|
|
4385
|
+
"type": "string"
|
|
4374
4386
|
},
|
|
4375
4387
|
"maker_fee": {
|
|
4376
|
-
"type": "
|
|
4377
|
-
"format": "int32"
|
|
4388
|
+
"type": "string"
|
|
4378
4389
|
}
|
|
4379
4390
|
},
|
|
4380
4391
|
"title": "LiqTrade",
|
|
@@ -4442,8 +4453,8 @@
|
|
|
4442
4453
|
"mark_prices": {
|
|
4443
4454
|
"type": "object",
|
|
4444
4455
|
"additionalProperties": {
|
|
4445
|
-
"type": "
|
|
4446
|
-
"format": "
|
|
4456
|
+
"type": "number",
|
|
4457
|
+
"format": "double"
|
|
4447
4458
|
}
|
|
4448
4459
|
}
|
|
4449
4460
|
},
|
|
@@ -6350,6 +6361,9 @@
|
|
|
6350
6361
|
},
|
|
6351
6362
|
"l1_address": {
|
|
6352
6363
|
"type": "string"
|
|
6364
|
+
},
|
|
6365
|
+
"auth": {
|
|
6366
|
+
"type": "string"
|
|
6353
6367
|
}
|
|
6354
6368
|
},
|
|
6355
6369
|
"title": "ReqGetLeaderboard",
|
|
@@ -6370,7 +6384,8 @@
|
|
|
6370
6384
|
},
|
|
6371
6385
|
"market_id": {
|
|
6372
6386
|
"type": "integer",
|
|
6373
|
-
"format": "uint8"
|
|
6387
|
+
"format": "uint8",
|
|
6388
|
+
"default": "255"
|
|
6374
6389
|
},
|
|
6375
6390
|
"cursor": {
|
|
6376
6391
|
"type": "string"
|