zklighter-perps 1.0.62 → 1.0.64

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.
@@ -61,6 +61,12 @@ export interface Candlestick {
61
61
  * @memberof Candlestick
62
62
  */
63
63
  volume1: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof Candlestick
68
+ */
69
+ last_trade_id: number;
64
70
  }
65
71
 
66
72
  /**
@@ -74,6 +80,7 @@ export function instanceOfCandlestick(value: object): value is Candlestick {
74
80
  if (!('close' in value) || value['close'] === undefined) return false;
75
81
  if (!('volume0' in value) || value['volume0'] === undefined) return false;
76
82
  if (!('volume1' in value) || value['volume1'] === undefined) return false;
83
+ if (!('last_trade_id' in value) || value['last_trade_id'] === undefined) return false;
77
84
  return true;
78
85
  }
79
86
 
@@ -94,6 +101,7 @@ export function CandlestickFromJSONTyped(json: any, ignoreDiscriminator: boolean
94
101
  'close': json['close'],
95
102
  'volume0': json['volume0'],
96
103
  'volume1': json['volume1'],
104
+ 'last_trade_id': json['last_trade_id'],
97
105
  };
98
106
  }
99
107
 
@@ -110,6 +118,7 @@ export function CandlestickToJSON(value?: Candlestick | null): any {
110
118
  'close': value['close'],
111
119
  'volume0': value['volume0'],
112
120
  'volume1': value['volume1'],
121
+ 'last_trade_id': value['last_trade_id'],
113
122
  };
114
123
  }
115
124
 
@@ -61,6 +61,12 @@ export interface DetailedCandlestick {
61
61
  * @memberof DetailedCandlestick
62
62
  */
63
63
  volume1: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof DetailedCandlestick
68
+ */
69
+ last_trade_id: number;
64
70
  /**
65
71
  *
66
72
  * @type {number}
@@ -80,6 +86,7 @@ export function instanceOfDetailedCandlestick(value: object): value is DetailedC
80
86
  if (!('close' in value) || value['close'] === undefined) return false;
81
87
  if (!('volume0' in value) || value['volume0'] === undefined) return false;
82
88
  if (!('volume1' in value) || value['volume1'] === undefined) return false;
89
+ if (!('last_trade_id' in value) || value['last_trade_id'] === undefined) return false;
83
90
  if (!('trade_count' in value) || value['trade_count'] === undefined) return false;
84
91
  return true;
85
92
  }
@@ -101,6 +108,7 @@ export function DetailedCandlestickFromJSONTyped(json: any, ignoreDiscriminator:
101
108
  'close': json['close'],
102
109
  'volume0': json['volume0'],
103
110
  'volume1': json['volume1'],
111
+ 'last_trade_id': json['last_trade_id'],
104
112
  'trade_count': json['trade_count'],
105
113
  };
106
114
  }
@@ -118,6 +126,7 @@ export function DetailedCandlestickToJSON(value?: DetailedCandlestick | null): a
118
126
  'close': value['close'],
119
127
  'volume0': value['volume0'],
120
128
  'volume1': value['volume1'],
129
+ 'last_trade_id': value['last_trade_id'],
121
130
  'trade_count': value['trade_count'],
122
131
  };
123
132
  }
@@ -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
  };
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
@@ -2214,6 +2214,11 @@
2214
2214
  "type": "number",
2215
2215
  "format": "double",
2216
2216
  "example": "93566.25"
2217
+ },
2218
+ "last_trade_id": {
2219
+ "type": "integer",
2220
+ "format": "int64",
2221
+ "example": "1"
2217
2222
  }
2218
2223
  },
2219
2224
  "title": "Candlestick",
@@ -2224,7 +2229,8 @@
2224
2229
  "low",
2225
2230
  "close",
2226
2231
  "volume0",
2227
- "volume1"
2232
+ "volume1",
2233
+ "last_trade_id"
2228
2234
  ]
2229
2235
  },
2230
2236
  "Candlesticks": {
@@ -2474,6 +2480,11 @@
2474
2480
  "format": "double",
2475
2481
  "example": "93566.25"
2476
2482
  },
2483
+ "last_trade_id": {
2484
+ "type": "integer",
2485
+ "format": "int64",
2486
+ "example": "1"
2487
+ },
2477
2488
  "trade_count": {
2478
2489
  "type": "integer",
2479
2490
  "format": "int64",
@@ -2489,6 +2500,7 @@
2489
2500
  "close",
2490
2501
  "volume0",
2491
2502
  "volume1",
2503
+ "last_trade_id",
2492
2504
  "trade_count"
2493
2505
  ]
2494
2506
  },
@@ -2556,7 +2568,7 @@
2556
2568
  "format": "int64",
2557
2569
  "example": "45434"
2558
2570
  },
2559
- "created_at": {
2571
+ "queued_at": {
2560
2572
  "type": "integer",
2561
2573
  "format": "int64",
2562
2574
  "example": "1640995200"
@@ -2571,6 +2583,10 @@
2571
2583
  "format": "int64",
2572
2584
  "example": "8761"
2573
2585
  },
2586
+ "parent_hash": {
2587
+ "type": "string",
2588
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
2589
+ },
2574
2590
  "committed_at": {
2575
2591
  "type": "integer",
2576
2592
  "format": "int64",
@@ -2596,9 +2612,10 @@
2596
2612
  "nonce",
2597
2613
  "expire_at",
2598
2614
  "block_height",
2599
- "created_at",
2615
+ "queued_at",
2600
2616
  "executed_at",
2601
2617
  "sequence_index",
2618
+ "parent_hash",
2602
2619
  "committed_at",
2603
2620
  "verified_at"
2604
2621
  ]
@@ -4962,7 +4979,7 @@
4962
4979
  "format": "int64",
4963
4980
  "example": "45434"
4964
4981
  },
4965
- "created_at": {
4982
+ "queued_at": {
4966
4983
  "type": "integer",
4967
4984
  "format": "int64",
4968
4985
  "example": "1640995200"
@@ -4976,6 +4993,10 @@
4976
4993
  "type": "integer",
4977
4994
  "format": "int64",
4978
4995
  "example": "8761"
4996
+ },
4997
+ "parent_hash": {
4998
+ "type": "string",
4999
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
4979
5000
  }
4980
5001
  },
4981
5002
  "title": "Tx",
@@ -4991,9 +5012,10 @@
4991
5012
  "nonce",
4992
5013
  "expire_at",
4993
5014
  "block_height",
4994
- "created_at",
5015
+ "queued_at",
4995
5016
  "executed_at",
4996
- "sequence_index"
5017
+ "sequence_index",
5018
+ "parent_hash"
4997
5019
  ]
4998
5020
  },
4999
5021
  "TxHash": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {