zklighter-perps 1.0.190 → 1.0.191

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.
@@ -79,6 +79,24 @@ export interface PnLEntry {
79
79
  * @memberof PnLEntry
80
80
  */
81
81
  pool_outflow: number;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof PnLEntry
86
+ */
87
+ staking_pnl: number;
88
+ /**
89
+ *
90
+ * @type {number}
91
+ * @memberof PnLEntry
92
+ */
93
+ staking_inflow: number;
94
+ /**
95
+ *
96
+ * @type {number}
97
+ * @memberof PnLEntry
98
+ */
99
+ staking_outflow: number;
82
100
  /**
83
101
  *
84
102
  * @type {number}
@@ -101,6 +119,9 @@ export function instanceOfPnLEntry(value: object): value is PnLEntry {
101
119
  if (!('pool_pnl' in value) || value['pool_pnl'] === undefined) return false;
102
120
  if (!('pool_inflow' in value) || value['pool_inflow'] === undefined) return false;
103
121
  if (!('pool_outflow' in value) || value['pool_outflow'] === undefined) return false;
122
+ if (!('staking_pnl' in value) || value['staking_pnl'] === undefined) return false;
123
+ if (!('staking_inflow' in value) || value['staking_inflow'] === undefined) return false;
124
+ if (!('staking_outflow' in value) || value['staking_outflow'] === undefined) return false;
104
125
  if (!('pool_total_shares' in value) || value['pool_total_shares'] === undefined) return false;
105
126
  return true;
106
127
  }
@@ -125,6 +146,9 @@ export function PnLEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
125
146
  'pool_pnl': json['pool_pnl'],
126
147
  'pool_inflow': json['pool_inflow'],
127
148
  'pool_outflow': json['pool_outflow'],
149
+ 'staking_pnl': json['staking_pnl'],
150
+ 'staking_inflow': json['staking_inflow'],
151
+ 'staking_outflow': json['staking_outflow'],
128
152
  'pool_total_shares': json['pool_total_shares'],
129
153
  };
130
154
  }
@@ -145,6 +169,9 @@ export function PnLEntryToJSON(value?: PnLEntry | null): any {
145
169
  'pool_pnl': value['pool_pnl'],
146
170
  'pool_inflow': value['pool_inflow'],
147
171
  'pool_outflow': value['pool_outflow'],
172
+ 'staking_pnl': value['staking_pnl'],
173
+ 'staking_inflow': value['staking_inflow'],
174
+ 'staking_outflow': value['staking_outflow'],
148
175
  'pool_total_shares': value['pool_total_shares'],
149
176
  };
150
177
  }
@@ -104,6 +104,18 @@ export interface PublicPoolMetadata {
104
104
  * @memberof PublicPoolMetadata
105
105
  */
106
106
  total_asset_value: string;
107
+ /**
108
+ *
109
+ * @type {string}
110
+ * @memberof PublicPoolMetadata
111
+ */
112
+ total_spot_value: string;
113
+ /**
114
+ *
115
+ * @type {string}
116
+ * @memberof PublicPoolMetadata
117
+ */
118
+ total_perps_value: string;
107
119
  /**
108
120
  *
109
121
  * @type {number}
@@ -134,6 +146,8 @@ export function instanceOfPublicPoolMetadata(value: object): value is PublicPool
134
146
  if (!('status' in value) || value['status'] === undefined) return false;
135
147
  if (!('operator_fee' in value) || value['operator_fee'] === undefined) return false;
136
148
  if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
149
+ if (!('total_spot_value' in value) || value['total_spot_value'] === undefined) return false;
150
+ if (!('total_perps_value' in value) || value['total_perps_value'] === undefined) return false;
137
151
  if (!('total_shares' in value) || value['total_shares'] === undefined) return false;
138
152
  return true;
139
153
  }
@@ -161,6 +175,8 @@ export function PublicPoolMetadataFromJSONTyped(json: any, ignoreDiscriminator:
161
175
  'status': json['status'],
162
176
  'operator_fee': json['operator_fee'],
163
177
  'total_asset_value': json['total_asset_value'],
178
+ 'total_spot_value': json['total_spot_value'],
179
+ 'total_perps_value': json['total_perps_value'],
164
180
  'total_shares': json['total_shares'],
165
181
  'account_share': json['account_share'] == null ? undefined : PublicPoolShareFromJSON(json['account_share']),
166
182
  };
@@ -185,6 +201,8 @@ export function PublicPoolMetadataToJSON(value?: PublicPoolMetadata | null): any
185
201
  'status': value['status'],
186
202
  'operator_fee': value['operator_fee'],
187
203
  'total_asset_value': value['total_asset_value'],
204
+ 'total_spot_value': value['total_spot_value'],
205
+ 'total_perps_value': value['total_perps_value'],
188
206
  'total_shares': value['total_shares'],
189
207
  'account_share': PublicPoolShareToJSON(value['account_share']),
190
208
  };
package/openapi.json CHANGED
@@ -7243,6 +7243,21 @@
7243
7243
  "format": "double",
7244
7244
  "example": "12.0"
7245
7245
  },
7246
+ "staking_pnl": {
7247
+ "type": "number",
7248
+ "format": "double",
7249
+ "example": "12.0"
7250
+ },
7251
+ "staking_inflow": {
7252
+ "type": "number",
7253
+ "format": "double",
7254
+ "example": "12.0"
7255
+ },
7256
+ "staking_outflow": {
7257
+ "type": "number",
7258
+ "format": "double",
7259
+ "example": "12.0"
7260
+ },
7246
7261
  "pool_total_shares": {
7247
7262
  "type": "number",
7248
7263
  "format": "double",
@@ -7261,6 +7276,9 @@
7261
7276
  "pool_pnl",
7262
7277
  "pool_inflow",
7263
7278
  "pool_outflow",
7279
+ "staking_pnl",
7280
+ "staking_inflow",
7281
+ "staking_outflow",
7264
7282
  "pool_total_shares"
7265
7283
  ]
7266
7284
  },
@@ -7481,6 +7499,14 @@
7481
7499
  "type": "string",
7482
7500
  "example": "19995"
7483
7501
  },
7502
+ "total_spot_value": {
7503
+ "type": "string",
7504
+ "example": "19995"
7505
+ },
7506
+ "total_perps_value": {
7507
+ "type": "string",
7508
+ "example": "19995"
7509
+ },
7484
7510
  "total_shares": {
7485
7511
  "type": "integer",
7486
7512
  "format": "int64",
@@ -7504,6 +7530,8 @@
7504
7530
  "status",
7505
7531
  "operator_fee",
7506
7532
  "total_asset_value",
7533
+ "total_spot_value",
7534
+ "total_perps_value",
7507
7535
  "total_shares"
7508
7536
  ]
7509
7537
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.190",
3
+ "version": "1.0.191",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {