zklighter-perps 1.0.144 → 1.0.145

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.
@@ -119,7 +119,6 @@ models/ReqGetRecentTrades.ts
119
119
  models/ReqGetReferralCode.ts
120
120
  models/ReqGetReferralPoints.ts
121
121
  models/ReqGetTrades.ts
122
- models/ReqGetTransferFeeInfo.ts
123
122
  models/ReqGetTransferHistory.ts
124
123
  models/ReqGetTx.ts
125
124
  models/ReqGetWithdrawHistory.ts
@@ -139,7 +138,6 @@ models/SubAccounts.ts
139
138
  models/Ticker.ts
140
139
  models/Trade.ts
141
140
  models/Trades.ts
142
- models/TransferFeeInfo.ts
143
141
  models/TransferHistory.ts
144
142
  models/TransferHistoryItem.ts
145
143
  models/Tx.ts
package/apis/InfoApi.ts CHANGED
@@ -18,7 +18,6 @@ import type {
18
18
  Layer1BasicInfo,
19
19
  RespWithdrawalDelay,
20
20
  ResultCode,
21
- TransferFeeInfo,
22
21
  } from '../models/index';
23
22
  import {
24
23
  Layer1BasicInfoFromJSON,
@@ -27,17 +26,8 @@ import {
27
26
  RespWithdrawalDelayToJSON,
28
27
  ResultCodeFromJSON,
29
28
  ResultCodeToJSON,
30
- TransferFeeInfoFromJSON,
31
- TransferFeeInfoToJSON,
32
29
  } from '../models/index';
33
30
 
34
- export interface TransferFeeInfoRequest {
35
- authorization?: string;
36
- auth?: string;
37
- account_index?: number;
38
- to_account_index?: number;
39
- }
40
-
41
31
  /**
42
32
  *
43
33
  */
@@ -71,50 +61,6 @@ export class InfoApi extends runtime.BaseAPI {
71
61
  return await response.value();
72
62
  }
73
63
 
74
- /**
75
- * Transfer fee info
76
- * transferFeeInfo
77
- */
78
- async transferFeeInfoRaw(requestParameters: TransferFeeInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TransferFeeInfo>> {
79
- const queryParameters: any = {};
80
-
81
- if (requestParameters['auth'] != null) {
82
- queryParameters['auth'] = requestParameters['auth'];
83
- }
84
-
85
- if (requestParameters['account_index'] != null) {
86
- queryParameters['account_index'] = requestParameters['account_index'];
87
- }
88
-
89
- if (requestParameters['to_account_index'] != null) {
90
- queryParameters['to_account_index'] = requestParameters['to_account_index'];
91
- }
92
-
93
- const headerParameters: runtime.HTTPHeaders = {};
94
-
95
- if (requestParameters['authorization'] != null) {
96
- headerParameters['authorization'] = String(requestParameters['authorization']);
97
- }
98
-
99
- const response = await this.request({
100
- path: `/api/v1/transferFeeInfo`,
101
- method: 'GET',
102
- headers: headerParameters,
103
- query: queryParameters,
104
- }, initOverrides);
105
-
106
- return new runtime.JSONApiResponse(response, (jsonValue) => TransferFeeInfoFromJSON(jsonValue));
107
- }
108
-
109
- /**
110
- * Transfer fee info
111
- * transferFeeInfo
112
- */
113
- async transferFeeInfo(requestParameters: TransferFeeInfoRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TransferFeeInfo> {
114
- const response = await this.transferFeeInfoRaw(requestParameters, initOverrides);
115
- return await response.value();
116
- }
117
-
118
64
  /**
119
65
  * Withdrawal delay in seconds
120
66
  * withdrawalDelay
package/models/Account.ts CHANGED
@@ -85,6 +85,12 @@ export interface Account {
85
85
  * @memberof Account
86
86
  */
87
87
  collateral: string;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof Account
92
+ */
93
+ referral_code: string;
88
94
  }
89
95
 
90
96
  /**
@@ -101,6 +107,7 @@ export function instanceOfAccount(value: object): value is Account {
101
107
  if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
102
108
  if (!('status' in value) || value['status'] === undefined) return false;
103
109
  if (!('collateral' in value) || value['collateral'] === undefined) return false;
110
+ if (!('referral_code' in value) || value['referral_code'] === undefined) return false;
104
111
  return true;
105
112
  }
106
113
 
@@ -125,6 +132,7 @@ export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): A
125
132
  'pending_order_count': json['pending_order_count'],
126
133
  'status': json['status'],
127
134
  'collateral': json['collateral'],
135
+ 'referral_code': json['referral_code'],
128
136
  };
129
137
  }
130
138
 
@@ -145,6 +153,7 @@ export function AccountToJSON(value?: Account | null): any {
145
153
  'pending_order_count': value['pending_order_count'],
146
154
  'status': value['status'],
147
155
  'collateral': value['collateral'],
156
+ 'referral_code': value['referral_code'],
148
157
  };
149
158
  }
150
159
 
@@ -104,6 +104,12 @@ export interface DetailedAccount {
104
104
  * @memberof DetailedAccount
105
105
  */
106
106
  collateral: string;
107
+ /**
108
+ *
109
+ * @type {string}
110
+ * @memberof DetailedAccount
111
+ */
112
+ referral_code: string;
107
113
  /**
108
114
  *
109
115
  * @type {number}
@@ -180,6 +186,7 @@ export function instanceOfDetailedAccount(value: object): value is DetailedAccou
180
186
  if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
181
187
  if (!('status' in value) || value['status'] === undefined) return false;
182
188
  if (!('collateral' in value) || value['collateral'] === undefined) return false;
189
+ if (!('referral_code' in value) || value['referral_code'] === undefined) return false;
183
190
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
184
191
  if (!('name' in value) || value['name'] === undefined) return false;
185
192
  if (!('description' in value) || value['description'] === undefined) return false;
@@ -214,6 +221,7 @@ export function DetailedAccountFromJSONTyped(json: any, ignoreDiscriminator: boo
214
221
  'pending_order_count': json['pending_order_count'],
215
222
  'status': json['status'],
216
223
  'collateral': json['collateral'],
224
+ 'referral_code': json['referral_code'],
217
225
  'account_index': json['account_index'],
218
226
  'name': json['name'],
219
227
  'description': json['description'],
@@ -244,6 +252,7 @@ export function DetailedAccountToJSON(value?: DetailedAccount | null): any {
244
252
  'pending_order_count': value['pending_order_count'],
245
253
  'status': value['status'],
246
254
  'collateral': value['collateral'],
255
+ 'referral_code': value['referral_code'],
247
256
  'account_index': value['account_index'],
248
257
  'name': value['name'],
249
258
  'description': value['description'],
@@ -98,6 +98,12 @@ export interface PublicPool {
98
98
  * @memberof PublicPool
99
99
  */
100
100
  collateral: string;
101
+ /**
102
+ *
103
+ * @type {string}
104
+ * @memberof PublicPool
105
+ */
106
+ referral_code: string;
101
107
  /**
102
108
  *
103
109
  * @type {number}
@@ -168,6 +174,7 @@ export function instanceOfPublicPool(value: object): value is PublicPool {
168
174
  if (!('pending_order_count' in value) || value['pending_order_count'] === undefined) return false;
169
175
  if (!('status' in value) || value['status'] === undefined) return false;
170
176
  if (!('collateral' in value) || value['collateral'] === undefined) return false;
177
+ if (!('referral_code' in value) || value['referral_code'] === undefined) return false;
171
178
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
172
179
  if (!('name' in value) || value['name'] === undefined) return false;
173
180
  if (!('description' in value) || value['description'] === undefined) return false;
@@ -200,6 +207,7 @@ export function PublicPoolFromJSONTyped(json: any, ignoreDiscriminator: boolean)
200
207
  'pending_order_count': json['pending_order_count'],
201
208
  'status': json['status'],
202
209
  'collateral': json['collateral'],
210
+ 'referral_code': json['referral_code'],
203
211
  'account_index': json['account_index'],
204
212
  'name': json['name'],
205
213
  'description': json['description'],
@@ -229,6 +237,7 @@ export function PublicPoolToJSON(value?: PublicPool | null): any {
229
237
  'pending_order_count': value['pending_order_count'],
230
238
  'status': value['status'],
231
239
  'collateral': value['collateral'],
240
+ 'referral_code': value['referral_code'],
232
241
  'account_index': value['account_index'],
233
242
  'name': value['name'],
234
243
  'description': value['description'],
package/models/index.ts CHANGED
@@ -107,7 +107,6 @@ export * from './ReqGetRecentTrades';
107
107
  export * from './ReqGetReferralCode';
108
108
  export * from './ReqGetReferralPoints';
109
109
  export * from './ReqGetTrades';
110
- export * from './ReqGetTransferFeeInfo';
111
110
  export * from './ReqGetTransferHistory';
112
111
  export * from './ReqGetTx';
113
112
  export * from './ReqGetWithdrawHistory';
@@ -127,7 +126,6 @@ export * from './SubAccounts';
127
126
  export * from './Ticker';
128
127
  export * from './Trade';
129
128
  export * from './Trades';
130
- export * from './TransferFeeInfo';
131
129
  export * from './TransferHistory';
132
130
  export * from './TransferHistoryItem';
133
131
  export * from './Tx';
package/openapi.json CHANGED
@@ -2678,63 +2678,6 @@
2678
2678
  "description": "Get transfer history"
2679
2679
  }
2680
2680
  },
2681
- "/api/v1/transferFeeInfo": {
2682
- "get": {
2683
- "summary": "transferFeeInfo",
2684
- "operationId": "transferFeeInfo",
2685
- "responses": {
2686
- "200": {
2687
- "description": "A successful response.",
2688
- "schema": {
2689
- "$ref": "#/definitions/TransferFeeInfo"
2690
- }
2691
- },
2692
- "400": {
2693
- "description": "Bad request",
2694
- "schema": {
2695
- "$ref": "#/definitions/ResultCode"
2696
- }
2697
- }
2698
- },
2699
- "parameters": [
2700
- {
2701
- "name": "authorization",
2702
- "in": "header",
2703
- "required": false,
2704
- "type": "string"
2705
- },
2706
- {
2707
- "name": "auth",
2708
- "in": "query",
2709
- "required": false,
2710
- "type": "string"
2711
- },
2712
- {
2713
- "name": "account_index",
2714
- "in": "query",
2715
- "required": false,
2716
- "type": "integer",
2717
- "format": "int64",
2718
- "default": "-1"
2719
- },
2720
- {
2721
- "name": "to_account_index",
2722
- "in": "query",
2723
- "required": false,
2724
- "type": "integer",
2725
- "format": "int64",
2726
- "default": "-1"
2727
- }
2728
- ],
2729
- "tags": [
2730
- "info"
2731
- ],
2732
- "consumes": [
2733
- "multipart/form-data"
2734
- ],
2735
- "description": "Transfer fee info"
2736
- }
2737
- },
2738
2681
  "/api/v1/tx": {
2739
2682
  "get": {
2740
2683
  "summary": "tx",
@@ -3030,6 +2973,10 @@
3030
2973
  "collateral": {
3031
2974
  "type": "string",
3032
2975
  "example": "46342"
2976
+ },
2977
+ "referral_code": {
2978
+ "type": "string",
2979
+ "example": "ABC123"
3033
2980
  }
3034
2981
  },
3035
2982
  "title": "Account",
@@ -3043,7 +2990,8 @@
3043
2990
  "total_isolated_order_count",
3044
2991
  "pending_order_count",
3045
2992
  "status",
3046
- "collateral"
2993
+ "collateral",
2994
+ "referral_code"
3047
2995
  ]
3048
2996
  },
3049
2997
  "AccountApiKeys": {
@@ -4095,6 +4043,10 @@
4095
4043
  "type": "string",
4096
4044
  "example": "46342"
4097
4045
  },
4046
+ "referral_code": {
4047
+ "type": "string",
4048
+ "example": "ABC123"
4049
+ },
4098
4050
  "account_index": {
4099
4051
  "type": "integer",
4100
4052
  "format": "int64"
@@ -4150,6 +4102,7 @@
4150
4102
  "pending_order_count",
4151
4103
  "status",
4152
4104
  "collateral",
4105
+ "referral_code",
4153
4106
  "account_index",
4154
4107
  "name",
4155
4108
  "description",
@@ -5815,6 +5768,10 @@
5815
5768
  "type": "string",
5816
5769
  "example": "46342"
5817
5770
  },
5771
+ "referral_code": {
5772
+ "type": "string",
5773
+ "example": "ABC123"
5774
+ },
5818
5775
  "account_index": {
5819
5776
  "type": "integer",
5820
5777
  "format": "int64"
@@ -5861,6 +5818,7 @@
5861
5818
  "pending_order_count",
5862
5819
  "status",
5863
5820
  "collateral",
5821
+ "referral_code",
5864
5822
  "account_index",
5865
5823
  "name",
5866
5824
  "description",
@@ -7135,25 +7093,6 @@
7135
7093
  "limit"
7136
7094
  ]
7137
7095
  },
7138
- "ReqGetTransferFeeInfo": {
7139
- "type": "object",
7140
- "properties": {
7141
- "auth": {
7142
- "type": "string"
7143
- },
7144
- "account_index": {
7145
- "type": "integer",
7146
- "format": "int64",
7147
- "default": "-1"
7148
- },
7149
- "to_account_index": {
7150
- "type": "integer",
7151
- "format": "int64",
7152
- "default": "-1"
7153
- }
7154
- },
7155
- "title": "ReqGetTransferFeeInfo"
7156
- },
7157
7096
  "ReqGetTransferHistory": {
7158
7097
  "type": "object",
7159
7098
  "properties": {
@@ -7833,28 +7772,6 @@
7833
7772
  "trades"
7834
7773
  ]
7835
7774
  },
7836
- "TransferFeeInfo": {
7837
- "type": "object",
7838
- "properties": {
7839
- "code": {
7840
- "type": "integer",
7841
- "format": "int32",
7842
- "example": "200"
7843
- },
7844
- "message": {
7845
- "type": "string"
7846
- },
7847
- "transfer_fee_usdc": {
7848
- "type": "integer",
7849
- "format": "int32"
7850
- }
7851
- },
7852
- "title": "TransferFeeInfo",
7853
- "required": [
7854
- "code",
7855
- "transfer_fee_usdc"
7856
- ]
7857
- },
7858
7775
  "TransferHistory": {
7859
7776
  "type": "object",
7860
7777
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.144",
3
+ "version": "1.0.145",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {