zklighter-perps 1.0.167 → 1.0.168

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.
@@ -96,7 +96,6 @@ models/ReqGetAccountByL1Address.ts
96
96
  models/ReqGetAccountInactiveOrders.ts
97
97
  models/ReqGetAccountLimits.ts
98
98
  models/ReqGetAccountMetadata.ts
99
- models/ReqGetAccountPendingTxs.ts
100
99
  models/ReqGetAccountPnL.ts
101
100
  models/ReqGetAccountTxs.ts
102
101
  models/ReqGetBlock.ts
@@ -46,12 +46,6 @@ import {
46
46
  WithdrawHistoryToJSON,
47
47
  } from '../models/index';
48
48
 
49
- export interface AccountPendingTxsRequest {
50
- by: AccountPendingTxsByEnum;
51
- value: string;
52
- types?: Array<number>;
53
- }
54
-
55
49
  export interface AccountTxsRequest {
56
50
  limit: number;
57
51
  by: AccountTxsByEnum;
@@ -81,11 +75,6 @@ export interface NextNonceRequest {
81
75
  api_key_index: number;
82
76
  }
83
77
 
84
- export interface PendingTxsRequest {
85
- limit: number;
86
- index?: number;
87
- }
88
-
89
78
  export interface SendTxRequest {
90
79
  tx_type: number;
91
80
  tx_info: string;
@@ -140,60 +129,6 @@ export interface WithdrawHistoryRequest {
140
129
  */
141
130
  export class TransactionApi extends runtime.BaseAPI {
142
131
 
143
- /**
144
- * Get pending transactions of a specific account
145
- * accountPendingTxs
146
- */
147
- async accountPendingTxsRaw(requestParameters: AccountPendingTxsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Txs>> {
148
- if (requestParameters['by'] == null) {
149
- throw new runtime.RequiredError(
150
- 'by',
151
- 'Required parameter "by" was null or undefined when calling accountPendingTxs().'
152
- );
153
- }
154
-
155
- if (requestParameters['value'] == null) {
156
- throw new runtime.RequiredError(
157
- 'value',
158
- 'Required parameter "value" was null or undefined when calling accountPendingTxs().'
159
- );
160
- }
161
-
162
- const queryParameters: any = {};
163
-
164
- if (requestParameters['by'] != null) {
165
- queryParameters['by'] = requestParameters['by'];
166
- }
167
-
168
- if (requestParameters['value'] != null) {
169
- queryParameters['value'] = requestParameters['value'];
170
- }
171
-
172
- if (requestParameters['types'] != null) {
173
- queryParameters['types'] = requestParameters['types']!.join(runtime.COLLECTION_FORMATS["csv"]);
174
- }
175
-
176
- const headerParameters: runtime.HTTPHeaders = {};
177
-
178
- const response = await this.request({
179
- path: `/api/v1/accountPendingTxs`,
180
- method: 'GET',
181
- headers: headerParameters,
182
- query: queryParameters,
183
- }, initOverrides);
184
-
185
- return new runtime.JSONApiResponse(response, (jsonValue) => TxsFromJSON(jsonValue));
186
- }
187
-
188
- /**
189
- * Get pending transactions of a specific account
190
- * accountPendingTxs
191
- */
192
- async accountPendingTxs(requestParameters: AccountPendingTxsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Txs> {
193
- const response = await this.accountPendingTxsRaw(requestParameters, initOverrides);
194
- return await response.value();
195
- }
196
-
197
132
  /**
198
133
  * Get transactions of a specific account
199
134
  * accountTxs
@@ -437,49 +372,6 @@ export class TransactionApi extends runtime.BaseAPI {
437
372
  return await response.value();
438
373
  }
439
374
 
440
- /**
441
- * Get pending transactions
442
- * pendingTxs
443
- */
444
- async pendingTxsRaw(requestParameters: PendingTxsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Txs>> {
445
- if (requestParameters['limit'] == null) {
446
- throw new runtime.RequiredError(
447
- 'limit',
448
- 'Required parameter "limit" was null or undefined when calling pendingTxs().'
449
- );
450
- }
451
-
452
- const queryParameters: any = {};
453
-
454
- if (requestParameters['index'] != null) {
455
- queryParameters['index'] = requestParameters['index'];
456
- }
457
-
458
- if (requestParameters['limit'] != null) {
459
- queryParameters['limit'] = requestParameters['limit'];
460
- }
461
-
462
- const headerParameters: runtime.HTTPHeaders = {};
463
-
464
- const response = await this.request({
465
- path: `/api/v1/pendingTxs`,
466
- method: 'GET',
467
- headers: headerParameters,
468
- query: queryParameters,
469
- }, initOverrides);
470
-
471
- return new runtime.JSONApiResponse(response, (jsonValue) => TxsFromJSON(jsonValue));
472
- }
473
-
474
- /**
475
- * Get pending transactions
476
- * pendingTxs
477
- */
478
- async pendingTxs(requestParameters: PendingTxsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Txs> {
479
- const response = await this.pendingTxsRaw(requestParameters, initOverrides);
480
- return await response.value();
481
- }
482
-
483
375
  /**
484
376
  * You need to sign the transaction body before sending it to the server. More details can be found in the Get Started docs: [Get Started For Programmers](https://apidocs.lighter.xyz/docs/get-started-for-programmers)
485
377
  * sendTx
@@ -949,13 +841,6 @@ export class TransactionApi extends runtime.BaseAPI {
949
841
 
950
842
  }
951
843
 
952
- /**
953
- * @export
954
- */
955
- export const AccountPendingTxsByEnum = {
956
- AccountIndex: 'account_index'
957
- } as const;
958
- export type AccountPendingTxsByEnum = typeof AccountPendingTxsByEnum[keyof typeof AccountPendingTxsByEnum];
959
844
  /**
960
845
  * @export
961
846
  */
package/models/index.ts CHANGED
@@ -83,7 +83,6 @@ export * from './ReqGetAccountByL1Address';
83
83
  export * from './ReqGetAccountInactiveOrders';
84
84
  export * from './ReqGetAccountLimits';
85
85
  export * from './ReqGetAccountMetadata';
86
- export * from './ReqGetAccountPendingTxs';
87
86
  export * from './ReqGetAccountPnL';
88
87
  export * from './ReqGetAccountTxs';
89
88
  export * from './ReqGetBlock';
package/openapi.json CHANGED
@@ -335,60 +335,6 @@
335
335
  "description": "Get account metadatas"
336
336
  }
337
337
  },
338
- "/api/v1/accountPendingTxs": {
339
- "get": {
340
- "summary": "accountPendingTxs",
341
- "operationId": "accountPendingTxs",
342
- "responses": {
343
- "200": {
344
- "description": "A successful response.",
345
- "schema": {
346
- "$ref": "#/definitions/Txs"
347
- }
348
- },
349
- "400": {
350
- "description": "Bad request",
351
- "schema": {
352
- "$ref": "#/definitions/ResultCode"
353
- }
354
- }
355
- },
356
- "parameters": [
357
- {
358
- "name": "by",
359
- "in": "query",
360
- "required": true,
361
- "type": "string",
362
- "enum": [
363
- "account_index"
364
- ]
365
- },
366
- {
367
- "name": "value",
368
- "in": "query",
369
- "required": true,
370
- "type": "string"
371
- },
372
- {
373
- "name": "types",
374
- "in": "query",
375
- "required": false,
376
- "type": "array",
377
- "items": {
378
- "type": "integer",
379
- "format": "uint8"
380
- }
381
- }
382
- ],
383
- "tags": [
384
- "transaction"
385
- ],
386
- "consumes": [
387
- "multipart/form-data"
388
- ],
389
- "description": "Get pending transactions of a specific account"
390
- }
391
- },
392
338
  "/api/v1/accountTxs": {
393
339
  "get": {
394
340
  "summary": "accountTxs",
@@ -2013,51 +1959,6 @@
2013
1959
  "description": "Get order books metadata.<hr>**Response Description:**<br><br>1) **Taker and maker fees** are in percentage.<br>2) **Min base amount:** The amount of base token that can be traded in a single order.<br>3) **Min quote amount:** The amount of quote token that can be traded in a single order.<br>4) **Supported size decimals:** The number of decimal places that can be used for the size of the order.<br>5) **Supported price decimals:** The number of decimal places that can be used for the price of the order.<br>6) **Supported quote decimals:** Size Decimals + Quote Decimals."
2014
1960
  }
2015
1961
  },
2016
- "/api/v1/pendingTxs": {
2017
- "get": {
2018
- "summary": "pendingTxs",
2019
- "operationId": "pendingTxs",
2020
- "responses": {
2021
- "200": {
2022
- "description": "A successful response.",
2023
- "schema": {
2024
- "$ref": "#/definitions/Txs"
2025
- }
2026
- },
2027
- "400": {
2028
- "description": "Bad request",
2029
- "schema": {
2030
- "$ref": "#/definitions/ResultCode"
2031
- }
2032
- }
2033
- },
2034
- "parameters": [
2035
- {
2036
- "name": "index",
2037
- "in": "query",
2038
- "required": false,
2039
- "type": "integer",
2040
- "format": "int64"
2041
- },
2042
- {
2043
- "name": "limit",
2044
- "in": "query",
2045
- "required": true,
2046
- "type": "integer",
2047
- "format": "int64",
2048
- "minimum": 1,
2049
- "maximum": 100
2050
- }
2051
- ],
2052
- "tags": [
2053
- "transaction"
2054
- ],
2055
- "consumes": [
2056
- "multipart/form-data"
2057
- ],
2058
- "description": "Get pending transactions"
2059
- }
2060
- },
2061
1962
  "/api/v1/pnl": {
2062
1963
  "get": {
2063
1964
  "summary": "pnl",
@@ -6841,28 +6742,6 @@
6841
6742
  "value"
6842
6743
  ]
6843
6744
  },
6844
- "ReqGetAccountPendingTxs": {
6845
- "type": "object",
6846
- "properties": {
6847
- "by": {
6848
- "type": "string",
6849
- "enum": [
6850
- "account_index"
6851
- ]
6852
- },
6853
- "value": {
6854
- "type": "string"
6855
- },
6856
- "types": {
6857
- "type": "array",
6858
- "items": {
6859
- "type": "integer",
6860
- "format": "uint8"
6861
- }
6862
- }
6863
- },
6864
- "title": "ReqGetAccountPendingTxs"
6865
- },
6866
6745
  "ReqGetAccountPnL": {
6867
6746
  "type": "object",
6868
6747
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.167",
3
+ "version": "1.0.168",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {