zklighter-perps 1.0.79 → 1.0.80

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
- l1_address: string;
66
+ account_index: number;
67
67
  cursor?: string;
68
68
  filter?: DepositHistoryFilterEnum;
69
69
  }
@@ -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
  }
@@ -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['l1_address'] == null) {
303
+ if (requestParameters['account_index'] == null) {
304
304
  throw new runtime.RequiredError(
305
- 'l1_address',
306
- 'Required parameter "l1_address" was null or undefined when calling depositHistory().'
305
+ 'account_index',
306
+ 'Required parameter "account_index" was null or undefined when calling depositHistory().'
307
307
  );
308
308
  }
309
309
 
310
310
  const queryParameters: any = {};
311
311
 
312
- if (requestParameters['l1_address'] != null) {
313
- queryParameters['l1_address'] = requestParameters['l1_address'];
312
+ if (requestParameters['account_index'] != null) {
313
+ queryParameters['account_index'] = requestParameters['account_index'];
314
314
  }
315
315
 
316
316
  if (requestParameters['cursor'] != null) {
@@ -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 ReqGetDepositHistory {
22
22
  /**
23
23
  *
24
- * @type {string}
24
+ * @type {number}
25
25
  * @memberof ReqGetDepositHistory
26
26
  */
27
- l1_address: string;
27
+ account_index: number;
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 (!('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 ReqGetDepositHistoryFromJSONTyped(json: any, ignoreDiscriminator
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 ReqGetDepositHistoryToJSON(value?: ReqGetDepositHistory | 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
  };
@@ -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
@@ -860,10 +860,11 @@
860
860
  },
861
861
  "parameters": [
862
862
  {
863
- "name": "l1_address",
863
+ "name": "account_index",
864
864
  "in": "query",
865
865
  "required": true,
866
- "type": "string"
866
+ "type": "integer",
867
+ "format": "int64"
867
868
  },
868
869
  {
869
870
  "name": "cursor",
@@ -2102,10 +2103,11 @@
2102
2103
  },
2103
2104
  "parameters": [
2104
2105
  {
2105
- "name": "l1_address",
2106
+ "name": "account_index",
2106
2107
  "in": "query",
2107
2108
  "required": true,
2108
- "type": "string"
2109
+ "type": "integer",
2110
+ "format": "int64"
2109
2111
  },
2110
2112
  {
2111
2113
  "name": "cursor",
@@ -4988,8 +4990,9 @@
4988
4990
  "ReqGetDepositHistory": {
4989
4991
  "type": "object",
4990
4992
  "properties": {
4991
- "l1_address": {
4992
- "type": "string"
4993
+ "account_index": {
4994
+ "type": "integer",
4995
+ "format": "int64"
4993
4996
  },
4994
4997
  "cursor": {
4995
4998
  "type": "string"
@@ -5005,7 +5008,7 @@
5005
5008
  },
5006
5009
  "title": "ReqGetDepositHistory",
5007
5010
  "required": [
5008
- "l1_address"
5011
+ "account_index"
5009
5012
  ]
5010
5013
  },
5011
5014
  "ReqGetExchangeStats": {
@@ -5359,8 +5362,9 @@
5359
5362
  "ReqGetWithdrawHistory": {
5360
5363
  "type": "object",
5361
5364
  "properties": {
5362
- "l1_address": {
5363
- "type": "string"
5365
+ "account_index": {
5366
+ "type": "integer",
5367
+ "format": "int64"
5364
5368
  },
5365
5369
  "cursor": {
5366
5370
  "type": "string"
@@ -5376,7 +5380,7 @@
5376
5380
  },
5377
5381
  "title": "ReqGetWithdrawHistory",
5378
5382
  "required": [
5379
- "l1_address"
5383
+ "account_index"
5380
5384
  ]
5381
5385
  },
5382
5386
  "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.80",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {