zklighter-perps 1.0.75 → 1.0.76
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/BridgeApi.ts +0 -102
- package/apis/TransactionApi.ts +126 -0
- package/models/DepositHistoryItem.ts +9 -0
- package/models/ReqGetDepositHistory.ts +9 -0
- package/models/ReqGetWithdrawHistory.ts +9 -0
- package/models/WithdrawHistoryItem.ts +9 -0
- package/openapi.json +36 -6
- package/package.json +1 -1
package/apis/BridgeApi.ts
CHANGED
|
@@ -18,9 +18,7 @@ import type {
|
|
|
18
18
|
BridgeSupportedNetworks,
|
|
19
19
|
CreateIntentAddressResp,
|
|
20
20
|
Deposit,
|
|
21
|
-
DepositHistory,
|
|
22
21
|
ResultCode,
|
|
23
|
-
WithdrawHistory,
|
|
24
22
|
} from '../models/index';
|
|
25
23
|
import {
|
|
26
24
|
BridgeSupportedNetworksFromJSON,
|
|
@@ -29,12 +27,8 @@ import {
|
|
|
29
27
|
CreateIntentAddressRespToJSON,
|
|
30
28
|
DepositFromJSON,
|
|
31
29
|
DepositToJSON,
|
|
32
|
-
DepositHistoryFromJSON,
|
|
33
|
-
DepositHistoryToJSON,
|
|
34
30
|
ResultCodeFromJSON,
|
|
35
31
|
ResultCodeToJSON,
|
|
36
|
-
WithdrawHistoryFromJSON,
|
|
37
|
-
WithdrawHistoryToJSON,
|
|
38
32
|
} from '../models/index';
|
|
39
33
|
|
|
40
34
|
export interface CreateIntentAddressRequest {
|
|
@@ -49,20 +43,10 @@ export interface DepositCancelRequest {
|
|
|
49
43
|
chain_id: string;
|
|
50
44
|
}
|
|
51
45
|
|
|
52
|
-
export interface DepositHistoryRequest {
|
|
53
|
-
l1_address: string;
|
|
54
|
-
cursor?: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
46
|
export interface DepositLatestRequest {
|
|
58
47
|
l1_address: string;
|
|
59
48
|
}
|
|
60
49
|
|
|
61
|
-
export interface WithdrawHistoryRequest {
|
|
62
|
-
l1_address: string;
|
|
63
|
-
cursor?: string;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
50
|
/**
|
|
67
51
|
*
|
|
68
52
|
*/
|
|
@@ -213,49 +197,6 @@ export class BridgeApi extends runtime.BaseAPI {
|
|
|
213
197
|
return await response.value();
|
|
214
198
|
}
|
|
215
199
|
|
|
216
|
-
/**
|
|
217
|
-
* Get deposit history
|
|
218
|
-
* deposit_history
|
|
219
|
-
*/
|
|
220
|
-
async depositHistoryRaw(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DepositHistory>> {
|
|
221
|
-
if (requestParameters['l1_address'] == null) {
|
|
222
|
-
throw new runtime.RequiredError(
|
|
223
|
-
'l1_address',
|
|
224
|
-
'Required parameter "l1_address" was null or undefined when calling depositHistory().'
|
|
225
|
-
);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
const queryParameters: any = {};
|
|
229
|
-
|
|
230
|
-
if (requestParameters['l1_address'] != null) {
|
|
231
|
-
queryParameters['l1_address'] = requestParameters['l1_address'];
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
if (requestParameters['cursor'] != null) {
|
|
235
|
-
queryParameters['cursor'] = requestParameters['cursor'];
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
239
|
-
|
|
240
|
-
const response = await this.request({
|
|
241
|
-
path: `/api/v1/deposit/history`,
|
|
242
|
-
method: 'GET',
|
|
243
|
-
headers: headerParameters,
|
|
244
|
-
query: queryParameters,
|
|
245
|
-
}, initOverrides);
|
|
246
|
-
|
|
247
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => DepositHistoryFromJSON(jsonValue));
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Get deposit history
|
|
252
|
-
* deposit_history
|
|
253
|
-
*/
|
|
254
|
-
async depositHistory(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DepositHistory> {
|
|
255
|
-
const response = await this.depositHistoryRaw(requestParameters, initOverrides);
|
|
256
|
-
return await response.value();
|
|
257
|
-
}
|
|
258
|
-
|
|
259
200
|
/**
|
|
260
201
|
* Get most recent deposit for given l1 address
|
|
261
202
|
* deposit_latest
|
|
@@ -323,47 +264,4 @@ export class BridgeApi extends runtime.BaseAPI {
|
|
|
323
264
|
return await response.value();
|
|
324
265
|
}
|
|
325
266
|
|
|
326
|
-
/**
|
|
327
|
-
* Get withdraw history
|
|
328
|
-
* withdraw_history
|
|
329
|
-
*/
|
|
330
|
-
async withdrawHistoryRaw(requestParameters: WithdrawHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WithdrawHistory>> {
|
|
331
|
-
if (requestParameters['l1_address'] == null) {
|
|
332
|
-
throw new runtime.RequiredError(
|
|
333
|
-
'l1_address',
|
|
334
|
-
'Required parameter "l1_address" was null or undefined when calling withdrawHistory().'
|
|
335
|
-
);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
const queryParameters: any = {};
|
|
339
|
-
|
|
340
|
-
if (requestParameters['l1_address'] != null) {
|
|
341
|
-
queryParameters['l1_address'] = requestParameters['l1_address'];
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
if (requestParameters['cursor'] != null) {
|
|
345
|
-
queryParameters['cursor'] = requestParameters['cursor'];
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
349
|
-
|
|
350
|
-
const response = await this.request({
|
|
351
|
-
path: `/api/v1/withdraw/history`,
|
|
352
|
-
method: 'GET',
|
|
353
|
-
headers: headerParameters,
|
|
354
|
-
query: queryParameters,
|
|
355
|
-
}, initOverrides);
|
|
356
|
-
|
|
357
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => WithdrawHistoryFromJSON(jsonValue));
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
/**
|
|
361
|
-
* Get withdraw history
|
|
362
|
-
* withdraw_history
|
|
363
|
-
*/
|
|
364
|
-
async withdrawHistory(requestParameters: WithdrawHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WithdrawHistory> {
|
|
365
|
-
const response = await this.withdrawHistoryRaw(requestParameters, initOverrides);
|
|
366
|
-
return await response.value();
|
|
367
|
-
}
|
|
368
|
-
|
|
369
267
|
}
|
package/apis/TransactionApi.ts
CHANGED
|
@@ -15,14 +15,18 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
DepositHistory,
|
|
18
19
|
EnrichedTx,
|
|
19
20
|
NextNonce,
|
|
20
21
|
ResultCode,
|
|
21
22
|
TxHash,
|
|
22
23
|
TxHashes,
|
|
23
24
|
Txs,
|
|
25
|
+
WithdrawHistory,
|
|
24
26
|
} from '../models/index';
|
|
25
27
|
import {
|
|
28
|
+
DepositHistoryFromJSON,
|
|
29
|
+
DepositHistoryToJSON,
|
|
26
30
|
EnrichedTxFromJSON,
|
|
27
31
|
EnrichedTxToJSON,
|
|
28
32
|
NextNonceFromJSON,
|
|
@@ -35,6 +39,8 @@ import {
|
|
|
35
39
|
TxHashesToJSON,
|
|
36
40
|
TxsFromJSON,
|
|
37
41
|
TxsToJSON,
|
|
42
|
+
WithdrawHistoryFromJSON,
|
|
43
|
+
WithdrawHistoryToJSON,
|
|
38
44
|
} from '../models/index';
|
|
39
45
|
|
|
40
46
|
export interface AccountPendingTxsRequest {
|
|
@@ -56,6 +62,12 @@ export interface BlockTxsRequest {
|
|
|
56
62
|
value: string;
|
|
57
63
|
}
|
|
58
64
|
|
|
65
|
+
export interface DepositHistoryRequest {
|
|
66
|
+
l1_address: string;
|
|
67
|
+
filter: string;
|
|
68
|
+
cursor?: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
59
71
|
export interface NextNonceRequest {
|
|
60
72
|
account_index: number;
|
|
61
73
|
api_key_index: number;
|
|
@@ -99,6 +111,12 @@ export interface TxsRequest {
|
|
|
99
111
|
index?: number;
|
|
100
112
|
}
|
|
101
113
|
|
|
114
|
+
export interface WithdrawHistoryRequest {
|
|
115
|
+
l1_address: string;
|
|
116
|
+
filter: string;
|
|
117
|
+
cursor?: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
102
120
|
/**
|
|
103
121
|
*
|
|
104
122
|
*/
|
|
@@ -277,6 +295,60 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
277
295
|
return await response.value();
|
|
278
296
|
}
|
|
279
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Get deposit history
|
|
300
|
+
* deposit_history
|
|
301
|
+
*/
|
|
302
|
+
async depositHistoryRaw(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DepositHistory>> {
|
|
303
|
+
if (requestParameters['l1_address'] == null) {
|
|
304
|
+
throw new runtime.RequiredError(
|
|
305
|
+
'l1_address',
|
|
306
|
+
'Required parameter "l1_address" was null or undefined when calling depositHistory().'
|
|
307
|
+
);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
if (requestParameters['filter'] == null) {
|
|
311
|
+
throw new runtime.RequiredError(
|
|
312
|
+
'filter',
|
|
313
|
+
'Required parameter "filter" was null or undefined when calling depositHistory().'
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
const queryParameters: any = {};
|
|
318
|
+
|
|
319
|
+
if (requestParameters['l1_address'] != null) {
|
|
320
|
+
queryParameters['l1_address'] = requestParameters['l1_address'];
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
if (requestParameters['cursor'] != null) {
|
|
324
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
if (requestParameters['filter'] != null) {
|
|
328
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
332
|
+
|
|
333
|
+
const response = await this.request({
|
|
334
|
+
path: `/api/v1/deposit/history`,
|
|
335
|
+
method: 'GET',
|
|
336
|
+
headers: headerParameters,
|
|
337
|
+
query: queryParameters,
|
|
338
|
+
}, initOverrides);
|
|
339
|
+
|
|
340
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DepositHistoryFromJSON(jsonValue));
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Get deposit history
|
|
345
|
+
* deposit_history
|
|
346
|
+
*/
|
|
347
|
+
async depositHistory(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DepositHistory> {
|
|
348
|
+
const response = await this.depositHistoryRaw(requestParameters, initOverrides);
|
|
349
|
+
return await response.value();
|
|
350
|
+
}
|
|
351
|
+
|
|
280
352
|
/**
|
|
281
353
|
* Get next nonce for a specific account
|
|
282
354
|
* nextNonce
|
|
@@ -734,6 +806,60 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
734
806
|
return await response.value();
|
|
735
807
|
}
|
|
736
808
|
|
|
809
|
+
/**
|
|
810
|
+
* Get withdraw history
|
|
811
|
+
* withdraw_history
|
|
812
|
+
*/
|
|
813
|
+
async withdrawHistoryRaw(requestParameters: WithdrawHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WithdrawHistory>> {
|
|
814
|
+
if (requestParameters['l1_address'] == null) {
|
|
815
|
+
throw new runtime.RequiredError(
|
|
816
|
+
'l1_address',
|
|
817
|
+
'Required parameter "l1_address" was null or undefined when calling withdrawHistory().'
|
|
818
|
+
);
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
if (requestParameters['filter'] == null) {
|
|
822
|
+
throw new runtime.RequiredError(
|
|
823
|
+
'filter',
|
|
824
|
+
'Required parameter "filter" was null or undefined when calling withdrawHistory().'
|
|
825
|
+
);
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
const queryParameters: any = {};
|
|
829
|
+
|
|
830
|
+
if (requestParameters['l1_address'] != null) {
|
|
831
|
+
queryParameters['l1_address'] = requestParameters['l1_address'];
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
if (requestParameters['cursor'] != null) {
|
|
835
|
+
queryParameters['cursor'] = requestParameters['cursor'];
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
if (requestParameters['filter'] != null) {
|
|
839
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
843
|
+
|
|
844
|
+
const response = await this.request({
|
|
845
|
+
path: `/api/v1/withdraw/history`,
|
|
846
|
+
method: 'GET',
|
|
847
|
+
headers: headerParameters,
|
|
848
|
+
query: queryParameters,
|
|
849
|
+
}, initOverrides);
|
|
850
|
+
|
|
851
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WithdrawHistoryFromJSON(jsonValue));
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* Get withdraw history
|
|
856
|
+
* withdraw_history
|
|
857
|
+
*/
|
|
858
|
+
async withdrawHistory(requestParameters: WithdrawHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WithdrawHistory> {
|
|
859
|
+
const response = await this.withdrawHistoryRaw(requestParameters, initOverrides);
|
|
860
|
+
return await response.value();
|
|
861
|
+
}
|
|
862
|
+
|
|
737
863
|
}
|
|
738
864
|
|
|
739
865
|
/**
|
|
@@ -37,6 +37,12 @@ export interface DepositHistoryItem {
|
|
|
37
37
|
* @memberof DepositHistoryItem
|
|
38
38
|
*/
|
|
39
39
|
timestamp: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof DepositHistoryItem
|
|
44
|
+
*/
|
|
45
|
+
status: string;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -46,6 +52,7 @@ export function instanceOfDepositHistoryItem(value: object): value is DepositHis
|
|
|
46
52
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
53
|
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
48
54
|
if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
|
|
55
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
49
56
|
return true;
|
|
50
57
|
}
|
|
51
58
|
|
|
@@ -62,6 +69,7 @@ export function DepositHistoryItemFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
62
69
|
'id': json['id'],
|
|
63
70
|
'amount': json['amount'],
|
|
64
71
|
'timestamp': json['timestamp'],
|
|
72
|
+
'status': json['status'],
|
|
65
73
|
};
|
|
66
74
|
}
|
|
67
75
|
|
|
@@ -74,6 +82,7 @@ export function DepositHistoryItemToJSON(value?: DepositHistoryItem | null): any
|
|
|
74
82
|
'id': value['id'],
|
|
75
83
|
'amount': value['amount'],
|
|
76
84
|
'timestamp': value['timestamp'],
|
|
85
|
+
'status': value['status'],
|
|
77
86
|
};
|
|
78
87
|
}
|
|
79
88
|
|
|
@@ -31,6 +31,12 @@ export interface ReqGetDepositHistory {
|
|
|
31
31
|
* @memberof ReqGetDepositHistory
|
|
32
32
|
*/
|
|
33
33
|
cursor?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ReqGetDepositHistory
|
|
38
|
+
*/
|
|
39
|
+
filter: string;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/**
|
|
@@ -38,6 +44,7 @@ export interface ReqGetDepositHistory {
|
|
|
38
44
|
*/
|
|
39
45
|
export function instanceOfReqGetDepositHistory(value: object): value is ReqGetDepositHistory {
|
|
40
46
|
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
47
|
+
if (!('filter' in value) || value['filter'] === undefined) return false;
|
|
41
48
|
return true;
|
|
42
49
|
}
|
|
43
50
|
|
|
@@ -53,6 +60,7 @@ export function ReqGetDepositHistoryFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
53
60
|
|
|
54
61
|
'l1_address': json['l1_address'],
|
|
55
62
|
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
63
|
+
'filter': json['filter'],
|
|
56
64
|
};
|
|
57
65
|
}
|
|
58
66
|
|
|
@@ -64,6 +72,7 @@ export function ReqGetDepositHistoryToJSON(value?: ReqGetDepositHistory | null):
|
|
|
64
72
|
|
|
65
73
|
'l1_address': value['l1_address'],
|
|
66
74
|
'cursor': value['cursor'],
|
|
75
|
+
'filter': value['filter'],
|
|
67
76
|
};
|
|
68
77
|
}
|
|
69
78
|
|
|
@@ -31,6 +31,12 @@ export interface ReqGetWithdrawHistory {
|
|
|
31
31
|
* @memberof ReqGetWithdrawHistory
|
|
32
32
|
*/
|
|
33
33
|
cursor?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ReqGetWithdrawHistory
|
|
38
|
+
*/
|
|
39
|
+
filter: string;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/**
|
|
@@ -38,6 +44,7 @@ export interface ReqGetWithdrawHistory {
|
|
|
38
44
|
*/
|
|
39
45
|
export function instanceOfReqGetWithdrawHistory(value: object): value is ReqGetWithdrawHistory {
|
|
40
46
|
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
47
|
+
if (!('filter' in value) || value['filter'] === undefined) return false;
|
|
41
48
|
return true;
|
|
42
49
|
}
|
|
43
50
|
|
|
@@ -53,6 +60,7 @@ export function ReqGetWithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
53
60
|
|
|
54
61
|
'l1_address': json['l1_address'],
|
|
55
62
|
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
63
|
+
'filter': json['filter'],
|
|
56
64
|
};
|
|
57
65
|
}
|
|
58
66
|
|
|
@@ -64,6 +72,7 @@ export function ReqGetWithdrawHistoryToJSON(value?: ReqGetWithdrawHistory | null
|
|
|
64
72
|
|
|
65
73
|
'l1_address': value['l1_address'],
|
|
66
74
|
'cursor': value['cursor'],
|
|
75
|
+
'filter': value['filter'],
|
|
67
76
|
};
|
|
68
77
|
}
|
|
69
78
|
|
|
@@ -37,6 +37,12 @@ export interface WithdrawHistoryItem {
|
|
|
37
37
|
* @memberof WithdrawHistoryItem
|
|
38
38
|
*/
|
|
39
39
|
timestamp: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof WithdrawHistoryItem
|
|
44
|
+
*/
|
|
45
|
+
status: string;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -46,6 +52,7 @@ export function instanceOfWithdrawHistoryItem(value: object): value is WithdrawH
|
|
|
46
52
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
53
|
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
48
54
|
if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
|
|
55
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
49
56
|
return true;
|
|
50
57
|
}
|
|
51
58
|
|
|
@@ -62,6 +69,7 @@ export function WithdrawHistoryItemFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
62
69
|
'id': json['id'],
|
|
63
70
|
'amount': json['amount'],
|
|
64
71
|
'timestamp': json['timestamp'],
|
|
72
|
+
'status': json['status'],
|
|
65
73
|
};
|
|
66
74
|
}
|
|
67
75
|
|
|
@@ -74,6 +82,7 @@ export function WithdrawHistoryItemToJSON(value?: WithdrawHistoryItem | null): a
|
|
|
74
82
|
'id': value['id'],
|
|
75
83
|
'amount': value['amount'],
|
|
76
84
|
'timestamp': value['timestamp'],
|
|
85
|
+
'status': value['status'],
|
|
77
86
|
};
|
|
78
87
|
}
|
|
79
88
|
|
package/openapi.json
CHANGED
|
@@ -867,10 +867,16 @@
|
|
|
867
867
|
"in": "query",
|
|
868
868
|
"required": false,
|
|
869
869
|
"type": "string"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"name": "filter",
|
|
873
|
+
"in": "query",
|
|
874
|
+
"required": true,
|
|
875
|
+
"type": "string"
|
|
870
876
|
}
|
|
871
877
|
],
|
|
872
878
|
"tags": [
|
|
873
|
-
"
|
|
879
|
+
"transaction"
|
|
874
880
|
],
|
|
875
881
|
"consumes": [
|
|
876
882
|
"multipart/form-data"
|
|
@@ -2025,10 +2031,16 @@
|
|
|
2025
2031
|
"in": "query",
|
|
2026
2032
|
"required": false,
|
|
2027
2033
|
"type": "string"
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
"name": "filter",
|
|
2037
|
+
"in": "query",
|
|
2038
|
+
"required": true,
|
|
2039
|
+
"type": "string"
|
|
2028
2040
|
}
|
|
2029
2041
|
],
|
|
2030
2042
|
"tags": [
|
|
2031
|
-
"
|
|
2043
|
+
"transaction"
|
|
2032
2044
|
],
|
|
2033
2045
|
"consumes": [
|
|
2034
2046
|
"multipart/form-data"
|
|
@@ -2811,13 +2823,18 @@
|
|
|
2811
2823
|
"type": "integer",
|
|
2812
2824
|
"format": "int64",
|
|
2813
2825
|
"example": "1640995200"
|
|
2826
|
+
},
|
|
2827
|
+
"status": {
|
|
2828
|
+
"type": "string",
|
|
2829
|
+
"example": "pending|executed|failed"
|
|
2814
2830
|
}
|
|
2815
2831
|
},
|
|
2816
2832
|
"title": "DepositHistoryItem",
|
|
2817
2833
|
"required": [
|
|
2818
2834
|
"id",
|
|
2819
2835
|
"amount",
|
|
2820
|
-
"timestamp"
|
|
2836
|
+
"timestamp",
|
|
2837
|
+
"status"
|
|
2821
2838
|
]
|
|
2822
2839
|
},
|
|
2823
2840
|
"DetailedAccount": {
|
|
@@ -4863,11 +4880,15 @@
|
|
|
4863
4880
|
},
|
|
4864
4881
|
"cursor": {
|
|
4865
4882
|
"type": "string"
|
|
4883
|
+
},
|
|
4884
|
+
"filter": {
|
|
4885
|
+
"type": "string"
|
|
4866
4886
|
}
|
|
4867
4887
|
},
|
|
4868
4888
|
"title": "ReqGetDepositHistory",
|
|
4869
4889
|
"required": [
|
|
4870
|
-
"l1_address"
|
|
4890
|
+
"l1_address",
|
|
4891
|
+
"filter"
|
|
4871
4892
|
]
|
|
4872
4893
|
},
|
|
4873
4894
|
"ReqGetExchangeStats": {
|
|
@@ -5215,11 +5236,15 @@
|
|
|
5215
5236
|
},
|
|
5216
5237
|
"cursor": {
|
|
5217
5238
|
"type": "string"
|
|
5239
|
+
},
|
|
5240
|
+
"filter": {
|
|
5241
|
+
"type": "string"
|
|
5218
5242
|
}
|
|
5219
5243
|
},
|
|
5220
5244
|
"title": "ReqGetWithdrawHistory",
|
|
5221
5245
|
"required": [
|
|
5222
|
-
"l1_address"
|
|
5246
|
+
"l1_address",
|
|
5247
|
+
"filter"
|
|
5223
5248
|
]
|
|
5224
5249
|
},
|
|
5225
5250
|
"ReqIsWhitelisted": {
|
|
@@ -5806,13 +5831,18 @@
|
|
|
5806
5831
|
"type": "integer",
|
|
5807
5832
|
"format": "int64",
|
|
5808
5833
|
"example": "1640995200"
|
|
5834
|
+
},
|
|
5835
|
+
"status": {
|
|
5836
|
+
"type": "string",
|
|
5837
|
+
"example": "pending|executed|failed"
|
|
5809
5838
|
}
|
|
5810
5839
|
},
|
|
5811
5840
|
"title": "WithdrawHistoryItem",
|
|
5812
5841
|
"required": [
|
|
5813
5842
|
"id",
|
|
5814
5843
|
"amount",
|
|
5815
|
-
"timestamp"
|
|
5844
|
+
"timestamp",
|
|
5845
|
+
"status"
|
|
5816
5846
|
]
|
|
5817
5847
|
},
|
|
5818
5848
|
"ZkLighterInfo": {
|