zklighter-perps 1.0.79 → 1.0.81

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.
@@ -112,7 +112,7 @@ export interface TxsRequest {
112
112
  }
113
113
 
114
114
  export interface WithdrawHistoryRequest {
115
- l1_address: string;
115
+ account_index: number;
116
116
  cursor?: string;
117
117
  filter?: WithdrawHistoryFilterEnum;
118
118
  }
@@ -804,17 +804,17 @@ export class TransactionApi extends runtime.BaseAPI {
804
804
  * withdraw_history
805
805
  */
806
806
  async withdrawHistoryRaw(requestParameters: WithdrawHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WithdrawHistory>> {
807
- if (requestParameters['l1_address'] == null) {
807
+ if (requestParameters['account_index'] == null) {
808
808
  throw new runtime.RequiredError(
809
- 'l1_address',
810
- 'Required parameter "l1_address" was null or undefined when calling withdrawHistory().'
809
+ 'account_index',
810
+ 'Required parameter "account_index" was null or undefined when calling withdrawHistory().'
811
811
  );
812
812
  }
813
813
 
814
814
  const queryParameters: any = {};
815
815
 
816
- if (requestParameters['l1_address'] != null) {
817
- queryParameters['l1_address'] = requestParameters['l1_address'];
816
+ if (requestParameters['account_index'] != null) {
817
+ queryParameters['account_index'] = requestParameters['account_index'];
818
818
  }
819
819
 
820
820
  if (requestParameters['cursor'] != null) {
@@ -21,10 +21,10 @@ import { mapValues } from '../runtime';
21
21
  export interface ReqGetWithdrawHistory {
22
22
  /**
23
23
  *
24
- * @type {string}
24
+ * @type {number}
25
25
  * @memberof ReqGetWithdrawHistory
26
26
  */
27
- l1_address: string;
27
+ account_index: number;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -55,7 +55,7 @@ export type ReqGetWithdrawHistoryFilterEnum = typeof ReqGetWithdrawHistoryFilter
55
55
  * Check if a given object implements the ReqGetWithdrawHistory interface.
56
56
  */
57
57
  export function instanceOfReqGetWithdrawHistory(value: object): value is ReqGetWithdrawHistory {
58
- if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
58
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
59
59
  return true;
60
60
  }
61
61
 
@@ -69,7 +69,7 @@ export function ReqGetWithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminato
69
69
  }
70
70
  return {
71
71
 
72
- 'l1_address': json['l1_address'],
72
+ 'account_index': json['account_index'],
73
73
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
74
74
  'filter': json['filter'] == null ? undefined : json['filter'],
75
75
  };
@@ -81,7 +81,7 @@ export function ReqGetWithdrawHistoryToJSON(value?: ReqGetWithdrawHistory | null
81
81
  }
82
82
  return {
83
83
 
84
- 'l1_address': value['l1_address'],
84
+ 'account_index': value['account_index'],
85
85
  'cursor': value['cursor'],
86
86
  'filter': value['filter'],
87
87
  };
package/openapi.json CHANGED
@@ -2102,10 +2102,11 @@
2102
2102
  },
2103
2103
  "parameters": [
2104
2104
  {
2105
- "name": "l1_address",
2105
+ "name": "account_index",
2106
2106
  "in": "query",
2107
2107
  "required": true,
2108
- "type": "string"
2108
+ "type": "integer",
2109
+ "format": "int64"
2109
2110
  },
2110
2111
  {
2111
2112
  "name": "cursor",
@@ -5359,8 +5360,9 @@
5359
5360
  "ReqGetWithdrawHistory": {
5360
5361
  "type": "object",
5361
5362
  "properties": {
5362
- "l1_address": {
5363
- "type": "string"
5363
+ "account_index": {
5364
+ "type": "integer",
5365
+ "format": "int64"
5364
5366
  },
5365
5367
  "cursor": {
5366
5368
  "type": "string"
@@ -5376,7 +5378,7 @@
5376
5378
  },
5377
5379
  "title": "ReqGetWithdrawHistory",
5378
5380
  "required": [
5379
- "l1_address"
5381
+ "account_index"
5380
5382
  ]
5381
5383
  },
5382
5384
  "ReqIsWhitelisted": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.79",
3
+ "version": "1.0.81",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {