zklighter-perps 1.0.179 → 1.0.180

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.
@@ -5,6 +5,7 @@ apis/BridgeApi.ts
5
5
  apis/CandlestickApi.ts
6
6
  apis/FundingApi.ts
7
7
  apis/GeckoApi.ts
8
+ apis/GeoApi.ts
8
9
  apis/InfoApi.ts
9
10
  apis/NotificationApi.ts
10
11
  apis/OrderApi.ts
package/apis/GeoApi.ts ADDED
@@ -0,0 +1,58 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ResultCode,
19
+ } from '../models/index';
20
+ import {
21
+ ResultCodeFromJSON,
22
+ ResultCodeToJSON,
23
+ } from '../models/index';
24
+
25
+ /**
26
+ *
27
+ */
28
+ export class GeoApi extends runtime.BaseAPI {
29
+
30
+ /**
31
+ * Get geo location
32
+ * geoLocation
33
+ */
34
+ async geoLocationRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResultCode>> {
35
+ const queryParameters: any = {};
36
+
37
+ const headerParameters: runtime.HTTPHeaders = {};
38
+
39
+ const response = await this.request({
40
+ path: `/api/v1/geoLocation`,
41
+ method: 'GET',
42
+ headers: headerParameters,
43
+ query: queryParameters,
44
+ }, initOverrides);
45
+
46
+ return new runtime.JSONApiResponse(response, (jsonValue) => ResultCodeFromJSON(jsonValue));
47
+ }
48
+
49
+ /**
50
+ * Get geo location
51
+ * geoLocation
52
+ */
53
+ async geoLocation(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResultCode> {
54
+ const response = await this.geoLocationRaw(initOverrides);
55
+ return await response.value();
56
+ }
57
+
58
+ }
package/apis/index.ts CHANGED
@@ -7,6 +7,7 @@ export * from './BridgeApi';
7
7
  export * from './CandlestickApi';
8
8
  export * from './FundingApi';
9
9
  export * from './GeckoApi';
10
+ export * from './GeoApi';
10
11
  export * from './InfoApi';
11
12
  export * from './NotificationApi';
12
13
  export * from './OrderApi';
@@ -121,6 +121,12 @@ export interface EnrichedTx {
121
121
  * @memberof EnrichedTx
122
122
  */
123
123
  parent_hash: string;
124
+ /**
125
+ *
126
+ * @type {number}
127
+ * @memberof EnrichedTx
128
+ */
129
+ api_key_index: number;
124
130
  /**
125
131
  *
126
132
  * @type {number}
@@ -155,6 +161,7 @@ export function instanceOfEnrichedTx(value: object): value is EnrichedTx {
155
161
  if (!('executed_at' in value) || value['executed_at'] === undefined) return false;
156
162
  if (!('sequence_index' in value) || value['sequence_index'] === undefined) return false;
157
163
  if (!('parent_hash' in value) || value['parent_hash'] === undefined) return false;
164
+ if (!('api_key_index' in value) || value['api_key_index'] === undefined) return false;
158
165
  if (!('committed_at' in value) || value['committed_at'] === undefined) return false;
159
166
  if (!('verified_at' in value) || value['verified_at'] === undefined) return false;
160
167
  return true;
@@ -187,6 +194,7 @@ export function EnrichedTxFromJSONTyped(json: any, ignoreDiscriminator: boolean)
187
194
  'executed_at': json['executed_at'],
188
195
  'sequence_index': json['sequence_index'],
189
196
  'parent_hash': json['parent_hash'],
197
+ 'api_key_index': json['api_key_index'],
190
198
  'committed_at': json['committed_at'],
191
199
  'verified_at': json['verified_at'],
192
200
  };
@@ -215,6 +223,7 @@ export function EnrichedTxToJSON(value?: EnrichedTx | null): any {
215
223
  'executed_at': value['executed_at'],
216
224
  'sequence_index': value['sequence_index'],
217
225
  'parent_hash': value['parent_hash'],
226
+ 'api_key_index': value['api_key_index'],
218
227
  'committed_at': value['committed_at'],
219
228
  'verified_at': value['verified_at'],
220
229
  };
package/models/Tx.ts CHANGED
@@ -109,6 +109,12 @@ export interface Tx {
109
109
  * @memberof Tx
110
110
  */
111
111
  parent_hash: string;
112
+ /**
113
+ *
114
+ * @type {number}
115
+ * @memberof Tx
116
+ */
117
+ api_key_index: number;
112
118
  }
113
119
 
114
120
  /**
@@ -130,6 +136,7 @@ export function instanceOfTx(value: object): value is Tx {
130
136
  if (!('executed_at' in value) || value['executed_at'] === undefined) return false;
131
137
  if (!('sequence_index' in value) || value['sequence_index'] === undefined) return false;
132
138
  if (!('parent_hash' in value) || value['parent_hash'] === undefined) return false;
139
+ if (!('api_key_index' in value) || value['api_key_index'] === undefined) return false;
133
140
  return true;
134
141
  }
135
142
 
@@ -158,6 +165,7 @@ export function TxFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tx {
158
165
  'executed_at': json['executed_at'],
159
166
  'sequence_index': json['sequence_index'],
160
167
  'parent_hash': json['parent_hash'],
168
+ 'api_key_index': json['api_key_index'],
161
169
  };
162
170
  }
163
171
 
@@ -182,6 +190,7 @@ export function TxToJSON(value?: Tx | null): any {
182
190
  'executed_at': value['executed_at'],
183
191
  'sequence_index': value['sequence_index'],
184
192
  'parent_hash': value['parent_hash'],
193
+ 'api_key_index': value['api_key_index'],
185
194
  };
186
195
  }
187
196
 
package/openapi.json CHANGED
@@ -1471,6 +1471,30 @@
1471
1471
  "description": "Coin Gecko Orderbook"
1472
1472
  }
1473
1473
  },
1474
+ "/api/v1/geoLocation": {
1475
+ "get": {
1476
+ "summary": "geoLocation",
1477
+ "operationId": "geoLocation",
1478
+ "responses": {
1479
+ "200": {
1480
+ "description": "A successful response.",
1481
+ "schema": {
1482
+ "$ref": "#/definitions/ResultCode"
1483
+ }
1484
+ },
1485
+ "400": {
1486
+ "description": "Bad request",
1487
+ "schema": {
1488
+ "$ref": "#/definitions/ResultCode"
1489
+ }
1490
+ }
1491
+ },
1492
+ "tags": [
1493
+ "geo"
1494
+ ],
1495
+ "description": "Get geo location"
1496
+ }
1497
+ },
1474
1498
  "/api/v1/isWhitelisted": {
1475
1499
  "get": {
1476
1500
  "summary": "isWhitelisted",
@@ -4653,6 +4677,11 @@
4653
4677
  "type": "string",
4654
4678
  "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
4655
4679
  },
4680
+ "api_key_index": {
4681
+ "type": "integer",
4682
+ "format": "uint8",
4683
+ "example": "0"
4684
+ },
4656
4685
  "committed_at": {
4657
4686
  "type": "integer",
4658
4687
  "format": "int64",
@@ -4682,6 +4711,7 @@
4682
4711
  "executed_at",
4683
4712
  "sequence_index",
4684
4713
  "parent_hash",
4714
+ "api_key_index",
4685
4715
  "committed_at",
4686
4716
  "verified_at"
4687
4717
  ]
@@ -8769,6 +8799,11 @@
8769
8799
  "parent_hash": {
8770
8800
  "type": "string",
8771
8801
  "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
8802
+ },
8803
+ "api_key_index": {
8804
+ "type": "integer",
8805
+ "format": "uint8",
8806
+ "example": "0"
8772
8807
  }
8773
8808
  },
8774
8809
  "title": "Tx",
@@ -8787,7 +8822,8 @@
8787
8822
  "queued_at",
8788
8823
  "executed_at",
8789
8824
  "sequence_index",
8790
- "parent_hash"
8825
+ "parent_hash",
8826
+ "api_key_index"
8791
8827
  ]
8792
8828
  },
8793
8829
  "TxHash": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.179",
3
+ "version": "1.0.180",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {