zklighter-perps 1.0.307 → 1.0.308
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/.openapi-generator/FILES +26 -0
- package/apis/AccountApi.ts +5 -20
- package/apis/CompetitionApi.ts +69 -0
- package/apis/GuildApi.ts +1567 -0
- package/apis/index.ts +2 -0
- package/models/Competition.ts +124 -0
- package/models/Guild.ts +141 -0
- package/models/GuildInviteCode.ts +139 -0
- package/models/GuildJoinRequest.ts +124 -0
- package/models/GuildLeaderboardEntry.ts +124 -0
- package/models/GuildListItem.ts +97 -0
- package/models/GuildMember.ts +79 -0
- package/models/GuildPnlStats.ts +106 -0
- package/models/GuildPosition.ts +160 -0
- package/models/L1Metadata.ts +9 -0
- package/models/PnlLeaderboardEntry.ts +24 -0
- package/models/ReqGetAccountPnL.ts +0 -8
- package/models/ReqGetCompetitions.ts +60 -0
- package/models/ReqGetGuild.ts +69 -0
- package/models/ReqGetGuildLeaderboard.ts +108 -0
- package/models/ReqGetGuildList.ts +78 -0
- package/models/ReqGetPnlLeaderboard.ts +8 -0
- package/models/ReqGuildByReferralCode.ts +61 -0
- package/models/RespGetCompetitions.ts +85 -0
- package/models/RespGetGuild.ts +191 -0
- package/models/RespGetGuildList.ts +94 -0
- package/models/RespGuildByReferralCode.ts +84 -0
- package/models/RespGuildInviteCodes.ts +85 -0
- package/models/RespGuildJoinRequest.ts +85 -0
- package/models/RespGuildJoinRequests.ts +85 -0
- package/models/RespGuildLeaderboard.ts +103 -0
- package/models/RespGuildMembership.ts +131 -0
- package/models/RespResolveGuildJoinRequest.ts +78 -0
- package/models/index.ts +24 -0
- package/openapi.json +3530 -1518
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -4,11 +4,13 @@ apis/AtomicordersApi.ts
|
|
|
4
4
|
apis/BlockApi.ts
|
|
5
5
|
apis/BridgeApi.ts
|
|
6
6
|
apis/CandlestickApi.ts
|
|
7
|
+
apis/CompetitionApi.ts
|
|
7
8
|
apis/EarningsApi.ts
|
|
8
9
|
apis/EventApi.ts
|
|
9
10
|
apis/FundingApi.ts
|
|
10
11
|
apis/GeckoApi.ts
|
|
11
12
|
apis/GeoApi.ts
|
|
13
|
+
apis/GuildApi.ts
|
|
12
14
|
apis/InfoApi.ts
|
|
13
15
|
apis/LivepointsApi.ts
|
|
14
16
|
apis/MarketnewsApi.ts
|
|
@@ -63,6 +65,7 @@ models/BridgeSupportedNetworks.ts
|
|
|
63
65
|
models/Candle.ts
|
|
64
66
|
models/Candles.ts
|
|
65
67
|
models/Candlestick.ts
|
|
68
|
+
models/Competition.ts
|
|
66
69
|
models/ContractAddress.ts
|
|
67
70
|
models/CreateIntentAddressResp.ts
|
|
68
71
|
models/CurrentHeight.ts
|
|
@@ -90,6 +93,14 @@ models/GeckoContracts.ts
|
|
|
90
93
|
models/GeckoOrderbook.ts
|
|
91
94
|
models/GeckoTicker.ts
|
|
92
95
|
models/GeckoTickers.ts
|
|
96
|
+
models/Guild.ts
|
|
97
|
+
models/GuildInviteCode.ts
|
|
98
|
+
models/GuildJoinRequest.ts
|
|
99
|
+
models/GuildLeaderboardEntry.ts
|
|
100
|
+
models/GuildListItem.ts
|
|
101
|
+
models/GuildMember.ts
|
|
102
|
+
models/GuildPnlStats.ts
|
|
103
|
+
models/GuildPosition.ts
|
|
93
104
|
models/HistoricalTradesExportData.ts
|
|
94
105
|
models/IsWhitelisted.ts
|
|
95
106
|
models/L1Metadata.ts
|
|
@@ -176,6 +187,7 @@ models/ReqGetBoPnL.ts
|
|
|
176
187
|
models/ReqGetBridgesByL1Addr.ts
|
|
177
188
|
models/ReqGetByAccount.ts
|
|
178
189
|
models/ReqGetCandles.ts
|
|
190
|
+
models/ReqGetCompetitions.ts
|
|
179
191
|
models/ReqGetDepositHistory.ts
|
|
180
192
|
models/ReqGetEvents.ts
|
|
181
193
|
models/ReqGetExchangeMetrics.ts
|
|
@@ -183,6 +195,9 @@ models/ReqGetExecuteStats.ts
|
|
|
183
195
|
models/ReqGetFastWithdrawInfo.ts
|
|
184
196
|
models/ReqGetFundings.ts
|
|
185
197
|
models/ReqGetGeckoOrderbook.ts
|
|
198
|
+
models/ReqGetGuild.ts
|
|
199
|
+
models/ReqGetGuildLeaderboard.ts
|
|
200
|
+
models/ReqGetGuildList.ts
|
|
186
201
|
models/ReqGetL1Metadata.ts
|
|
187
202
|
models/ReqGetL1Tx.ts
|
|
188
203
|
models/ReqGetLatestDeposit.ts
|
|
@@ -220,6 +235,7 @@ models/ReqGetTransferHistory.ts
|
|
|
220
235
|
models/ReqGetTx.ts
|
|
221
236
|
models/ReqGetUserReferrals.ts
|
|
222
237
|
models/ReqGetWithdrawHistory.ts
|
|
238
|
+
models/ReqGuildByReferralCode.ts
|
|
223
239
|
models/ReqIsWhitelisted.ts
|
|
224
240
|
models/ReqListAtomicOrders.ts
|
|
225
241
|
models/ReqListMarketNews.ts
|
|
@@ -235,11 +251,14 @@ models/RespGaslessDeposit.ts
|
|
|
235
251
|
models/RespGetApiTokens.ts
|
|
236
252
|
models/RespGetBoPnL.ts
|
|
237
253
|
models/RespGetBridgesByL1Addr.ts
|
|
254
|
+
models/RespGetCompetitions.ts
|
|
238
255
|
models/RespGetEvents.ts
|
|
239
256
|
models/RespGetExchangeMetrics.ts
|
|
240
257
|
models/RespGetExecuteStats.ts
|
|
241
258
|
models/RespGetFastBridgeInfo.ts
|
|
242
259
|
models/RespGetFastwithdrawalInfo.ts
|
|
260
|
+
models/RespGetGuild.ts
|
|
261
|
+
models/RespGetGuildList.ts
|
|
243
262
|
models/RespGetIsNextBridgeFast.ts
|
|
244
263
|
models/RespGetLeaseOptions.ts
|
|
245
264
|
models/RespGetLeases.ts
|
|
@@ -247,11 +266,18 @@ models/RespGetMakerOnlyApiKeys.ts
|
|
|
247
266
|
models/RespGetMarketMetrics.ts
|
|
248
267
|
models/RespGetPushNotifSettings.ts
|
|
249
268
|
models/RespGetRFQ.ts
|
|
269
|
+
models/RespGuildByReferralCode.ts
|
|
270
|
+
models/RespGuildInviteCodes.ts
|
|
271
|
+
models/RespGuildJoinRequest.ts
|
|
272
|
+
models/RespGuildJoinRequests.ts
|
|
273
|
+
models/RespGuildLeaderboard.ts
|
|
274
|
+
models/RespGuildMembership.ts
|
|
250
275
|
models/RespListMarketNews.ts
|
|
251
276
|
models/RespListRFQs.ts
|
|
252
277
|
models/RespPostApiToken.ts
|
|
253
278
|
models/RespPublicPoolsMetadata.ts
|
|
254
279
|
models/RespRegisterEventOrderBook.ts
|
|
280
|
+
models/RespResolveGuildJoinRequest.ts
|
|
255
281
|
models/RespRespondToRFQ.ts
|
|
256
282
|
models/RespRevokeApiToken.ts
|
|
257
283
|
models/RespRollingInfo.ts
|
package/apis/AccountApi.ts
CHANGED
|
@@ -171,8 +171,6 @@ export interface EquityHistoryPnlRequest {
|
|
|
171
171
|
start_timestamp: number;
|
|
172
172
|
end_timestamp: number;
|
|
173
173
|
count_back: number;
|
|
174
|
-
authorization?: string;
|
|
175
|
-
auth?: string;
|
|
176
174
|
ignore_transfers?: boolean;
|
|
177
175
|
}
|
|
178
176
|
|
|
@@ -243,8 +241,6 @@ export interface PnlRequest {
|
|
|
243
241
|
start_timestamp: number;
|
|
244
242
|
end_timestamp: number;
|
|
245
243
|
count_back: number;
|
|
246
|
-
authorization?: string;
|
|
247
|
-
auth?: string;
|
|
248
244
|
ignore_transfers?: boolean;
|
|
249
245
|
}
|
|
250
246
|
|
|
@@ -255,6 +251,7 @@ export interface PnlLeaderboardRequest {
|
|
|
255
251
|
limit: number;
|
|
256
252
|
offset: number;
|
|
257
253
|
search?: string;
|
|
254
|
+
guild_id?: number;
|
|
258
255
|
}
|
|
259
256
|
|
|
260
257
|
export interface PnlV2Request {
|
|
@@ -866,14 +863,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
866
863
|
|
|
867
864
|
const queryParameters: any = {};
|
|
868
865
|
|
|
869
|
-
if (requestParameters['authorization'] != null) {
|
|
870
|
-
queryParameters['authorization'] = requestParameters['authorization'];
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
if (requestParameters['auth'] != null) {
|
|
874
|
-
queryParameters['auth'] = requestParameters['auth'];
|
|
875
|
-
}
|
|
876
|
-
|
|
877
866
|
if (requestParameters['by'] != null) {
|
|
878
867
|
queryParameters['by'] = requestParameters['by'];
|
|
879
868
|
}
|
|
@@ -1490,14 +1479,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
1490
1479
|
|
|
1491
1480
|
const queryParameters: any = {};
|
|
1492
1481
|
|
|
1493
|
-
if (requestParameters['authorization'] != null) {
|
|
1494
|
-
queryParameters['authorization'] = requestParameters['authorization'];
|
|
1495
|
-
}
|
|
1496
|
-
|
|
1497
|
-
if (requestParameters['auth'] != null) {
|
|
1498
|
-
queryParameters['auth'] = requestParameters['auth'];
|
|
1499
|
-
}
|
|
1500
|
-
|
|
1501
1482
|
if (requestParameters['by'] != null) {
|
|
1502
1483
|
queryParameters['by'] = requestParameters['by'];
|
|
1503
1484
|
}
|
|
@@ -1613,6 +1594,10 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
1613
1594
|
queryParameters['search'] = requestParameters['search'];
|
|
1614
1595
|
}
|
|
1615
1596
|
|
|
1597
|
+
if (requestParameters['guild_id'] != null) {
|
|
1598
|
+
queryParameters['guild_id'] = requestParameters['guild_id'];
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1616
1601
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1617
1602
|
|
|
1618
1603
|
const response = await this.request({
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
RespGetCompetitions,
|
|
19
|
+
ResultCode,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
RespGetCompetitionsFromJSON,
|
|
23
|
+
RespGetCompetitionsToJSON,
|
|
24
|
+
ResultCodeFromJSON,
|
|
25
|
+
ResultCodeToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface CompetitionsRequest {
|
|
29
|
+
competition_id?: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export class CompetitionApi extends runtime.BaseAPI {
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Platform-wide competitions (not guild-scoped), newest first; competition_id narrows to one (any scope)
|
|
39
|
+
* competitions
|
|
40
|
+
*/
|
|
41
|
+
async competitionsRaw(requestParameters: CompetitionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespGetCompetitions>> {
|
|
42
|
+
const queryParameters: any = {};
|
|
43
|
+
|
|
44
|
+
if (requestParameters['competition_id'] != null) {
|
|
45
|
+
queryParameters['competition_id'] = requestParameters['competition_id'];
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
49
|
+
|
|
50
|
+
const response = await this.request({
|
|
51
|
+
path: `/api/v1/competitions`,
|
|
52
|
+
method: 'GET',
|
|
53
|
+
headers: headerParameters,
|
|
54
|
+
query: queryParameters,
|
|
55
|
+
}, initOverrides);
|
|
56
|
+
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RespGetCompetitionsFromJSON(jsonValue));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Platform-wide competitions (not guild-scoped), newest first; competition_id narrows to one (any scope)
|
|
62
|
+
* competitions
|
|
63
|
+
*/
|
|
64
|
+
async competitions(requestParameters: CompetitionsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespGetCompetitions> {
|
|
65
|
+
const response = await this.competitionsRaw(requestParameters, initOverrides);
|
|
66
|
+
return await response.value();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|