zklighter-perps 1.0.100 → 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,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { Return } from './Return';
17
+ import {
18
+ ReturnFromJSON,
19
+ ReturnFromJSONTyped,
20
+ ReturnToJSON,
21
+ } from './Return';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -67,6 +74,18 @@ export interface PublicPoolInfo {
67
74
  * @memberof PublicPoolInfo
68
75
  */
69
76
  share_price_30d: number;
77
+ /**
78
+ *
79
+ * @type {number}
80
+ * @memberof PublicPoolInfo
81
+ */
82
+ annual_percentage_yield: number;
83
+ /**
84
+ *
85
+ * @type {Array<Return>}
86
+ * @memberof PublicPoolInfo
87
+ */
88
+ returns: Array<Return>;
70
89
  }
71
90
 
72
91
  /**
@@ -81,6 +100,8 @@ export function instanceOfPublicPoolInfo(value: object): value is PublicPoolInfo
81
100
  if (!('share_price_1d' in value) || value['share_price_1d'] === undefined) return false;
82
101
  if (!('share_price_7d' in value) || value['share_price_7d'] === undefined) return false;
83
102
  if (!('share_price_30d' in value) || value['share_price_30d'] === undefined) return false;
103
+ if (!('annual_percentage_yield' in value) || value['annual_percentage_yield'] === undefined) return false;
104
+ if (!('returns' in value) || value['returns'] === undefined) return false;
84
105
  return true;
85
106
  }
86
107
 
@@ -102,6 +123,8 @@ export function PublicPoolInfoFromJSONTyped(json: any, ignoreDiscriminator: bool
102
123
  'share_price_1d': json['share_price_1d'],
103
124
  'share_price_7d': json['share_price_7d'],
104
125
  'share_price_30d': json['share_price_30d'],
126
+ 'annual_percentage_yield': json['annual_percentage_yield'],
127
+ 'returns': ((json['returns'] as Array<any>).map(ReturnFromJSON)),
105
128
  };
106
129
  }
107
130
 
@@ -119,6 +142,8 @@ export function PublicPoolInfoToJSON(value?: PublicPoolInfo | null): any {
119
142
  'share_price_1d': value['share_price_1d'],
120
143
  'share_price_7d': value['share_price_7d'],
121
144
  'share_price_30d': value['share_price_30d'],
145
+ 'annual_percentage_yield': value['annual_percentage_yield'],
146
+ 'returns': ((value['returns'] as Array<any>).map(ReturnToJSON)),
122
147
  };
123
148
  }
124
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
@@ -4928,6 +4928,17 @@
4928
4928
  "type": "number",
4929
4929
  "format": "double",
4930
4930
  "example": "0.0001"
4931
+ },
4932
+ "annual_percentage_yield": {
4933
+ "type": "number",
4934
+ "format": "double",
4935
+ "example": "20.5000"
4936
+ },
4937
+ "returns": {
4938
+ "type": "array",
4939
+ "items": {
4940
+ "$ref": "#/definitions/Return"
4941
+ }
4931
4942
  }
4932
4943
  },
4933
4944
  "title": "PublicPoolInfo",
@@ -4939,7 +4950,9 @@
4939
4950
  "operator_shares",
4940
4951
  "share_price_1d",
4941
4952
  "share_price_7d",
4942
- "share_price_30d"
4953
+ "share_price_30d",
4954
+ "annual_percentage_yield",
4955
+ "returns"
4943
4956
  ]
4944
4957
  },
4945
4958
  "PublicPoolShare": {
@@ -6178,6 +6191,26 @@
6178
6191
  "code"
6179
6192
  ]
6180
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
+ },
6181
6214
  "SimpleOrder": {
6182
6215
  "type": "object",
6183
6216
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.100",
3
+ "version": "1.0.102",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {