zklighter-perps 1.0.58 → 1.0.60

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.
@@ -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
@@ -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',
@@ -37,6 +37,12 @@ export interface LeaderboardEntry {
37
37
  * @memberof LeaderboardEntry
38
38
  */
39
39
  entry: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof LeaderboardEntry
44
+ */
45
+ entryId: number;
40
46
  }
41
47
 
42
48
  /**
@@ -46,6 +52,7 @@ export function instanceOfLeaderboardEntry(value: object): value is LeaderboardE
46
52
  if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
47
53
  if (!('points' in value) || value['points'] === undefined) return false;
48
54
  if (!('entry' in value) || value['entry'] === undefined) return false;
55
+ if (!('entryId' in value) || value['entryId'] === undefined) return false;
49
56
  return true;
50
57
  }
51
58
 
@@ -62,6 +69,7 @@ export function LeaderboardEntryFromJSONTyped(json: any, ignoreDiscriminator: bo
62
69
  'l1_address': json['l1_address'],
63
70
  'points': json['points'],
64
71
  'entry': json['entry'],
72
+ 'entryId': json['entryId'],
65
73
  };
66
74
  }
67
75
 
@@ -74,6 +82,7 @@ export function LeaderboardEntryToJSON(value?: LeaderboardEntry | null): any {
74
82
  'l1_address': value['l1_address'],
75
83
  'points': value['points'],
76
84
  'entry': value['entry'],
85
+ 'entryId': value['entryId'],
77
86
  };
78
87
  }
79
88
 
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
@@ -2831,13 +2831,18 @@
2831
2831
  "entry": {
2832
2832
  "type": "integer",
2833
2833
  "format": "int32"
2834
+ },
2835
+ "entryId": {
2836
+ "type": "integer",
2837
+ "format": "int32"
2834
2838
  }
2835
2839
  },
2836
2840
  "title": "LeaderboardEntry",
2837
2841
  "required": [
2838
2842
  "l1_address",
2839
2843
  "points",
2840
- "entry"
2844
+ "entry",
2845
+ "entryId"
2841
2846
  ]
2842
2847
  },
2843
2848
  "Liquidation": {
@@ -3583,29 +3588,6 @@
3583
3588
  "orders"
3584
3589
  ]
3585
3590
  },
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
3591
  "PnLEntry": {
3610
3592
  "type": "object",
3611
3593
  "properties": {
@@ -4326,31 +4308,6 @@
4326
4308
  },
4327
4309
  "title": "ReqGetOrderBooks"
4328
4310
  },
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
4311
  "ReqGetPublicPools": {
4355
4312
  "type": "object",
4356
4313
  "properties": {
@@ -4570,6 +4527,10 @@
4570
4527
  },
4571
4528
  "tx_info": {
4572
4529
  "type": "string"
4530
+ },
4531
+ "price_protection": {
4532
+ "type": "boolean",
4533
+ "format": "boolean"
4573
4534
  }
4574
4535
  },
4575
4536
  "title": "ReqSendTx",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.58",
3
+ "version": "1.0.60",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {