zklighter-perps 1.0.101 → 1.0.102

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.
@@ -109,6 +109,7 @@ models/ReqIsWhitelisted.ts
109
109
  models/RespGetFastBridgeInfo.ts
110
110
  models/RespGetFastwithdrawalInfo.ts
111
111
  models/ResultCode.ts
112
+ models/Return.ts
112
113
  models/SimpleOrder.ts
113
114
  models/Status.ts
114
115
  models/SubAccounts.ts
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { Float64 } from './Float64';
16
+ import type { Return } from './Return';
17
17
  import {
18
- Float64FromJSON,
19
- Float64FromJSONTyped,
20
- Float64ToJSON,
21
- } from './Float64';
18
+ ReturnFromJSON,
19
+ ReturnFromJSONTyped,
20
+ ReturnToJSON,
21
+ } from './Return';
22
22
 
23
23
  /**
24
24
  *
@@ -82,10 +82,10 @@ export interface PublicPoolInfo {
82
82
  annual_percentage_yield: number;
83
83
  /**
84
84
  *
85
- * @type {Array<Float64>}
85
+ * @type {Array<Return>}
86
86
  * @memberof PublicPoolInfo
87
87
  */
88
- returns: Array<Float64>;
88
+ returns: Array<Return>;
89
89
  }
90
90
 
91
91
  /**
@@ -124,7 +124,7 @@ export function PublicPoolInfoFromJSONTyped(json: any, ignoreDiscriminator: bool
124
124
  'share_price_7d': json['share_price_7d'],
125
125
  'share_price_30d': json['share_price_30d'],
126
126
  'annual_percentage_yield': json['annual_percentage_yield'],
127
- 'returns': ((json['returns'] as Array<any>).map(Float64FromJSON)),
127
+ 'returns': ((json['returns'] as Array<any>).map(ReturnFromJSON)),
128
128
  };
129
129
  }
130
130
 
@@ -143,7 +143,7 @@ export function PublicPoolInfoToJSON(value?: PublicPoolInfo | null): any {
143
143
  'share_price_7d': value['share_price_7d'],
144
144
  'share_price_30d': value['share_price_30d'],
145
145
  'annual_percentage_yield': value['annual_percentage_yield'],
146
- 'returns': ((value['returns'] as Array<any>).map(Float64ToJSON)),
146
+ 'returns': ((value['returns'] as Array<any>).map(ReturnToJSON)),
147
147
  };
148
148
  }
149
149
 
@@ -0,0 +1,70 @@
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 Return
20
+ */
21
+ export interface Return {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof Return
26
+ */
27
+ timestamp: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof Return
32
+ */
33
+ _return: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the Return interface.
38
+ */
39
+ export function instanceOfReturn(value: object): value is Return {
40
+ if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
41
+ if (!('_return' in value) || value['_return'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ReturnFromJSON(json: any): Return {
46
+ return ReturnFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ReturnFromJSONTyped(json: any, ignoreDiscriminator: boolean): Return {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'timestamp': json['timestamp'],
56
+ '_return': json['return'],
57
+ };
58
+ }
59
+
60
+ export function ReturnToJSON(value?: Return | null): any {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+
66
+ 'timestamp': value['timestamp'],
67
+ 'return': value['_return'],
68
+ };
69
+ }
70
+
package/models/index.ts CHANGED
@@ -98,6 +98,7 @@ export * from './ReqIsWhitelisted';
98
98
  export * from './RespGetFastBridgeInfo';
99
99
  export * from './RespGetFastwithdrawalInfo';
100
100
  export * from './ResultCode';
101
+ export * from './Return';
101
102
  export * from './SimpleOrder';
102
103
  export * from './Status';
103
104
  export * from './SubAccounts';
package/openapi.json CHANGED
@@ -4937,7 +4937,7 @@
4937
4937
  "returns": {
4938
4938
  "type": "array",
4939
4939
  "items": {
4940
- "$ref": "#/definitions/float64"
4940
+ "$ref": "#/definitions/Return"
4941
4941
  }
4942
4942
  }
4943
4943
  },
@@ -6191,6 +6191,26 @@
6191
6191
  "code"
6192
6192
  ]
6193
6193
  },
6194
+ "Return": {
6195
+ "type": "object",
6196
+ "properties": {
6197
+ "timestamp": {
6198
+ "type": "integer",
6199
+ "format": "int64",
6200
+ "example": "1640995200"
6201
+ },
6202
+ "return": {
6203
+ "type": "number",
6204
+ "format": "double",
6205
+ "example": "0.0001"
6206
+ }
6207
+ },
6208
+ "title": "Return",
6209
+ "required": [
6210
+ "timestamp",
6211
+ "return"
6212
+ ]
6213
+ },
6194
6214
  "SimpleOrder": {
6195
6215
  "type": "object",
6196
6216
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.101",
3
+ "version": "1.0.102",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {