zklighter-perps 1.0.197 → 1.0.199
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/.circleci/openapi_postprocess.py +3 -0
- package/models/DetailedAccount.ts +3 -4
- package/models/PendingUnlock.ts +12 -12
- package/openapi.json +7 -8
- package/package.json +1 -1
|
@@ -46,6 +46,9 @@ with open(FILE, "r") as f:
|
|
|
46
46
|
if "total_funding_paid_out" in required_fields:
|
|
47
47
|
required_fields.remove("total_funding_paid_out")
|
|
48
48
|
|
|
49
|
+
if "pending_unlocks" in required_fields:
|
|
50
|
+
required_fields.remove("pending_unlocks")
|
|
51
|
+
|
|
49
52
|
if len(required_fields) > 0:
|
|
50
53
|
data["definitions"][path]["required"] = required_fields
|
|
51
54
|
else:
|
|
@@ -199,7 +199,7 @@ export interface DetailedAccount {
|
|
|
199
199
|
* @type {Array<PendingUnlock>}
|
|
200
200
|
* @memberof DetailedAccount
|
|
201
201
|
*/
|
|
202
|
-
pending_unlocks
|
|
202
|
+
pending_unlocks?: Array<PendingUnlock>;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
/**
|
|
@@ -229,7 +229,6 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
|
|
|
229
229
|
if (!('cross_asset_value' in value) || value['cross_asset_value'] === undefined) return false;
|
|
230
230
|
if (!('pool_info' in value) || value['pool_info'] === undefined) return false;
|
|
231
231
|
if (!('shares' in value) || value['shares'] === undefined) return false;
|
|
232
|
-
if (!('pending_unlocks' in value) || value['pending_unlocks'] === undefined) return false;
|
|
233
232
|
return true;
|
|
234
233
|
}
|
|
235
234
|
|
|
@@ -267,7 +266,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
267
266
|
'cross_asset_value': json['cross_asset_value'],
|
|
268
267
|
'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
|
|
269
268
|
'shares': ((json['shares'] as Array<any>).map(PublicPoolShareFromJSON)),
|
|
270
|
-
'pending_unlocks': ((json['pending_unlocks'] as Array<any>).map(PendingUnlockFromJSON)),
|
|
269
|
+
'pending_unlocks': json['pending_unlocks'] == null ? undefined : ((json['pending_unlocks'] as Array<any>).map(PendingUnlockFromJSON)),
|
|
271
270
|
};
|
|
272
271
|
}
|
|
273
272
|
|
|
@@ -301,7 +300,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
|
|
|
301
300
|
'cross_asset_value': value['cross_asset_value'],
|
|
302
301
|
'pool_info': PublicPoolInfoToJSON(value['pool_info']),
|
|
303
302
|
'shares': ((value['shares'] as Array<any>).map(PublicPoolShareToJSON)),
|
|
304
|
-
'pending_unlocks': ((value['pending_unlocks'] as Array<any>).map(PendingUnlockToJSON)),
|
|
303
|
+
'pending_unlocks': value['pending_unlocks'] == null ? undefined : ((value['pending_unlocks'] as Array<any>).map(PendingUnlockToJSON)),
|
|
305
304
|
};
|
|
306
305
|
}
|
|
307
306
|
|
package/models/PendingUnlock.ts
CHANGED
|
@@ -24,28 +24,28 @@ export interface PendingUnlock {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof PendingUnlock
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
pu_ut: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof PendingUnlock
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
pu_asi: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof PendingUnlock
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
pu_amt: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Check if a given object implements the PendingUnlock interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfPendingUnlock(value: object): value is PendingUnlock {
|
|
46
|
-
if (!('
|
|
47
|
-
if (!('
|
|
48
|
-
if (!('
|
|
46
|
+
if (!('pu_ut' in value) || value['pu_ut'] === undefined) return false;
|
|
47
|
+
if (!('pu_asi' in value) || value['pu_asi'] === undefined) return false;
|
|
48
|
+
if (!('pu_amt' in value) || value['pu_amt'] === undefined) return false;
|
|
49
49
|
return true;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -59,9 +59,9 @@ export function PendingUnlockFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
59
59
|
}
|
|
60
60
|
return {
|
|
61
61
|
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
62
|
+
'pu_ut': json['pu_ut'],
|
|
63
|
+
'pu_asi': json['pu_asi'],
|
|
64
|
+
'pu_amt': json['pu_amt'],
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -71,9 +71,9 @@ export function PendingUnlockToJSON(value?: PendingUnlock | null): any {
|
|
|
71
71
|
}
|
|
72
72
|
return {
|
|
73
73
|
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
74
|
+
'pu_ut': value['pu_ut'],
|
|
75
|
+
'pu_asi': value['pu_asi'],
|
|
76
|
+
'pu_amt': value['pu_amt'],
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
|
package/openapi.json
CHANGED
|
@@ -5392,8 +5392,7 @@
|
|
|
5392
5392
|
"total_asset_value",
|
|
5393
5393
|
"cross_asset_value",
|
|
5394
5394
|
"pool_info",
|
|
5395
|
-
"shares"
|
|
5396
|
-
"pending_unlocks"
|
|
5395
|
+
"shares"
|
|
5397
5396
|
]
|
|
5398
5397
|
},
|
|
5399
5398
|
"DetailedAccounts": {
|
|
@@ -7063,26 +7062,26 @@
|
|
|
7063
7062
|
"PendingUnlock": {
|
|
7064
7063
|
"type": "object",
|
|
7065
7064
|
"properties": {
|
|
7066
|
-
"
|
|
7065
|
+
"pu_ut": {
|
|
7067
7066
|
"type": "integer",
|
|
7068
7067
|
"format": "int64",
|
|
7069
7068
|
"example": "1"
|
|
7070
7069
|
},
|
|
7071
|
-
"
|
|
7070
|
+
"pu_asi": {
|
|
7072
7071
|
"type": "integer",
|
|
7073
7072
|
"format": "int16",
|
|
7074
7073
|
"example": "1"
|
|
7075
7074
|
},
|
|
7076
|
-
"
|
|
7075
|
+
"pu_amt": {
|
|
7077
7076
|
"type": "string",
|
|
7078
7077
|
"example": "1"
|
|
7079
7078
|
}
|
|
7080
7079
|
},
|
|
7081
7080
|
"title": "PendingUnlock",
|
|
7082
7081
|
"required": [
|
|
7083
|
-
"
|
|
7084
|
-
"
|
|
7085
|
-
"
|
|
7082
|
+
"pu_ut",
|
|
7083
|
+
"pu_asi",
|
|
7084
|
+
"pu_amt"
|
|
7086
7085
|
]
|
|
7087
7086
|
},
|
|
7088
7087
|
"PerpsMarketStats": {
|