zklighter-perps 1.0.190 → 1.0.192

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.
@@ -79,12 +79,36 @@ export interface PnLEntry {
79
79
  * @memberof PnLEntry
80
80
  */
81
81
  pool_outflow: number;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof PnLEntry
86
+ */
87
+ staking_pnl: number;
88
+ /**
89
+ *
90
+ * @type {number}
91
+ * @memberof PnLEntry
92
+ */
93
+ staking_inflow: number;
94
+ /**
95
+ *
96
+ * @type {number}
97
+ * @memberof PnLEntry
98
+ */
99
+ staking_outflow: number;
82
100
  /**
83
101
  *
84
102
  * @type {number}
85
103
  * @memberof PnLEntry
86
104
  */
87
105
  pool_total_shares: number;
106
+ /**
107
+ *
108
+ * @type {number}
109
+ * @memberof PnLEntry
110
+ */
111
+ staked_lit: number;
88
112
  }
89
113
 
90
114
  /**
@@ -101,7 +125,11 @@ export function instanceOfPnLEntry(value: object): value is PnLEntry {
101
125
  if (!('pool_pnl' in value) || value['pool_pnl'] === undefined) return false;
102
126
  if (!('pool_inflow' in value) || value['pool_inflow'] === undefined) return false;
103
127
  if (!('pool_outflow' in value) || value['pool_outflow'] === undefined) return false;
128
+ if (!('staking_pnl' in value) || value['staking_pnl'] === undefined) return false;
129
+ if (!('staking_inflow' in value) || value['staking_inflow'] === undefined) return false;
130
+ if (!('staking_outflow' in value) || value['staking_outflow'] === undefined) return false;
104
131
  if (!('pool_total_shares' in value) || value['pool_total_shares'] === undefined) return false;
132
+ if (!('staked_lit' in value) || value['staked_lit'] === undefined) return false;
105
133
  return true;
106
134
  }
107
135
 
@@ -125,7 +153,11 @@ export function PnLEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
125
153
  'pool_pnl': json['pool_pnl'],
126
154
  'pool_inflow': json['pool_inflow'],
127
155
  'pool_outflow': json['pool_outflow'],
156
+ 'staking_pnl': json['staking_pnl'],
157
+ 'staking_inflow': json['staking_inflow'],
158
+ 'staking_outflow': json['staking_outflow'],
128
159
  'pool_total_shares': json['pool_total_shares'],
160
+ 'staked_lit': json['staked_lit'],
129
161
  };
130
162
  }
131
163
 
@@ -145,7 +177,11 @@ export function PnLEntryToJSON(value?: PnLEntry | null): any {
145
177
  'pool_pnl': value['pool_pnl'],
146
178
  'pool_inflow': value['pool_inflow'],
147
179
  'pool_outflow': value['pool_outflow'],
180
+ 'staking_pnl': value['staking_pnl'],
181
+ 'staking_inflow': value['staking_inflow'],
182
+ 'staking_outflow': value['staking_outflow'],
148
183
  'pool_total_shares': value['pool_total_shares'],
184
+ 'staked_lit': value['staked_lit'],
149
185
  };
150
186
  }
151
187
 
@@ -104,6 +104,18 @@ export interface PublicPoolMetadata {
104
104
  * @memberof PublicPoolMetadata
105
105
  */
106
106
  total_asset_value: string;
107
+ /**
108
+ *
109
+ * @type {string}
110
+ * @memberof PublicPoolMetadata
111
+ */
112
+ total_spot_value: string;
113
+ /**
114
+ *
115
+ * @type {string}
116
+ * @memberof PublicPoolMetadata
117
+ */
118
+ total_perps_value: string;
107
119
  /**
108
120
  *
109
121
  * @type {number}
@@ -134,6 +146,8 @@ export function instanceOfPublicPoolMetadata(value: object): value is PublicPool
134
146
  if (!('status' in value) || value['status'] === undefined) return false;
135
147
  if (!('operator_fee' in value) || value['operator_fee'] === undefined) return false;
136
148
  if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
149
+ if (!('total_spot_value' in value) || value['total_spot_value'] === undefined) return false;
150
+ if (!('total_perps_value' in value) || value['total_perps_value'] === undefined) return false;
137
151
  if (!('total_shares' in value) || value['total_shares'] === undefined) return false;
138
152
  return true;
139
153
  }
@@ -161,6 +175,8 @@ export function PublicPoolMetadataFromJSONTyped(json: any, ignoreDiscriminator:
161
175
  'status': json['status'],
162
176
  'operator_fee': json['operator_fee'],
163
177
  'total_asset_value': json['total_asset_value'],
178
+ 'total_spot_value': json['total_spot_value'],
179
+ 'total_perps_value': json['total_perps_value'],
164
180
  'total_shares': json['total_shares'],
165
181
  'account_share': json['account_share'] == null ? undefined : PublicPoolShareFromJSON(json['account_share']),
166
182
  };
@@ -185,6 +201,8 @@ export function PublicPoolMetadataToJSON(value?: PublicPoolMetadata | null): any
185
201
  'status': value['status'],
186
202
  'operator_fee': value['operator_fee'],
187
203
  'total_asset_value': value['total_asset_value'],
204
+ 'total_spot_value': value['total_spot_value'],
205
+ 'total_perps_value': value['total_perps_value'],
188
206
  'total_shares': value['total_shares'],
189
207
  'account_share': PublicPoolShareToJSON(value['account_share']),
190
208
  };
package/openapi.json CHANGED
@@ -7243,10 +7243,30 @@
7243
7243
  "format": "double",
7244
7244
  "example": "12.0"
7245
7245
  },
7246
+ "staking_pnl": {
7247
+ "type": "number",
7248
+ "format": "double",
7249
+ "example": "12.0"
7250
+ },
7251
+ "staking_inflow": {
7252
+ "type": "number",
7253
+ "format": "double",
7254
+ "example": "12.0"
7255
+ },
7256
+ "staking_outflow": {
7257
+ "type": "number",
7258
+ "format": "double",
7259
+ "example": "12.0"
7260
+ },
7246
7261
  "pool_total_shares": {
7247
7262
  "type": "number",
7248
7263
  "format": "double",
7249
7264
  "example": "12.0"
7265
+ },
7266
+ "staked_lit": {
7267
+ "type": "number",
7268
+ "format": "double",
7269
+ "example": "12.0"
7250
7270
  }
7251
7271
  },
7252
7272
  "title": "PnLEntry",
@@ -7261,7 +7281,11 @@
7261
7281
  "pool_pnl",
7262
7282
  "pool_inflow",
7263
7283
  "pool_outflow",
7264
- "pool_total_shares"
7284
+ "staking_pnl",
7285
+ "staking_inflow",
7286
+ "staking_outflow",
7287
+ "pool_total_shares",
7288
+ "staked_lit"
7265
7289
  ]
7266
7290
  },
7267
7291
  "PositionFunding": {
@@ -7481,6 +7505,14 @@
7481
7505
  "type": "string",
7482
7506
  "example": "19995"
7483
7507
  },
7508
+ "total_spot_value": {
7509
+ "type": "string",
7510
+ "example": "19995"
7511
+ },
7512
+ "total_perps_value": {
7513
+ "type": "string",
7514
+ "example": "19995"
7515
+ },
7484
7516
  "total_shares": {
7485
7517
  "type": "integer",
7486
7518
  "format": "int64",
@@ -7504,6 +7536,8 @@
7504
7536
  "status",
7505
7537
  "operator_fee",
7506
7538
  "total_asset_value",
7539
+ "total_spot_value",
7540
+ "total_perps_value",
7507
7541
  "total_shares"
7508
7542
  ]
7509
7543
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.190",
3
+ "version": "1.0.192",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {