zklighter-perps 1.0.191 → 1.0.193

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.
@@ -103,6 +103,12 @@ export interface PnLEntry {
103
103
  * @memberof PnLEntry
104
104
  */
105
105
  pool_total_shares: number;
106
+ /**
107
+ *
108
+ * @type {number}
109
+ * @memberof PnLEntry
110
+ */
111
+ staked_lit: number;
106
112
  }
107
113
 
108
114
  /**
@@ -123,6 +129,7 @@ export function instanceOfPnLEntry(value: object): value is PnLEntry {
123
129
  if (!('staking_inflow' in value) || value['staking_inflow'] === undefined) return false;
124
130
  if (!('staking_outflow' in value) || value['staking_outflow'] === undefined) return false;
125
131
  if (!('pool_total_shares' in value) || value['pool_total_shares'] === undefined) return false;
132
+ if (!('staked_lit' in value) || value['staked_lit'] === undefined) return false;
126
133
  return true;
127
134
  }
128
135
 
@@ -150,6 +157,7 @@ export function PnLEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
150
157
  'staking_inflow': json['staking_inflow'],
151
158
  'staking_outflow': json['staking_outflow'],
152
159
  'pool_total_shares': json['pool_total_shares'],
160
+ 'staked_lit': json['staked_lit'],
153
161
  };
154
162
  }
155
163
 
@@ -173,6 +181,7 @@ export function PnLEntryToJSON(value?: PnLEntry | null): any {
173
181
  'staking_inflow': value['staking_inflow'],
174
182
  'staking_outflow': value['staking_outflow'],
175
183
  'pool_total_shares': value['pool_total_shares'],
184
+ 'staked_lit': value['staked_lit'],
176
185
  };
177
186
  }
178
187
 
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { AccountAsset } from './AccountAsset';
17
+ import {
18
+ AccountAssetFromJSON,
19
+ AccountAssetFromJSONTyped,
20
+ AccountAssetToJSON,
21
+ } from './AccountAsset';
16
22
  import type { PublicPoolShare } from './PublicPoolShare';
17
23
  import {
18
24
  PublicPoolShareFromJSON,
@@ -128,6 +134,12 @@ export interface PublicPoolMetadata {
128
134
  * @memberof PublicPoolMetadata
129
135
  */
130
136
  account_share?: PublicPoolShare;
137
+ /**
138
+ *
139
+ * @type {Array<AccountAsset>}
140
+ * @memberof PublicPoolMetadata
141
+ */
142
+ assets: Array<AccountAsset>;
131
143
  }
132
144
 
133
145
  /**
@@ -149,6 +161,7 @@ export function instanceOfPublicPoolMetadata(value: object): value is PublicPool
149
161
  if (!('total_spot_value' in value) || value['total_spot_value'] === undefined) return false;
150
162
  if (!('total_perps_value' in value) || value['total_perps_value'] === undefined) return false;
151
163
  if (!('total_shares' in value) || value['total_shares'] === undefined) return false;
164
+ if (!('assets' in value) || value['assets'] === undefined) return false;
152
165
  return true;
153
166
  }
154
167
 
@@ -179,6 +192,7 @@ export function PublicPoolMetadataFromJSONTyped(json: any, ignoreDiscriminator:
179
192
  'total_perps_value': json['total_perps_value'],
180
193
  'total_shares': json['total_shares'],
181
194
  'account_share': json['account_share'] == null ? undefined : PublicPoolShareFromJSON(json['account_share']),
195
+ 'assets': ((json['assets'] as Array<any>).map(AccountAssetFromJSON)),
182
196
  };
183
197
  }
184
198
 
@@ -205,6 +219,7 @@ export function PublicPoolMetadataToJSON(value?: PublicPoolMetadata | null): any
205
219
  'total_perps_value': value['total_perps_value'],
206
220
  'total_shares': value['total_shares'],
207
221
  'account_share': PublicPoolShareToJSON(value['account_share']),
222
+ 'assets': ((value['assets'] as Array<any>).map(AccountAssetToJSON)),
208
223
  };
209
224
  }
210
225
 
package/openapi.json CHANGED
@@ -7262,6 +7262,11 @@
7262
7262
  "type": "number",
7263
7263
  "format": "double",
7264
7264
  "example": "12.0"
7265
+ },
7266
+ "staked_lit": {
7267
+ "type": "number",
7268
+ "format": "double",
7269
+ "example": "12.0"
7265
7270
  }
7266
7271
  },
7267
7272
  "title": "PnLEntry",
@@ -7279,7 +7284,8 @@
7279
7284
  "staking_pnl",
7280
7285
  "staking_inflow",
7281
7286
  "staking_outflow",
7282
- "pool_total_shares"
7287
+ "pool_total_shares",
7288
+ "staked_lit"
7283
7289
  ]
7284
7290
  },
7285
7291
  "PositionFunding": {
@@ -7514,6 +7520,12 @@
7514
7520
  },
7515
7521
  "account_share": {
7516
7522
  "$ref": "#/definitions/PublicPoolShare"
7523
+ },
7524
+ "assets": {
7525
+ "type": "array",
7526
+ "items": {
7527
+ "$ref": "#/definitions/AccountAsset"
7528
+ }
7517
7529
  }
7518
7530
  },
7519
7531
  "title": "PublicPoolMetadata",
@@ -7532,7 +7544,8 @@
7532
7544
  "total_asset_value",
7533
7545
  "total_spot_value",
7534
7546
  "total_perps_value",
7535
- "total_shares"
7547
+ "total_shares",
7548
+ "assets"
7536
7549
  ]
7537
7550
  },
7538
7551
  "PublicPoolShare": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.191",
3
+ "version": "1.0.193",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {