zklighter-perps 1.0.162 → 1.0.164
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.
- package/models/Order.ts +18 -0
- package/models/TransferHistoryItem.ts +5 -1
- package/openapi.json +18 -2
- package/package.json +1 -1
package/models/Order.ts
CHANGED
|
@@ -205,6 +205,18 @@ export interface Order {
|
|
|
205
205
|
* @memberof Order
|
|
206
206
|
*/
|
|
207
207
|
timestamp: number;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @type {number}
|
|
211
|
+
* @memberof Order
|
|
212
|
+
*/
|
|
213
|
+
created_at: number;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {number}
|
|
217
|
+
* @memberof Order
|
|
218
|
+
*/
|
|
219
|
+
updated_at: number;
|
|
208
220
|
}
|
|
209
221
|
|
|
210
222
|
|
|
@@ -306,6 +318,8 @@ export function instanceOfOrder(value: object): value is Order {
|
|
|
306
318
|
if (!('to_cancel_order_id_0' in value) || value['to_cancel_order_id_0'] === undefined) return false;
|
|
307
319
|
if (!('block_height' in value) || value['block_height'] === undefined) return false;
|
|
308
320
|
if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
|
|
321
|
+
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
322
|
+
if (!('updated_at' in value) || value['updated_at'] === undefined) return false;
|
|
309
323
|
return true;
|
|
310
324
|
}
|
|
311
325
|
|
|
@@ -350,6 +364,8 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
|
|
|
350
364
|
'to_cancel_order_id_0': json['to_cancel_order_id_0'],
|
|
351
365
|
'block_height': json['block_height'],
|
|
352
366
|
'timestamp': json['timestamp'],
|
|
367
|
+
'created_at': json['created_at'],
|
|
368
|
+
'updated_at': json['updated_at'],
|
|
353
369
|
};
|
|
354
370
|
}
|
|
355
371
|
|
|
@@ -390,6 +406,8 @@ export function OrderToJSON(value?: Order | null): any {
|
|
|
390
406
|
'to_cancel_order_id_0': value['to_cancel_order_id_0'],
|
|
391
407
|
'block_height': value['block_height'],
|
|
392
408
|
'timestamp': value['timestamp'],
|
|
409
|
+
'created_at': value['created_at'],
|
|
410
|
+
'updated_at': value['updated_at'],
|
|
393
411
|
};
|
|
394
412
|
}
|
|
395
413
|
|
|
@@ -81,7 +81,11 @@ export interface TransferHistoryItem {
|
|
|
81
81
|
*/
|
|
82
82
|
export const TransferHistoryItemTypeEnum = {
|
|
83
83
|
L2TransferInflow: 'L2TransferInflow',
|
|
84
|
-
L2TransferOutflow: 'L2TransferOutflow'
|
|
84
|
+
L2TransferOutflow: 'L2TransferOutflow',
|
|
85
|
+
L2BurnSharesInflow: 'L2BurnSharesInflow',
|
|
86
|
+
L2BurnSharesOutflow: 'L2BurnSharesOutflow',
|
|
87
|
+
L2MintSharesInflow: 'L2MintSharesInflow',
|
|
88
|
+
L2MintSharesOutflow: 'L2MintSharesOutflow'
|
|
85
89
|
} as const;
|
|
86
90
|
export type TransferHistoryItemTypeEnum = typeof TransferHistoryItemTypeEnum[keyof typeof TransferHistoryItemTypeEnum];
|
|
87
91
|
|
package/openapi.json
CHANGED
|
@@ -5175,6 +5175,16 @@
|
|
|
5175
5175
|
"type": "integer",
|
|
5176
5176
|
"format": "int64",
|
|
5177
5177
|
"example": "1640995200"
|
|
5178
|
+
},
|
|
5179
|
+
"created_at": {
|
|
5180
|
+
"type": "integer",
|
|
5181
|
+
"format": "int64",
|
|
5182
|
+
"example": "1640995200"
|
|
5183
|
+
},
|
|
5184
|
+
"updated_at": {
|
|
5185
|
+
"type": "integer",
|
|
5186
|
+
"format": "int64",
|
|
5187
|
+
"example": "1640995200"
|
|
5178
5188
|
}
|
|
5179
5189
|
},
|
|
5180
5190
|
"title": "Order",
|
|
@@ -5209,7 +5219,9 @@
|
|
|
5209
5219
|
"to_trigger_order_id_1",
|
|
5210
5220
|
"to_cancel_order_id_0",
|
|
5211
5221
|
"block_height",
|
|
5212
|
-
"timestamp"
|
|
5222
|
+
"timestamp",
|
|
5223
|
+
"created_at",
|
|
5224
|
+
"updated_at"
|
|
5213
5225
|
]
|
|
5214
5226
|
},
|
|
5215
5227
|
"OrderBook": {
|
|
@@ -7917,7 +7929,11 @@
|
|
|
7917
7929
|
"type": "string",
|
|
7918
7930
|
"enum": [
|
|
7919
7931
|
"L2TransferInflow",
|
|
7920
|
-
"L2TransferOutflow"
|
|
7932
|
+
"L2TransferOutflow",
|
|
7933
|
+
"L2BurnSharesInflow",
|
|
7934
|
+
"L2BurnSharesOutflow",
|
|
7935
|
+
"L2MintSharesInflow",
|
|
7936
|
+
"L2MintSharesOutflow"
|
|
7921
7937
|
]
|
|
7922
7938
|
},
|
|
7923
7939
|
"from_l1_address": {
|