zklighter-perps 1.0.197 → 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:
@@ -199,7 +199,7 @@ export interface DetailedAccount {
199
199
  * @type {Array<PendingUnlock>}
200
200
  * @memberof DetailedAccount
201
201
  */
202
- pending_unlocks: Array<PendingUnlock>;
202
+ pending_unlocks?: Array<PendingUnlock>;
203
203
  }
204
204
 
205
205
  /**
@@ -229,7 +229,6 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
229
229
  if (!('cross_asset_value' in value) || value['cross_asset_value'] === undefined) return false;
230
230
  if (!('pool_info' in value) || value['pool_info'] === undefined) return false;
231
231
  if (!('shares' in value) || value['shares'] === undefined) return false;
232
- if (!('pending_unlocks' in value) || value['pending_unlocks'] === undefined) return false;
233
232
  return true;
234
233
  }
235
234
 
@@ -267,7 +266,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
267
266
  'cross_asset_value': json['cross_asset_value'],
268
267
  'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
269
268
  'shares': ((json['shares'] as Array<any>).map(PublicPoolShareFromJSON)),
270
- 'pending_unlocks': ((json['pending_unlocks'] as Array<any>).map(PendingUnlockFromJSON)),
269
+ 'pending_unlocks': json['pending_unlocks'] == null ? undefined : ((json['pending_unlocks'] as Array<any>).map(PendingUnlockFromJSON)),
271
270
  };
272
271
  }
273
272
 
@@ -301,7 +300,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
301
300
  'cross_asset_value': value['cross_asset_value'],
302
301
  'pool_info': PublicPoolInfoToJSON(value['pool_info']),
303
302
  'shares': ((value['shares'] as Array<any>).map(PublicPoolShareToJSON)),
304
- 'pending_unlocks': ((value['pending_unlocks'] as Array<any>).map(PendingUnlockToJSON)),
303
+ 'pending_unlocks': value['pending_unlocks'] == null ? undefined : ((value['pending_unlocks'] as Array<any>).map(PendingUnlockToJSON)),
305
304
  };
306
305
  }
307
306
 
package/openapi.json CHANGED
@@ -5392,8 +5392,7 @@
5392
5392
  "total_asset_value",
5393
5393
  "cross_asset_value",
5394
5394
  "pool_info",
5395
- "shares",
5396
- "pending_unlocks"
5395
+ "shares"
5397
5396
  ]
5398
5397
  },
5399
5398
  "DetailedAccounts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.197",
3
+ "version": "1.0.198",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {