zklighter-perps 1.0.80 → 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.
@@ -63,7 +63,7 @@ export interface BlockTxsRequest {
63
63
  }
64
64
 
65
65
  export interface DepositHistoryRequest {
66
- account_index: number;
66
+ l1_address: string;
67
67
  cursor?: string;
68
68
  filter?: DepositHistoryFilterEnum;
69
69
  }
@@ -300,17 +300,17 @@ export class TransactionApi extends runtime.BaseAPI {
300
300
  * deposit_history
301
301
  */
302
302
  async depositHistoryRaw(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DepositHistory>> {
303
- if (requestParameters['account_index'] == null) {
303
+ if (requestParameters['l1_address'] == null) {
304
304
  throw new runtime.RequiredError(
305
- 'account_index',
306
- 'Required parameter "account_index" was null or undefined when calling depositHistory().'
305
+ 'l1_address',
306
+ 'Required parameter "l1_address" was null or undefined when calling depositHistory().'
307
307
  );
308
308
  }
309
309
 
310
310
  const queryParameters: any = {};
311
311
 
312
- if (requestParameters['account_index'] != null) {
313
- queryParameters['account_index'] = requestParameters['account_index'];
312
+ if (requestParameters['l1_address'] != null) {
313
+ queryParameters['l1_address'] = requestParameters['l1_address'];
314
314
  }
315
315
 
316
316
  if (requestParameters['cursor'] != null) {
@@ -21,10 +21,10 @@ import { mapValues } from '../runtime';
21
21
  export interface ReqGetDepositHistory {
22
22
  /**
23
23
  *
24
- * @type {number}
24
+ * @type {string}
25
25
  * @memberof ReqGetDepositHistory
26
26
  */
27
- account_index: number;
27
+ l1_address: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -55,7 +55,7 @@ export type ReqGetDepositHistoryFilterEnum = typeof ReqGetDepositHistoryFilterEn
55
55
  * Check if a given object implements the ReqGetDepositHistory interface.
56
56
  */
57
57
  export function instanceOfReqGetDepositHistory(value: object): value is ReqGetDepositHistory {
58
- if (!('account_index' in value) || value['account_index'] === undefined) return false;
58
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
59
59
  return true;
60
60
  }
61
61
 
@@ -69,7 +69,7 @@ export function ReqGetDepositHistoryFromJSONTyped(json: any, ignoreDiscriminator
69
69
  }
70
70
  return {
71
71
 
72
- 'account_index': json['account_index'],
72
+ 'l1_address': json['l1_address'],
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 ReqGetDepositHistoryToJSON(value?: ReqGetDepositHistory | null):
81
81
  }
82
82
  return {
83
83
 
84
- 'account_index': value['account_index'],
84
+ 'l1_address': value['l1_address'],
85
85
  'cursor': value['cursor'],
86
86
  'filter': value['filter'],
87
87
  };
package/openapi.json CHANGED
@@ -860,11 +860,10 @@
860
860
  },
861
861
  "parameters": [
862
862
  {
863
- "name": "account_index",
863
+ "name": "l1_address",
864
864
  "in": "query",
865
865
  "required": true,
866
- "type": "integer",
867
- "format": "int64"
866
+ "type": "string"
868
867
  },
869
868
  {
870
869
  "name": "cursor",
@@ -4990,9 +4989,8 @@
4990
4989
  "ReqGetDepositHistory": {
4991
4990
  "type": "object",
4992
4991
  "properties": {
4993
- "account_index": {
4994
- "type": "integer",
4995
- "format": "int64"
4992
+ "l1_address": {
4993
+ "type": "string"
4996
4994
  },
4997
4995
  "cursor": {
4998
4996
  "type": "string"
@@ -5008,7 +5006,7 @@
5008
5006
  },
5009
5007
  "title": "ReqGetDepositHistory",
5010
5008
  "required": [
5011
- "account_index"
5009
+ "l1_address"
5012
5010
  ]
5013
5011
  },
5014
5012
  "ReqGetExchangeStats": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {