zklighter-perps 1.0.80 → 1.0.81
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/TransactionApi.ts +6 -6
- package/models/ReqGetDepositHistory.ts +5 -5
- package/openapi.json +5 -7
- package/package.json +1 -1
package/apis/TransactionApi.ts
CHANGED
|
@@ -63,7 +63,7 @@ export interface BlockTxsRequest {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export interface DepositHistoryRequest {
|
|
66
|
-
|
|
66
|
+
l1_address: string;
|
|
67
67
|
cursor?: string;
|
|
68
68
|
filter?: DepositHistoryFilterEnum;
|
|
69
69
|
}
|
|
@@ -300,17 +300,17 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
300
300
|
* deposit_history
|
|
301
301
|
*/
|
|
302
302
|
async depositHistoryRaw(requestParameters: DepositHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DepositHistory>> {
|
|
303
|
-
if (requestParameters['
|
|
303
|
+
if (requestParameters['l1_address'] == null) {
|
|
304
304
|
throw new runtime.RequiredError(
|
|
305
|
-
'
|
|
306
|
-
'Required parameter "
|
|
305
|
+
'l1_address',
|
|
306
|
+
'Required parameter "l1_address" was null or undefined when calling depositHistory().'
|
|
307
307
|
);
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
const queryParameters: any = {};
|
|
311
311
|
|
|
312
|
-
if (requestParameters['
|
|
313
|
-
queryParameters['
|
|
312
|
+
if (requestParameters['l1_address'] != null) {
|
|
313
|
+
queryParameters['l1_address'] = requestParameters['l1_address'];
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
if (requestParameters['cursor'] != null) {
|
|
@@ -21,10 +21,10 @@ import { mapValues } from '../runtime';
|
|
|
21
21
|
export interface ReqGetDepositHistory {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
|
-
* @type {
|
|
24
|
+
* @type {string}
|
|
25
25
|
* @memberof ReqGetDepositHistory
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
l1_address: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -55,7 +55,7 @@ export type ReqGetDepositHistoryFilterEnum = typeof ReqGetDepositHistoryFilterEn
|
|
|
55
55
|
* Check if a given object implements the ReqGetDepositHistory interface.
|
|
56
56
|
*/
|
|
57
57
|
export function instanceOfReqGetDepositHistory(value: object): value is ReqGetDepositHistory {
|
|
58
|
-
if (!('
|
|
58
|
+
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
59
59
|
return true;
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -69,7 +69,7 @@ export function ReqGetDepositHistoryFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
69
69
|
}
|
|
70
70
|
return {
|
|
71
71
|
|
|
72
|
-
'
|
|
72
|
+
'l1_address': json['l1_address'],
|
|
73
73
|
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
74
74
|
'filter': json['filter'] == null ? undefined : json['filter'],
|
|
75
75
|
};
|
|
@@ -81,7 +81,7 @@ export function ReqGetDepositHistoryToJSON(value?: ReqGetDepositHistory | null):
|
|
|
81
81
|
}
|
|
82
82
|
return {
|
|
83
83
|
|
|
84
|
-
'
|
|
84
|
+
'l1_address': value['l1_address'],
|
|
85
85
|
'cursor': value['cursor'],
|
|
86
86
|
'filter': value['filter'],
|
|
87
87
|
};
|
package/openapi.json
CHANGED
|
@@ -860,11 +860,10 @@
|
|
|
860
860
|
},
|
|
861
861
|
"parameters": [
|
|
862
862
|
{
|
|
863
|
-
"name": "
|
|
863
|
+
"name": "l1_address",
|
|
864
864
|
"in": "query",
|
|
865
865
|
"required": true,
|
|
866
|
-
"type": "
|
|
867
|
-
"format": "int64"
|
|
866
|
+
"type": "string"
|
|
868
867
|
},
|
|
869
868
|
{
|
|
870
869
|
"name": "cursor",
|
|
@@ -4990,9 +4989,8 @@
|
|
|
4990
4989
|
"ReqGetDepositHistory": {
|
|
4991
4990
|
"type": "object",
|
|
4992
4991
|
"properties": {
|
|
4993
|
-
"
|
|
4994
|
-
"type": "
|
|
4995
|
-
"format": "int64"
|
|
4992
|
+
"l1_address": {
|
|
4993
|
+
"type": "string"
|
|
4996
4994
|
},
|
|
4997
4995
|
"cursor": {
|
|
4998
4996
|
"type": "string"
|
|
@@ -5008,7 +5006,7 @@
|
|
|
5008
5006
|
},
|
|
5009
5007
|
"title": "ReqGetDepositHistory",
|
|
5010
5008
|
"required": [
|
|
5011
|
-
"
|
|
5009
|
+
"l1_address"
|
|
5012
5010
|
]
|
|
5013
5011
|
},
|
|
5014
5012
|
"ReqGetExchangeStats": {
|