zklighter-perps 1.0.192 → 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.
@@ -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
@@ -7520,6 +7520,12 @@
7520
7520
  },
7521
7521
  "account_share": {
7522
7522
  "$ref": "#/definitions/PublicPoolShare"
7523
+ },
7524
+ "assets": {
7525
+ "type": "array",
7526
+ "items": {
7527
+ "$ref": "#/definitions/AccountAsset"
7528
+ }
7523
7529
  }
7524
7530
  },
7525
7531
  "title": "PublicPoolMetadata",
@@ -7538,7 +7544,8 @@
7538
7544
  "total_asset_value",
7539
7545
  "total_spot_value",
7540
7546
  "total_perps_value",
7541
- "total_shares"
7547
+ "total_shares",
7548
+ "assets"
7542
7549
  ]
7543
7550
  },
7544
7551
  "PublicPoolShare": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.192",
3
+ "version": "1.0.193",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {