zklighter-perps 1.0.196 → 1.0.198

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.
@@ -46,6 +46,9 @@ with open(FILE, "r") as f:
46
46
  if "total_funding_paid_out" in required_fields:
47
47
  required_fields.remove("total_funding_paid_out")
48
48
 
49
+ if "pending_unlocks" in required_fields:
50
+ required_fields.remove("pending_unlocks")
51
+
49
52
  if len(required_fields) > 0:
50
53
  data["definitions"][path]["required"] = required_fields
51
54
  else:
@@ -90,6 +90,7 @@ models/OrderBookOrders.ts
90
90
  models/OrderBookStats.ts
91
91
  models/OrderBooks.ts
92
92
  models/Orders.ts
93
+ models/PendingUnlock.ts
93
94
  models/PerpsMarketStats.ts
94
95
  models/PerpsOrderBookDetail.ts
95
96
  models/PnLEntry.ts
@@ -19,6 +19,12 @@ import {
19
19
  AccountAssetFromJSONTyped,
20
20
  AccountAssetToJSON,
21
21
  } from './AccountAsset';
22
+ import type { PendingUnlock } from './PendingUnlock';
23
+ import {
24
+ PendingUnlockFromJSON,
25
+ PendingUnlockFromJSONTyped,
26
+ PendingUnlockToJSON,
27
+ } from './PendingUnlock';
22
28
  import type { AccountPosition } from './AccountPosition';
23
29
  import {
24
30
  AccountPositionFromJSON,
@@ -188,6 +194,12 @@ export interface DetailedAccount {
188
194
  * @memberof DetailedAccount
189
195
  */
190
196
  shares: Array<PublicPoolShare>;
197
+ /**
198
+ *
199
+ * @type {Array<PendingUnlock>}
200
+ * @memberof DetailedAccount
201
+ */
202
+ pending_unlocks?: Array<PendingUnlock>;
191
203
  }
192
204
 
193
205
  /**
@@ -254,6 +266,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
254
266
  'cross_asset_value': json['cross_asset_value'],
255
267
  'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
256
268
  'shares': ((json['shares'] as Array<any>).map(PublicPoolShareFromJSON)),
269
+ 'pending_unlocks': json['pending_unlocks'] == null ? undefined : ((json['pending_unlocks'] as Array<any>).map(PendingUnlockFromJSON)),
257
270
  };
258
271
  }
259
272
 
@@ -287,6 +300,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
287
300
  'cross_asset_value': value['cross_asset_value'],
288
301
  'pool_info': PublicPoolInfoToJSON(value['pool_info']),
289
302
  'shares': ((value['shares'] as Array<any>).map(PublicPoolShareToJSON)),
303
+ 'pending_unlocks': value['pending_unlocks'] == null ? undefined : ((value['pending_unlocks'] as Array<any>).map(PendingUnlockToJSON)),
290
304
  };
291
305
  }
292
306
 
@@ -0,0 +1,79 @@
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 PendingUnlock
20
+ */
21
+ export interface PendingUnlock {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof PendingUnlock
26
+ */
27
+ apw_rt: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof PendingUnlock
32
+ */
33
+ apw_asi: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PendingUnlock
38
+ */
39
+ apw_amt: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PendingUnlock interface.
44
+ */
45
+ export function instanceOfPendingUnlock(value: object): value is PendingUnlock {
46
+ if (!('apw_rt' in value) || value['apw_rt'] === undefined) return false;
47
+ if (!('apw_asi' in value) || value['apw_asi'] === undefined) return false;
48
+ if (!('apw_amt' in value) || value['apw_amt'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function PendingUnlockFromJSON(json: any): PendingUnlock {
53
+ return PendingUnlockFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function PendingUnlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): PendingUnlock {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'apw_rt': json['apw_rt'],
63
+ 'apw_asi': json['apw_asi'],
64
+ 'apw_amt': json['apw_amt'],
65
+ };
66
+ }
67
+
68
+ export function PendingUnlockToJSON(value?: PendingUnlock | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'apw_rt': value['apw_rt'],
75
+ 'apw_asi': value['apw_asi'],
76
+ 'apw_amt': value['apw_amt'],
77
+ };
78
+ }
79
+
@@ -43,6 +43,12 @@ export interface PublicPoolShare {
43
43
  * @memberof PublicPoolShare
44
44
  */
45
45
  principal_amount: string;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof PublicPoolShare
50
+ */
51
+ entry_timestamp: number;
46
52
  }
47
53
 
48
54
  /**
@@ -53,6 +59,7 @@ export function instanceOfPublicPoolShare(value: object): value is PublicPoolSha
53
59
  if (!('shares_amount' in value) || value['shares_amount'] === undefined) return false;
54
60
  if (!('entry_usdc' in value) || value['entry_usdc'] === undefined) return false;
55
61
  if (!('principal_amount' in value) || value['principal_amount'] === undefined) return false;
62
+ if (!('entry_timestamp' in value) || value['entry_timestamp'] === undefined) return false;
56
63
  return true;
57
64
  }
58
65
 
@@ -70,6 +77,7 @@ export function PublicPoolShareFromJSONTyped(json: any, ignoreDiscriminator: boo
70
77
  'shares_amount': json['shares_amount'],
71
78
  'entry_usdc': json['entry_usdc'],
72
79
  'principal_amount': json['principal_amount'],
80
+ 'entry_timestamp': json['entry_timestamp'],
73
81
  };
74
82
  }
75
83
 
@@ -83,6 +91,7 @@ export function PublicPoolShareToJSON(value?: PublicPoolShare | null): any {
83
91
  'shares_amount': value['shares_amount'],
84
92
  'entry_usdc': value['entry_usdc'],
85
93
  'principal_amount': value['principal_amount'],
94
+ 'entry_timestamp': value['entry_timestamp'],
86
95
  };
87
96
  }
88
97
 
@@ -114,7 +114,9 @@ export const TransferHistoryItemTypeEnum = {
114
114
  L2StakeAssetInflow: 'L2StakeAssetInflow',
115
115
  L2StakeAssetOutflow: 'L2StakeAssetOutflow',
116
116
  L2UnstakeAssetInflow: 'L2UnstakeAssetInflow',
117
- L2UnstakeAssetOutflow: 'L2UnstakeAssetOutflow'
117
+ L2UnstakeAssetOutflow: 'L2UnstakeAssetOutflow',
118
+ L2ForceBurnSharesInflow: 'L2ForceBurnSharesInflow',
119
+ L2ForceBurnSharesOutflow: 'L2ForceBurnSharesOutflow'
118
120
  } as const;
119
121
  export type TransferHistoryItemTypeEnum = typeof TransferHistoryItemTypeEnum[keyof typeof TransferHistoryItemTypeEnum];
120
122
 
package/models/index.ts CHANGED
@@ -76,6 +76,7 @@ export * from './OrderBookOrders';
76
76
  export * from './OrderBookStats';
77
77
  export * from './OrderBooks';
78
78
  export * from './Orders';
79
+ export * from './PendingUnlock';
79
80
  export * from './PerpsMarketStats';
80
81
  export * from './PerpsOrderBookDetail';
81
82
  export * from './PnLEntry';
package/openapi.json CHANGED
@@ -5360,6 +5360,12 @@
5360
5360
  "items": {
5361
5361
  "$ref": "#/definitions/PublicPoolShare"
5362
5362
  }
5363
+ },
5364
+ "pending_unlocks": {
5365
+ "type": "array",
5366
+ "items": {
5367
+ "$ref": "#/definitions/PendingUnlock"
5368
+ }
5363
5369
  }
5364
5370
  },
5365
5371
  "title": "DetailedAccount",
@@ -7053,6 +7059,31 @@
7053
7059
  "orders"
7054
7060
  ]
7055
7061
  },
7062
+ "PendingUnlock": {
7063
+ "type": "object",
7064
+ "properties": {
7065
+ "apw_rt": {
7066
+ "type": "integer",
7067
+ "format": "int64",
7068
+ "example": "1"
7069
+ },
7070
+ "apw_asi": {
7071
+ "type": "integer",
7072
+ "format": "int16",
7073
+ "example": "1"
7074
+ },
7075
+ "apw_amt": {
7076
+ "type": "string",
7077
+ "example": "1"
7078
+ }
7079
+ },
7080
+ "title": "PendingUnlock",
7081
+ "required": [
7082
+ "apw_rt",
7083
+ "apw_asi",
7084
+ "apw_amt"
7085
+ ]
7086
+ },
7056
7087
  "PerpsMarketStats": {
7057
7088
  "type": "object",
7058
7089
  "properties": {
@@ -7732,6 +7763,11 @@
7732
7763
  "principal_amount": {
7733
7764
  "type": "string",
7734
7765
  "example": "3000"
7766
+ },
7767
+ "entry_timestamp": {
7768
+ "type": "integer",
7769
+ "format": "int64",
7770
+ "example": "3600000"
7735
7771
  }
7736
7772
  },
7737
7773
  "title": "PublicPoolShare",
@@ -7739,7 +7775,8 @@
7739
7775
  "public_pool_index",
7740
7776
  "shares_amount",
7741
7777
  "entry_usdc",
7742
- "principal_amount"
7778
+ "principal_amount",
7779
+ "entry_timestamp"
7743
7780
  ]
7744
7781
  },
7745
7782
  "ReferralCode": {
@@ -10597,7 +10634,9 @@
10597
10634
  "L2StakeAssetInflow",
10598
10635
  "L2StakeAssetOutflow",
10599
10636
  "L2UnstakeAssetInflow",
10600
- "L2UnstakeAssetOutflow"
10637
+ "L2UnstakeAssetOutflow",
10638
+ "L2ForceBurnSharesInflow",
10639
+ "L2ForceBurnSharesOutflow"
10601
10640
  ]
10602
10641
  },
10603
10642
  "from_l1_address": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.196",
3
+ "version": "1.0.198",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {