zklighter-perps 1.0.143 → 1.0.145
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/Account.ts +9 -0
- package/models/DetailedAccount.ts +9 -0
- package/models/PublicPool.ts +9 -0
- package/models/ReqGetTransferFeeInfo.ts +76 -0
- package/models/TransferFeeInfo.ts +78 -0
- package/openapi.json +16 -1
- package/package.json +1 -1
package/models/Account.ts
CHANGED
|
@@ -85,6 +85,12 @@ export interface Account {
|
|
|
85
85
|
* @memberof Account
|
|
86
86
|
*/
|
|
87
87
|
collateral: string;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof Account
|
|
92
|
+
*/
|
|
93
|
+
referral_code: string;
|
|
88
94
|
}
|
|
89
95
|
|
|
90
96
|
/**
|
|
@@ -101,6 +107,7 @@ export function instanceOfAccount(value: object): value is Account {
|
|
|
101
107
|
if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
|
|
102
108
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
103
109
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
110
|
+
if (!('referral_code' in value) || value['referral_code'] === undefined) return false;
|
|
104
111
|
return true;
|
|
105
112
|
}
|
|
106
113
|
|
|
@@ -125,6 +132,7 @@ export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): A
|
|
|
125
132
|
'pending_order_count': json['pending_order_count'],
|
|
126
133
|
'status': json['status'],
|
|
127
134
|
'collateral': json['collateral'],
|
|
135
|
+
'referral_code': json['referral_code'],
|
|
128
136
|
};
|
|
129
137
|
}
|
|
130
138
|
|
|
@@ -145,6 +153,7 @@ export function AccountToJSON(value?: Account | null): any {
|
|
|
145
153
|
'pending_order_count': value['pending_order_count'],
|
|
146
154
|
'status': value['status'],
|
|
147
155
|
'collateral': value['collateral'],
|
|
156
|
+
'referral_code': value['referral_code'],
|
|
148
157
|
};
|
|
149
158
|
}
|
|
150
159
|
|
|
@@ -104,6 +104,12 @@ export interface DetailedAccount {
|
|
|
104
104
|
* @memberof DetailedAccount
|
|
105
105
|
*/
|
|
106
106
|
collateral: string;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof DetailedAccount
|
|
111
|
+
*/
|
|
112
|
+
referral_code: string;
|
|
107
113
|
/**
|
|
108
114
|
*
|
|
109
115
|
* @type {number}
|
|
@@ -180,6 +186,7 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
|
|
|
180
186
|
if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
|
|
181
187
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
182
188
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
189
|
+
if (!('referral_code' in value) || value['referral_code'] === undefined) return false;
|
|
183
190
|
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
184
191
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
185
192
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
@@ -214,6 +221,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
214
221
|
'pending_order_count': json['pending_order_count'],
|
|
215
222
|
'status': json['status'],
|
|
216
223
|
'collateral': json['collateral'],
|
|
224
|
+
'referral_code': json['referral_code'],
|
|
217
225
|
'account_index': json['account_index'],
|
|
218
226
|
'name': json['name'],
|
|
219
227
|
'description': json['description'],
|
|
@@ -244,6 +252,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
|
|
|
244
252
|
'pending_order_count': value['pending_order_count'],
|
|
245
253
|
'status': value['status'],
|
|
246
254
|
'collateral': value['collateral'],
|
|
255
|
+
'referral_code': value['referral_code'],
|
|
247
256
|
'account_index': value['account_index'],
|
|
248
257
|
'name': value['name'],
|
|
249
258
|
'description': value['description'],
|
package/models/PublicPool.ts
CHANGED
|
@@ -98,6 +98,12 @@ export interface PublicPool {
|
|
|
98
98
|
* @memberof PublicPool
|
|
99
99
|
*/
|
|
100
100
|
collateral: string;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof PublicPool
|
|
105
|
+
*/
|
|
106
|
+
referral_code: string;
|
|
101
107
|
/**
|
|
102
108
|
*
|
|
103
109
|
* @type {number}
|
|
@@ -168,6 +174,7 @@ export function instanceOfPublicPool(value: object): value is PublicPool {
|
|
|
168
174
|
if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
|
|
169
175
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
170
176
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
177
|
+
if (!('referral_code' in value) || value['referral_code'] === undefined) return false;
|
|
171
178
|
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
172
179
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
173
180
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
@@ -200,6 +207,7 @@ export function PublicPoolFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
200
207
|
'pending_order_count': json['pending_order_count'],
|
|
201
208
|
'status': json['status'],
|
|
202
209
|
'collateral': json['collateral'],
|
|
210
|
+
'referral_code': json['referral_code'],
|
|
203
211
|
'account_index': json['account_index'],
|
|
204
212
|
'name': json['name'],
|
|
205
213
|
'description': json['description'],
|
|
@@ -229,6 +237,7 @@ export function PublicPoolToJSON(value?: PublicPool | null): any {
|
|
|
229
237
|
'pending_order_count': value['pending_order_count'],
|
|
230
238
|
'status': value['status'],
|
|
231
239
|
'collateral': value['collateral'],
|
|
240
|
+
'referral_code': value['referral_code'],
|
|
232
241
|
'account_index': value['account_index'],
|
|
233
242
|
'name': value['name'],
|
|
234
243
|
'description': value['description'],
|
|
@@ -0,0 +1,76 @@
|
|
|
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 ReqGetTransferFeeInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface ReqGetTransferFeeInfo {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReqGetTransferFeeInfo
|
|
26
|
+
*/
|
|
27
|
+
auth?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ReqGetTransferFeeInfo
|
|
32
|
+
*/
|
|
33
|
+
account_index?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ReqGetTransferFeeInfo
|
|
38
|
+
*/
|
|
39
|
+
to_account_index?: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ReqGetTransferFeeInfo interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfReqGetTransferFeeInfo(value: object): value is ReqGetTransferFeeInfo {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ReqGetTransferFeeInfoFromJSON(json: any): ReqGetTransferFeeInfo {
|
|
50
|
+
return ReqGetTransferFeeInfoFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ReqGetTransferFeeInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetTransferFeeInfo {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
60
|
+
'account_index': json['account_index'] == null ? undefined : json['account_index'],
|
|
61
|
+
'to_account_index': json['to_account_index'] == null ? undefined : json['to_account_index'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ReqGetTransferFeeInfoToJSON(value?: ReqGetTransferFeeInfo | null): any {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'auth': value['auth'],
|
|
72
|
+
'account_index': value['account_index'],
|
|
73
|
+
'to_account_index': value['to_account_index'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
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 TransferFeeInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface TransferFeeInfo {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof TransferFeeInfo
|
|
26
|
+
*/
|
|
27
|
+
code: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TransferFeeInfo
|
|
32
|
+
*/
|
|
33
|
+
message?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof TransferFeeInfo
|
|
38
|
+
*/
|
|
39
|
+
transfer_fee_usdc: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the TransferFeeInfo interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfTransferFeeInfo(value: object): value is TransferFeeInfo {
|
|
46
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
47
|
+
if (!('transfer_fee_usdc' in value) || value['transfer_fee_usdc'] === undefined) return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TransferFeeInfoFromJSON(json: any): TransferFeeInfo {
|
|
52
|
+
return TransferFeeInfoFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function TransferFeeInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransferFeeInfo {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'code': json['code'],
|
|
62
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
63
|
+
'transfer_fee_usdc': json['transfer_fee_usdc'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function TransferFeeInfoToJSON(value?: TransferFeeInfo | null): any {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'code': value['code'],
|
|
74
|
+
'message': value['message'],
|
|
75
|
+
'transfer_fee_usdc': value['transfer_fee_usdc'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
package/openapi.json
CHANGED
|
@@ -2973,6 +2973,10 @@
|
|
|
2973
2973
|
"collateral": {
|
|
2974
2974
|
"type": "string",
|
|
2975
2975
|
"example": "46342"
|
|
2976
|
+
},
|
|
2977
|
+
"referral_code": {
|
|
2978
|
+
"type": "string",
|
|
2979
|
+
"example": "ABC123"
|
|
2976
2980
|
}
|
|
2977
2981
|
},
|
|
2978
2982
|
"title": "Account",
|
|
@@ -2986,7 +2990,8 @@
|
|
|
2986
2990
|
"total_isolated_order_count",
|
|
2987
2991
|
"pending_order_count",
|
|
2988
2992
|
"status",
|
|
2989
|
-
"collateral"
|
|
2993
|
+
"collateral",
|
|
2994
|
+
"referral_code"
|
|
2990
2995
|
]
|
|
2991
2996
|
},
|
|
2992
2997
|
"AccountApiKeys": {
|
|
@@ -4038,6 +4043,10 @@
|
|
|
4038
4043
|
"type": "string",
|
|
4039
4044
|
"example": "46342"
|
|
4040
4045
|
},
|
|
4046
|
+
"referral_code": {
|
|
4047
|
+
"type": "string",
|
|
4048
|
+
"example": "ABC123"
|
|
4049
|
+
},
|
|
4041
4050
|
"account_index": {
|
|
4042
4051
|
"type": "integer",
|
|
4043
4052
|
"format": "int64"
|
|
@@ -4093,6 +4102,7 @@
|
|
|
4093
4102
|
"pending_order_count",
|
|
4094
4103
|
"status",
|
|
4095
4104
|
"collateral",
|
|
4105
|
+
"referral_code",
|
|
4096
4106
|
"account_index",
|
|
4097
4107
|
"name",
|
|
4098
4108
|
"description",
|
|
@@ -5758,6 +5768,10 @@
|
|
|
5758
5768
|
"type": "string",
|
|
5759
5769
|
"example": "46342"
|
|
5760
5770
|
},
|
|
5771
|
+
"referral_code": {
|
|
5772
|
+
"type": "string",
|
|
5773
|
+
"example": "ABC123"
|
|
5774
|
+
},
|
|
5761
5775
|
"account_index": {
|
|
5762
5776
|
"type": "integer",
|
|
5763
5777
|
"format": "int64"
|
|
@@ -5804,6 +5818,7 @@
|
|
|
5804
5818
|
"pending_order_count",
|
|
5805
5819
|
"status",
|
|
5806
5820
|
"collateral",
|
|
5821
|
+
"referral_code",
|
|
5807
5822
|
"account_index",
|
|
5808
5823
|
"name",
|
|
5809
5824
|
"description",
|