zklighter-perps 1.0.58 → 1.0.59
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/TransactionApi.ts +5 -0
- package/models/index.ts +0 -2
- package/openapi.json +4 -48
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -48,7 +48,6 @@ models/OrderBookOrders.ts
|
|
|
48
48
|
models/OrderBookStats.ts
|
|
49
49
|
models/OrderBooks.ts
|
|
50
50
|
models/Orders.ts
|
|
51
|
-
models/Permission.ts
|
|
52
51
|
models/PnLEntry.ts
|
|
53
52
|
models/PositionFunding.ts
|
|
54
53
|
models/PriceLevel.ts
|
|
@@ -77,7 +76,6 @@ models/ReqGetNextNonce.ts
|
|
|
77
76
|
models/ReqGetOrderBookDetails.ts
|
|
78
77
|
models/ReqGetOrderBookOrders.ts
|
|
79
78
|
models/ReqGetOrderBooks.ts
|
|
80
|
-
models/ReqGetPermission.ts
|
|
81
79
|
models/ReqGetPublicPools.ts
|
|
82
80
|
models/ReqGetRangeWithCursor.ts
|
|
83
81
|
models/ReqGetRangeWithIndex.ts
|
package/apis/TransactionApi.ts
CHANGED
|
@@ -69,6 +69,7 @@ export interface PendingTxsRequest {
|
|
|
69
69
|
export interface SendTxRequest {
|
|
70
70
|
tx_type: number;
|
|
71
71
|
tx_info: string;
|
|
72
|
+
price_protection?: boolean;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
export interface SendTxBatchRequest {
|
|
@@ -414,6 +415,10 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
414
415
|
formParams.append('tx_info', requestParameters['tx_info'] as any);
|
|
415
416
|
}
|
|
416
417
|
|
|
418
|
+
if (requestParameters['price_protection'] != null) {
|
|
419
|
+
formParams.append('price_protection', requestParameters['price_protection'] as any);
|
|
420
|
+
}
|
|
421
|
+
|
|
417
422
|
const response = await this.request({
|
|
418
423
|
path: `/api/v1/sendTx`,
|
|
419
424
|
method: 'POST',
|
package/models/index.ts
CHANGED
|
@@ -40,7 +40,6 @@ export * from './OrderBookOrders';
|
|
|
40
40
|
export * from './OrderBookStats';
|
|
41
41
|
export * from './OrderBooks';
|
|
42
42
|
export * from './Orders';
|
|
43
|
-
export * from './Permission';
|
|
44
43
|
export * from './PnLEntry';
|
|
45
44
|
export * from './PositionFunding';
|
|
46
45
|
export * from './PriceLevel';
|
|
@@ -69,7 +68,6 @@ export * from './ReqGetNextNonce';
|
|
|
69
68
|
export * from './ReqGetOrderBookDetails';
|
|
70
69
|
export * from './ReqGetOrderBookOrders';
|
|
71
70
|
export * from './ReqGetOrderBooks';
|
|
72
|
-
export * from './ReqGetPermission';
|
|
73
71
|
export * from './ReqGetPublicPools';
|
|
74
72
|
export * from './ReqGetRangeWithCursor';
|
|
75
73
|
export * from './ReqGetRangeWithIndex';
|
package/openapi.json
CHANGED
|
@@ -3583,29 +3583,6 @@
|
|
|
3583
3583
|
"orders"
|
|
3584
3584
|
]
|
|
3585
3585
|
},
|
|
3586
|
-
"Permission": {
|
|
3587
|
-
"type": "object",
|
|
3588
|
-
"properties": {
|
|
3589
|
-
"code": {
|
|
3590
|
-
"type": "integer",
|
|
3591
|
-
"format": "int32",
|
|
3592
|
-
"example": "200"
|
|
3593
|
-
},
|
|
3594
|
-
"message": {
|
|
3595
|
-
"type": "string"
|
|
3596
|
-
},
|
|
3597
|
-
"permit": {
|
|
3598
|
-
"type": "boolean",
|
|
3599
|
-
"format": "boolean",
|
|
3600
|
-
"example": "true"
|
|
3601
|
-
}
|
|
3602
|
-
},
|
|
3603
|
-
"title": "Permission",
|
|
3604
|
-
"required": [
|
|
3605
|
-
"code",
|
|
3606
|
-
"permit"
|
|
3607
|
-
]
|
|
3608
|
-
},
|
|
3609
3586
|
"PnLEntry": {
|
|
3610
3587
|
"type": "object",
|
|
3611
3588
|
"properties": {
|
|
@@ -4326,31 +4303,6 @@
|
|
|
4326
4303
|
},
|
|
4327
4304
|
"title": "ReqGetOrderBooks"
|
|
4328
4305
|
},
|
|
4329
|
-
"ReqGetPermission": {
|
|
4330
|
-
"type": "object",
|
|
4331
|
-
"properties": {
|
|
4332
|
-
"by": {
|
|
4333
|
-
"type": "string",
|
|
4334
|
-
"enum": [
|
|
4335
|
-
"index",
|
|
4336
|
-
"l1_address"
|
|
4337
|
-
]
|
|
4338
|
-
},
|
|
4339
|
-
"value": {
|
|
4340
|
-
"type": "string"
|
|
4341
|
-
},
|
|
4342
|
-
"tx_type": {
|
|
4343
|
-
"type": "integer",
|
|
4344
|
-
"format": "uint8"
|
|
4345
|
-
}
|
|
4346
|
-
},
|
|
4347
|
-
"title": "ReqGetPermission",
|
|
4348
|
-
"required": [
|
|
4349
|
-
"by",
|
|
4350
|
-
"value",
|
|
4351
|
-
"tx_type"
|
|
4352
|
-
]
|
|
4353
|
-
},
|
|
4354
4306
|
"ReqGetPublicPools": {
|
|
4355
4307
|
"type": "object",
|
|
4356
4308
|
"properties": {
|
|
@@ -4570,6 +4522,10 @@
|
|
|
4570
4522
|
},
|
|
4571
4523
|
"tx_info": {
|
|
4572
4524
|
"type": "string"
|
|
4525
|
+
},
|
|
4526
|
+
"price_protection": {
|
|
4527
|
+
"type": "boolean",
|
|
4528
|
+
"format": "boolean"
|
|
4573
4529
|
}
|
|
4574
4530
|
},
|
|
4575
4531
|
"title": "ReqSendTx",
|