zklighter-perps 1.0.308 → 1.0.309

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.
@@ -86,6 +86,12 @@ export interface AccountMetadata {
86
86
  * @memberof AccountMetadata
87
87
  */
88
88
  metadata: SubAccountMetadata;
89
+ /**
90
+ * non-core instance the l1 address belongs to, e.g. "us"
91
+ * @type {string}
92
+ * @memberof AccountMetadata
93
+ */
94
+ instance: string;
89
95
  }
90
96
 
91
97
  /**
@@ -102,6 +108,7 @@ export function instanceOfAccountMetadata(value: object): value is AccountMetada
102
108
  if (!('agent_enabled' in value) || value['agent_enabled'] === undefined) return false;
103
109
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
104
110
  if (!('metadata' in value) || value['metadata'] === undefined) return false;
111
+ if (!('instance' in value) || value['instance'] === undefined) return false;
105
112
  return true;
106
113
  }
107
114
 
@@ -125,6 +132,7 @@ export function AccountMetadataFromJSONTyped(json: any, ignoreDiscriminator: boo
125
132
  'agent_enabled': json['agent_enabled'],
126
133
  'created_at': json['created_at'],
127
134
  'metadata': SubAccountMetadataFromJSON(json['metadata']),
135
+ 'instance': json['instance'],
128
136
  };
129
137
  }
130
138
 
@@ -144,6 +152,7 @@ export function AccountMetadataToJSON(value?: AccountMetadata | null): any {
144
152
  'agent_enabled': value['agent_enabled'],
145
153
  'created_at': value['created_at'],
146
154
  'metadata': SubAccountMetadataToJSON(value['metadata']),
155
+ 'instance': value['instance'],
147
156
  };
148
157
  }
149
158
 
@@ -212,6 +212,12 @@ export interface DetailedAccount {
212
212
  * @memberof DetailedAccount
213
213
  */
214
214
  metadata: SubAccountMetadata;
215
+ /**
216
+ * non-core instance the l1 address belongs to, e.g. "us"
217
+ * @type {string}
218
+ * @memberof DetailedAccount
219
+ */
220
+ instance: string;
215
221
  /**
216
222
  *
217
223
  * @type {Array<AccountPosition>}
@@ -306,6 +312,7 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
306
312
  if (!('agent_enabled' in value) || value['agent_enabled'] === undefined) return false;
307
313
  if (!('created_at' in value) || value['created_at'] === undefined) return false;
308
314
  if (!('metadata' in value) || value['metadata'] === undefined) return false;
315
+ if (!('instance' in value) || value['instance'] === undefined) return false;
309
316
  if (!('positions' in value) || value['positions'] === undefined) return false;
310
317
  if (!('assets' in value) || value['assets'] === undefined) return false;
311
318
  if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
@@ -351,6 +358,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
351
358
  'agent_enabled': json['agent_enabled'],
352
359
  'created_at': json['created_at'],
353
360
  'metadata': SubAccountMetadataFromJSON(json['metadata']),
361
+ 'instance': json['instance'],
354
362
  'positions': ((json['positions'] as Array<any>).map(AccountPositionFromJSON)),
355
363
  'bo_positions': json['bo_positions'] == null ? undefined : ((json['bo_positions'] as Array<any>).map(AccountBinaryOptionsPositionFromJSON)),
356
364
  'assets': ((json['assets'] as Array<any>).map(AccountAssetFromJSON)),
@@ -395,6 +403,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
395
403
  'agent_enabled': value['agent_enabled'],
396
404
  'created_at': value['created_at'],
397
405
  'metadata': SubAccountMetadataToJSON(value['metadata']),
406
+ 'instance': value['instance'],
398
407
  'positions': ((value['positions'] as Array<any>).map(AccountPositionToJSON)),
399
408
  'bo_positions': value['bo_positions'] == null ? undefined : ((value['bo_positions'] as Array<any>).map(AccountBinaryOptionsPositionToJSON)),
400
409
  'assets': ((value['assets'] as Array<any>).map(AccountAssetToJSON)),
package/openapi.json CHANGED
@@ -7591,6 +7591,10 @@
7591
7591
  },
7592
7592
  "metadata": {
7593
7593
  "$ref": "#/definitions/SubAccountMetadata"
7594
+ },
7595
+ "instance": {
7596
+ "type": "string",
7597
+ "description": " non-core instance the l1 address belongs to, e.g. \"us\""
7594
7598
  }
7595
7599
  },
7596
7600
  "title": "AccountMetadata",
@@ -7604,7 +7608,8 @@
7604
7608
  "can_rfq_market_ids",
7605
7609
  "agent_enabled",
7606
7610
  "created_at",
7607
- "metadata"
7611
+ "metadata",
7612
+ "instance"
7608
7613
  ]
7609
7614
  },
7610
7615
  "AccountMetadatas": {
@@ -9457,6 +9462,10 @@
9457
9462
  "metadata": {
9458
9463
  "$ref": "#/definitions/SubAccountMetadata"
9459
9464
  },
9465
+ "instance": {
9466
+ "type": "string",
9467
+ "description": " non-core instance the l1 address belongs to, e.g. \"us\""
9468
+ },
9460
9469
  "positions": {
9461
9470
  "type": "array",
9462
9471
  "items": {
@@ -9537,6 +9546,7 @@
9537
9546
  "agent_enabled",
9538
9547
  "created_at",
9539
9548
  "metadata",
9549
+ "instance",
9540
9550
  "positions",
9541
9551
  "assets",
9542
9552
  "total_asset_value",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.308",
3
+ "version": "1.0.309",
4
4
  "description": "Lighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {