zklighter-perps 1.0.259 → 1.0.260
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 +2 -0
- package/apis/NotificationApi.ts +6 -8
- package/models/RespRollingInfo.ts +4 -10
- package/openapi.json +10 -2
- package/package.json +1 -1
|
@@ -47,6 +47,8 @@ with open(FILE, "r") as f:
|
|
|
47
47
|
return {"type": "integer", "format": "int64"}
|
|
48
48
|
if obj.get("$ref") == "#/definitions/mapint16string":
|
|
49
49
|
return {"type": "object", "additionalProperties": {"type": "string"}}
|
|
50
|
+
if obj.get("$ref") == "#/definitions/mapstringfloat64":
|
|
51
|
+
return {"type": "object", "additionalProperties": {"type": "number", "format": "double"}}
|
|
50
52
|
return {k: replace_int16_refs(v) for k, v in obj.items()}
|
|
51
53
|
if isinstance(obj, list):
|
|
52
54
|
return [replace_int16_refs(i) for i in obj]
|
package/apis/NotificationApi.ts
CHANGED
|
@@ -23,9 +23,10 @@ import {
|
|
|
23
23
|
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
export interface NotificationAckRequest {
|
|
26
|
-
notif_id: string;
|
|
27
26
|
account_index: number;
|
|
28
27
|
authorization?: string;
|
|
28
|
+
notif_id?: string;
|
|
29
|
+
ack_all?: boolean;
|
|
29
30
|
auth?: string;
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -39,13 +40,6 @@ export class NotificationApi extends runtime.BaseAPI {
|
|
|
39
40
|
* notification_ack
|
|
40
41
|
*/
|
|
41
42
|
async notificationAckRaw(requestParameters: NotificationAckRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResultCode>> {
|
|
42
|
-
if (requestParameters['notif_id'] == null) {
|
|
43
|
-
throw new runtime.RequiredError(
|
|
44
|
-
'notif_id',
|
|
45
|
-
'Required parameter "notif_id" was null or undefined when calling notificationAck().'
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
43
|
if (requestParameters['account_index'] == null) {
|
|
50
44
|
throw new runtime.RequiredError(
|
|
51
45
|
'account_index',
|
|
@@ -79,6 +73,10 @@ export class NotificationApi extends runtime.BaseAPI {
|
|
|
79
73
|
formParams.append('notif_id', requestParameters['notif_id'] as any);
|
|
80
74
|
}
|
|
81
75
|
|
|
76
|
+
if (requestParameters['ack_all'] != null) {
|
|
77
|
+
formParams.append('ack_all', requestParameters['ack_all'] as any);
|
|
78
|
+
}
|
|
79
|
+
|
|
82
80
|
if (requestParameters['auth'] != null) {
|
|
83
81
|
formParams.append('auth', requestParameters['auth'] as any);
|
|
84
82
|
}
|
|
@@ -13,12 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { Mapstringfloat64 } from './Mapstringfloat64';
|
|
17
|
-
import {
|
|
18
|
-
Mapstringfloat64FromJSON,
|
|
19
|
-
Mapstringfloat64FromJSONTyped,
|
|
20
|
-
Mapstringfloat64ToJSON,
|
|
21
|
-
} from './Mapstringfloat64';
|
|
22
16
|
import type { RollingContractResp } from './RollingContractResp';
|
|
23
17
|
import {
|
|
24
18
|
RollingContractRespFromJSON,
|
|
@@ -76,10 +70,10 @@ export interface RespRollingInfo {
|
|
|
76
70
|
estimated_roll_increase: number;
|
|
77
71
|
/**
|
|
78
72
|
*
|
|
79
|
-
* @type {
|
|
73
|
+
* @type {{ [key: string]: number; }}
|
|
80
74
|
* @memberof RespRollingInfo
|
|
81
75
|
*/
|
|
82
|
-
estimated_fundings:
|
|
76
|
+
estimated_fundings: { [key: string]: number; };
|
|
83
77
|
}
|
|
84
78
|
|
|
85
79
|
/**
|
|
@@ -112,7 +106,7 @@ export function RespRollingInfoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
112
106
|
'next': json['next'] == null ? undefined : RollingContractRespFromJSON(json['next']),
|
|
113
107
|
'roll_times_ms': json['roll_times_ms'],
|
|
114
108
|
'estimated_roll_increase': json['estimated_roll_increase'],
|
|
115
|
-
'estimated_fundings':
|
|
109
|
+
'estimated_fundings': json['estimated_fundings'],
|
|
116
110
|
};
|
|
117
111
|
}
|
|
118
112
|
|
|
@@ -129,7 +123,7 @@ export function RespRollingInfoToJSON(value?: RespRollingInfo | null): any {
|
|
|
129
123
|
'next': RollingContractRespToJSON(value['next']),
|
|
130
124
|
'roll_times_ms': value['roll_times_ms'],
|
|
131
125
|
'estimated_roll_increase': value['estimated_roll_increase'],
|
|
132
|
-
'estimated_fundings':
|
|
126
|
+
'estimated_fundings': value['estimated_fundings'],
|
|
133
127
|
};
|
|
134
128
|
}
|
|
135
129
|
|
package/openapi.json
CHANGED
|
@@ -9945,6 +9945,11 @@
|
|
|
9945
9945
|
"type": "string",
|
|
9946
9946
|
"example": "'liq:17:5898'"
|
|
9947
9947
|
},
|
|
9948
|
+
"ack_all": {
|
|
9949
|
+
"type": "boolean",
|
|
9950
|
+
"format": "boolean",
|
|
9951
|
+
"default": "false"
|
|
9952
|
+
},
|
|
9948
9953
|
"auth": {
|
|
9949
9954
|
"type": "string",
|
|
9950
9955
|
"description": " made optional to support header auth clients"
|
|
@@ -9956,7 +9961,6 @@
|
|
|
9956
9961
|
},
|
|
9957
9962
|
"title": "ReqAckNotif",
|
|
9958
9963
|
"required": [
|
|
9959
|
-
"notif_id",
|
|
9960
9964
|
"account_index"
|
|
9961
9965
|
]
|
|
9962
9966
|
},
|
|
@@ -12772,7 +12776,11 @@
|
|
|
12772
12776
|
"format": "double"
|
|
12773
12777
|
},
|
|
12774
12778
|
"estimated_fundings": {
|
|
12775
|
-
"
|
|
12779
|
+
"type": "object",
|
|
12780
|
+
"additionalProperties": {
|
|
12781
|
+
"type": "number",
|
|
12782
|
+
"format": "double"
|
|
12783
|
+
}
|
|
12776
12784
|
}
|
|
12777
12785
|
},
|
|
12778
12786
|
"title": "RespRollingInfo",
|