zklighter-perps 1.0.100 → 1.0.101

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.
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { Float64 } from './Float64';
17
+ import {
18
+ Float64FromJSON,
19
+ Float64FromJSONTyped,
20
+ Float64ToJSON,
21
+ } from './Float64';
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<Float64>}
86
+ * @memberof PublicPoolInfo
87
+ */
88
+ returns: Array<Float64>;
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(Float64FromJSON)),
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(Float64ToJSON)),
122
147
  };
123
148
  }
124
149
 
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/float64"
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": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.100",
3
+ "version": "1.0.101",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {