zklighter-perps 1.0.353 → 1.0.355
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/apis/OrderApi.ts +10 -0
- package/models/ReqGetAggregatedTrades.ts +16 -0
- package/models/WithdrawHistoryItem.ts +27 -0
- package/openapi.json +44 -3
- package/package.json +1 -1
package/apis/OrderApi.ts
CHANGED
|
@@ -114,6 +114,8 @@ export interface AggregatedTradesRequest {
|
|
|
114
114
|
ask_filter?: number;
|
|
115
115
|
role?: AggregatedTradesRoleEnum;
|
|
116
116
|
type?: AggregatedTradesTypeEnum;
|
|
117
|
+
start_timestamp?: number;
|
|
118
|
+
end_timestamp?: number;
|
|
117
119
|
limit?: number;
|
|
118
120
|
}
|
|
119
121
|
|
|
@@ -498,6 +500,14 @@ export class OrderApi extends runtime.BaseAPI {
|
|
|
498
500
|
queryParameters['type'] = requestParameters['type'];
|
|
499
501
|
}
|
|
500
502
|
|
|
503
|
+
if (requestParameters['start_timestamp'] != null) {
|
|
504
|
+
queryParameters['start_timestamp'] = requestParameters['start_timestamp'];
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
if (requestParameters['end_timestamp'] != null) {
|
|
508
|
+
queryParameters['end_timestamp'] = requestParameters['end_timestamp'];
|
|
509
|
+
}
|
|
510
|
+
|
|
501
511
|
if (requestParameters['limit'] != null) {
|
|
502
512
|
queryParameters['limit'] = requestParameters['limit'];
|
|
503
513
|
}
|
|
@@ -67,6 +67,18 @@ export interface ReqGetAggregatedTrades {
|
|
|
67
67
|
* @memberof ReqGetAggregatedTrades
|
|
68
68
|
*/
|
|
69
69
|
type?: ReqGetAggregatedTradesTypeEnum;
|
|
70
|
+
/**
|
|
71
|
+
* Inclusive aggregate-row last_timestamp bound in milliseconds.
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof ReqGetAggregatedTrades
|
|
74
|
+
*/
|
|
75
|
+
start_timestamp?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Exclusive aggregate-row last_timestamp bound in milliseconds.
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof ReqGetAggregatedTrades
|
|
80
|
+
*/
|
|
81
|
+
end_timestamp?: number;
|
|
70
82
|
/**
|
|
71
83
|
*
|
|
72
84
|
* @type {number}
|
|
@@ -133,6 +145,8 @@ export function ReqGetAggregatedTradesFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
133
145
|
'ask_filter': json['ask_filter'] == null ? undefined : json['ask_filter'],
|
|
134
146
|
'role': json['role'] == null ? undefined : json['role'],
|
|
135
147
|
'type': json['type'] == null ? undefined : json['type'],
|
|
148
|
+
'start_timestamp': json['start_timestamp'] == null ? undefined : json['start_timestamp'],
|
|
149
|
+
'end_timestamp': json['end_timestamp'] == null ? undefined : json['end_timestamp'],
|
|
136
150
|
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
137
151
|
};
|
|
138
152
|
}
|
|
@@ -151,6 +165,8 @@ export function ReqGetAggregatedTradesToJSON(value?: ReqGetAggregatedTrades | nu
|
|
|
151
165
|
'ask_filter': value['ask_filter'],
|
|
152
166
|
'role': value['role'],
|
|
153
167
|
'type': value['type'],
|
|
168
|
+
'start_timestamp': value['start_timestamp'],
|
|
169
|
+
'end_timestamp': value['end_timestamp'],
|
|
154
170
|
'limit': value['limit'],
|
|
155
171
|
};
|
|
156
172
|
}
|
|
@@ -61,6 +61,24 @@ export interface WithdrawHistoryItem {
|
|
|
61
61
|
* @memberof WithdrawHistoryItem
|
|
62
62
|
*/
|
|
63
63
|
l1_tx_hash: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof WithdrawHistoryItem
|
|
68
|
+
*/
|
|
69
|
+
l2_tx_hash: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof WithdrawHistoryItem
|
|
74
|
+
*/
|
|
75
|
+
l1_claim_tx_hash: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof WithdrawHistoryItem
|
|
80
|
+
*/
|
|
81
|
+
l1_claim_amount: string;
|
|
64
82
|
}
|
|
65
83
|
|
|
66
84
|
|
|
@@ -97,6 +115,9 @@ export function instanceOfWithdrawHistoryItem(value: object): value is WithdrawH
|
|
|
97
115
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
98
116
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
99
117
|
if (!('l1_tx_hash' in value) || value['l1_tx_hash'] === undefined) return false;
|
|
118
|
+
if (!('l2_tx_hash' in value) || value['l2_tx_hash'] === undefined) return false;
|
|
119
|
+
if (!('l1_claim_tx_hash' in value) || value['l1_claim_tx_hash'] === undefined) return false;
|
|
120
|
+
if (!('l1_claim_amount' in value) || value['l1_claim_amount'] === undefined) return false;
|
|
100
121
|
return true;
|
|
101
122
|
}
|
|
102
123
|
|
|
@@ -117,6 +138,9 @@ export function WithdrawHistoryItemFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
117
138
|
'status': json['status'],
|
|
118
139
|
'type': json['type'],
|
|
119
140
|
'l1_tx_hash': json['l1_tx_hash'],
|
|
141
|
+
'l2_tx_hash': json['l2_tx_hash'],
|
|
142
|
+
'l1_claim_tx_hash': json['l1_claim_tx_hash'],
|
|
143
|
+
'l1_claim_amount': json['l1_claim_amount'],
|
|
120
144
|
};
|
|
121
145
|
}
|
|
122
146
|
|
|
@@ -133,6 +157,9 @@ export function WithdrawHistoryItemToJSON(value?: WithdrawHistoryItem | null): a
|
|
|
133
157
|
'status': value['status'],
|
|
134
158
|
'type': value['type'],
|
|
135
159
|
'l1_tx_hash': value['l1_tx_hash'],
|
|
160
|
+
'l2_tx_hash': value['l2_tx_hash'],
|
|
161
|
+
'l1_claim_tx_hash': value['l1_claim_tx_hash'],
|
|
162
|
+
'l1_claim_amount': value['l1_claim_amount'],
|
|
136
163
|
};
|
|
137
164
|
}
|
|
138
165
|
|
package/openapi.json
CHANGED
|
@@ -661,6 +661,22 @@
|
|
|
661
661
|
"market_settlement"
|
|
662
662
|
]
|
|
663
663
|
},
|
|
664
|
+
{
|
|
665
|
+
"name": "start_timestamp",
|
|
666
|
+
"description": " Inclusive aggregate-row last_timestamp bound in milliseconds.",
|
|
667
|
+
"in": "query",
|
|
668
|
+
"required": false,
|
|
669
|
+
"type": "integer",
|
|
670
|
+
"format": "int64"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"name": "end_timestamp",
|
|
674
|
+
"description": " Exclusive aggregate-row last_timestamp bound in milliseconds.",
|
|
675
|
+
"in": "query",
|
|
676
|
+
"required": false,
|
|
677
|
+
"type": "integer",
|
|
678
|
+
"format": "int64"
|
|
679
|
+
},
|
|
664
680
|
{
|
|
665
681
|
"name": "limit",
|
|
666
682
|
"in": "query",
|
|
@@ -669,7 +685,7 @@
|
|
|
669
685
|
"format": "int64",
|
|
670
686
|
"default": "100",
|
|
671
687
|
"minimum": 1,
|
|
672
|
-
"maximum":
|
|
688
|
+
"maximum": 1000
|
|
673
689
|
}
|
|
674
690
|
],
|
|
675
691
|
"tags": [
|
|
@@ -18026,11 +18042,21 @@
|
|
|
18026
18042
|
"market_settlement"
|
|
18027
18043
|
]
|
|
18028
18044
|
},
|
|
18045
|
+
"start_timestamp": {
|
|
18046
|
+
"type": "integer",
|
|
18047
|
+
"format": "int64",
|
|
18048
|
+
"description": " Inclusive aggregate-row last_timestamp bound in milliseconds."
|
|
18049
|
+
},
|
|
18050
|
+
"end_timestamp": {
|
|
18051
|
+
"type": "integer",
|
|
18052
|
+
"format": "int64",
|
|
18053
|
+
"description": " Exclusive aggregate-row last_timestamp bound in milliseconds."
|
|
18054
|
+
},
|
|
18029
18055
|
"limit": {
|
|
18030
18056
|
"type": "integer",
|
|
18031
18057
|
"format": "int64",
|
|
18032
18058
|
"default": "100",
|
|
18033
|
-
"maximum":
|
|
18059
|
+
"maximum": 1000,
|
|
18034
18060
|
"minimum": 1
|
|
18035
18061
|
}
|
|
18036
18062
|
},
|
|
@@ -25732,6 +25758,18 @@
|
|
|
25732
25758
|
"l1_tx_hash": {
|
|
25733
25759
|
"type": "string",
|
|
25734
25760
|
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
25761
|
+
},
|
|
25762
|
+
"l2_tx_hash": {
|
|
25763
|
+
"type": "string",
|
|
25764
|
+
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
25765
|
+
},
|
|
25766
|
+
"l1_claim_tx_hash": {
|
|
25767
|
+
"type": "string",
|
|
25768
|
+
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
25769
|
+
},
|
|
25770
|
+
"l1_claim_amount": {
|
|
25771
|
+
"type": "string",
|
|
25772
|
+
"example": "0.1"
|
|
25735
25773
|
}
|
|
25736
25774
|
},
|
|
25737
25775
|
"title": "WithdrawHistoryItem",
|
|
@@ -25742,7 +25780,10 @@
|
|
|
25742
25780
|
"timestamp",
|
|
25743
25781
|
"status",
|
|
25744
25782
|
"type",
|
|
25745
|
-
"l1_tx_hash"
|
|
25783
|
+
"l1_tx_hash",
|
|
25784
|
+
"l2_tx_hash",
|
|
25785
|
+
"l1_claim_tx_hash",
|
|
25786
|
+
"l1_claim_amount"
|
|
25746
25787
|
]
|
|
25747
25788
|
},
|
|
25748
25789
|
"ZkLighterInfo": {
|