zklighter-perps 1.0.39 → 1.0.40

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.
@@ -77,7 +77,8 @@ export interface SendTxBatchRequest {
77
77
  }
78
78
 
79
79
  export interface SetAccountMetadataRequest {
80
- account_index: number;
80
+ master_account_index: number;
81
+ target_account_index: number;
81
82
  api_key_index: number;
82
83
  metadata: string;
83
84
  signature: string;
@@ -503,10 +504,17 @@ export class TransactionApi extends runtime.BaseAPI {
503
504
  * setAccountMetadata
504
505
  */
505
506
  async setAccountMetadataRaw(requestParameters: SetAccountMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResultCode>> {
506
- if (requestParameters['account_index'] == null) {
507
+ if (requestParameters['master_account_index'] == null) {
507
508
  throw new runtime.RequiredError(
508
- 'account_index',
509
- 'Required parameter "account_index" was null or undefined when calling setAccountMetadata().'
509
+ 'master_account_index',
510
+ 'Required parameter "master_account_index" was null or undefined when calling setAccountMetadata().'
511
+ );
512
+ }
513
+
514
+ if (requestParameters['target_account_index'] == null) {
515
+ throw new runtime.RequiredError(
516
+ 'target_account_index',
517
+ 'Required parameter "target_account_index" was null or undefined when calling setAccountMetadata().'
510
518
  );
511
519
  }
512
520
 
@@ -549,8 +557,12 @@ export class TransactionApi extends runtime.BaseAPI {
549
557
  formParams = new URLSearchParams();
550
558
  }
551
559
 
552
- if (requestParameters['account_index'] != null) {
553
- formParams.append('account_index', requestParameters['account_index'] as any);
560
+ if (requestParameters['master_account_index'] != null) {
561
+ formParams.append('master_account_index', requestParameters['master_account_index'] as any);
562
+ }
563
+
564
+ if (requestParameters['target_account_index'] != null) {
565
+ formParams.append('target_account_index', requestParameters['target_account_index'] as any);
554
566
  }
555
567
 
556
568
  if (requestParameters['api_key_index'] != null) {
package/openapi.json CHANGED
@@ -4417,7 +4417,11 @@
4417
4417
  "ReqSetAccountMetadata": {
4418
4418
  "type": "object",
4419
4419
  "properties": {
4420
- "account_index": {
4420
+ "master_account_index": {
4421
+ "type": "integer",
4422
+ "format": "int64"
4423
+ },
4424
+ "target_account_index": {
4421
4425
  "type": "integer",
4422
4426
  "format": "int64"
4423
4427
  },
@@ -4434,7 +4438,8 @@
4434
4438
  },
4435
4439
  "title": "ReqSetAccountMetadata",
4436
4440
  "required": [
4437
- "account_index",
4441
+ "master_account_index",
4442
+ "target_account_index",
4438
4443
  "api_key_index",
4439
4444
  "metadata",
4440
4445
  "signature"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {