zklighter-perps 1.0.132 → 1.0.134
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.
- package/apis/TransactionApi.ts +4 -11
- package/models/PublicPool.ts +9 -0
- package/openapi.json +7 -3
- package/package.json +1 -1
package/apis/TransactionApi.ts
CHANGED
|
@@ -97,8 +97,8 @@ export interface SetAccountMetadataRequest {
|
|
|
97
97
|
target_account_index: number;
|
|
98
98
|
api_key_index: number;
|
|
99
99
|
metadata: string;
|
|
100
|
-
auth: string;
|
|
101
100
|
authorization?: string;
|
|
101
|
+
auth?: string;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
export interface TxRequest {
|
|
@@ -117,7 +117,7 @@ export interface TxsRequest {
|
|
|
117
117
|
|
|
118
118
|
export interface WithdrawHistoryRequest {
|
|
119
119
|
account_index: number;
|
|
120
|
-
|
|
120
|
+
authorization?: string;
|
|
121
121
|
auth?: string;
|
|
122
122
|
cursor?: string;
|
|
123
123
|
filter?: WithdrawHistoryFilterEnum;
|
|
@@ -627,13 +627,6 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
627
627
|
);
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
-
if (requestParameters['auth'] == null) {
|
|
631
|
-
throw new runtime.RequiredError(
|
|
632
|
-
'auth',
|
|
633
|
-
'Required parameter "auth" was null or undefined when calling setAccountMetadata().'
|
|
634
|
-
);
|
|
635
|
-
}
|
|
636
|
-
|
|
637
630
|
const queryParameters: any = {};
|
|
638
631
|
|
|
639
632
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -860,8 +853,8 @@ export class TransactionApi extends runtime.BaseAPI {
|
|
|
860
853
|
|
|
861
854
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
862
855
|
|
|
863
|
-
if (requestParameters['
|
|
864
|
-
headerParameters['
|
|
856
|
+
if (requestParameters['authorization'] != null) {
|
|
857
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
865
858
|
}
|
|
866
859
|
|
|
867
860
|
const response = await this.request({
|
package/models/PublicPool.ts
CHANGED
|
@@ -134,6 +134,12 @@ export interface PublicPool {
|
|
|
134
134
|
* @memberof PublicPool
|
|
135
135
|
*/
|
|
136
136
|
total_asset_value: string;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {string}
|
|
140
|
+
* @memberof PublicPool
|
|
141
|
+
*/
|
|
142
|
+
cross_asset_value: string;
|
|
137
143
|
/**
|
|
138
144
|
*
|
|
139
145
|
* @type {PublicPoolInfo}
|
|
@@ -168,6 +174,7 @@ export function instanceOfPublicPool(value: object): value is PublicPool {
|
|
|
168
174
|
if (!('can_invite' in value) || value['can_invite'] === undefined) return false;
|
|
169
175
|
if (!('referral_points_percentage' in value) || value['referral_points_percentage'] === undefined) return false;
|
|
170
176
|
if (!('total_asset_value' in value) || value['total_asset_value'] === undefined) return false;
|
|
177
|
+
if (!('cross_asset_value' in value) || value['cross_asset_value'] === undefined) return false;
|
|
171
178
|
if (!('pool_info' in value) || value['pool_info'] === undefined) return false;
|
|
172
179
|
return true;
|
|
173
180
|
}
|
|
@@ -199,6 +206,7 @@ export function PublicPoolFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
199
206
|
'can_invite': json['can_invite'],
|
|
200
207
|
'referral_points_percentage': json['referral_points_percentage'],
|
|
201
208
|
'total_asset_value': json['total_asset_value'],
|
|
209
|
+
'cross_asset_value': json['cross_asset_value'],
|
|
202
210
|
'pool_info': PublicPoolInfoFromJSON(json['pool_info']),
|
|
203
211
|
'account_share': json['account_share'] == null ? undefined : PublicPoolShareFromJSON(json['account_share']),
|
|
204
212
|
};
|
|
@@ -227,6 +235,7 @@ export function PublicPoolToJSON(value?: PublicPool | null): any {
|
|
|
227
235
|
'can_invite': value['can_invite'],
|
|
228
236
|
'referral_points_percentage': value['referral_points_percentage'],
|
|
229
237
|
'total_asset_value': value['total_asset_value'],
|
|
238
|
+
'cross_asset_value': value['cross_asset_value'],
|
|
230
239
|
'pool_info': PublicPoolInfoToJSON(value['pool_info']),
|
|
231
240
|
'account_share': PublicPoolShareToJSON(value['account_share']),
|
|
232
241
|
};
|
package/openapi.json
CHANGED
|
@@ -2722,7 +2722,7 @@
|
|
|
2722
2722
|
},
|
|
2723
2723
|
"parameters": [
|
|
2724
2724
|
{
|
|
2725
|
-
"name": "
|
|
2725
|
+
"name": "authorization",
|
|
2726
2726
|
"description": " make required after integ is done",
|
|
2727
2727
|
"in": "header",
|
|
2728
2728
|
"required": false,
|
|
@@ -5645,6 +5645,10 @@
|
|
|
5645
5645
|
"type": "string",
|
|
5646
5646
|
"example": "19995"
|
|
5647
5647
|
},
|
|
5648
|
+
"cross_asset_value": {
|
|
5649
|
+
"type": "string",
|
|
5650
|
+
"example": "19995"
|
|
5651
|
+
},
|
|
5648
5652
|
"pool_info": {
|
|
5649
5653
|
"$ref": "#/definitions/PublicPoolInfo"
|
|
5650
5654
|
},
|
|
@@ -5670,6 +5674,7 @@
|
|
|
5670
5674
|
"can_invite",
|
|
5671
5675
|
"referral_points_percentage",
|
|
5672
5676
|
"total_asset_value",
|
|
5677
|
+
"cross_asset_value",
|
|
5673
5678
|
"pool_info"
|
|
5674
5679
|
]
|
|
5675
5680
|
},
|
|
@@ -7040,8 +7045,7 @@
|
|
|
7040
7045
|
"master_account_index",
|
|
7041
7046
|
"target_account_index",
|
|
7042
7047
|
"api_key_index",
|
|
7043
|
-
"metadata"
|
|
7044
|
-
"auth"
|
|
7048
|
+
"metadata"
|
|
7045
7049
|
]
|
|
7046
7050
|
},
|
|
7047
7051
|
"ReqUseReferralCode": {
|