zklighter-perps 1.0.136 → 1.0.138
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/.openapi-generator/FILES +1 -0
- package/apis/InfoApi.ts +31 -0
- package/models/Deposit.ts +9 -0
- package/models/RespWithdrawalDelay.ts +61 -0
- package/models/index.ts +1 -0
- package/openapi.json +44 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/apis/InfoApi.ts
CHANGED
|
@@ -16,11 +16,14 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
Layer1BasicInfo,
|
|
19
|
+
RespWithdrawalDelay,
|
|
19
20
|
ResultCode,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
22
23
|
Layer1BasicInfoFromJSON,
|
|
23
24
|
Layer1BasicInfoToJSON,
|
|
25
|
+
RespWithdrawalDelayFromJSON,
|
|
26
|
+
RespWithdrawalDelayToJSON,
|
|
24
27
|
ResultCodeFromJSON,
|
|
25
28
|
ResultCodeToJSON,
|
|
26
29
|
} from '../models/index';
|
|
@@ -58,4 +61,32 @@ export class InfoApi extends runtime.BaseAPI {
|
|
|
58
61
|
return await response.value();
|
|
59
62
|
}
|
|
60
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Withdrawal delay in seconds
|
|
66
|
+
* withdrawalDelay
|
|
67
|
+
*/
|
|
68
|
+
async withdrawalDelayRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespWithdrawalDelay>> {
|
|
69
|
+
const queryParameters: any = {};
|
|
70
|
+
|
|
71
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
72
|
+
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/api/v1/withdrawalDelay`,
|
|
75
|
+
method: 'GET',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespWithdrawalDelayFromJSON(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Withdrawal delay in seconds
|
|
85
|
+
* withdrawalDelay
|
|
86
|
+
*/
|
|
87
|
+
async withdrawalDelay(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespWithdrawalDelay> {
|
|
88
|
+
const response = await this.withdrawalDelayRaw(initOverrides);
|
|
89
|
+
return await response.value();
|
|
90
|
+
}
|
|
91
|
+
|
|
61
92
|
}
|
package/models/Deposit.ts
CHANGED
|
@@ -109,6 +109,12 @@ export interface Deposit {
|
|
|
109
109
|
* @memberof Deposit
|
|
110
110
|
*/
|
|
111
111
|
is_external_deposit: boolean;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {boolean}
|
|
115
|
+
* @memberof Deposit
|
|
116
|
+
*/
|
|
117
|
+
is_next_bridge_fast: boolean;
|
|
112
118
|
}
|
|
113
119
|
|
|
114
120
|
/**
|
|
@@ -129,6 +135,7 @@ export function instanceOfDeposit(value: object): value is Deposit {
|
|
|
129
135
|
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
130
136
|
if (!('updated_at' in value) || value['updated_at'] === undefined) return false;
|
|
131
137
|
if (!('is_external_deposit' in value) || value['is_external_deposit'] === undefined) return false;
|
|
138
|
+
if (!('is_next_bridge_fast' in value) || value['is_next_bridge_fast'] === undefined) return false;
|
|
132
139
|
return true;
|
|
133
140
|
}
|
|
134
141
|
|
|
@@ -157,6 +164,7 @@ export function DepositFromJSONTyped(json: any, ignoreDiscriminator: boolean): D
|
|
|
157
164
|
'created_at': json['created_at'],
|
|
158
165
|
'updated_at': json['updated_at'],
|
|
159
166
|
'is_external_deposit': json['is_external_deposit'],
|
|
167
|
+
'is_next_bridge_fast': json['is_next_bridge_fast'],
|
|
160
168
|
};
|
|
161
169
|
}
|
|
162
170
|
|
|
@@ -181,6 +189,7 @@ export function DepositToJSON(value?: Deposit | null): any {
|
|
|
181
189
|
'created_at': value['created_at'],
|
|
182
190
|
'updated_at': value['updated_at'],
|
|
183
191
|
'is_external_deposit': value['is_external_deposit'],
|
|
192
|
+
'is_next_bridge_fast': value['is_next_bridge_fast'],
|
|
184
193
|
};
|
|
185
194
|
}
|
|
186
195
|
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RespWithdrawalDelay
|
|
20
|
+
*/
|
|
21
|
+
export interface RespWithdrawalDelay {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof RespWithdrawalDelay
|
|
26
|
+
*/
|
|
27
|
+
seconds: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the RespWithdrawalDelay interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfRespWithdrawalDelay(value: object): value is RespWithdrawalDelay {
|
|
34
|
+
if (!('seconds' in value) || value['seconds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function RespWithdrawalDelayFromJSON(json: any): RespWithdrawalDelay {
|
|
39
|
+
return RespWithdrawalDelayFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function RespWithdrawalDelayFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespWithdrawalDelay {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'seconds': json['seconds'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function RespWithdrawalDelayToJSON(value?: RespWithdrawalDelay | null): any {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'seconds': value['seconds'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
package/models/index.ts
CHANGED
|
@@ -114,6 +114,7 @@ export * from './ReqIsWhitelisted';
|
|
|
114
114
|
export * from './RespChangeAccountTier';
|
|
115
115
|
export * from './RespGetFastBridgeInfo';
|
|
116
116
|
export * from './RespGetFastwithdrawalInfo';
|
|
117
|
+
export * from './RespWithdrawalDelay';
|
|
117
118
|
export * from './ResultCode';
|
|
118
119
|
export * from './RiskInfo';
|
|
119
120
|
export * from './RiskParameters';
|
package/openapi.json
CHANGED
|
@@ -2869,6 +2869,30 @@
|
|
|
2869
2869
|
"description": "Get withdraw history"
|
|
2870
2870
|
}
|
|
2871
2871
|
},
|
|
2872
|
+
"/api/v1/withdrawalDelay": {
|
|
2873
|
+
"get": {
|
|
2874
|
+
"summary": "withdrawalDelay",
|
|
2875
|
+
"operationId": "withdrawalDelay",
|
|
2876
|
+
"responses": {
|
|
2877
|
+
"200": {
|
|
2878
|
+
"description": "A successful response.",
|
|
2879
|
+
"schema": {
|
|
2880
|
+
"$ref": "#/definitions/RespWithdrawalDelay"
|
|
2881
|
+
}
|
|
2882
|
+
},
|
|
2883
|
+
"400": {
|
|
2884
|
+
"description": "Bad request",
|
|
2885
|
+
"schema": {
|
|
2886
|
+
"$ref": "#/definitions/ResultCode"
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
},
|
|
2890
|
+
"tags": [
|
|
2891
|
+
"info"
|
|
2892
|
+
],
|
|
2893
|
+
"description": "Withdrawal delay in seconds"
|
|
2894
|
+
}
|
|
2895
|
+
},
|
|
2872
2896
|
"/info": {
|
|
2873
2897
|
"get": {
|
|
2874
2898
|
"summary": "info",
|
|
@@ -3868,6 +3892,10 @@
|
|
|
3868
3892
|
"is_external_deposit": {
|
|
3869
3893
|
"type": "boolean",
|
|
3870
3894
|
"format": "boolean"
|
|
3895
|
+
},
|
|
3896
|
+
"is_next_bridge_fast": {
|
|
3897
|
+
"type": "boolean",
|
|
3898
|
+
"format": "boolean"
|
|
3871
3899
|
}
|
|
3872
3900
|
},
|
|
3873
3901
|
"title": "Deposit",
|
|
@@ -3885,7 +3913,8 @@
|
|
|
3885
3913
|
"description",
|
|
3886
3914
|
"created_at",
|
|
3887
3915
|
"updated_at",
|
|
3888
|
-
"is_external_deposit"
|
|
3916
|
+
"is_external_deposit",
|
|
3917
|
+
"is_next_bridge_fast"
|
|
3889
3918
|
]
|
|
3890
3919
|
},
|
|
3891
3920
|
"DepositHistory": {
|
|
@@ -7288,6 +7317,20 @@
|
|
|
7288
7317
|
"max_withdrawal_amount"
|
|
7289
7318
|
]
|
|
7290
7319
|
},
|
|
7320
|
+
"RespWithdrawalDelay": {
|
|
7321
|
+
"type": "object",
|
|
7322
|
+
"properties": {
|
|
7323
|
+
"seconds": {
|
|
7324
|
+
"type": "integer",
|
|
7325
|
+
"format": "int64",
|
|
7326
|
+
"example": "86400"
|
|
7327
|
+
}
|
|
7328
|
+
},
|
|
7329
|
+
"title": "RespWithdrawalDelay",
|
|
7330
|
+
"required": [
|
|
7331
|
+
"seconds"
|
|
7332
|
+
]
|
|
7333
|
+
},
|
|
7291
7334
|
"ResultCode": {
|
|
7292
7335
|
"type": "object",
|
|
7293
7336
|
"properties": {
|