zklighter-perps 1.0.63 → 1.0.65

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.
@@ -34,6 +34,7 @@ export interface CandlesticksRequest {
34
34
  start_timestamp: number;
35
35
  end_timestamp: number;
36
36
  count_back: number;
37
+ set_timestamp_to_end?: boolean;
37
38
  }
38
39
 
39
40
  export interface FundingsRequest {
@@ -111,6 +112,10 @@ export class CandlestickApi extends runtime.BaseAPI {
111
112
  queryParameters['count_back'] = requestParameters['count_back'];
112
113
  }
113
114
 
115
+ if (requestParameters['set_timestamp_to_end'] != null) {
116
+ queryParameters['set_timestamp_to_end'] = requestParameters['set_timestamp_to_end'];
117
+ }
118
+
114
119
  const headerParameters: runtime.HTTPHeaders = {};
115
120
 
116
121
  const response = await this.request({
@@ -102,7 +102,7 @@ export interface EnrichedTx {
102
102
  * @type {number}
103
103
  * @memberof EnrichedTx
104
104
  */
105
- created_at: number;
105
+ queued_at: number;
106
106
  /**
107
107
  *
108
108
  * @type {number}
@@ -115,6 +115,12 @@ export interface EnrichedTx {
115
115
  * @memberof EnrichedTx
116
116
  */
117
117
  sequence_index: number;
118
+ /**
119
+ *
120
+ * @type {string}
121
+ * @memberof EnrichedTx
122
+ */
123
+ parent_hash: string;
118
124
  /**
119
125
  *
120
126
  * @type {number}
@@ -145,9 +151,10 @@ export function instanceOfEnrichedTx(value: object): value is EnrichedTx {
145
151
  if (!('nonce' in value) || value['nonce'] === undefined) return false;
146
152
  if (!('expire_at' in value) || value['expire_at'] === undefined) return false;
147
153
  if (!('block_height' in value) || value['block_height'] === undefined) return false;
148
- if (!('created_at' in value) || value['created_at'] === undefined) return false;
154
+ if (!('queued_at' in value) || value['queued_at'] === undefined) return false;
149
155
  if (!('executed_at' in value) || value['executed_at'] === undefined) return false;
150
156
  if (!('sequence_index' in value) || value['sequence_index'] === undefined) return false;
157
+ if (!('parent_hash' in value) || value['parent_hash'] === undefined) return false;
151
158
  if (!('committed_at' in value) || value['committed_at'] === undefined) return false;
152
159
  if (!('verified_at' in value) || value['verified_at'] === undefined) return false;
153
160
  return true;
@@ -176,9 +183,10 @@ export function EnrichedTxFromJSONTyped(json: any, ignoreDiscriminator: boolean)
176
183
  'nonce': json['nonce'],
177
184
  'expire_at': json['expire_at'],
178
185
  'block_height': json['block_height'],
179
- 'created_at': json['created_at'],
186
+ 'queued_at': json['queued_at'],
180
187
  'executed_at': json['executed_at'],
181
188
  'sequence_index': json['sequence_index'],
189
+ 'parent_hash': json['parent_hash'],
182
190
  'committed_at': json['committed_at'],
183
191
  'verified_at': json['verified_at'],
184
192
  };
@@ -203,9 +211,10 @@ export function EnrichedTxToJSON(value?: EnrichedTx | null): any {
203
211
  'nonce': value['nonce'],
204
212
  'expire_at': value['expire_at'],
205
213
  'block_height': value['block_height'],
206
- 'created_at': value['created_at'],
214
+ 'queued_at': value['queued_at'],
207
215
  'executed_at': value['executed_at'],
208
216
  'sequence_index': value['sequence_index'],
217
+ 'parent_hash': value['parent_hash'],
209
218
  'committed_at': value['committed_at'],
210
219
  'verified_at': value['verified_at'],
211
220
  };
@@ -49,6 +49,12 @@ export interface ReqGetCandlesticks {
49
49
  * @memberof ReqGetCandlesticks
50
50
  */
51
51
  count_back: number;
52
+ /**
53
+ *
54
+ * @type {boolean}
55
+ * @memberof ReqGetCandlesticks
56
+ */
57
+ set_timestamp_to_end?: boolean;
52
58
  }
53
59
 
54
60
 
@@ -93,6 +99,7 @@ export function ReqGetCandlesticksFromJSONTyped(json: any, ignoreDiscriminator:
93
99
  'start_timestamp': json['start_timestamp'],
94
100
  'end_timestamp': json['end_timestamp'],
95
101
  'count_back': json['count_back'],
102
+ 'set_timestamp_to_end': json['set_timestamp_to_end'] == null ? undefined : json['set_timestamp_to_end'],
96
103
  };
97
104
  }
98
105
 
@@ -107,6 +114,7 @@ export function ReqGetCandlesticksToJSON(value?: ReqGetCandlesticks | null): any
107
114
  'start_timestamp': value['start_timestamp'],
108
115
  'end_timestamp': value['end_timestamp'],
109
116
  'count_back': value['count_back'],
117
+ 'set_timestamp_to_end': value['set_timestamp_to_end'],
110
118
  };
111
119
  }
112
120
 
package/models/Tx.ts CHANGED
@@ -90,7 +90,7 @@ export interface Tx {
90
90
  * @type {number}
91
91
  * @memberof Tx
92
92
  */
93
- created_at: number;
93
+ queued_at: number;
94
94
  /**
95
95
  *
96
96
  * @type {number}
@@ -103,6 +103,12 @@ export interface Tx {
103
103
  * @memberof Tx
104
104
  */
105
105
  sequence_index: number;
106
+ /**
107
+ *
108
+ * @type {string}
109
+ * @memberof Tx
110
+ */
111
+ parent_hash: string;
106
112
  }
107
113
 
108
114
  /**
@@ -120,9 +126,10 @@ export function instanceOfTx(value: object): value is Tx {
120
126
  if (!('nonce' in value) || value['nonce'] === undefined) return false;
121
127
  if (!('expire_at' in value) || value['expire_at'] === undefined) return false;
122
128
  if (!('block_height' in value) || value['block_height'] === undefined) return false;
123
- if (!('created_at' in value) || value['created_at'] === undefined) return false;
129
+ if (!('queued_at' in value) || value['queued_at'] === undefined) return false;
124
130
  if (!('executed_at' in value) || value['executed_at'] === undefined) return false;
125
131
  if (!('sequence_index' in value) || value['sequence_index'] === undefined) return false;
132
+ if (!('parent_hash' in value) || value['parent_hash'] === undefined) return false;
126
133
  return true;
127
134
  }
128
135
 
@@ -147,9 +154,10 @@ export function TxFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tx {
147
154
  'nonce': json['nonce'],
148
155
  'expire_at': json['expire_at'],
149
156
  'block_height': json['block_height'],
150
- 'created_at': json['created_at'],
157
+ 'queued_at': json['queued_at'],
151
158
  'executed_at': json['executed_at'],
152
159
  'sequence_index': json['sequence_index'],
160
+ 'parent_hash': json['parent_hash'],
153
161
  };
154
162
  }
155
163
 
@@ -170,9 +178,10 @@ export function TxToJSON(value?: Tx | null): any {
170
178
  'nonce': value['nonce'],
171
179
  'expire_at': value['expire_at'],
172
180
  'block_height': value['block_height'],
173
- 'created_at': value['created_at'],
181
+ 'queued_at': value['queued_at'],
174
182
  'executed_at': value['executed_at'],
175
183
  'sequence_index': value['sequence_index'],
184
+ 'parent_hash': value['parent_hash'],
176
185
  };
177
186
  }
178
187
 
package/openapi.json CHANGED
@@ -714,6 +714,14 @@
714
714
  "required": true,
715
715
  "type": "integer",
716
716
  "format": "int64"
717
+ },
718
+ {
719
+ "name": "set_timestamp_to_end",
720
+ "in": "query",
721
+ "required": false,
722
+ "type": "boolean",
723
+ "format": "boolean",
724
+ "default": "false"
717
725
  }
718
726
  ],
719
727
  "tags": [
@@ -2568,7 +2576,7 @@
2568
2576
  "format": "int64",
2569
2577
  "example": "45434"
2570
2578
  },
2571
- "created_at": {
2579
+ "queued_at": {
2572
2580
  "type": "integer",
2573
2581
  "format": "int64",
2574
2582
  "example": "1640995200"
@@ -2583,6 +2591,10 @@
2583
2591
  "format": "int64",
2584
2592
  "example": "8761"
2585
2593
  },
2594
+ "parent_hash": {
2595
+ "type": "string",
2596
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
2597
+ },
2586
2598
  "committed_at": {
2587
2599
  "type": "integer",
2588
2600
  "format": "int64",
@@ -2608,9 +2620,10 @@
2608
2620
  "nonce",
2609
2621
  "expire_at",
2610
2622
  "block_height",
2611
- "created_at",
2623
+ "queued_at",
2612
2624
  "executed_at",
2613
2625
  "sequence_index",
2626
+ "parent_hash",
2614
2627
  "committed_at",
2615
2628
  "verified_at"
2616
2629
  ]
@@ -4240,6 +4253,11 @@
4240
4253
  "count_back": {
4241
4254
  "type": "integer",
4242
4255
  "format": "int64"
4256
+ },
4257
+ "set_timestamp_to_end": {
4258
+ "type": "boolean",
4259
+ "format": "boolean",
4260
+ "default": "false"
4243
4261
  }
4244
4262
  },
4245
4263
  "title": "ReqGetCandlesticks",
@@ -4974,7 +4992,7 @@
4974
4992
  "format": "int64",
4975
4993
  "example": "45434"
4976
4994
  },
4977
- "created_at": {
4995
+ "queued_at": {
4978
4996
  "type": "integer",
4979
4997
  "format": "int64",
4980
4998
  "example": "1640995200"
@@ -4988,6 +5006,10 @@
4988
5006
  "type": "integer",
4989
5007
  "format": "int64",
4990
5008
  "example": "8761"
5009
+ },
5010
+ "parent_hash": {
5011
+ "type": "string",
5012
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
4991
5013
  }
4992
5014
  },
4993
5015
  "title": "Tx",
@@ -5003,9 +5025,10 @@
5003
5025
  "nonce",
5004
5026
  "expire_at",
5005
5027
  "block_height",
5006
- "created_at",
5028
+ "queued_at",
5007
5029
  "executed_at",
5008
- "sequence_index"
5030
+ "sequence_index",
5031
+ "parent_hash"
5009
5032
  ]
5010
5033
  },
5011
5034
  "TxHash": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {