zklighter-perps 1.0.67 → 1.0.68

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.
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
19
19
  * @interface AccountStats
20
20
  */
21
21
  export interface AccountStats {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AccountStats
26
+ */
27
+ collateral: string;
22
28
  /**
23
29
  *
24
30
  * @type {string}
@@ -55,6 +61,7 @@ export interface AccountStats {
55
61
  * Check if a given object implements the AccountStats interface.
56
62
  */
57
63
  export function instanceOfAccountStats(value: object): value is AccountStats {
64
+ if (!('collateral' in value) || value['collateral'] === undefined) return false;
58
65
  if (!('portfolio_value' in value) || value['portfolio_value'] === undefined) return false;
59
66
  if (!('leverage' in value) || value['leverage'] === undefined) return false;
60
67
  if (!('available_balance' in value) || value['available_balance'] === undefined) return false;
@@ -73,6 +80,7 @@ export function AccountStatsFromJSONTyped(json: any, ignoreDiscriminator: boolea
73
80
  }
74
81
  return {
75
82
 
83
+ 'collateral': json['collateral'],
76
84
  'portfolio_value': json['portfolio_value'],
77
85
  'leverage': json['leverage'],
78
86
  'available_balance': json['available_balance'],
@@ -87,6 +95,7 @@ export function AccountStatsToJSON(value?: AccountStats | null): any {
87
95
  }
88
96
  return {
89
97
 
98
+ 'collateral': value['collateral'],
90
99
  'portfolio_value': value['portfolio_value'],
91
100
  'leverage': value['leverage'],
92
101
  'available_balance': value['available_balance'],
package/openapi.json CHANGED
@@ -2015,6 +2015,10 @@
2015
2015
  "AccountStats": {
2016
2016
  "type": "object",
2017
2017
  "properties": {
2018
+ "collateral": {
2019
+ "type": "string",
2020
+ "example": "199955"
2021
+ },
2018
2022
  "portfolio_value": {
2019
2023
  "type": "string",
2020
2024
  "example": "199955"
@@ -2038,6 +2042,7 @@
2038
2042
  },
2039
2043
  "title": "AccountStats",
2040
2044
  "required": [
2045
+ "collateral",
2041
2046
  "portfolio_value",
2042
2047
  "leverage",
2043
2048
  "available_balance",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.67",
3
+ "version": "1.0.68",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {