zklighter-perps 1.0.150 → 1.0.152

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.
@@ -56,8 +56,10 @@ export interface AccountTxsRequest {
56
56
  limit: number;
57
57
  by: AccountTxsByEnum;
58
58
  value: string;
59
+ authorization?: string;
59
60
  index?: number;
60
61
  types?: Array<number>;
62
+ auth?: string;
61
63
  }
62
64
 
63
65
  export interface BlockTxsRequest {
@@ -240,8 +242,16 @@ export class TransactionApi extends runtime.BaseAPI {
240
242
  queryParameters['types'] = requestParameters['types']!.join(runtime.COLLECTION_FORMATS["csv"]);
241
243
  }
242
244
 
245
+ if (requestParameters['auth'] != null) {
246
+ queryParameters['auth'] = requestParameters['auth'];
247
+ }
248
+
243
249
  const headerParameters: runtime.HTTPHeaders = {};
244
250
 
251
+ if (requestParameters['authorization'] != null) {
252
+ headerParameters['authorization'] = String(requestParameters['authorization']);
253
+ }
254
+
245
255
  const response = await this.request({
246
256
  path: `/api/v1/accountTxs`,
247
257
  method: 'GET',
package/models/Account.ts CHANGED
@@ -73,6 +73,12 @@ export interface Account {
73
73
  * @memberof Account
74
74
  */
75
75
  pending_order_count: number;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof Account
80
+ */
81
+ available_balance: string;
76
82
  /**
77
83
  *
78
84
  * @type {number}
@@ -99,6 +105,7 @@ export function instanceOfAccount(value: object): value is Account {
99
105
  if (!('total_order_count' in value) || value['total_order_count'] === undefined) return false;
100
106
  if (!('total_isolated_order_count' in value) || value['total_isolated_order_count'] === undefined) return false;
101
107
  if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
108
+ if (!('available_balance' in value) || value['available_balance'] === undefined) return false;
102
109
  if (!('status' in value) || value['status'] === undefined) return false;
103
110
  if (!('collateral' in value) || value['collateral'] === undefined) return false;
104
111
  return true;
@@ -123,6 +130,7 @@ export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): A
123
130
  'total_order_count': json['total_order_count'],
124
131
  'total_isolated_order_count': json['total_isolated_order_count'],
125
132
  'pending_order_count': json['pending_order_count'],
133
+ 'available_balance': json['available_balance'],
126
134
  'status': json['status'],
127
135
  'collateral': json['collateral'],
128
136
  };
@@ -143,6 +151,7 @@ export function AccountToJSON(value?: Account | null): any {
143
151
  'total_order_count': value['total_order_count'],
144
152
  'total_isolated_order_count': value['total_isolated_order_count'],
145
153
  'pending_order_count': value['pending_order_count'],
154
+ 'available_balance': value['available_balance'],
146
155
  'status': value['status'],
147
156
  'collateral': value['collateral'],
148
157
  };
@@ -92,6 +92,12 @@ export interface DetailedAccount {
92
92
  * @memberof DetailedAccount
93
93
  */
94
94
  pending_order_count: number;
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof DetailedAccount
99
+ */
100
+ available_balance: string;
95
101
  /**
96
102
  *
97
103
  * @type {number}
@@ -178,6 +184,7 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
178
184
  if (!('total_order_count' in value) || value['total_order_count'] === undefined) return false;
179
185
  if (!('total_isolated_order_count' in value) || value['total_isolated_order_count'] === undefined) return false;
180
186
  if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
187
+ if (!('available_balance' in value) || value['available_balance'] === undefined) return false;
181
188
  if (!('status' in value) || value['status'] === undefined) return false;
182
189
  if (!('collateral' in value) || value['collateral'] === undefined) return false;
183
190
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
@@ -212,6 +219,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
212
219
  'total_order_count': json['total_order_count'],
213
220
  'total_isolated_order_count': json['total_isolated_order_count'],
214
221
  'pending_order_count': json['pending_order_count'],
222
+ 'available_balance': json['available_balance'],
215
223
  'status': json['status'],
216
224
  'collateral': json['collateral'],
217
225
  'account_index': json['account_index'],
@@ -242,6 +250,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
242
250
  'total_order_count': value['total_order_count'],
243
251
  'total_isolated_order_count': value['total_isolated_order_count'],
244
252
  'pending_order_count': value['pending_order_count'],
253
+ 'available_balance': value['available_balance'],
245
254
  'status': value['status'],
246
255
  'collateral': value['collateral'],
247
256
  'account_index': value['account_index'],
@@ -61,6 +61,12 @@ export interface PnLEntry {
61
61
  * @memberof PnLEntry
62
62
  */
63
63
  pool_outflow: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof PnLEntry
68
+ */
69
+ pool_total_shares: number;
64
70
  }
65
71
 
66
72
  /**
@@ -74,6 +80,7 @@ export function instanceOfPnLEntry(value: object): value is PnLEntry {
74
80
  if (!('pool_pnl' in value) || value['pool_pnl'] === undefined) return false;
75
81
  if (!('pool_inflow' in value) || value['pool_inflow'] === undefined) return false;
76
82
  if (!('pool_outflow' in value) || value['pool_outflow'] === undefined) return false;
83
+ if (!('pool_total_shares' in value) || value['pool_total_shares'] === undefined) return false;
77
84
  return true;
78
85
  }
79
86
 
@@ -94,6 +101,7 @@ export function PnLEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
94
101
  'pool_pnl': json['pool_pnl'],
95
102
  'pool_inflow': json['pool_inflow'],
96
103
  'pool_outflow': json['pool_outflow'],
104
+ 'pool_total_shares': json['pool_total_shares'],
97
105
  };
98
106
  }
99
107
 
@@ -110,6 +118,7 @@ export function PnLEntryToJSON(value?: PnLEntry | null): any {
110
118
  'pool_pnl': value['pool_pnl'],
111
119
  'pool_inflow': value['pool_inflow'],
112
120
  'pool_outflow': value['pool_outflow'],
121
+ 'pool_total_shares': value['pool_total_shares'],
113
122
  };
114
123
  }
115
124
 
@@ -86,6 +86,12 @@ export interface PublicPool {
86
86
  * @memberof PublicPool
87
87
  */
88
88
  pending_order_count: number;
89
+ /**
90
+ *
91
+ * @type {string}
92
+ * @memberof PublicPool
93
+ */
94
+ available_balance: string;
89
95
  /**
90
96
  *
91
97
  * @type {number}
@@ -166,6 +172,7 @@ export function instanceOfPublicPool(value: object): value is PublicPool {
166
172
  if (!('total_order_count' in value) || value['total_order_count'] === undefined) return false;
167
173
  if (!('total_isolated_order_count' in value) || value['total_isolated_order_count'] === undefined) return false;
168
174
  if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
175
+ if (!('available_balance' in value) || value['available_balance'] === undefined) return false;
169
176
  if (!('status' in value) || value['status'] === undefined) return false;
170
177
  if (!('collateral' in value) || value['collateral'] === undefined) return false;
171
178
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
@@ -198,6 +205,7 @@ export function PublicPoolFromJSONTyped(json: any, ignoreDiscriminator: boolean)
198
205
  'total_order_count': json['total_order_count'],
199
206
  'total_isolated_order_count': json['total_isolated_order_count'],
200
207
  'pending_order_count': json['pending_order_count'],
208
+ 'available_balance': json['available_balance'],
201
209
  'status': json['status'],
202
210
  'collateral': json['collateral'],
203
211
  'account_index': json['account_index'],
@@ -227,6 +235,7 @@ export function PublicPoolToJSON(value?: PublicPool | null): any {
227
235
  'total_order_count': value['total_order_count'],
228
236
  'total_isolated_order_count': value['total_isolated_order_count'],
229
237
  'pending_order_count': value['pending_order_count'],
238
+ 'available_balance': value['available_balance'],
230
239
  'status': value['status'],
231
240
  'collateral': value['collateral'],
232
241
  'account_index': value['account_index'],
@@ -49,6 +49,12 @@ export interface ReqGetAccountTxs {
49
49
  * @memberof ReqGetAccountTxs
50
50
  */
51
51
  types?: Array<number>;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof ReqGetAccountTxs
56
+ */
57
+ auth?: string;
52
58
  }
53
59
 
54
60
 
@@ -83,6 +89,7 @@ export function ReqGetAccountTxsFromJSONTyped(json: any, ignoreDiscriminator: bo
83
89
  'by': json['by'] == null ? undefined : json['by'],
84
90
  'value': json['value'] == null ? undefined : json['value'],
85
91
  'types': json['types'] == null ? undefined : json['types'],
92
+ 'auth': json['auth'] == null ? undefined : json['auth'],
86
93
  };
87
94
  }
88
95
 
@@ -97,6 +104,7 @@ export function ReqGetAccountTxsToJSON(value?: ReqGetAccountTxs | null): any {
97
104
  'by': value['by'],
98
105
  'value': value['value'],
99
106
  'types': value['types'],
107
+ 'auth': value['auth'],
100
108
  };
101
109
  }
102
110
 
package/openapi.json CHANGED
@@ -408,6 +408,12 @@
408
408
  }
409
409
  },
410
410
  "parameters": [
411
+ {
412
+ "name": "authorization",
413
+ "in": "header",
414
+ "required": false,
415
+ "type": "string"
416
+ },
411
417
  {
412
418
  "name": "index",
413
419
  "in": "query",
@@ -448,6 +454,12 @@
448
454
  "type": "integer",
449
455
  "format": "uint8"
450
456
  }
457
+ },
458
+ {
459
+ "name": "auth",
460
+ "in": "query",
461
+ "required": false,
462
+ "type": "string"
451
463
  }
452
464
  ],
453
465
  "tags": [
@@ -3056,6 +3068,10 @@
3056
3068
  "format": "int64",
3057
3069
  "example": "100"
3058
3070
  },
3071
+ "available_balance": {
3072
+ "type": "string",
3073
+ "example": "19995"
3074
+ },
3059
3075
  "status": {
3060
3076
  "type": "integer",
3061
3077
  "format": "uint8",
@@ -3076,6 +3092,7 @@
3076
3092
  "total_order_count",
3077
3093
  "total_isolated_order_count",
3078
3094
  "pending_order_count",
3095
+ "available_balance",
3079
3096
  "status",
3080
3097
  "collateral"
3081
3098
  ]
@@ -4120,6 +4137,10 @@
4120
4137
  "format": "int64",
4121
4138
  "example": "100"
4122
4139
  },
4140
+ "available_balance": {
4141
+ "type": "string",
4142
+ "example": "19995"
4143
+ },
4123
4144
  "status": {
4124
4145
  "type": "integer",
4125
4146
  "format": "uint8",
@@ -4182,6 +4203,7 @@
4182
4203
  "total_order_count",
4183
4204
  "total_isolated_order_count",
4184
4205
  "pending_order_count",
4206
+ "available_balance",
4185
4207
  "status",
4186
4208
  "collateral",
4187
4209
  "account_index",
@@ -5709,6 +5731,11 @@
5709
5731
  "type": "number",
5710
5732
  "format": "double",
5711
5733
  "example": "12.0"
5734
+ },
5735
+ "pool_total_shares": {
5736
+ "type": "number",
5737
+ "format": "double",
5738
+ "example": "12.0"
5712
5739
  }
5713
5740
  },
5714
5741
  "title": "PnLEntry",
@@ -5719,7 +5746,8 @@
5719
5746
  "outflow",
5720
5747
  "pool_pnl",
5721
5748
  "pool_inflow",
5722
- "pool_outflow"
5749
+ "pool_outflow",
5750
+ "pool_total_shares"
5723
5751
  ]
5724
5752
  },
5725
5753
  "PositionFunding": {
@@ -5862,6 +5890,10 @@
5862
5890
  "format": "int64",
5863
5891
  "example": "100"
5864
5892
  },
5893
+ "available_balance": {
5894
+ "type": "string",
5895
+ "example": "19995"
5896
+ },
5865
5897
  "status": {
5866
5898
  "type": "integer",
5867
5899
  "format": "uint8",
@@ -5915,6 +5947,7 @@
5915
5947
  "total_order_count",
5916
5948
  "total_isolated_order_count",
5917
5949
  "pending_order_count",
5950
+ "available_balance",
5918
5951
  "status",
5919
5952
  "collateral",
5920
5953
  "account_index",
@@ -6580,6 +6613,9 @@
6580
6613
  "type": "integer",
6581
6614
  "format": "uint8"
6582
6615
  }
6616
+ },
6617
+ "auth": {
6618
+ "type": "string"
6583
6619
  }
6584
6620
  },
6585
6621
  "title": "ReqGetAccountTxs"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.150",
3
+ "version": "1.0.152",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {