@xoxno/sdk-js 1.0.116 → 1.0.118
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/dist/index.bundled.d.cts +2545 -0
- package/dist/index.bundled.d.ts +9 -39
- package/dist/sdk/stellar/__tests__/admin.test.d.ts +9 -10
- package/dist/sdk/stellar/__tests__/decode.test.d.ts +4 -7
- package/dist/sdk/stellar/__tests__/id.test.d.ts +1 -7
- package/dist/sdk/stellar/admin.d.ts +2 -10
- package/dist/sdk/stellar/events/decode.d.ts +10 -19
- package/dist/sdk/stellar/events/id.d.ts +5 -11
- package/dist/sdk/stellar/lending.d.ts +15 -60
- package/dist/sdk/stellar/scval-encode.d.ts +7 -19
- package/package.json +13 -6
- /package/dist/{index.cjs.js → index.cjs} +0 -0
|
@@ -0,0 +1,2545 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
+
|
|
3
|
+
import { xdr } from '@stellar/stellar-sdk';
|
|
4
|
+
import { ActivePerpAssetCtx, ActiveSpotAssetCtx, AggregatorSwapDto, AirdropDtoHydrated, AnalyticsMarketplaceUniqueUsers, AnalyticsVolumeDto, AnsweredQuestionWithDetails, AssetConfigRawDto, BageQRData, BarDto, BorrowArgs, ChatMessageDocHydrated, ChatMessagePaginated, CheckLikeStatusResponseDto, CollectionHoldersDto, CollectionHoldersExportDto, CollectionMintProfileDocHydrated, CollectionMintProfileDocWithStages, CollectionMintProfileFilter, CollectionMintProfilePaginated, CollectionOffersFilter, CollectionOwnerDto, CollectionPinnedStatusDto, CollectionProfileDoc, CollectionProfileEditDto, CollectionProfileFilter, CollectionProfilePaginated, CollectionRanksDTO, CollectionStatsDocHydrated, CollectionStatsFilter, CollectionStatsPaginated, CreatorDetailsDto, CreatorMarketingNotificationDto, CreatorProfileDoc, CreatorProfileDto, CreatorProfileEditDto, DelegationDataOutput, DiscountCodeValidationResponse, EventAcceptInvitation, EventCheckInQR, EventClaimInvitationDto, EventCountGroupedByCountry, EventGuestApproveDto, EventGuestExport, EventGuestFilter, EventGuestProfile, EventGuestProfileQuery, EventGuestRegistrationDto, EventInvitation, EventInvitationCreateDto, EventInvitationDoc, EventInvitationFilter, EventInvitationQuery, EventNotificationDto, EventProfile, EventProfileCreateDto, EventProfileEditDto, EventProfileFilter, EventProfileQuery, EventQuestionCreateDto, EventQuestionDoc, EventQuestionEditDto, EventReferralConfigCreateDto, EventReferralConfigDoc, EventReferralConfigEditDto, EventReferralConfigFilter, EventReferralConfigPaginated, EventReferralCreateDto, EventReferralDoc, EventReferralEditDto, EventReferralFilter, EventReferralPaginated, EventRegistrationResponseDto, EventStageProfileCreateDto, EventStageProfileDoc, EventStageProfileEditDto, EventTicketProfileCreateDto, EventTicketProfileDoc, EventTicketProfileEditDto, EventUserRole, EventUserRoleCreateDto, EventUserRoleDoc, EventUserRoleEditDto, EventVoucherCreateDto, EventVoucherDoc, EventVoucherEditDto, EventVoucherFilter, EventVoucherQuery, FilterQueryDto, FlashLoanArgs, FloorPriceDto, FollowCollectionDto, GlobalAnalyticsOverviewResponseDto, GlobalConversationSummaryDto, GlobalOfferPaginated, GlobalSearchResourcesPaginated, InterestRateModelDto, InventorySummaryDtoHydrated, L2BookPerpResponseSingle, LendingAccountPnl, LendingAccountProfile, LendingAccountSummary, LendingEModeCategoryProfile, LendingIndexesDto, LendingMarketAnalyticsGraph, LendingMarketAverageGraph, LendingMarketProfile, LendingMarketProfileFilter, LendingMarketProfileQuery, LendingNftAttributes, LendingOverallStats, LendingPositionStatus, LendingTokenPriceDto, LikeNftDto, LiquidateArgs, ListingsResponseDto, LoginAccessDto, LoginRequestDto, ManualCheckInDto, MarketOracleConfigInputDto, MarketParamsRawDto, MobileDeviceDoc, MobileDeviceRegistrationDto, MultiplyArgs, NativeWalletDto, NftActivityDocHydrated, NftActivityFilter, NftActivityPaginated, NftDocFilter, NftDocFull, NftDocHydrated, NftOfferDocFilter, NftOfferDocHydrated, NftOfferPaginated, NftPaginated, NotificationDoc, NotificationPaginated, NotificationPreferencesPostDto, NotificationSuccessResponseDto, OracleSourceConfigInputDto, OwnedCollectionsDto, OwnedServicesDto, PerpCoinExtended, PerpCoinExtendedSlim, PerpEvent, PerpLegalCheck, PerpOrderResponse, PerpSpotCoinExtended, PerpSpotCoinExtendedSlim, PinnedCollectionDto, PositionLimitsDto, ProtocolAprType, ProviderDto, PublicOnly, PushNotificationCountResponse, PushNotificationDoc, PushNotificationResponse, RateType, RepayArgs, RepayDebtWithCollateralArgs, SendChatMessageDto, SetEmailDto, SetPhoneDto, ShareholderDto, SignAcceptGlobalOfferDto, SignDataDto, SignMintDto, SignWithdrawDto, SoroswapQuoteResponseDto, StakingCreatorDoc, StakingEditDto, StakingExploreDtoHydrated, StakingPoolDoc, StakingSummary, StakingUserPoolNfts, StellarAggregatorQuoteRequestDto, StellarAggregatorQuoteResponseDto, StellarChallengeResponseDto, StellarLendingDecodedEvent, StellarTokenKind, SuccessDto, SuccessWithMessageDto, SupplyArgs, SwapCollateralArgs, SwapDebtArgs, SwapHopDto, SwapPathDto, SwapVenue, SwitchWalletDto, SymbolInfoDto, TicketCalculationRequestDto, TicketPricesResponse, TicketValidationResult, TokenDataDocHydrated, TradesPerpResponseSingle, TradesilvaniaSignature, TraitInfo, TransactionCostData, TransactionCreate, TransactionDetailed, TransactionProcessStatus, TransactionSendResult, UserAnalyticsDto, UserBillingDetails, UserBlockPaginated, UserConversationPaginated, UserFavoriteResponseDto, UserInfo, UserNetworkInfoDto, UserProfileDoc, UserProfileDto, UserProfileEditDto, UserSettingsDoc, UserStakingSummaryDto, UserStatsDto, UserTokenInventoryResponseDto, ValueFp, VerifyEmailDto, VolumeGraph, Web2UserDoc, Web2UserShardsDto, Web2WalletDto, WebSocketTokenDto, WithdrawArgs, XoxnoInfo, XoxnoLiquidStatsDto } from '@xoxno/types';
|
|
5
|
+
import { ActivityChain, KustoOrderDirection, LendingPositionOrderByColumn, OfferType, StakingStatus, TokenCategory, UserStatsOrderByColumn } from '@xoxno/types/enums';
|
|
6
|
+
|
|
7
|
+
export type SafeHeaders = Record<string, string> & {
|
|
8
|
+
authorization?: never;
|
|
9
|
+
Authorization?: never;
|
|
10
|
+
};
|
|
11
|
+
export type OurRequestInit = Omit<RequestInit, "body" | "headers"> & {
|
|
12
|
+
headers?: SafeHeaders;
|
|
13
|
+
debug?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare enum Chain {
|
|
16
|
+
MAINNET = "1",
|
|
17
|
+
DEVNET = "D"
|
|
18
|
+
}
|
|
19
|
+
export declare class XOXNOClient {
|
|
20
|
+
apiUrl: string;
|
|
21
|
+
chain: Chain;
|
|
22
|
+
init: OurRequestInit;
|
|
23
|
+
config: {
|
|
24
|
+
mediaUrl: string;
|
|
25
|
+
gatewayUrl: string;
|
|
26
|
+
XO_SC: string;
|
|
27
|
+
FM_SC: string;
|
|
28
|
+
DR_SC: string;
|
|
29
|
+
KG_SC: string;
|
|
30
|
+
Staking_SC: string;
|
|
31
|
+
Manager_SC: string;
|
|
32
|
+
P2P_SC: string;
|
|
33
|
+
};
|
|
34
|
+
constructor({ chain, apiUrl, ...init }?: {
|
|
35
|
+
chain?: Chain;
|
|
36
|
+
apiUrl?: string;
|
|
37
|
+
} & OurRequestInit);
|
|
38
|
+
fetchWithTimeout: <T>(path: string, { params, ...options }?: RequestInit & {
|
|
39
|
+
debug?: boolean;
|
|
40
|
+
params?: Record<string, any>;
|
|
41
|
+
}) => Promise<T>;
|
|
42
|
+
}
|
|
43
|
+
export declare const isValidCollectionTicker: (ticker: string) => boolean;
|
|
44
|
+
export declare const isValidNftIdentifier: (identifier: string) => boolean;
|
|
45
|
+
declare const endpoints: {
|
|
46
|
+
readonly "/liquid/xoxno/rate": {
|
|
47
|
+
readonly input: {};
|
|
48
|
+
readonly output: RateType;
|
|
49
|
+
};
|
|
50
|
+
readonly "/liquid/xoxno/liquid-supply": {
|
|
51
|
+
readonly input: {};
|
|
52
|
+
readonly output: string;
|
|
53
|
+
};
|
|
54
|
+
readonly "/liquid/xoxno/staked": {
|
|
55
|
+
readonly input: {};
|
|
56
|
+
readonly output: string;
|
|
57
|
+
};
|
|
58
|
+
readonly "/user/login": {
|
|
59
|
+
readonly input: {};
|
|
60
|
+
readonly output: {};
|
|
61
|
+
readonly POST: {
|
|
62
|
+
readonly input: {};
|
|
63
|
+
readonly output: LoginAccessDto;
|
|
64
|
+
readonly body: LoginRequestDto;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
readonly "/user/:address/network-account": {
|
|
68
|
+
readonly input: {};
|
|
69
|
+
readonly output: UserNetworkInfoDto;
|
|
70
|
+
};
|
|
71
|
+
readonly "/user/:address/token-inventory": {
|
|
72
|
+
readonly input: {};
|
|
73
|
+
readonly output: UserTokenInventoryResponseDto;
|
|
74
|
+
};
|
|
75
|
+
readonly "/user/network-account": {
|
|
76
|
+
readonly input: {};
|
|
77
|
+
readonly output: {};
|
|
78
|
+
readonly POST: {
|
|
79
|
+
readonly input: {};
|
|
80
|
+
readonly output: UserNetworkInfoDto[];
|
|
81
|
+
readonly body: string[];
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly "/user/me/profile": {
|
|
85
|
+
readonly input: {};
|
|
86
|
+
readonly output: UserProfileDoc;
|
|
87
|
+
readonly securityMode: "requiredAny";
|
|
88
|
+
};
|
|
89
|
+
readonly "/user/:address/profile": {
|
|
90
|
+
readonly input: {};
|
|
91
|
+
readonly output: UserProfileDoc;
|
|
92
|
+
readonly PATCH: {
|
|
93
|
+
readonly input: {};
|
|
94
|
+
readonly output: UserProfileDoc;
|
|
95
|
+
readonly body: UserProfileEditDto;
|
|
96
|
+
readonly securityMode: "requiredAny";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly "/user/me": {
|
|
100
|
+
readonly input: {};
|
|
101
|
+
readonly output: UserProfileDto;
|
|
102
|
+
readonly securityMode: "requiredAny";
|
|
103
|
+
};
|
|
104
|
+
readonly "/user/me/settings": {
|
|
105
|
+
readonly input: {
|
|
106
|
+
unsubscribeToken: string;
|
|
107
|
+
};
|
|
108
|
+
readonly output: UserSettingsDoc;
|
|
109
|
+
readonly securityMode: "optionalAny";
|
|
110
|
+
};
|
|
111
|
+
readonly "/user/me/settings/notification-preferences": {
|
|
112
|
+
readonly input: {};
|
|
113
|
+
readonly output: {};
|
|
114
|
+
readonly PATCH: {
|
|
115
|
+
readonly input: {
|
|
116
|
+
unsubscribeToken?: string;
|
|
117
|
+
};
|
|
118
|
+
readonly output: UserSettingsDoc;
|
|
119
|
+
readonly body: NotificationPreferencesPostDto;
|
|
120
|
+
readonly securityMode: "optionalAny";
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
readonly "/user/me/settings/email": {
|
|
124
|
+
readonly input: {};
|
|
125
|
+
readonly output: {};
|
|
126
|
+
readonly PATCH: {
|
|
127
|
+
readonly input: {};
|
|
128
|
+
readonly output: UserSettingsDoc;
|
|
129
|
+
readonly body: SetEmailDto;
|
|
130
|
+
readonly securityMode: "requiredAny";
|
|
131
|
+
};
|
|
132
|
+
readonly DELETE: {
|
|
133
|
+
readonly input: {};
|
|
134
|
+
readonly output: UserSettingsDoc;
|
|
135
|
+
readonly body: {};
|
|
136
|
+
readonly securityMode: "requiredJwt";
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
readonly "/user/me/settings/phone": {
|
|
140
|
+
readonly input: {};
|
|
141
|
+
readonly output: {};
|
|
142
|
+
readonly PATCH: {
|
|
143
|
+
readonly input: {};
|
|
144
|
+
readonly output: UserSettingsDoc;
|
|
145
|
+
readonly body: SetPhoneDto;
|
|
146
|
+
readonly securityMode: "requiredAny";
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
readonly "/user/me/settings/billing": {
|
|
150
|
+
readonly input: {};
|
|
151
|
+
readonly output: {};
|
|
152
|
+
readonly PATCH: {
|
|
153
|
+
readonly input: {};
|
|
154
|
+
readonly output: UserSettingsDoc;
|
|
155
|
+
readonly body: UserBillingDetails;
|
|
156
|
+
readonly securityMode: "requiredAny";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
readonly "/user/me/settings/verify-email": {
|
|
160
|
+
readonly input: {};
|
|
161
|
+
readonly output: {};
|
|
162
|
+
readonly POST: {
|
|
163
|
+
readonly input: {};
|
|
164
|
+
readonly output: UserSettingsDoc;
|
|
165
|
+
readonly body: VerifyEmailDto;
|
|
166
|
+
readonly securityMode: "requiredAny";
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
readonly "/user/buy/signature": {
|
|
170
|
+
readonly input: {};
|
|
171
|
+
readonly output: {};
|
|
172
|
+
readonly POST: {
|
|
173
|
+
readonly input: {};
|
|
174
|
+
readonly output: TradesilvaniaSignature;
|
|
175
|
+
readonly body: Record<string, string>;
|
|
176
|
+
readonly securityMode: "requiredAny";
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
readonly "/user/:address/upload-picture": {
|
|
180
|
+
readonly input: {};
|
|
181
|
+
readonly output: {};
|
|
182
|
+
readonly PUT: {
|
|
183
|
+
readonly input: {
|
|
184
|
+
referer?: string;
|
|
185
|
+
};
|
|
186
|
+
readonly output: UserProfileDoc;
|
|
187
|
+
readonly body: FormData;
|
|
188
|
+
readonly securityMode: "requiredAny";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly "/user/:address/upload-banner": {
|
|
192
|
+
readonly input: {};
|
|
193
|
+
readonly output: {};
|
|
194
|
+
readonly PUT: {
|
|
195
|
+
readonly input: {};
|
|
196
|
+
readonly output: UserProfileDoc;
|
|
197
|
+
readonly body: FormData;
|
|
198
|
+
readonly securityMode: "requiredAny";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly "/user/:address/reset-picture": {
|
|
202
|
+
readonly input: {};
|
|
203
|
+
readonly output: {};
|
|
204
|
+
readonly PUT: {
|
|
205
|
+
readonly input: {};
|
|
206
|
+
readonly output: UserProfileDoc;
|
|
207
|
+
readonly body: {};
|
|
208
|
+
readonly securityMode: "requiredAny";
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly "/user/:address/reset-banner": {
|
|
212
|
+
readonly input: {};
|
|
213
|
+
readonly output: {};
|
|
214
|
+
readonly PUT: {
|
|
215
|
+
readonly input: {};
|
|
216
|
+
readonly output: UserProfileDoc;
|
|
217
|
+
readonly body: {};
|
|
218
|
+
readonly securityMode: "requiredAny";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly "/user/:tag/creator/is-registered": {
|
|
222
|
+
readonly input: {};
|
|
223
|
+
readonly output: SuccessDto;
|
|
224
|
+
};
|
|
225
|
+
readonly "/user/:address/creator/profile": {
|
|
226
|
+
readonly input: {};
|
|
227
|
+
readonly output: CreatorProfileDto;
|
|
228
|
+
readonly PATCH: {
|
|
229
|
+
readonly input: {};
|
|
230
|
+
readonly output: CreatorProfileDoc;
|
|
231
|
+
readonly body: CreatorProfileEditDto;
|
|
232
|
+
readonly securityMode: "requiredAny";
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
readonly "/user/:address/creator/upload-picture": {
|
|
236
|
+
readonly input: {};
|
|
237
|
+
readonly output: {};
|
|
238
|
+
readonly PUT: {
|
|
239
|
+
readonly input: {};
|
|
240
|
+
readonly output: CreatorProfileDoc;
|
|
241
|
+
readonly body: FormData;
|
|
242
|
+
readonly securityMode: "requiredAny";
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
readonly "/user/:address/creator/upload-banner": {
|
|
246
|
+
readonly input: {};
|
|
247
|
+
readonly output: {};
|
|
248
|
+
readonly PUT: {
|
|
249
|
+
readonly input: {};
|
|
250
|
+
readonly output: CreatorProfileDoc;
|
|
251
|
+
readonly body: FormData;
|
|
252
|
+
readonly securityMode: "requiredAny";
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
readonly "/user/:address/creator/reset-picture": {
|
|
256
|
+
readonly input: {};
|
|
257
|
+
readonly output: {};
|
|
258
|
+
readonly PUT: {
|
|
259
|
+
readonly input: {};
|
|
260
|
+
readonly output: CreatorProfileDoc;
|
|
261
|
+
readonly body: {};
|
|
262
|
+
readonly securityMode: "requiredAny";
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
readonly "/user/:address/creator/reset-banner": {
|
|
266
|
+
readonly input: {};
|
|
267
|
+
readonly output: {};
|
|
268
|
+
readonly PUT: {
|
|
269
|
+
readonly input: {};
|
|
270
|
+
readonly output: CreatorProfileDoc;
|
|
271
|
+
readonly body: {};
|
|
272
|
+
readonly securityMode: "requiredAny";
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
readonly "/user/:address/favorite/collections": {
|
|
276
|
+
readonly input: {
|
|
277
|
+
filter: PublicOnly<CollectionStatsFilter>;
|
|
278
|
+
};
|
|
279
|
+
readonly output: CollectionStatsPaginated;
|
|
280
|
+
};
|
|
281
|
+
readonly "/user/favorite/:favoriteId": {
|
|
282
|
+
readonly input: {};
|
|
283
|
+
readonly output: CheckLikeStatusResponseDto;
|
|
284
|
+
readonly securityMode: "requiredAny";
|
|
285
|
+
};
|
|
286
|
+
readonly "/user/:address/follow": {
|
|
287
|
+
readonly input: {};
|
|
288
|
+
readonly output: {};
|
|
289
|
+
readonly POST: {
|
|
290
|
+
readonly input: {};
|
|
291
|
+
readonly output: UserFavoriteResponseDto;
|
|
292
|
+
readonly body: {};
|
|
293
|
+
readonly securityMode: "requiredAny";
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
readonly "/user/:address/favorite/users": {
|
|
297
|
+
readonly input: {};
|
|
298
|
+
readonly output: string[];
|
|
299
|
+
};
|
|
300
|
+
readonly "/tokens": {
|
|
301
|
+
readonly input: {
|
|
302
|
+
identifier?: string[];
|
|
303
|
+
category?: TokenCategory[];
|
|
304
|
+
chain?: ActivityChain[];
|
|
305
|
+
};
|
|
306
|
+
readonly output: TokenDataDocHydrated[];
|
|
307
|
+
};
|
|
308
|
+
readonly "/tokens/swap": {
|
|
309
|
+
readonly input: {};
|
|
310
|
+
readonly output: TokenDataDocHydrated[];
|
|
311
|
+
};
|
|
312
|
+
readonly "/stellar/tokens": {
|
|
313
|
+
readonly input: {
|
|
314
|
+
network?: string[];
|
|
315
|
+
};
|
|
316
|
+
readonly output: TokenDataDocHydrated[];
|
|
317
|
+
};
|
|
318
|
+
readonly "/tokens/restricted": {
|
|
319
|
+
readonly input: {};
|
|
320
|
+
readonly output: string[];
|
|
321
|
+
};
|
|
322
|
+
readonly "/tokens/usd-price": {
|
|
323
|
+
readonly input: {
|
|
324
|
+
identifier?: string[];
|
|
325
|
+
cache?: boolean;
|
|
326
|
+
};
|
|
327
|
+
readonly output: Record<string, number>;
|
|
328
|
+
};
|
|
329
|
+
readonly "/tokens/egld/fiat-price": {
|
|
330
|
+
readonly input: {
|
|
331
|
+
value?: number;
|
|
332
|
+
fiatCurrencies?: string[];
|
|
333
|
+
};
|
|
334
|
+
readonly output: Record<string, number>;
|
|
335
|
+
};
|
|
336
|
+
readonly "/tokens/xoxno/info": {
|
|
337
|
+
readonly input: {};
|
|
338
|
+
readonly output: XoxnoInfo;
|
|
339
|
+
};
|
|
340
|
+
readonly "/liquid/xoxno/stats": {
|
|
341
|
+
readonly input: {};
|
|
342
|
+
readonly output: XoxnoLiquidStatsDto;
|
|
343
|
+
};
|
|
344
|
+
readonly "/liquid/egld/stats": {
|
|
345
|
+
readonly input: {};
|
|
346
|
+
readonly output: XoxnoLiquidStatsDto;
|
|
347
|
+
};
|
|
348
|
+
readonly "/liquid/sui/stats": {
|
|
349
|
+
readonly input: {};
|
|
350
|
+
readonly output: XoxnoLiquidStatsDto;
|
|
351
|
+
};
|
|
352
|
+
readonly "/analytics/marketplace-unique-users": {
|
|
353
|
+
readonly input: {
|
|
354
|
+
before: string;
|
|
355
|
+
after: string;
|
|
356
|
+
bin: string;
|
|
357
|
+
};
|
|
358
|
+
readonly output: AnalyticsMarketplaceUniqueUsers[];
|
|
359
|
+
};
|
|
360
|
+
readonly "/liquid/egld/rate": {
|
|
361
|
+
readonly input: {};
|
|
362
|
+
readonly output: RateType;
|
|
363
|
+
};
|
|
364
|
+
readonly "/liquid/egld/liquid-supply": {
|
|
365
|
+
readonly input: {};
|
|
366
|
+
readonly output: string;
|
|
367
|
+
};
|
|
368
|
+
readonly "/liquid/egld/staked": {
|
|
369
|
+
readonly input: {};
|
|
370
|
+
readonly output: string;
|
|
371
|
+
};
|
|
372
|
+
readonly "/liquid/egld/pending-fees": {
|
|
373
|
+
readonly input: {};
|
|
374
|
+
readonly output: string;
|
|
375
|
+
};
|
|
376
|
+
readonly "/liquid/egld/pending-undelegate": {
|
|
377
|
+
readonly input: {};
|
|
378
|
+
readonly output: string;
|
|
379
|
+
};
|
|
380
|
+
readonly "/liquid/egld/pending-delegate": {
|
|
381
|
+
readonly input: {};
|
|
382
|
+
readonly output: string;
|
|
383
|
+
};
|
|
384
|
+
readonly "/liquid/egld/execute-delegate": {
|
|
385
|
+
readonly input: {};
|
|
386
|
+
readonly output: string;
|
|
387
|
+
};
|
|
388
|
+
readonly "/liquid/egld/execute-undelegate": {
|
|
389
|
+
readonly input: {};
|
|
390
|
+
readonly output: string;
|
|
391
|
+
};
|
|
392
|
+
readonly "/liquid/egld/protocol-apr": {
|
|
393
|
+
readonly input: {};
|
|
394
|
+
readonly output: ProtocolAprType;
|
|
395
|
+
};
|
|
396
|
+
readonly "/liquid/egld/providers": {
|
|
397
|
+
readonly input: {};
|
|
398
|
+
readonly output: ProviderDto[];
|
|
399
|
+
};
|
|
400
|
+
readonly "/user/:address/delegation": {
|
|
401
|
+
readonly input: {};
|
|
402
|
+
readonly output: DelegationDataOutput[];
|
|
403
|
+
};
|
|
404
|
+
readonly "/lending/market/:token/profile": {
|
|
405
|
+
readonly input: {};
|
|
406
|
+
readonly output: LendingMarketProfile;
|
|
407
|
+
};
|
|
408
|
+
readonly "/lending/market/query": {
|
|
409
|
+
readonly input: {
|
|
410
|
+
filter: PublicOnly<LendingMarketProfileFilter>;
|
|
411
|
+
};
|
|
412
|
+
readonly output: LendingMarketProfileQuery;
|
|
413
|
+
};
|
|
414
|
+
readonly "/user/lending/:address": {
|
|
415
|
+
readonly input: {
|
|
416
|
+
token?: string;
|
|
417
|
+
};
|
|
418
|
+
readonly output: LendingAccountProfile[];
|
|
419
|
+
};
|
|
420
|
+
readonly "/lending/market/indexes": {
|
|
421
|
+
readonly input: {};
|
|
422
|
+
readonly output: Record<string, LendingIndexesDto>;
|
|
423
|
+
};
|
|
424
|
+
readonly "/user/lending/position/:identifier": {
|
|
425
|
+
readonly input: {};
|
|
426
|
+
readonly output: LendingAccountProfile[];
|
|
427
|
+
};
|
|
428
|
+
readonly "/lending/pnl": {
|
|
429
|
+
readonly input: {
|
|
430
|
+
identifiers: string[];
|
|
431
|
+
};
|
|
432
|
+
readonly output: LendingAccountPnl[];
|
|
433
|
+
};
|
|
434
|
+
readonly "/user/lending/pnl/:address": {
|
|
435
|
+
readonly input: {};
|
|
436
|
+
readonly output: LendingAccountPnl[];
|
|
437
|
+
};
|
|
438
|
+
readonly "/user/lending/summary/:identifier": {
|
|
439
|
+
readonly input: {};
|
|
440
|
+
readonly output: LendingAccountSummary;
|
|
441
|
+
};
|
|
442
|
+
readonly "/user/lending/image/:nonce": {
|
|
443
|
+
readonly input: {
|
|
444
|
+
isStatic: boolean;
|
|
445
|
+
chain?: ActivityChain[];
|
|
446
|
+
};
|
|
447
|
+
readonly output: string;
|
|
448
|
+
};
|
|
449
|
+
readonly "/lending/market/emode-categories": {
|
|
450
|
+
readonly input: {
|
|
451
|
+
categoryIds?: string[];
|
|
452
|
+
};
|
|
453
|
+
readonly output: LendingEModeCategoryProfile[];
|
|
454
|
+
};
|
|
455
|
+
readonly "/lending/market/:token/emode-categories": {
|
|
456
|
+
readonly input: {};
|
|
457
|
+
readonly output: LendingEModeCategoryProfile[];
|
|
458
|
+
};
|
|
459
|
+
readonly "/lending/market/:token/analytics": {
|
|
460
|
+
readonly input: {
|
|
461
|
+
startTime?: string;
|
|
462
|
+
endTime?: string;
|
|
463
|
+
bin?: string;
|
|
464
|
+
};
|
|
465
|
+
readonly output: LendingMarketAnalyticsGraph[];
|
|
466
|
+
};
|
|
467
|
+
readonly "/lending/market/:token/average": {
|
|
468
|
+
readonly input: {};
|
|
469
|
+
readonly output: LendingMarketAverageGraph[];
|
|
470
|
+
};
|
|
471
|
+
readonly "/lending/leaderboard": {
|
|
472
|
+
readonly input: {
|
|
473
|
+
skip?: number;
|
|
474
|
+
top?: number;
|
|
475
|
+
orderBy?: LendingPositionOrderByColumn;
|
|
476
|
+
orderDirection?: KustoOrderDirection;
|
|
477
|
+
token?: string;
|
|
478
|
+
chain?: ActivityChain[];
|
|
479
|
+
};
|
|
480
|
+
readonly output: LendingPositionStatus[];
|
|
481
|
+
};
|
|
482
|
+
readonly "/lending/leaderboard/liquidate": {
|
|
483
|
+
readonly input: {};
|
|
484
|
+
readonly output: LendingPositionStatus[];
|
|
485
|
+
};
|
|
486
|
+
readonly "/lending/leaderboard/clean-bad-debt": {
|
|
487
|
+
readonly input: {};
|
|
488
|
+
readonly output: LendingPositionStatus[];
|
|
489
|
+
};
|
|
490
|
+
readonly "/lending/stats": {
|
|
491
|
+
readonly input: {};
|
|
492
|
+
readonly output: LendingOverallStats;
|
|
493
|
+
};
|
|
494
|
+
readonly "/lending/market/prices": {
|
|
495
|
+
readonly input: {
|
|
496
|
+
returnAsUsd?: boolean;
|
|
497
|
+
};
|
|
498
|
+
readonly output: Record<string, number>;
|
|
499
|
+
};
|
|
500
|
+
readonly "/nft/query": {
|
|
501
|
+
readonly input: {
|
|
502
|
+
filter: PublicOnly<NftDocFilter>;
|
|
503
|
+
continuationToken?: string;
|
|
504
|
+
};
|
|
505
|
+
readonly output: NftPaginated & {
|
|
506
|
+
continuationToken?: string;
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
readonly "/nft/:identifier/like": {
|
|
510
|
+
readonly input: {};
|
|
511
|
+
readonly output: {};
|
|
512
|
+
readonly POST: {
|
|
513
|
+
readonly input: {};
|
|
514
|
+
readonly output: LikeNftDto;
|
|
515
|
+
readonly body: {};
|
|
516
|
+
readonly securityMode: "requiredAny";
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
readonly "/user/:address/inventory-summary": {
|
|
520
|
+
readonly input: {
|
|
521
|
+
activeAuction?: boolean;
|
|
522
|
+
};
|
|
523
|
+
readonly output: InventorySummaryDtoHydrated[];
|
|
524
|
+
};
|
|
525
|
+
readonly "/user/:address/offers": {
|
|
526
|
+
readonly input: {
|
|
527
|
+
skip?: number;
|
|
528
|
+
top?: number;
|
|
529
|
+
continuationToken?: string;
|
|
530
|
+
type?: OfferType;
|
|
531
|
+
};
|
|
532
|
+
readonly output: NftOfferPaginated & {
|
|
533
|
+
continuationToken?: string;
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
readonly "/nft/offer/query": {
|
|
537
|
+
readonly input: {
|
|
538
|
+
filter: PublicOnly<NftOfferDocFilter>;
|
|
539
|
+
continuationToken?: string;
|
|
540
|
+
};
|
|
541
|
+
readonly output: NftOfferPaginated & {
|
|
542
|
+
continuationToken?: string;
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
readonly "/nft/offer/:identifier": {
|
|
546
|
+
readonly input: {};
|
|
547
|
+
readonly output: NftOfferDocHydrated[];
|
|
548
|
+
};
|
|
549
|
+
readonly "/user/:address/favorite/nfts": {
|
|
550
|
+
readonly input: {
|
|
551
|
+
skip?: number;
|
|
552
|
+
top?: number;
|
|
553
|
+
continuationToken?: string;
|
|
554
|
+
};
|
|
555
|
+
readonly output: NftPaginated & {
|
|
556
|
+
continuationToken?: string;
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
readonly "/collection/:collection/attributes": {
|
|
560
|
+
readonly input: {};
|
|
561
|
+
readonly output: Record<string, ValueFp & Record<string, TraitInfo>>;
|
|
562
|
+
};
|
|
563
|
+
readonly "/nft/:identifier/offers": {
|
|
564
|
+
readonly input: {
|
|
565
|
+
skip?: number;
|
|
566
|
+
top?: number;
|
|
567
|
+
continuationToken?: string;
|
|
568
|
+
};
|
|
569
|
+
readonly output: NftOfferPaginated & {
|
|
570
|
+
continuationToken?: string;
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
readonly "/collection/:collection/ranks": {
|
|
574
|
+
readonly input: {};
|
|
575
|
+
readonly output: CollectionRanksDTO[];
|
|
576
|
+
};
|
|
577
|
+
readonly "/collection/:collection/listings": {
|
|
578
|
+
readonly input: {};
|
|
579
|
+
readonly output: ListingsResponseDto;
|
|
580
|
+
};
|
|
581
|
+
readonly "/nft/pinned": {
|
|
582
|
+
readonly input: {
|
|
583
|
+
chain: ActivityChain[];
|
|
584
|
+
};
|
|
585
|
+
readonly output: NftDocHydrated[];
|
|
586
|
+
};
|
|
587
|
+
readonly "/nft/sign-withdraw": {
|
|
588
|
+
readonly input: {};
|
|
589
|
+
readonly output: {};
|
|
590
|
+
readonly POST: {
|
|
591
|
+
readonly input: {};
|
|
592
|
+
readonly output: SignDataDto;
|
|
593
|
+
readonly body: SignWithdrawDto;
|
|
594
|
+
readonly securityMode: "requiredAny";
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
readonly "/collection/:collection/sign-offer": {
|
|
598
|
+
readonly input: {};
|
|
599
|
+
readonly output: {};
|
|
600
|
+
readonly POST: {
|
|
601
|
+
readonly input: {};
|
|
602
|
+
readonly output: SignDataDto;
|
|
603
|
+
readonly body: SignAcceptGlobalOfferDto;
|
|
604
|
+
readonly securityMode: "requiredAny";
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
readonly "/collection/:collection/sign-mint": {
|
|
608
|
+
readonly input: {};
|
|
609
|
+
readonly output: {};
|
|
610
|
+
readonly POST: {
|
|
611
|
+
readonly input: {};
|
|
612
|
+
readonly output: SignDataDto;
|
|
613
|
+
readonly body: SignMintDto;
|
|
614
|
+
readonly securityMode: "requiredAny";
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
readonly "/nft/:identifier": {
|
|
618
|
+
readonly input: {};
|
|
619
|
+
readonly output: NftDocFull;
|
|
620
|
+
};
|
|
621
|
+
readonly "/collection/:collection/profile": {
|
|
622
|
+
readonly input: {};
|
|
623
|
+
readonly output: CollectionProfileDoc;
|
|
624
|
+
readonly PATCH: {
|
|
625
|
+
readonly input: {};
|
|
626
|
+
readonly output: CollectionProfileDoc;
|
|
627
|
+
readonly body: CollectionProfileEditDto;
|
|
628
|
+
readonly securityMode: "requiredAny";
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
readonly "/collection/:collection/floor-price": {
|
|
632
|
+
readonly input: {
|
|
633
|
+
token?: string;
|
|
634
|
+
};
|
|
635
|
+
readonly output: FloorPriceDto;
|
|
636
|
+
};
|
|
637
|
+
readonly "/collection/floor-price": {
|
|
638
|
+
readonly input: {
|
|
639
|
+
collection?: string[];
|
|
640
|
+
};
|
|
641
|
+
readonly output: Record<string, number>;
|
|
642
|
+
};
|
|
643
|
+
readonly "/collection/pinned": {
|
|
644
|
+
readonly input: {
|
|
645
|
+
chain: ActivityChain[];
|
|
646
|
+
};
|
|
647
|
+
readonly output: PinnedCollectionDto[];
|
|
648
|
+
};
|
|
649
|
+
readonly "/collection/pinned-drops": {
|
|
650
|
+
readonly input: {
|
|
651
|
+
chain: ActivityChain[];
|
|
652
|
+
};
|
|
653
|
+
readonly output: CollectionMintProfileDocHydrated[];
|
|
654
|
+
};
|
|
655
|
+
readonly "/collection/:collection/pinned-drops": {
|
|
656
|
+
readonly input: {};
|
|
657
|
+
readonly output: CollectionPinnedStatusDto;
|
|
658
|
+
};
|
|
659
|
+
readonly "/collection/:collection/pinned": {
|
|
660
|
+
readonly input: {};
|
|
661
|
+
readonly output: CollectionPinnedStatusDto;
|
|
662
|
+
};
|
|
663
|
+
readonly "/collection/:collection/follow": {
|
|
664
|
+
readonly input: {};
|
|
665
|
+
readonly output: {};
|
|
666
|
+
readonly POST: {
|
|
667
|
+
readonly input: {};
|
|
668
|
+
readonly output: FollowCollectionDto;
|
|
669
|
+
readonly body: {};
|
|
670
|
+
readonly securityMode: "requiredAny";
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
readonly "/collection/query": {
|
|
674
|
+
readonly input: {
|
|
675
|
+
filter?: PublicOnly<CollectionProfileFilter>;
|
|
676
|
+
continuationToken?: string;
|
|
677
|
+
};
|
|
678
|
+
readonly output: CollectionProfilePaginated & {
|
|
679
|
+
continuationToken?: string;
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
readonly "/collection/drops/query": {
|
|
683
|
+
readonly input: {
|
|
684
|
+
filter?: PublicOnly<CollectionMintProfileFilter>;
|
|
685
|
+
continuationToken?: string;
|
|
686
|
+
};
|
|
687
|
+
readonly output: CollectionMintProfilePaginated & {
|
|
688
|
+
continuationToken?: string;
|
|
689
|
+
};
|
|
690
|
+
};
|
|
691
|
+
readonly "/collection/:collection/drop-info": {
|
|
692
|
+
readonly input: {};
|
|
693
|
+
readonly output: CollectionMintProfileDocWithStages;
|
|
694
|
+
readonly securityMode: "optionalAny";
|
|
695
|
+
};
|
|
696
|
+
readonly "/collection/:creatorTag/:collectionTag/drop-info": {
|
|
697
|
+
readonly input: {};
|
|
698
|
+
readonly output: CollectionMintProfileDocWithStages;
|
|
699
|
+
readonly securityMode: "optionalAny";
|
|
700
|
+
};
|
|
701
|
+
readonly "/collection/:collection/upload-picture": {
|
|
702
|
+
readonly input: {};
|
|
703
|
+
readonly output: {};
|
|
704
|
+
readonly PUT: {
|
|
705
|
+
readonly input: {};
|
|
706
|
+
readonly output: CollectionProfileDoc;
|
|
707
|
+
readonly body: FormData;
|
|
708
|
+
readonly securityMode: "requiredAny";
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
readonly "/collection/:collection/upload-banner": {
|
|
712
|
+
readonly input: {};
|
|
713
|
+
readonly output: {};
|
|
714
|
+
readonly PUT: {
|
|
715
|
+
readonly input: {};
|
|
716
|
+
readonly output: CollectionProfileDoc;
|
|
717
|
+
readonly body: FormData;
|
|
718
|
+
readonly securityMode: "requiredAny";
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
readonly "/collection/:collection/reset-picture": {
|
|
722
|
+
readonly input: {};
|
|
723
|
+
readonly output: {};
|
|
724
|
+
readonly PUT: {
|
|
725
|
+
readonly input: {};
|
|
726
|
+
readonly output: CollectionProfileDoc;
|
|
727
|
+
readonly body: {};
|
|
728
|
+
readonly securityMode: "requiredAny";
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
readonly "/collection/:collection/reset-banner": {
|
|
732
|
+
readonly input: {};
|
|
733
|
+
readonly output: {};
|
|
734
|
+
readonly PUT: {
|
|
735
|
+
readonly input: {};
|
|
736
|
+
readonly output: CollectionProfileDoc;
|
|
737
|
+
readonly body: {};
|
|
738
|
+
readonly securityMode: "requiredAny";
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
readonly "/collection/:collection/holders": {
|
|
742
|
+
readonly input: {};
|
|
743
|
+
readonly output: CollectionHoldersDto;
|
|
744
|
+
};
|
|
745
|
+
readonly "/collection/:collection/holders/export": {
|
|
746
|
+
readonly input: {};
|
|
747
|
+
readonly output: CollectionHoldersExportDto[];
|
|
748
|
+
};
|
|
749
|
+
readonly "/collection/:collection/owner": {
|
|
750
|
+
readonly input: {};
|
|
751
|
+
readonly output: CollectionOwnerDto;
|
|
752
|
+
};
|
|
753
|
+
readonly "/collection/:collection/stats": {
|
|
754
|
+
readonly input: {};
|
|
755
|
+
readonly output: CollectionStatsDocHydrated;
|
|
756
|
+
};
|
|
757
|
+
readonly "/collection/stats/query": {
|
|
758
|
+
readonly input: {
|
|
759
|
+
filter: PublicOnly<CollectionStatsFilter>;
|
|
760
|
+
continuationToken?: string;
|
|
761
|
+
};
|
|
762
|
+
readonly output: CollectionStatsPaginated & {
|
|
763
|
+
continuationToken?: string;
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
readonly "/collection/global-offer/query": {
|
|
767
|
+
readonly input: {
|
|
768
|
+
filter: PublicOnly<CollectionOffersFilter>;
|
|
769
|
+
continuationToken?: string;
|
|
770
|
+
};
|
|
771
|
+
readonly output: GlobalOfferPaginated & {
|
|
772
|
+
continuationToken?: string;
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
readonly "/user/:address/creator/listing": {
|
|
776
|
+
readonly input: {};
|
|
777
|
+
readonly output: CreatorDetailsDto;
|
|
778
|
+
};
|
|
779
|
+
readonly "/user/:address/creator/details": {
|
|
780
|
+
readonly input: {};
|
|
781
|
+
readonly output: CreatorDetailsDto;
|
|
782
|
+
};
|
|
783
|
+
readonly "/launchpad/:scAddress/shareholders/royalties": {
|
|
784
|
+
readonly input: {};
|
|
785
|
+
readonly output: ShareholderDto[];
|
|
786
|
+
};
|
|
787
|
+
readonly "/launchpad/:scAddress/shareholders/collection/:collectionTag": {
|
|
788
|
+
readonly input: {};
|
|
789
|
+
readonly output: ShareholderDto[];
|
|
790
|
+
};
|
|
791
|
+
readonly "/pool/:poolId/profile": {
|
|
792
|
+
readonly input: {};
|
|
793
|
+
readonly output: StakingSummary;
|
|
794
|
+
readonly PATCH: {
|
|
795
|
+
readonly input: {};
|
|
796
|
+
readonly output: StakingPoolDoc;
|
|
797
|
+
readonly body: StakingEditDto;
|
|
798
|
+
readonly securityMode: "requiredAny";
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
readonly "/pool/:poolId/whitelist": {
|
|
802
|
+
readonly input: {};
|
|
803
|
+
readonly output: NftDocHydrated[];
|
|
804
|
+
};
|
|
805
|
+
readonly "/pool/:poolId/upload-picture": {
|
|
806
|
+
readonly input: {};
|
|
807
|
+
readonly output: {};
|
|
808
|
+
readonly PUT: {
|
|
809
|
+
readonly input: {};
|
|
810
|
+
readonly output: StakingPoolDoc;
|
|
811
|
+
readonly body: FormData;
|
|
812
|
+
readonly securityMode: "requiredAny";
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
readonly "/user/:address/staking/available-pools": {
|
|
816
|
+
readonly input: {};
|
|
817
|
+
readonly output: StakingSummary[];
|
|
818
|
+
};
|
|
819
|
+
readonly "/user/:address/staking/owned-collections": {
|
|
820
|
+
readonly input: {};
|
|
821
|
+
readonly output: OwnedCollectionsDto;
|
|
822
|
+
};
|
|
823
|
+
readonly "/user/:address/staking/owned-pools": {
|
|
824
|
+
readonly input: {};
|
|
825
|
+
readonly output: StakingSummary[];
|
|
826
|
+
};
|
|
827
|
+
readonly "/user/:address/staking/summary": {
|
|
828
|
+
readonly input: {};
|
|
829
|
+
readonly output: UserStakingSummaryDto[];
|
|
830
|
+
};
|
|
831
|
+
readonly "/user/:address/staking/creator": {
|
|
832
|
+
readonly input: {};
|
|
833
|
+
readonly output: StakingCreatorDoc;
|
|
834
|
+
};
|
|
835
|
+
readonly "/user/:address/staking/collection/:collection": {
|
|
836
|
+
readonly input: {};
|
|
837
|
+
readonly output: StakingSummary[];
|
|
838
|
+
};
|
|
839
|
+
readonly "/user/:address/staking/pool/:poolId/nfts": {
|
|
840
|
+
readonly input: {
|
|
841
|
+
status?: StakingStatus;
|
|
842
|
+
};
|
|
843
|
+
readonly output: StakingUserPoolNfts;
|
|
844
|
+
};
|
|
845
|
+
readonly "/collection/:collection/staking/summary": {
|
|
846
|
+
readonly input: {};
|
|
847
|
+
readonly output: StakingSummary[];
|
|
848
|
+
readonly securityMode: "optionalAny";
|
|
849
|
+
};
|
|
850
|
+
readonly "/collection/:collection/staking/delegators": {
|
|
851
|
+
readonly input: {};
|
|
852
|
+
readonly output: string[];
|
|
853
|
+
};
|
|
854
|
+
readonly "/collection/staking/explore": {
|
|
855
|
+
readonly input: {};
|
|
856
|
+
readonly output: StakingExploreDtoHydrated[];
|
|
857
|
+
};
|
|
858
|
+
readonly "/user/:creatorTag/owned-services": {
|
|
859
|
+
readonly input: {};
|
|
860
|
+
readonly output: OwnedServicesDto;
|
|
861
|
+
};
|
|
862
|
+
readonly "/search": {
|
|
863
|
+
readonly input: {
|
|
864
|
+
filter: PublicOnly<FilterQueryDto>;
|
|
865
|
+
};
|
|
866
|
+
readonly output: GlobalSearchResourcesPaginated;
|
|
867
|
+
};
|
|
868
|
+
readonly "/user/search": {
|
|
869
|
+
readonly input: {
|
|
870
|
+
filter: PublicOnly<FilterQueryDto>;
|
|
871
|
+
};
|
|
872
|
+
readonly output: GlobalSearchResourcesPaginated;
|
|
873
|
+
};
|
|
874
|
+
readonly "/collection/search": {
|
|
875
|
+
readonly input: {
|
|
876
|
+
filter: PublicOnly<FilterQueryDto>;
|
|
877
|
+
};
|
|
878
|
+
readonly output: GlobalSearchResourcesPaginated;
|
|
879
|
+
};
|
|
880
|
+
readonly "/collection/drops/search": {
|
|
881
|
+
readonly input: {
|
|
882
|
+
filter: PublicOnly<FilterQueryDto>;
|
|
883
|
+
};
|
|
884
|
+
readonly output: CollectionMintProfilePaginated;
|
|
885
|
+
};
|
|
886
|
+
readonly "/nft/search/query": {
|
|
887
|
+
readonly input: {
|
|
888
|
+
filter: PublicOnly<NftDocFilter>;
|
|
889
|
+
};
|
|
890
|
+
readonly output: NftPaginated;
|
|
891
|
+
};
|
|
892
|
+
readonly "/lending/market-sc": {
|
|
893
|
+
readonly input: {};
|
|
894
|
+
readonly output: string[];
|
|
895
|
+
};
|
|
896
|
+
readonly "/lending/active-accounts": {
|
|
897
|
+
readonly input: {};
|
|
898
|
+
readonly output: number[];
|
|
899
|
+
};
|
|
900
|
+
readonly "/lending/account/:nonce/attributes": {
|
|
901
|
+
readonly input: {};
|
|
902
|
+
readonly output: LendingNftAttributes;
|
|
903
|
+
};
|
|
904
|
+
readonly "/lending/account/:nonce/positions": {
|
|
905
|
+
readonly input: {};
|
|
906
|
+
readonly output: LendingNftAttributes[];
|
|
907
|
+
};
|
|
908
|
+
readonly "/lending/market/:token/price/egld": {
|
|
909
|
+
readonly input: {};
|
|
910
|
+
readonly output: LendingTokenPriceDto;
|
|
911
|
+
};
|
|
912
|
+
readonly "/faucet": {
|
|
913
|
+
readonly input: {};
|
|
914
|
+
readonly output: {};
|
|
915
|
+
readonly POST: {
|
|
916
|
+
readonly input: {};
|
|
917
|
+
readonly output: SuccessDto;
|
|
918
|
+
readonly body: {};
|
|
919
|
+
readonly securityMode: "requiredAny";
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
readonly "/user/notifications": {
|
|
923
|
+
readonly input: {
|
|
924
|
+
skip?: number;
|
|
925
|
+
top?: number;
|
|
926
|
+
continuationToken?: string;
|
|
927
|
+
};
|
|
928
|
+
readonly output: NotificationPaginated & {
|
|
929
|
+
continuationToken?: string;
|
|
930
|
+
};
|
|
931
|
+
readonly securityMode: "requiredAny";
|
|
932
|
+
};
|
|
933
|
+
readonly "/user/notifications/unread-count": {
|
|
934
|
+
readonly input: {};
|
|
935
|
+
readonly output: PushNotificationCountResponse;
|
|
936
|
+
readonly securityMode: "requiredAny";
|
|
937
|
+
};
|
|
938
|
+
readonly "/user/notifications/clear": {
|
|
939
|
+
readonly input: {};
|
|
940
|
+
readonly output: {};
|
|
941
|
+
readonly DELETE: {
|
|
942
|
+
readonly input: {};
|
|
943
|
+
readonly output: SuccessDto;
|
|
944
|
+
readonly body: {};
|
|
945
|
+
readonly securityMode: "requiredAny";
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
readonly "/user/notifications/read": {
|
|
949
|
+
readonly input: {};
|
|
950
|
+
readonly output: {};
|
|
951
|
+
readonly PATCH: {
|
|
952
|
+
readonly input: {
|
|
953
|
+
id?: string;
|
|
954
|
+
};
|
|
955
|
+
readonly output: NotificationDoc | SuccessDto;
|
|
956
|
+
readonly body: {};
|
|
957
|
+
readonly securityMode: "requiredAny";
|
|
958
|
+
};
|
|
959
|
+
};
|
|
960
|
+
readonly "/mobile/device/register": {
|
|
961
|
+
readonly input: {};
|
|
962
|
+
readonly output: {};
|
|
963
|
+
readonly POST: {
|
|
964
|
+
readonly input: {};
|
|
965
|
+
readonly output: MobileDeviceDoc;
|
|
966
|
+
readonly body: MobileDeviceRegistrationDto;
|
|
967
|
+
readonly securityMode: "requiredWeb2";
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
readonly "/mobile/device/:deviceId": {
|
|
971
|
+
readonly input: {};
|
|
972
|
+
readonly output: MobileDeviceDoc;
|
|
973
|
+
readonly securityMode: "requiredWeb2";
|
|
974
|
+
readonly DELETE: {
|
|
975
|
+
readonly input: {};
|
|
976
|
+
readonly output: SuccessDto;
|
|
977
|
+
readonly body: {};
|
|
978
|
+
readonly securityMode: "requiredWeb2";
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
readonly "/mobile/history": {
|
|
982
|
+
readonly input: {
|
|
983
|
+
skip?: number;
|
|
984
|
+
top?: number;
|
|
985
|
+
continuationToken?: string;
|
|
986
|
+
};
|
|
987
|
+
readonly output: PushNotificationResponse & {
|
|
988
|
+
continuationToken?: string;
|
|
989
|
+
};
|
|
990
|
+
readonly securityMode: "requiredAny";
|
|
991
|
+
};
|
|
992
|
+
readonly "/mobile/history/unread-count": {
|
|
993
|
+
readonly input: {};
|
|
994
|
+
readonly output: PushNotificationCountResponse;
|
|
995
|
+
readonly securityMode: "requiredAny";
|
|
996
|
+
};
|
|
997
|
+
readonly "/mobile/history/:notificationId/read": {
|
|
998
|
+
readonly input: {};
|
|
999
|
+
readonly output: {};
|
|
1000
|
+
readonly PUT: {
|
|
1001
|
+
readonly input: {};
|
|
1002
|
+
readonly output: PushNotificationDoc;
|
|
1003
|
+
readonly body: {};
|
|
1004
|
+
readonly securityMode: "requiredAny";
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
readonly "/mobile/history/read-all": {
|
|
1008
|
+
readonly input: {};
|
|
1009
|
+
readonly output: {};
|
|
1010
|
+
readonly PUT: {
|
|
1011
|
+
readonly input: {};
|
|
1012
|
+
readonly output: NotificationSuccessResponseDto;
|
|
1013
|
+
readonly body: {};
|
|
1014
|
+
readonly securityMode: "requiredAny";
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
readonly "/mobile/history/clear-all": {
|
|
1018
|
+
readonly input: {};
|
|
1019
|
+
readonly output: {};
|
|
1020
|
+
readonly DELETE: {
|
|
1021
|
+
readonly input: {};
|
|
1022
|
+
readonly output: NotificationSuccessResponseDto;
|
|
1023
|
+
readonly body: {};
|
|
1024
|
+
readonly securityMode: "requiredAny";
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
readonly "/mobile/history/clear-id/:notificationId": {
|
|
1028
|
+
readonly input: {};
|
|
1029
|
+
readonly output: {};
|
|
1030
|
+
readonly DELETE: {
|
|
1031
|
+
readonly input: {};
|
|
1032
|
+
readonly output: NotificationSuccessResponseDto;
|
|
1033
|
+
readonly body: {};
|
|
1034
|
+
readonly securityMode: "requiredAny";
|
|
1035
|
+
};
|
|
1036
|
+
};
|
|
1037
|
+
readonly "/eventNotifications/event/:eventId/update": {
|
|
1038
|
+
readonly input: {};
|
|
1039
|
+
readonly output: {};
|
|
1040
|
+
readonly POST: {
|
|
1041
|
+
readonly input: {};
|
|
1042
|
+
readonly output: NotificationSuccessResponseDto;
|
|
1043
|
+
readonly body: EventNotificationDto;
|
|
1044
|
+
readonly securityMode: "requiredAny";
|
|
1045
|
+
};
|
|
1046
|
+
};
|
|
1047
|
+
readonly "/eventNotifications/event/:eventId/reminder": {
|
|
1048
|
+
readonly input: {};
|
|
1049
|
+
readonly output: {};
|
|
1050
|
+
readonly POST: {
|
|
1051
|
+
readonly input: {};
|
|
1052
|
+
readonly output: NotificationSuccessResponseDto;
|
|
1053
|
+
readonly body: EventNotificationDto;
|
|
1054
|
+
readonly securityMode: "requiredAny";
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
readonly "/eventNotifications/creator/marketing": {
|
|
1058
|
+
readonly input: {};
|
|
1059
|
+
readonly output: {};
|
|
1060
|
+
readonly POST: {
|
|
1061
|
+
readonly input: {};
|
|
1062
|
+
readonly output: NotificationSuccessResponseDto;
|
|
1063
|
+
readonly body: CreatorMarketingNotificationDto;
|
|
1064
|
+
readonly securityMode: "requiredAny";
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1067
|
+
readonly "/eventNotifications/user/:userId/direct": {
|
|
1068
|
+
readonly input: {};
|
|
1069
|
+
readonly output: {};
|
|
1070
|
+
readonly POST: {
|
|
1071
|
+
readonly input: {};
|
|
1072
|
+
readonly output: NotificationSuccessResponseDto;
|
|
1073
|
+
readonly body: EventNotificationDto;
|
|
1074
|
+
readonly securityMode: "requiredAny";
|
|
1075
|
+
};
|
|
1076
|
+
};
|
|
1077
|
+
readonly "/user/stellar/challenge": {
|
|
1078
|
+
readonly input: {
|
|
1079
|
+
account: string;
|
|
1080
|
+
};
|
|
1081
|
+
readonly output: StellarChallengeResponseDto;
|
|
1082
|
+
};
|
|
1083
|
+
readonly "/user/native-token": {
|
|
1084
|
+
readonly input: {
|
|
1085
|
+
originalUrl?: string;
|
|
1086
|
+
extraInfo?: string;
|
|
1087
|
+
};
|
|
1088
|
+
readonly output: string;
|
|
1089
|
+
};
|
|
1090
|
+
readonly "/user/web2": {
|
|
1091
|
+
readonly input: {};
|
|
1092
|
+
readonly output: Web2UserDoc;
|
|
1093
|
+
readonly securityMode: "requiredWeb2";
|
|
1094
|
+
};
|
|
1095
|
+
readonly "/user/web2/session-cookie": {
|
|
1096
|
+
readonly input: {};
|
|
1097
|
+
readonly output: {};
|
|
1098
|
+
readonly POST: {
|
|
1099
|
+
readonly input: {};
|
|
1100
|
+
readonly output: SuccessWithMessageDto;
|
|
1101
|
+
readonly body: {};
|
|
1102
|
+
readonly securityMode: "requiredWeb2";
|
|
1103
|
+
};
|
|
1104
|
+
};
|
|
1105
|
+
readonly "/user/web2/wallet": {
|
|
1106
|
+
readonly input: {};
|
|
1107
|
+
readonly output: {};
|
|
1108
|
+
readonly POST: {
|
|
1109
|
+
readonly input: {};
|
|
1110
|
+
readonly output: Web2UserDoc;
|
|
1111
|
+
readonly body: NativeWalletDto;
|
|
1112
|
+
readonly securityMode: "requiredWeb2";
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
readonly "/user/web2/wallet-switch": {
|
|
1116
|
+
readonly input: {};
|
|
1117
|
+
readonly output: {};
|
|
1118
|
+
readonly POST: {
|
|
1119
|
+
readonly input: {};
|
|
1120
|
+
readonly output: Web2UserDoc;
|
|
1121
|
+
readonly body: SwitchWalletDto;
|
|
1122
|
+
readonly securityMode: "requiredWeb2";
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
readonly "/user/web2/wallet-link": {
|
|
1126
|
+
readonly input: {};
|
|
1127
|
+
readonly output: {};
|
|
1128
|
+
readonly POST: {
|
|
1129
|
+
readonly input: {};
|
|
1130
|
+
readonly output: Web2UserDoc;
|
|
1131
|
+
readonly body: Web2WalletDto;
|
|
1132
|
+
readonly securityMode: "requiredWeb2";
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
readonly "/user/web2/:index/wallet-link": {
|
|
1136
|
+
readonly input: {};
|
|
1137
|
+
readonly output: {};
|
|
1138
|
+
readonly DELETE: {
|
|
1139
|
+
readonly input: {};
|
|
1140
|
+
readonly output: Web2UserDoc;
|
|
1141
|
+
readonly body: {};
|
|
1142
|
+
readonly securityMode: "requiredWeb2";
|
|
1143
|
+
};
|
|
1144
|
+
};
|
|
1145
|
+
readonly "/user/web2/shards": {
|
|
1146
|
+
readonly input: {};
|
|
1147
|
+
readonly output: Web2UserShardsDto;
|
|
1148
|
+
readonly securityMode: "requiredWeb2";
|
|
1149
|
+
};
|
|
1150
|
+
readonly "/activity/query": {
|
|
1151
|
+
readonly input: {
|
|
1152
|
+
filter: PublicOnly<NftActivityFilter>;
|
|
1153
|
+
continuationToken?: string;
|
|
1154
|
+
};
|
|
1155
|
+
readonly output: NftActivityPaginated & {
|
|
1156
|
+
continuationToken?: string;
|
|
1157
|
+
};
|
|
1158
|
+
};
|
|
1159
|
+
readonly "/activity/:identifier": {
|
|
1160
|
+
readonly input: {};
|
|
1161
|
+
readonly output: NftActivityDocHydrated;
|
|
1162
|
+
};
|
|
1163
|
+
readonly "/analytics/volume": {
|
|
1164
|
+
readonly input: {
|
|
1165
|
+
startTime?: string;
|
|
1166
|
+
endTime?: string;
|
|
1167
|
+
bin?: string;
|
|
1168
|
+
chain: ActivityChain[];
|
|
1169
|
+
};
|
|
1170
|
+
readonly output: VolumeGraph[];
|
|
1171
|
+
};
|
|
1172
|
+
readonly "/collection/:collection/analytics/volume": {
|
|
1173
|
+
readonly input: {
|
|
1174
|
+
startTime?: string;
|
|
1175
|
+
endTime?: string;
|
|
1176
|
+
bin?: string;
|
|
1177
|
+
};
|
|
1178
|
+
readonly output: AnalyticsVolumeDto[];
|
|
1179
|
+
};
|
|
1180
|
+
readonly "/user/:address/analytics/volume": {
|
|
1181
|
+
readonly input: {};
|
|
1182
|
+
readonly output: UserAnalyticsDto;
|
|
1183
|
+
};
|
|
1184
|
+
readonly "/analytics/overview": {
|
|
1185
|
+
readonly input: {
|
|
1186
|
+
chain: ActivityChain[];
|
|
1187
|
+
};
|
|
1188
|
+
readonly output: GlobalAnalyticsOverviewResponseDto;
|
|
1189
|
+
};
|
|
1190
|
+
readonly "/user/stats": {
|
|
1191
|
+
readonly input: {
|
|
1192
|
+
skip?: number;
|
|
1193
|
+
top?: number;
|
|
1194
|
+
orderBy?: UserStatsOrderByColumn;
|
|
1195
|
+
orderDirection?: KustoOrderDirection;
|
|
1196
|
+
};
|
|
1197
|
+
readonly output: UserStatsDto[];
|
|
1198
|
+
};
|
|
1199
|
+
readonly "/user/xoxno-drop": {
|
|
1200
|
+
readonly input: {
|
|
1201
|
+
skip?: number;
|
|
1202
|
+
top?: number;
|
|
1203
|
+
address?: string;
|
|
1204
|
+
};
|
|
1205
|
+
readonly output: AirdropDtoHydrated[];
|
|
1206
|
+
};
|
|
1207
|
+
readonly "/user/me/xoxno-drop": {
|
|
1208
|
+
readonly input: {};
|
|
1209
|
+
readonly output: AirdropDtoHydrated[];
|
|
1210
|
+
readonly securityMode: "requiredAny";
|
|
1211
|
+
};
|
|
1212
|
+
readonly "/transactions/:txHash": {
|
|
1213
|
+
readonly input: {
|
|
1214
|
+
withResults?: boolean;
|
|
1215
|
+
};
|
|
1216
|
+
readonly output: TransactionDetailed;
|
|
1217
|
+
};
|
|
1218
|
+
readonly "/transactions/:txHash/status": {
|
|
1219
|
+
readonly input: {};
|
|
1220
|
+
readonly output: TransactionProcessStatus;
|
|
1221
|
+
};
|
|
1222
|
+
readonly "/transaction/cost": {
|
|
1223
|
+
readonly input: {};
|
|
1224
|
+
readonly output: {};
|
|
1225
|
+
readonly POST: {
|
|
1226
|
+
readonly input: {};
|
|
1227
|
+
readonly output: TransactionCostData;
|
|
1228
|
+
readonly body: TransactionCreate;
|
|
1229
|
+
};
|
|
1230
|
+
};
|
|
1231
|
+
readonly "/transactions": {
|
|
1232
|
+
readonly input: {};
|
|
1233
|
+
readonly output: {};
|
|
1234
|
+
readonly POST: {
|
|
1235
|
+
readonly input: {};
|
|
1236
|
+
readonly output: TransactionSendResult;
|
|
1237
|
+
readonly body: TransactionCreate;
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
readonly "/transactions/batch": {
|
|
1241
|
+
readonly input: {};
|
|
1242
|
+
readonly output: {};
|
|
1243
|
+
readonly POST: {
|
|
1244
|
+
readonly input: {
|
|
1245
|
+
isRelay?: boolean;
|
|
1246
|
+
};
|
|
1247
|
+
readonly output: TransactionSendResult[];
|
|
1248
|
+
readonly body: TransactionCreate[];
|
|
1249
|
+
};
|
|
1250
|
+
};
|
|
1251
|
+
readonly "/perp/exchange/acceptTerms": {
|
|
1252
|
+
readonly input: {};
|
|
1253
|
+
readonly output: {};
|
|
1254
|
+
readonly POST: {
|
|
1255
|
+
readonly input: {};
|
|
1256
|
+
readonly output: SuccessDto;
|
|
1257
|
+
readonly body: {};
|
|
1258
|
+
readonly securityMode: "requiredAny";
|
|
1259
|
+
};
|
|
1260
|
+
};
|
|
1261
|
+
readonly "/perp/exchange/sendAsset": {
|
|
1262
|
+
readonly input: {};
|
|
1263
|
+
readonly output: {};
|
|
1264
|
+
readonly POST: {
|
|
1265
|
+
readonly input: {};
|
|
1266
|
+
readonly output: SuccessDto;
|
|
1267
|
+
readonly body: {};
|
|
1268
|
+
readonly securityMode: "requiredAny";
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
readonly "/perp/exchange/sendExternalAsset": {
|
|
1272
|
+
readonly input: {};
|
|
1273
|
+
readonly output: {};
|
|
1274
|
+
readonly POST: {
|
|
1275
|
+
readonly input: {};
|
|
1276
|
+
readonly output: SuccessDto;
|
|
1277
|
+
readonly body: {};
|
|
1278
|
+
readonly securityMode: "requiredAny";
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
readonly "/perp/exchange/deposit": {
|
|
1282
|
+
readonly input: {};
|
|
1283
|
+
readonly output: {};
|
|
1284
|
+
readonly POST: {
|
|
1285
|
+
readonly input: {};
|
|
1286
|
+
readonly output: SuccessDto;
|
|
1287
|
+
readonly body: {};
|
|
1288
|
+
readonly securityMode: "requiredAny";
|
|
1289
|
+
};
|
|
1290
|
+
};
|
|
1291
|
+
readonly "/perp/exchange/withdraw": {
|
|
1292
|
+
readonly input: {};
|
|
1293
|
+
readonly output: {};
|
|
1294
|
+
readonly POST: {
|
|
1295
|
+
readonly input: {};
|
|
1296
|
+
readonly output: SuccessDto;
|
|
1297
|
+
readonly body: {};
|
|
1298
|
+
readonly securityMode: "requiredAny";
|
|
1299
|
+
};
|
|
1300
|
+
};
|
|
1301
|
+
readonly "/perp/exchange/order": {
|
|
1302
|
+
readonly input: {};
|
|
1303
|
+
readonly output: {};
|
|
1304
|
+
readonly POST: {
|
|
1305
|
+
readonly input: {};
|
|
1306
|
+
readonly output: PerpOrderResponse;
|
|
1307
|
+
readonly body: {};
|
|
1308
|
+
readonly securityMode: "requiredAny";
|
|
1309
|
+
};
|
|
1310
|
+
};
|
|
1311
|
+
readonly "/tradingview/bars/:symbol": {
|
|
1312
|
+
readonly input: {};
|
|
1313
|
+
readonly output: BarDto[];
|
|
1314
|
+
};
|
|
1315
|
+
readonly "/tradingview/coin/:symbol": {
|
|
1316
|
+
readonly input: {};
|
|
1317
|
+
readonly output: SymbolInfoDto[];
|
|
1318
|
+
};
|
|
1319
|
+
readonly "/perp/coin/:symbol": {
|
|
1320
|
+
readonly input: {};
|
|
1321
|
+
readonly output: PerpCoinExtended[];
|
|
1322
|
+
};
|
|
1323
|
+
readonly "/perp/coin/spot/:symbol": {
|
|
1324
|
+
readonly input: {};
|
|
1325
|
+
readonly output: PerpSpotCoinExtended[];
|
|
1326
|
+
};
|
|
1327
|
+
readonly "/perp/coins": {
|
|
1328
|
+
readonly input: {};
|
|
1329
|
+
readonly output: PerpCoinExtendedSlim[];
|
|
1330
|
+
};
|
|
1331
|
+
readonly "/perp/legal-check/:address": {
|
|
1332
|
+
readonly input: {};
|
|
1333
|
+
readonly output: PerpLegalCheck;
|
|
1334
|
+
};
|
|
1335
|
+
readonly "/perp/coins/spot": {
|
|
1336
|
+
readonly input: {};
|
|
1337
|
+
readonly output: PerpSpotCoinExtendedSlim[];
|
|
1338
|
+
};
|
|
1339
|
+
readonly "/perp/orderbook/:symbol": {
|
|
1340
|
+
readonly input: {};
|
|
1341
|
+
readonly output: L2BookPerpResponseSingle[];
|
|
1342
|
+
};
|
|
1343
|
+
readonly "/perp/trades/:symbol": {
|
|
1344
|
+
readonly input: {};
|
|
1345
|
+
readonly output: TradesPerpResponseSingle[];
|
|
1346
|
+
};
|
|
1347
|
+
readonly "/perp/stats/spot/:symbol": {
|
|
1348
|
+
readonly input: {};
|
|
1349
|
+
readonly output: ActiveSpotAssetCtx[];
|
|
1350
|
+
};
|
|
1351
|
+
readonly "/perp/stats/:symbol": {
|
|
1352
|
+
readonly input: {};
|
|
1353
|
+
readonly output: ActivePerpAssetCtx[];
|
|
1354
|
+
};
|
|
1355
|
+
readonly "/perp/subscribe": {
|
|
1356
|
+
readonly input: {};
|
|
1357
|
+
readonly output: {};
|
|
1358
|
+
readonly POST: {
|
|
1359
|
+
readonly input: {};
|
|
1360
|
+
readonly output: SuccessDto;
|
|
1361
|
+
readonly body: PerpEvent;
|
|
1362
|
+
};
|
|
1363
|
+
};
|
|
1364
|
+
readonly "/perp/unsubscribe": {
|
|
1365
|
+
readonly input: {};
|
|
1366
|
+
readonly output: {};
|
|
1367
|
+
readonly POST: {
|
|
1368
|
+
readonly input: {};
|
|
1369
|
+
readonly output: SuccessDto;
|
|
1370
|
+
readonly body: PerpEvent;
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
1373
|
+
readonly "/user/chat/message": {
|
|
1374
|
+
readonly input: {};
|
|
1375
|
+
readonly output: {};
|
|
1376
|
+
readonly POST: {
|
|
1377
|
+
readonly input: {};
|
|
1378
|
+
readonly output: ChatMessageDocHydrated;
|
|
1379
|
+
readonly body: SendChatMessageDto;
|
|
1380
|
+
readonly securityMode: "requiredAny";
|
|
1381
|
+
};
|
|
1382
|
+
};
|
|
1383
|
+
readonly "/user/chat/conversation": {
|
|
1384
|
+
readonly input: {
|
|
1385
|
+
skip?: number;
|
|
1386
|
+
top?: number;
|
|
1387
|
+
isGroupChat?: boolean;
|
|
1388
|
+
continuationToken?: string;
|
|
1389
|
+
};
|
|
1390
|
+
readonly output: UserConversationPaginated & {
|
|
1391
|
+
continuationToken?: string;
|
|
1392
|
+
};
|
|
1393
|
+
readonly securityMode: "requiredAny";
|
|
1394
|
+
};
|
|
1395
|
+
readonly "/user/chat/conversation/:conversationId": {
|
|
1396
|
+
readonly input: {
|
|
1397
|
+
skip?: number;
|
|
1398
|
+
top?: number;
|
|
1399
|
+
receiver: string;
|
|
1400
|
+
continuationToken?: string;
|
|
1401
|
+
};
|
|
1402
|
+
readonly output: ChatMessagePaginated & {
|
|
1403
|
+
continuationToken?: string;
|
|
1404
|
+
};
|
|
1405
|
+
readonly securityMode: "requiredAny";
|
|
1406
|
+
readonly DELETE: {
|
|
1407
|
+
readonly input: {};
|
|
1408
|
+
readonly output: SuccessDto;
|
|
1409
|
+
readonly body: {};
|
|
1410
|
+
readonly securityMode: "requiredAny";
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
readonly "/user/chat/conversation-summary": {
|
|
1414
|
+
readonly input: {};
|
|
1415
|
+
readonly output: GlobalConversationSummaryDto;
|
|
1416
|
+
readonly securityMode: "requiredAny";
|
|
1417
|
+
};
|
|
1418
|
+
readonly "/user/chat/conversation/:conversationId/message/:messageId": {
|
|
1419
|
+
readonly input: {};
|
|
1420
|
+
readonly output: {};
|
|
1421
|
+
readonly DELETE: {
|
|
1422
|
+
readonly input: {
|
|
1423
|
+
deleteForAll?: boolean;
|
|
1424
|
+
};
|
|
1425
|
+
readonly output: SuccessDto;
|
|
1426
|
+
readonly body: {};
|
|
1427
|
+
readonly securityMode: "requiredAny";
|
|
1428
|
+
};
|
|
1429
|
+
};
|
|
1430
|
+
readonly "/user/chat/block": {
|
|
1431
|
+
readonly input: {
|
|
1432
|
+
skip?: number;
|
|
1433
|
+
top?: number;
|
|
1434
|
+
continuationToken?: string;
|
|
1435
|
+
};
|
|
1436
|
+
readonly output: UserBlockPaginated & {
|
|
1437
|
+
continuationToken?: string;
|
|
1438
|
+
};
|
|
1439
|
+
readonly securityMode: "requiredAny";
|
|
1440
|
+
};
|
|
1441
|
+
readonly "/user/chat/block/:address": {
|
|
1442
|
+
readonly input: {};
|
|
1443
|
+
readonly output: {};
|
|
1444
|
+
readonly POST: {
|
|
1445
|
+
readonly input: {};
|
|
1446
|
+
readonly output: SuccessDto;
|
|
1447
|
+
readonly body: {};
|
|
1448
|
+
readonly securityMode: "requiredAny";
|
|
1449
|
+
};
|
|
1450
|
+
};
|
|
1451
|
+
readonly "/user/chat/token": {
|
|
1452
|
+
readonly input: {};
|
|
1453
|
+
readonly output: {};
|
|
1454
|
+
readonly POST: {
|
|
1455
|
+
readonly input: {};
|
|
1456
|
+
readonly output: WebSocketTokenDto;
|
|
1457
|
+
readonly body: {};
|
|
1458
|
+
readonly securityMode: "requiredAny";
|
|
1459
|
+
};
|
|
1460
|
+
};
|
|
1461
|
+
readonly "/hatom/user/:address": {
|
|
1462
|
+
readonly input: {};
|
|
1463
|
+
readonly output: UserInfo;
|
|
1464
|
+
};
|
|
1465
|
+
readonly "/countries": {
|
|
1466
|
+
readonly input: {};
|
|
1467
|
+
readonly output: string[];
|
|
1468
|
+
};
|
|
1469
|
+
readonly "/event": {
|
|
1470
|
+
readonly input: {};
|
|
1471
|
+
readonly output: {};
|
|
1472
|
+
readonly POST: {
|
|
1473
|
+
readonly input: {};
|
|
1474
|
+
readonly output: EventProfile;
|
|
1475
|
+
readonly body: EventProfileCreateDto;
|
|
1476
|
+
readonly securityMode: "requiredAny";
|
|
1477
|
+
};
|
|
1478
|
+
};
|
|
1479
|
+
readonly "/event/:eventId": {
|
|
1480
|
+
readonly input: {};
|
|
1481
|
+
readonly output: EventProfile;
|
|
1482
|
+
readonly securityMode: "optionalAny";
|
|
1483
|
+
readonly PATCH: {
|
|
1484
|
+
readonly input: {};
|
|
1485
|
+
readonly output: EventProfile;
|
|
1486
|
+
readonly body: EventProfileEditDto;
|
|
1487
|
+
readonly securityMode: "requiredAny";
|
|
1488
|
+
};
|
|
1489
|
+
readonly DELETE: {
|
|
1490
|
+
readonly input: {};
|
|
1491
|
+
readonly output: SuccessDto;
|
|
1492
|
+
readonly body: {};
|
|
1493
|
+
readonly securityMode: "requiredAny";
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1496
|
+
readonly "/event/profile/query": {
|
|
1497
|
+
readonly input: {
|
|
1498
|
+
filter: PublicOnly<EventProfileFilter>;
|
|
1499
|
+
};
|
|
1500
|
+
readonly output: EventProfileQuery;
|
|
1501
|
+
};
|
|
1502
|
+
readonly "/event/:eventId/profile": {
|
|
1503
|
+
readonly input: {};
|
|
1504
|
+
readonly output: {};
|
|
1505
|
+
readonly PUT: {
|
|
1506
|
+
readonly input: {};
|
|
1507
|
+
readonly output: EventProfile;
|
|
1508
|
+
readonly body: FormData;
|
|
1509
|
+
readonly securityMode: "requiredAny";
|
|
1510
|
+
};
|
|
1511
|
+
};
|
|
1512
|
+
readonly "/event/:eventId/background": {
|
|
1513
|
+
readonly input: {};
|
|
1514
|
+
readonly output: {};
|
|
1515
|
+
readonly PUT: {
|
|
1516
|
+
readonly input: {};
|
|
1517
|
+
readonly output: EventProfile;
|
|
1518
|
+
readonly body: FormData;
|
|
1519
|
+
readonly securityMode: "requiredAny";
|
|
1520
|
+
};
|
|
1521
|
+
};
|
|
1522
|
+
readonly "/event/:eventId/description": {
|
|
1523
|
+
readonly input: {};
|
|
1524
|
+
readonly output: {};
|
|
1525
|
+
readonly PUT: {
|
|
1526
|
+
readonly input: {};
|
|
1527
|
+
readonly output: EventProfile;
|
|
1528
|
+
readonly body: FormData;
|
|
1529
|
+
readonly securityMode: "requiredAny";
|
|
1530
|
+
};
|
|
1531
|
+
};
|
|
1532
|
+
readonly "/event/:eventId/description/image": {
|
|
1533
|
+
readonly input: {};
|
|
1534
|
+
readonly output: {};
|
|
1535
|
+
readonly PUT: {
|
|
1536
|
+
readonly input: {};
|
|
1537
|
+
readonly output: string;
|
|
1538
|
+
readonly body: FormData;
|
|
1539
|
+
readonly securityMode: "requiredAny";
|
|
1540
|
+
};
|
|
1541
|
+
};
|
|
1542
|
+
readonly "/event/:eventId/description/image/:imageId": {
|
|
1543
|
+
readonly input: {};
|
|
1544
|
+
readonly output: {};
|
|
1545
|
+
readonly DELETE: {
|
|
1546
|
+
readonly input: {};
|
|
1547
|
+
readonly output: SuccessDto;
|
|
1548
|
+
readonly body: {};
|
|
1549
|
+
readonly securityMode: "requiredAny";
|
|
1550
|
+
};
|
|
1551
|
+
};
|
|
1552
|
+
readonly "/event/:eventId/register": {
|
|
1553
|
+
readonly input: {};
|
|
1554
|
+
readonly output: {};
|
|
1555
|
+
readonly POST: {
|
|
1556
|
+
readonly input: {
|
|
1557
|
+
invitationId?: string;
|
|
1558
|
+
};
|
|
1559
|
+
readonly output: EventRegistrationResponseDto;
|
|
1560
|
+
readonly body: EventGuestRegistrationDto;
|
|
1561
|
+
readonly securityMode: "requiredAny";
|
|
1562
|
+
};
|
|
1563
|
+
};
|
|
1564
|
+
readonly "/event/:eventId/ticket": {
|
|
1565
|
+
readonly input: {};
|
|
1566
|
+
readonly output: EventTicketProfileDoc[];
|
|
1567
|
+
readonly POST: {
|
|
1568
|
+
readonly input: {};
|
|
1569
|
+
readonly output: EventTicketProfileDoc;
|
|
1570
|
+
readonly body: EventTicketProfileCreateDto;
|
|
1571
|
+
readonly securityMode: "requiredAny";
|
|
1572
|
+
};
|
|
1573
|
+
};
|
|
1574
|
+
readonly "/event/:eventId/ticket/:ticketId": {
|
|
1575
|
+
readonly input: {};
|
|
1576
|
+
readonly output: EventTicketProfileDoc;
|
|
1577
|
+
readonly PATCH: {
|
|
1578
|
+
readonly input: {};
|
|
1579
|
+
readonly output: EventTicketProfileDoc;
|
|
1580
|
+
readonly body: EventTicketProfileEditDto;
|
|
1581
|
+
readonly securityMode: "requiredAny";
|
|
1582
|
+
};
|
|
1583
|
+
readonly PUT: {
|
|
1584
|
+
readonly input: {};
|
|
1585
|
+
readonly output: EventTicketProfileDoc;
|
|
1586
|
+
readonly body: FormData;
|
|
1587
|
+
readonly securityMode: "requiredAny";
|
|
1588
|
+
};
|
|
1589
|
+
readonly POST: {
|
|
1590
|
+
readonly input: {};
|
|
1591
|
+
readonly output: SuccessDto;
|
|
1592
|
+
readonly body: {};
|
|
1593
|
+
};
|
|
1594
|
+
};
|
|
1595
|
+
readonly "/event/:eventId/stage": {
|
|
1596
|
+
readonly input: {
|
|
1597
|
+
isEnabled?: boolean;
|
|
1598
|
+
};
|
|
1599
|
+
readonly output: EventStageProfileDoc[];
|
|
1600
|
+
readonly POST: {
|
|
1601
|
+
readonly input: {};
|
|
1602
|
+
readonly output: EventStageProfileDoc;
|
|
1603
|
+
readonly body: EventStageProfileCreateDto;
|
|
1604
|
+
readonly securityMode: "requiredAny";
|
|
1605
|
+
};
|
|
1606
|
+
};
|
|
1607
|
+
readonly "/event/:eventId/stage/:stageId": {
|
|
1608
|
+
readonly input: {};
|
|
1609
|
+
readonly output: EventStageProfileDoc;
|
|
1610
|
+
readonly PATCH: {
|
|
1611
|
+
readonly input: {};
|
|
1612
|
+
readonly output: EventStageProfileDoc;
|
|
1613
|
+
readonly body: EventStageProfileEditDto;
|
|
1614
|
+
readonly securityMode: "requiredAny";
|
|
1615
|
+
};
|
|
1616
|
+
readonly DELETE: {
|
|
1617
|
+
readonly input: {};
|
|
1618
|
+
readonly output: SuccessDto;
|
|
1619
|
+
readonly body: {};
|
|
1620
|
+
readonly securityMode: "requiredAny";
|
|
1621
|
+
};
|
|
1622
|
+
};
|
|
1623
|
+
readonly "/event/:eventId/calculate-prices": {
|
|
1624
|
+
readonly input: {};
|
|
1625
|
+
readonly output: {};
|
|
1626
|
+
readonly POST: {
|
|
1627
|
+
readonly input: {};
|
|
1628
|
+
readonly output: TicketPricesResponse;
|
|
1629
|
+
readonly body: TicketCalculationRequestDto;
|
|
1630
|
+
};
|
|
1631
|
+
};
|
|
1632
|
+
readonly "/event/:eventId/validate-discount": {
|
|
1633
|
+
readonly input: {};
|
|
1634
|
+
readonly output: {};
|
|
1635
|
+
readonly POST: {
|
|
1636
|
+
readonly input: {};
|
|
1637
|
+
readonly output: DiscountCodeValidationResponse;
|
|
1638
|
+
readonly body: {};
|
|
1639
|
+
};
|
|
1640
|
+
};
|
|
1641
|
+
readonly "/user/:address/creator/events": {
|
|
1642
|
+
readonly input: {};
|
|
1643
|
+
readonly output: CreatorDetailsDto;
|
|
1644
|
+
readonly securityMode: "optionalAny";
|
|
1645
|
+
};
|
|
1646
|
+
readonly "/event/:eventId/invite": {
|
|
1647
|
+
readonly input: {};
|
|
1648
|
+
readonly output: {};
|
|
1649
|
+
readonly POST: {
|
|
1650
|
+
readonly input: {};
|
|
1651
|
+
readonly output: EventInvitationDoc[];
|
|
1652
|
+
readonly body: EventInvitationCreateDto[];
|
|
1653
|
+
readonly securityMode: "requiredAny";
|
|
1654
|
+
};
|
|
1655
|
+
};
|
|
1656
|
+
readonly "/event/:eventId/invite/query": {
|
|
1657
|
+
readonly input: {
|
|
1658
|
+
filter: PublicOnly<EventInvitationFilter>;
|
|
1659
|
+
};
|
|
1660
|
+
readonly output: EventInvitationQuery;
|
|
1661
|
+
readonly securityMode: "requiredAny";
|
|
1662
|
+
};
|
|
1663
|
+
readonly "/event/:eventId/invite/:inviteId": {
|
|
1664
|
+
readonly input: {};
|
|
1665
|
+
readonly output: EventInvitation;
|
|
1666
|
+
readonly POST: {
|
|
1667
|
+
readonly input: {};
|
|
1668
|
+
readonly output: EventAcceptInvitation;
|
|
1669
|
+
readonly body: EventClaimInvitationDto;
|
|
1670
|
+
readonly securityMode: "requiredAny";
|
|
1671
|
+
};
|
|
1672
|
+
readonly DELETE: {
|
|
1673
|
+
readonly input: {};
|
|
1674
|
+
readonly output: EventInvitationDoc;
|
|
1675
|
+
readonly body: {};
|
|
1676
|
+
readonly securityMode: "requiredAny";
|
|
1677
|
+
};
|
|
1678
|
+
};
|
|
1679
|
+
readonly "/event/:eventId/voucher/query": {
|
|
1680
|
+
readonly input: {
|
|
1681
|
+
filter: PublicOnly<EventVoucherFilter>;
|
|
1682
|
+
};
|
|
1683
|
+
readonly output: EventVoucherQuery;
|
|
1684
|
+
readonly securityMode: "requiredAny";
|
|
1685
|
+
};
|
|
1686
|
+
readonly "/event/:eventId/questions": {
|
|
1687
|
+
readonly input: {};
|
|
1688
|
+
readonly output: EventQuestionDoc[];
|
|
1689
|
+
readonly securityMode: "requiredAny";
|
|
1690
|
+
};
|
|
1691
|
+
readonly "/event/:eventId/question": {
|
|
1692
|
+
readonly input: {};
|
|
1693
|
+
readonly output: {};
|
|
1694
|
+
readonly POST: {
|
|
1695
|
+
readonly input: {};
|
|
1696
|
+
readonly output: EventQuestionDoc;
|
|
1697
|
+
readonly body: EventQuestionCreateDto;
|
|
1698
|
+
readonly securityMode: "requiredAny";
|
|
1699
|
+
};
|
|
1700
|
+
};
|
|
1701
|
+
readonly "/event/:eventId/question/:questionId": {
|
|
1702
|
+
readonly input: {};
|
|
1703
|
+
readonly output: {};
|
|
1704
|
+
readonly PATCH: {
|
|
1705
|
+
readonly input: {};
|
|
1706
|
+
readonly output: EventQuestionDoc;
|
|
1707
|
+
readonly body: EventQuestionEditDto;
|
|
1708
|
+
readonly securityMode: "requiredAny";
|
|
1709
|
+
};
|
|
1710
|
+
readonly DELETE: {
|
|
1711
|
+
readonly input: {};
|
|
1712
|
+
readonly output: SuccessDto;
|
|
1713
|
+
readonly body: {};
|
|
1714
|
+
readonly securityMode: "requiredAny";
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
readonly "/event/:eventId/guest/query": {
|
|
1718
|
+
readonly input: {
|
|
1719
|
+
filter: PublicOnly<EventGuestFilter>;
|
|
1720
|
+
};
|
|
1721
|
+
readonly output: EventGuestProfileQuery;
|
|
1722
|
+
readonly securityMode: "requiredAny";
|
|
1723
|
+
};
|
|
1724
|
+
readonly "/event/:eventId/guest/:address": {
|
|
1725
|
+
readonly input: {};
|
|
1726
|
+
readonly output: EventGuestProfile;
|
|
1727
|
+
readonly securityMode: "requiredAny";
|
|
1728
|
+
};
|
|
1729
|
+
readonly "/event/:eventId/guest-export": {
|
|
1730
|
+
readonly input: {};
|
|
1731
|
+
readonly output: EventGuestExport[];
|
|
1732
|
+
readonly securityMode: "requiredAny";
|
|
1733
|
+
};
|
|
1734
|
+
readonly "/event/:eventId/role": {
|
|
1735
|
+
readonly input: {};
|
|
1736
|
+
readonly output: EventUserRole[];
|
|
1737
|
+
readonly POST: {
|
|
1738
|
+
readonly input: {};
|
|
1739
|
+
readonly output: EventUserRole;
|
|
1740
|
+
readonly body: EventUserRoleCreateDto;
|
|
1741
|
+
readonly securityMode: "requiredAny";
|
|
1742
|
+
};
|
|
1743
|
+
readonly PATCH: {
|
|
1744
|
+
readonly input: {};
|
|
1745
|
+
readonly output: EventUserRole;
|
|
1746
|
+
readonly body: EventUserRoleEditDto;
|
|
1747
|
+
readonly securityMode: "requiredAny";
|
|
1748
|
+
};
|
|
1749
|
+
readonly securityMode: "requiredAny";
|
|
1750
|
+
};
|
|
1751
|
+
readonly "/event/:eventId/role/:roleId": {
|
|
1752
|
+
readonly input: {};
|
|
1753
|
+
readonly output: EventUserRoleDoc;
|
|
1754
|
+
readonly DELETE: {
|
|
1755
|
+
readonly input: {};
|
|
1756
|
+
readonly output: SuccessDto;
|
|
1757
|
+
readonly body: {};
|
|
1758
|
+
readonly securityMode: "requiredAny";
|
|
1759
|
+
};
|
|
1760
|
+
readonly POST: {
|
|
1761
|
+
readonly input: {};
|
|
1762
|
+
readonly output: EventUserRoleDoc;
|
|
1763
|
+
readonly body: {};
|
|
1764
|
+
readonly securityMode: "requiredAny";
|
|
1765
|
+
};
|
|
1766
|
+
};
|
|
1767
|
+
readonly "/event/:eventId/guest": {
|
|
1768
|
+
readonly input: {};
|
|
1769
|
+
readonly output: {};
|
|
1770
|
+
readonly DELETE: {
|
|
1771
|
+
readonly input: {};
|
|
1772
|
+
readonly output: SuccessDto;
|
|
1773
|
+
readonly body: {};
|
|
1774
|
+
readonly securityMode: "requiredAny";
|
|
1775
|
+
};
|
|
1776
|
+
};
|
|
1777
|
+
readonly "/event/:eventId/roleOf/:address": {
|
|
1778
|
+
readonly input: {};
|
|
1779
|
+
readonly output: EventUserRoleDoc;
|
|
1780
|
+
readonly securityMode: "requiredAny";
|
|
1781
|
+
};
|
|
1782
|
+
readonly "/user/me/event": {
|
|
1783
|
+
readonly input: {
|
|
1784
|
+
extended: boolean;
|
|
1785
|
+
};
|
|
1786
|
+
readonly output: EventProfile[];
|
|
1787
|
+
readonly securityMode: "requiredAny";
|
|
1788
|
+
};
|
|
1789
|
+
readonly "/user/me/events/past": {
|
|
1790
|
+
readonly input: {};
|
|
1791
|
+
readonly output: EventProfile[];
|
|
1792
|
+
readonly securityMode: "requiredAny";
|
|
1793
|
+
};
|
|
1794
|
+
readonly "/user/me/events/hosted": {
|
|
1795
|
+
readonly input: {};
|
|
1796
|
+
readonly output: EventProfile[];
|
|
1797
|
+
readonly securityMode: "requiredAny";
|
|
1798
|
+
};
|
|
1799
|
+
readonly "/user/me/events/upcoming": {
|
|
1800
|
+
readonly input: {};
|
|
1801
|
+
readonly output: EventProfile[];
|
|
1802
|
+
readonly securityMode: "requiredAny";
|
|
1803
|
+
};
|
|
1804
|
+
readonly "/user/me/event/badge": {
|
|
1805
|
+
readonly input: {};
|
|
1806
|
+
readonly output: string;
|
|
1807
|
+
readonly securityMode: "requiredAny";
|
|
1808
|
+
};
|
|
1809
|
+
readonly "/user/me/event/badge/payload": {
|
|
1810
|
+
readonly input: {};
|
|
1811
|
+
readonly output: BageQRData;
|
|
1812
|
+
readonly securityMode: "requiredAny";
|
|
1813
|
+
};
|
|
1814
|
+
readonly "/event/:eventId/scan": {
|
|
1815
|
+
readonly input: {};
|
|
1816
|
+
readonly output: {};
|
|
1817
|
+
readonly POST: {
|
|
1818
|
+
readonly input: {};
|
|
1819
|
+
readonly output: TicketValidationResult;
|
|
1820
|
+
readonly body: EventCheckInQR;
|
|
1821
|
+
readonly securityMode: "requiredAny";
|
|
1822
|
+
};
|
|
1823
|
+
};
|
|
1824
|
+
readonly "/event/:eventId/voucher": {
|
|
1825
|
+
readonly input: {};
|
|
1826
|
+
readonly output: {};
|
|
1827
|
+
readonly POST: {
|
|
1828
|
+
readonly input: {};
|
|
1829
|
+
readonly output: EventVoucherDoc;
|
|
1830
|
+
readonly body: EventVoucherCreateDto;
|
|
1831
|
+
readonly securityMode: "requiredAny";
|
|
1832
|
+
};
|
|
1833
|
+
};
|
|
1834
|
+
readonly "/event/:eventId/voucher/:voucherCode": {
|
|
1835
|
+
readonly input: {};
|
|
1836
|
+
readonly output: {};
|
|
1837
|
+
readonly PATCH: {
|
|
1838
|
+
readonly input: {};
|
|
1839
|
+
readonly output: EventVoucherDoc;
|
|
1840
|
+
readonly body: EventVoucherEditDto;
|
|
1841
|
+
readonly securityMode: "requiredAny";
|
|
1842
|
+
};
|
|
1843
|
+
readonly DELETE: {
|
|
1844
|
+
readonly input: {};
|
|
1845
|
+
readonly output: EventVoucherDoc;
|
|
1846
|
+
readonly body: {};
|
|
1847
|
+
readonly securityMode: "requiredAny";
|
|
1848
|
+
};
|
|
1849
|
+
};
|
|
1850
|
+
readonly "/event/:eventId/manual-check-in": {
|
|
1851
|
+
readonly input: {};
|
|
1852
|
+
readonly output: {};
|
|
1853
|
+
readonly POST: {
|
|
1854
|
+
readonly input: {};
|
|
1855
|
+
readonly output: TicketValidationResult;
|
|
1856
|
+
readonly body: ManualCheckInDto;
|
|
1857
|
+
readonly securityMode: "requiredAny";
|
|
1858
|
+
};
|
|
1859
|
+
};
|
|
1860
|
+
readonly "/event/:eventId/answered-questions/:address": {
|
|
1861
|
+
readonly input: {};
|
|
1862
|
+
readonly output: AnsweredQuestionWithDetails[];
|
|
1863
|
+
readonly securityMode: "requiredAny";
|
|
1864
|
+
};
|
|
1865
|
+
readonly "/event/:eventId/guest/approve": {
|
|
1866
|
+
readonly input: {};
|
|
1867
|
+
readonly output: {};
|
|
1868
|
+
readonly PATCH: {
|
|
1869
|
+
readonly input: {};
|
|
1870
|
+
readonly output: EventGuestProfile[];
|
|
1871
|
+
readonly body: EventGuestApproveDto[];
|
|
1872
|
+
readonly securityMode: "requiredAny";
|
|
1873
|
+
};
|
|
1874
|
+
};
|
|
1875
|
+
readonly "/event/:eventId/google-pass/:address": {
|
|
1876
|
+
readonly input: {};
|
|
1877
|
+
readonly output: string[];
|
|
1878
|
+
};
|
|
1879
|
+
readonly "/event/profile/location": {
|
|
1880
|
+
readonly input: {};
|
|
1881
|
+
readonly output: EventCountGroupedByCountry[];
|
|
1882
|
+
};
|
|
1883
|
+
readonly "/event/:eventId/referral-config": {
|
|
1884
|
+
readonly input: {};
|
|
1885
|
+
readonly output: {};
|
|
1886
|
+
readonly POST: {
|
|
1887
|
+
readonly input: {};
|
|
1888
|
+
readonly output: EventReferralConfigDoc;
|
|
1889
|
+
readonly body: EventReferralConfigCreateDto;
|
|
1890
|
+
readonly securityMode: "requiredAny";
|
|
1891
|
+
};
|
|
1892
|
+
};
|
|
1893
|
+
readonly "/event/:eventId/referral-config/:configId": {
|
|
1894
|
+
readonly input: {};
|
|
1895
|
+
readonly output: {};
|
|
1896
|
+
readonly PATCH: {
|
|
1897
|
+
readonly input: {};
|
|
1898
|
+
readonly output: EventReferralConfigDoc;
|
|
1899
|
+
readonly body: EventReferralConfigEditDto;
|
|
1900
|
+
readonly securityMode: "requiredAny";
|
|
1901
|
+
};
|
|
1902
|
+
readonly DELETE: {
|
|
1903
|
+
readonly input: {};
|
|
1904
|
+
readonly output: EventReferralConfigDoc;
|
|
1905
|
+
readonly body: {};
|
|
1906
|
+
readonly securityMode: "requiredAny";
|
|
1907
|
+
};
|
|
1908
|
+
};
|
|
1909
|
+
readonly "/event/:eventId/referral-configs": {
|
|
1910
|
+
readonly input: {
|
|
1911
|
+
filter?: PublicOnly<EventReferralConfigFilter>;
|
|
1912
|
+
};
|
|
1913
|
+
readonly output: EventReferralConfigPaginated;
|
|
1914
|
+
readonly securityMode: "requiredAny";
|
|
1915
|
+
};
|
|
1916
|
+
readonly "/event/:eventId/referral": {
|
|
1917
|
+
readonly input: {};
|
|
1918
|
+
readonly output: {};
|
|
1919
|
+
readonly POST: {
|
|
1920
|
+
readonly input: {};
|
|
1921
|
+
readonly output: EventReferralDoc;
|
|
1922
|
+
readonly body: EventReferralCreateDto;
|
|
1923
|
+
readonly securityMode: "requiredAny";
|
|
1924
|
+
};
|
|
1925
|
+
};
|
|
1926
|
+
readonly "/event/:eventId/referral/:referralCode": {
|
|
1927
|
+
readonly input: {};
|
|
1928
|
+
readonly output: {};
|
|
1929
|
+
readonly PATCH: {
|
|
1930
|
+
readonly input: {};
|
|
1931
|
+
readonly output: EventReferralDoc;
|
|
1932
|
+
readonly body: EventReferralEditDto;
|
|
1933
|
+
readonly securityMode: "requiredAny";
|
|
1934
|
+
};
|
|
1935
|
+
readonly DELETE: {
|
|
1936
|
+
readonly input: {};
|
|
1937
|
+
readonly output: EventReferralDoc;
|
|
1938
|
+
readonly body: {};
|
|
1939
|
+
readonly securityMode: "requiredAny";
|
|
1940
|
+
};
|
|
1941
|
+
};
|
|
1942
|
+
readonly "/event/:eventId/referrals": {
|
|
1943
|
+
readonly input: {
|
|
1944
|
+
filter?: PublicOnly<EventReferralFilter>;
|
|
1945
|
+
};
|
|
1946
|
+
readonly output: EventReferralPaginated;
|
|
1947
|
+
readonly securityMode: "requiredAny";
|
|
1948
|
+
};
|
|
1949
|
+
readonly "/event/:eventId/referrals/self-serviced": {
|
|
1950
|
+
readonly input: {};
|
|
1951
|
+
readonly output: EventReferralDoc[];
|
|
1952
|
+
readonly securityMode: "requiredAny";
|
|
1953
|
+
};
|
|
1954
|
+
readonly "/event/:eventId/notify-attendees": {
|
|
1955
|
+
readonly input: {};
|
|
1956
|
+
readonly output: {};
|
|
1957
|
+
readonly POST: {
|
|
1958
|
+
readonly input: {};
|
|
1959
|
+
readonly output: SuccessWithMessageDto;
|
|
1960
|
+
readonly body: EventNotificationDto;
|
|
1961
|
+
readonly securityMode: "requiredAny";
|
|
1962
|
+
};
|
|
1963
|
+
};
|
|
1964
|
+
readonly "/notify/global-broadcast": {
|
|
1965
|
+
readonly input: {};
|
|
1966
|
+
readonly output: {};
|
|
1967
|
+
readonly POST: {
|
|
1968
|
+
readonly input: {};
|
|
1969
|
+
readonly output: SuccessWithMessageDto;
|
|
1970
|
+
readonly body: EventNotificationDto;
|
|
1971
|
+
readonly securityMode: "requiredAny";
|
|
1972
|
+
};
|
|
1973
|
+
};
|
|
1974
|
+
readonly "/stellar/aggregator/quote": {
|
|
1975
|
+
readonly input: {
|
|
1976
|
+
assetIn: string;
|
|
1977
|
+
assetOut: string;
|
|
1978
|
+
amount: string;
|
|
1979
|
+
tradeType: string;
|
|
1980
|
+
network: string;
|
|
1981
|
+
slippageBps?: number;
|
|
1982
|
+
parts?: number;
|
|
1983
|
+
maxHops?: number;
|
|
1984
|
+
};
|
|
1985
|
+
readonly output: SoroswapQuoteResponseDto;
|
|
1986
|
+
};
|
|
1987
|
+
};
|
|
1988
|
+
export type RemoveColon<S extends string> = S extends `:${infer R}` ? R : S;
|
|
1989
|
+
export type CamelCase<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Head}${CamelCase<Capitalize<Tail>>}` : S;
|
|
1990
|
+
export type IsEmptyObj<T> = keyof T extends never ? true : false;
|
|
1991
|
+
export type NeedsDefault<I, O, _Full> = IsEmptyObj<I> extends true ? IsEmptyObj<O> extends true ? false : true : true;
|
|
1992
|
+
export type CollectParams<S extends string> = S extends `${string}:${infer P}/${infer R}` ? {
|
|
1993
|
+
[K in P]: string;
|
|
1994
|
+
} & CollectParams<`/${R}`> : S extends `${string}:${infer P}` ? {
|
|
1995
|
+
[K in P]: string;
|
|
1996
|
+
} : {};
|
|
1997
|
+
export type RequireAtLeastOne<T> = {
|
|
1998
|
+
[K in keyof T]-?: {
|
|
1999
|
+
[P in K]-?: T[P];
|
|
2000
|
+
} & Omit<T, K>;
|
|
2001
|
+
}[keyof T] & T;
|
|
2002
|
+
export type BodyBag<VB, Defined extends boolean> = Defined extends true ? IsEmptyObj<VB> extends true ? {
|
|
2003
|
+
body?: never;
|
|
2004
|
+
} : {
|
|
2005
|
+
body: RequireAtLeastOne<VB>;
|
|
2006
|
+
} : {
|
|
2007
|
+
body?: RequireAtLeastOne<VB>;
|
|
2008
|
+
};
|
|
2009
|
+
export type SecurityModeOf<T> = T extends {
|
|
2010
|
+
securityMode: infer S;
|
|
2011
|
+
} ? S : undefined;
|
|
2012
|
+
export type AuthBag<M> = M extends "optionalAny" ? {
|
|
2013
|
+
auth?: string;
|
|
2014
|
+
} : M extends "requiredAny" | "requiredWeb2" | "requiredJwt" ? {
|
|
2015
|
+
auth: string;
|
|
2016
|
+
} : {
|
|
2017
|
+
auth?: never;
|
|
2018
|
+
};
|
|
2019
|
+
export type VerbExtras<Full, PBag> = {
|
|
2020
|
+
[Verb in keyof Full as Verb extends "input" | "body" | "output" | "securityMode" ? never : Verb]: Full[Verb] extends {
|
|
2021
|
+
input: infer VI;
|
|
2022
|
+
output: infer VO;
|
|
2023
|
+
} ? (args: VI & PBag & BodyBag<Full[Verb] extends {
|
|
2024
|
+
body: infer VB;
|
|
2025
|
+
} ? VB : never, "body" extends keyof Full[Verb] ? true : false> & AuthBag<SecurityModeOf<Full[Verb]>> & OurRequestInit) => Promise<VO> : never;
|
|
2026
|
+
};
|
|
2027
|
+
export type DropKey<T, K extends PropertyKey> = {
|
|
2028
|
+
[P in Exclude<keyof T, K>]: T[P];
|
|
2029
|
+
};
|
|
2030
|
+
export type RequiredKeys<T> = {
|
|
2031
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? never : K;
|
|
2032
|
+
}[keyof T];
|
|
2033
|
+
export type HasRequiredKeys<T> = [
|
|
2034
|
+
RequiredKeys<T>
|
|
2035
|
+
] extends [
|
|
2036
|
+
never
|
|
2037
|
+
] ? false : true;
|
|
2038
|
+
export type PathToTree<P extends string, I, O, Full = {
|
|
2039
|
+
input: I;
|
|
2040
|
+
output: O;
|
|
2041
|
+
}, Root extends string = P, Bag extends object = CollectParams<Root>> = P extends `/${infer Head}/${infer Rest}` ? Head extends `:${infer Param}` ? {
|
|
2042
|
+
[K in CamelCase<Param>]: (value: string) => PathToTree<`/${Rest}`, I, O, Full, Root, DropKey<Bag, Param>>;
|
|
2043
|
+
} : {
|
|
2044
|
+
[K in CamelCase<Head>]: PathToTree<`/${Rest}`, I, O, Full, Root, Bag>;
|
|
2045
|
+
} : P extends `/:${infer Param}` ? {
|
|
2046
|
+
[K in CamelCase<Param>]: (value: string) => (NeedsDefault<I, O, Full> extends true ? HasRequiredKeys<DropKey<Bag, Param> & I & AuthBag<SecurityModeOf<Full>>> extends true ? (args: I & DropKey<Bag, Param> & AuthBag<SecurityModeOf<Full>> & OurRequestInit) => Promise<O> : (args?: I & DropKey<Bag, Param> & AuthBag<SecurityModeOf<Full>> & OurRequestInit) => Promise<O> : {}) & VerbExtras<Full, DropKey<Bag, Param>>;
|
|
2047
|
+
} : P extends `/${infer Leaf}` ? {
|
|
2048
|
+
[K in CamelCase<RemoveColon<Leaf>>]: (NeedsDefault<I, O, Full> extends true ? HasRequiredKeys<I & Bag & AuthBag<SecurityModeOf<Full>>> extends true ? (args: I & Bag & AuthBag<SecurityModeOf<Full>> & OurRequestInit) => Promise<O> : (args?: I & Bag & AuthBag<SecurityModeOf<Full>> & OurRequestInit) => Promise<O> : {}) & VerbExtras<Full, Bag>;
|
|
2049
|
+
} : never;
|
|
2050
|
+
export type AnyFn = (...a: any[]) => any;
|
|
2051
|
+
export type IsFn<T> = T extends AnyFn ? true : false;
|
|
2052
|
+
export type U2I<U> = (U extends any ? (k: U) => 0 : never) extends (k: infer I) => 0 ? I : never;
|
|
2053
|
+
export type UnionKeys<U> = U extends any ? keyof U : never;
|
|
2054
|
+
export type CollapseFnUnion<F> = (...a: Parameters<Extract<F, AnyFn>>) => U2I<F extends AnyFn ? ReturnType<F> : never>;
|
|
2055
|
+
export type ValuesForKey<U, K extends PropertyKey> = Exclude<U extends any ? (K extends keyof U ? U[K] : never) : never, never>;
|
|
2056
|
+
export type FnUnion<U> = Extract<U, AnyFn>;
|
|
2057
|
+
export type ObjUnion<U> = Exclude<U, AnyFn>;
|
|
2058
|
+
export type CollapseFnUnionOrNever<U> = [
|
|
2059
|
+
FnUnion<U>
|
|
2060
|
+
] extends [
|
|
2061
|
+
never
|
|
2062
|
+
] ? {} : CollapseFnUnion<FnUnion<U>>;
|
|
2063
|
+
export type MergeRec<U> = [
|
|
2064
|
+
U
|
|
2065
|
+
] extends [
|
|
2066
|
+
object
|
|
2067
|
+
] ? {
|
|
2068
|
+
[K in UnionKeys<ObjUnion<U>>]: MergeRec<ValuesForKey<ObjUnion<U>, K>>;
|
|
2069
|
+
} & CollapseFnUnionOrNever<U> : U;
|
|
2070
|
+
export type SimplifyDeep<T> = IsFn<T> extends true ? T : T extends object ? {
|
|
2071
|
+
[K in keyof T]: SimplifyDeep<T[K]>;
|
|
2072
|
+
} : T;
|
|
2073
|
+
export type SDKUnion = {
|
|
2074
|
+
[R in keyof typeof endpoints]: PathToTree<R, (typeof endpoints)[R]["input"], (typeof endpoints)[R]["output"], (typeof endpoints)[R]>;
|
|
2075
|
+
}[keyof typeof endpoints];
|
|
2076
|
+
export type SDK = SimplifyDeep<MergeRec<SDKUnion>>;
|
|
2077
|
+
/**
|
|
2078
|
+
* Stellar Soroban contract addresses + Soroban RPC + quote-server config
|
|
2079
|
+
* per network.
|
|
2080
|
+
*
|
|
2081
|
+
* Addresses are env-sourced so ops can rotate mainnet/testnet deployments
|
|
2082
|
+
* without a code change. Defaults fall back to empty strings so a missing
|
|
2083
|
+
* env surfaces as a clear "not configured" error at call time rather than
|
|
2084
|
+
* silently pointing at the wrong contract.
|
|
2085
|
+
*/
|
|
2086
|
+
export type StellarNetwork = "mainnet" | "testnet";
|
|
2087
|
+
/**
|
|
2088
|
+
* Stellar lending controller contract addresses per network.
|
|
2089
|
+
* Env vars:
|
|
2090
|
+
* - STELLAR_LENDING_CONTROLLER_MAINNET
|
|
2091
|
+
* - STELLAR_LENDING_CONTROLLER_TESTNET
|
|
2092
|
+
*/
|
|
2093
|
+
export declare const STELLAR_LENDING_CONTROLLER: Record<StellarNetwork, string>;
|
|
2094
|
+
/**
|
|
2095
|
+
* Stellar aggregator router contract addresses per network.
|
|
2096
|
+
* Targets `batch_execute(BatchSwap)` for direct (non-lending) swaps.
|
|
2097
|
+
* Env vars:
|
|
2098
|
+
* - STELLAR_AGGREGATOR_ROUTER_MAINNET
|
|
2099
|
+
* - STELLAR_AGGREGATOR_ROUTER_TESTNET
|
|
2100
|
+
*/
|
|
2101
|
+
export declare const STELLAR_AGGREGATOR_ROUTER: Record<StellarNetwork, string>;
|
|
2102
|
+
/**
|
|
2103
|
+
* Default Soroban RPC URLs per network.
|
|
2104
|
+
* Overridable at runtime via the `sorobanRpcUrl` option on each builder.
|
|
2105
|
+
*/
|
|
2106
|
+
export declare const STELLAR_SOROBAN_RPC_URL: Record<StellarNetwork, string>;
|
|
2107
|
+
/**
|
|
2108
|
+
* Stellar aggregator quote-server base URLs per network. The quote server
|
|
2109
|
+
* exposes `GET /api/v1/tokens` and `GET /api/v1/quote`.
|
|
2110
|
+
*
|
|
2111
|
+
* Env vars:
|
|
2112
|
+
* - STELLAR_QUOTE_URL_MAINNET
|
|
2113
|
+
* - STELLAR_QUOTE_URL_TESTNET
|
|
2114
|
+
*/
|
|
2115
|
+
export declare const STELLAR_QUOTE_URL: Record<StellarNetwork, string>;
|
|
2116
|
+
/**
|
|
2117
|
+
* Stellar network passphrases (Soroban tx signing domain separator).
|
|
2118
|
+
* These are fixed by the Stellar network itself and must not be overridden.
|
|
2119
|
+
*/
|
|
2120
|
+
export declare const STELLAR_NETWORK_PASSPHRASE: Record<StellarNetwork, string>;
|
|
2121
|
+
/**
|
|
2122
|
+
* Assert a controller address is configured for the target network.
|
|
2123
|
+
* Throws early with a clear message rather than building an XDR that
|
|
2124
|
+
* points at `""`.
|
|
2125
|
+
*/
|
|
2126
|
+
export declare function getStellarLendingController(network: StellarNetwork): string;
|
|
2127
|
+
/**
|
|
2128
|
+
* Assert an aggregator router address is configured for the target network.
|
|
2129
|
+
* Used by `buildStellarBatchSwapTx` for direct user→router swaps.
|
|
2130
|
+
*/
|
|
2131
|
+
export declare function getStellarAggregatorRouter(network: StellarNetwork): string;
|
|
2132
|
+
/**
|
|
2133
|
+
* Stellar `G...` public key of the caller (tx source account).
|
|
2134
|
+
*/
|
|
2135
|
+
export type StellarAccountAddress = string;
|
|
2136
|
+
export interface StellarBuilderOptions {
|
|
2137
|
+
network: StellarNetwork;
|
|
2138
|
+
caller: StellarAccountAddress;
|
|
2139
|
+
/**
|
|
2140
|
+
* Current sequence number of the caller account, as a decimal string.
|
|
2141
|
+
* Callers fetch this from Soroban RPC (`server.getAccount(caller)`) before
|
|
2142
|
+
* building. Keeping it as an input (rather than fetching inside the builder)
|
|
2143
|
+
* makes builders sync-friendly, RPC-free, and deterministic for snapshot tests.
|
|
2144
|
+
*/
|
|
2145
|
+
sourceSequence: string;
|
|
2146
|
+
/**
|
|
2147
|
+
* Override the controller contract address. Normally resolved from env via
|
|
2148
|
+
* `getStellarLendingController(network)` — override is for tests and
|
|
2149
|
+
* preview/staging deployments.
|
|
2150
|
+
*/
|
|
2151
|
+
controllerAddress?: string;
|
|
2152
|
+
/** Base fee in stroops (default BASE_FEE = "100"). */
|
|
2153
|
+
fee?: string;
|
|
2154
|
+
/** Tx timeout in seconds (default 300). */
|
|
2155
|
+
timeoutSeconds?: number;
|
|
2156
|
+
}
|
|
2157
|
+
export interface BuiltStellarTx {
|
|
2158
|
+
/** Unsigned transaction XDR (base64) ready for wallet signing. */
|
|
2159
|
+
xdr: string;
|
|
2160
|
+
}
|
|
2161
|
+
/**
|
|
2162
|
+
* Input shape for the Stellar-specific `swap` payload carried on
|
|
2163
|
+
* `MultiplyArgs.steps`, `SwapDebtArgs.steps`, `SwapCollateralArgs.steps`, and
|
|
2164
|
+
* `RepayDebtWithCollateralArgs.steps`.
|
|
2165
|
+
*
|
|
2166
|
+
* `@xoxno/types` declares `steps: unknown` on these DTOs so every chain owns its
|
|
2167
|
+
* own encoding. On Stellar, callers must pass an `AggregatorSwapDto`, which is
|
|
2168
|
+
* serialised into the Soroban `AggregatorSwap` struct.
|
|
2169
|
+
*/
|
|
2170
|
+
export type StellarSwapStepsInput = AggregatorSwapDto;
|
|
2171
|
+
export type StellarSwapHopInput = SwapHopDto;
|
|
2172
|
+
export type StellarSwapPathInput = SwapPathDto;
|
|
2173
|
+
export type StellarSwapVenue = SwapVenue;
|
|
2174
|
+
/**
|
|
2175
|
+
* Assemble an unsigned XDR that invokes a single Soroban contract method.
|
|
2176
|
+
*
|
|
2177
|
+
* Uses a synthetic `Account(caller, sourceSequence)` — no RPC call. The
|
|
2178
|
+
* returned XDR still needs preparation (simulation to populate Soroban
|
|
2179
|
+
* footprint + auth entries + resource fees) before signing. The UI layer
|
|
2180
|
+
* does this via `rpc.Server.prepareTransaction`.
|
|
2181
|
+
*/
|
|
2182
|
+
export declare function buildTx(opts: StellarBuilderOptions, method: string, params: xdr.ScVal[]): BuiltStellarTx;
|
|
2183
|
+
/**
|
|
2184
|
+
* supply(caller, account_id: u64, e_mode_category: u32, assets: Vec<(Address, i128)>)
|
|
2185
|
+
* @xoxno/types `SupplyArgs` is a single-asset shape; the Stellar contract
|
|
2186
|
+
* expects a batch — we wrap the single asset in a 1-element Vec.
|
|
2187
|
+
*/
|
|
2188
|
+
export declare function buildStellarSupplyTx(opts: StellarBuilderOptions, args: SupplyArgs): BuiltStellarTx;
|
|
2189
|
+
/**
|
|
2190
|
+
* borrow(caller, account_id: u64, borrows: Vec<(Address, i128)>)
|
|
2191
|
+
*/
|
|
2192
|
+
export declare function buildStellarBorrowTx(opts: StellarBuilderOptions, args: BorrowArgs): BuiltStellarTx;
|
|
2193
|
+
/**
|
|
2194
|
+
* withdraw(caller, account_id: u64, withdrawals: Vec<(Address, i128)>)
|
|
2195
|
+
*/
|
|
2196
|
+
export declare function buildStellarWithdrawTx(opts: StellarBuilderOptions, args: WithdrawArgs): BuiltStellarTx;
|
|
2197
|
+
/**
|
|
2198
|
+
* repay(caller, account_id: u64, payments: Vec<(Address, i128)>)
|
|
2199
|
+
*/
|
|
2200
|
+
export declare function buildStellarRepayTx(opts: StellarBuilderOptions, args: RepayArgs): BuiltStellarTx;
|
|
2201
|
+
/**
|
|
2202
|
+
* liquidate(liquidator, account_id: u64, debt_payments: Vec<(Address, i128)>)
|
|
2203
|
+
*/
|
|
2204
|
+
export declare function buildStellarLiquidateTx(opts: StellarBuilderOptions, args: LiquidateArgs): BuiltStellarTx;
|
|
2205
|
+
/**
|
|
2206
|
+
* flash_loan(caller, asset, amount: i128, receiver, data: Bytes)
|
|
2207
|
+
*/
|
|
2208
|
+
export declare function buildStellarFlashLoanTx(opts: StellarBuilderOptions, args: FlashLoanArgs): BuiltStellarTx;
|
|
2209
|
+
/**
|
|
2210
|
+
* multiply(caller, account_id, e_mode_category, collateral_token,
|
|
2211
|
+
* debt_to_flash_loan: i128, debt_token, mode: PositionMode,
|
|
2212
|
+
* swap: AggregatorSwap, initial_payment: Option<(Address, i128)>,
|
|
2213
|
+
* convert_swap: Option<AggregatorSwap>) -> u64
|
|
2214
|
+
*
|
|
2215
|
+
* `mode` is a repr(u32) `PositionMode` → encoded as `scvU32`. The two trailing
|
|
2216
|
+
* `Option`s seed an optional initial collateral payment and a secondary swap
|
|
2217
|
+
* converting it into the collateral token; both omit to Soroban `Void`.
|
|
2218
|
+
*/
|
|
2219
|
+
export declare function buildStellarMultiplyTx(opts: StellarBuilderOptions, args: MultiplyArgs): BuiltStellarTx;
|
|
2220
|
+
/**
|
|
2221
|
+
* swap_debt(caller, account_id, existing_debt_token, new_debt_amount: i128,
|
|
2222
|
+
* new_debt_token, steps: SwapSteps)
|
|
2223
|
+
*/
|
|
2224
|
+
export declare function buildStellarSwapDebtTx(opts: StellarBuilderOptions, args: SwapDebtArgs): BuiltStellarTx;
|
|
2225
|
+
/**
|
|
2226
|
+
* swap_collateral(caller, account_id, current_collateral, from_amount: i128,
|
|
2227
|
+
* new_collateral, steps: SwapSteps)
|
|
2228
|
+
*/
|
|
2229
|
+
export declare function buildStellarSwapCollateralTx(opts: StellarBuilderOptions, args: SwapCollateralArgs): BuiltStellarTx;
|
|
2230
|
+
/**
|
|
2231
|
+
* repay_debt_with_collateral(caller, account_id, collateral_token,
|
|
2232
|
+
* collateral_amount: i128, debt_token,
|
|
2233
|
+
* steps: SwapSteps, close_position: bool)
|
|
2234
|
+
*/
|
|
2235
|
+
export declare function buildStellarRepayDebtWithCollateralTx(opts: StellarBuilderOptions, args: RepayDebtWithCollateralArgs): BuiltStellarTx;
|
|
2236
|
+
/** `InterestRateModel` — 8 RAY rates + reserve factor bps. */
|
|
2237
|
+
export declare const encodeInterestRateModel: (m: InterestRateModelDto) => xdr.ScVal;
|
|
2238
|
+
/** `MarketParamsRaw` — `InterestRateModel` plus the pool asset identity. */
|
|
2239
|
+
export declare const encodeMarketParamsRaw: (p: MarketParamsRawDto) => xdr.ScVal;
|
|
2240
|
+
/** `AssetConfigRaw` — 17 risk/limit fields. */
|
|
2241
|
+
export declare const encodeAssetConfigRaw: (c: AssetConfigRawDto) => xdr.ScVal;
|
|
2242
|
+
/** `PositionLimits` — per-account supply/borrow position caps. */
|
|
2243
|
+
export declare const encodePositionLimits: (l: PositionLimitsDto) => xdr.ScVal;
|
|
2244
|
+
/** `OracleSourceConfigInput` data-enum — `Reflector(...)` | `RedStone(...)`. */
|
|
2245
|
+
export declare const encodeOracleSourceConfigInput: (src: OracleSourceConfigInputDto) => xdr.ScVal;
|
|
2246
|
+
/** `MarketOracleConfigInput` — strategy + primary/anchor sources + sanity bounds. */
|
|
2247
|
+
export declare const encodeMarketOracleConfigInput: (cfg: MarketOracleConfigInputDto) => xdr.ScVal;
|
|
2248
|
+
export interface RoleGrantArgs {
|
|
2249
|
+
account: string;
|
|
2250
|
+
role: string;
|
|
2251
|
+
}
|
|
2252
|
+
export interface TransferOwnershipArgs {
|
|
2253
|
+
newOwner: string;
|
|
2254
|
+
liveUntilLedger: number;
|
|
2255
|
+
}
|
|
2256
|
+
export interface EditAssetConfigArgs {
|
|
2257
|
+
asset: string;
|
|
2258
|
+
config: AssetConfigRawDto;
|
|
2259
|
+
}
|
|
2260
|
+
export interface EModeCategoryEditArgs {
|
|
2261
|
+
id: number;
|
|
2262
|
+
ltv: number;
|
|
2263
|
+
threshold: number;
|
|
2264
|
+
bonus: number;
|
|
2265
|
+
}
|
|
2266
|
+
export interface EModeAssetArgs {
|
|
2267
|
+
asset: string;
|
|
2268
|
+
categoryId: number;
|
|
2269
|
+
canCollateral: boolean;
|
|
2270
|
+
canBorrow: boolean;
|
|
2271
|
+
}
|
|
2272
|
+
export interface RemoveEModeAssetArgs {
|
|
2273
|
+
asset: string;
|
|
2274
|
+
categoryId: number;
|
|
2275
|
+
}
|
|
2276
|
+
export interface ConfigureMarketOracleArgs {
|
|
2277
|
+
asset: string;
|
|
2278
|
+
config: MarketOracleConfigInputDto;
|
|
2279
|
+
}
|
|
2280
|
+
export interface EditOracleToleranceArgs {
|
|
2281
|
+
asset: string;
|
|
2282
|
+
firstTolerance: number;
|
|
2283
|
+
lastTolerance: number;
|
|
2284
|
+
}
|
|
2285
|
+
export interface CreateLiquidityPoolArgs {
|
|
2286
|
+
asset: string;
|
|
2287
|
+
params: MarketParamsRawDto;
|
|
2288
|
+
config: AssetConfigRawDto;
|
|
2289
|
+
}
|
|
2290
|
+
export interface UpgradeLiquidityPoolParamsArgs {
|
|
2291
|
+
asset: string;
|
|
2292
|
+
params: InterestRateModelDto;
|
|
2293
|
+
}
|
|
2294
|
+
export interface UpgradeLiquidityPoolArgs {
|
|
2295
|
+
asset: string;
|
|
2296
|
+
wasmHash: string;
|
|
2297
|
+
}
|
|
2298
|
+
export interface RewardEntry {
|
|
2299
|
+
token: string;
|
|
2300
|
+
amount: string;
|
|
2301
|
+
}
|
|
2302
|
+
export interface UpdateAccountThresholdArgs {
|
|
2303
|
+
asset: string;
|
|
2304
|
+
hasRisks: boolean;
|
|
2305
|
+
accountNonces: number[];
|
|
2306
|
+
}
|
|
2307
|
+
/** upgrade(new_wasm_hash: BytesN<32>) */
|
|
2308
|
+
export declare function buildStellarUpgradeControllerTx(opts: StellarBuilderOptions, args: {
|
|
2309
|
+
wasmHash: string;
|
|
2310
|
+
}): BuiltStellarTx;
|
|
2311
|
+
/** migrate(new_version: u32) */
|
|
2312
|
+
export declare function buildStellarMigrateTx(opts: StellarBuilderOptions, args: {
|
|
2313
|
+
newVersion: number;
|
|
2314
|
+
}): BuiltStellarTx;
|
|
2315
|
+
/** pause() */
|
|
2316
|
+
export declare function buildStellarPauseTx(opts: StellarBuilderOptions): BuiltStellarTx;
|
|
2317
|
+
/** unpause() */
|
|
2318
|
+
export declare function buildStellarUnpauseTx(opts: StellarBuilderOptions): BuiltStellarTx;
|
|
2319
|
+
/** grant_role(account: Address, role: Symbol) */
|
|
2320
|
+
export declare function buildStellarGrantRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs): BuiltStellarTx;
|
|
2321
|
+
/** revoke_role(account: Address, role: Symbol) */
|
|
2322
|
+
export declare function buildStellarRevokeRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs): BuiltStellarTx;
|
|
2323
|
+
/** transfer_ownership(new_owner: Address, live_until_ledger: u32) */
|
|
2324
|
+
export declare function buildStellarTransferOwnershipTx(opts: StellarBuilderOptions, args: TransferOwnershipArgs): BuiltStellarTx;
|
|
2325
|
+
/** accept_ownership() */
|
|
2326
|
+
export declare function buildStellarAcceptOwnershipTx(opts: StellarBuilderOptions): BuiltStellarTx;
|
|
2327
|
+
/** set_aggregator(addr: Address) — #[only_owner] */
|
|
2328
|
+
export declare function buildStellarSetAggregatorTx(opts: StellarBuilderOptions, args: {
|
|
2329
|
+
aggregator: string;
|
|
2330
|
+
}): BuiltStellarTx;
|
|
2331
|
+
/** set_accumulator(addr: Address) — #[only_owner] */
|
|
2332
|
+
export declare function buildStellarSetAccumulatorTx(opts: StellarBuilderOptions, args: {
|
|
2333
|
+
accumulator: string;
|
|
2334
|
+
}): BuiltStellarTx;
|
|
2335
|
+
/** set_liquidity_pool_template(hash: BytesN<32>) — #[only_owner] */
|
|
2336
|
+
export declare function buildStellarSetLiquidityPoolTemplateTx(opts: StellarBuilderOptions, args: {
|
|
2337
|
+
wasmHash: string;
|
|
2338
|
+
}): BuiltStellarTx;
|
|
2339
|
+
/** edit_asset_config(asset: Address, cfg: AssetConfigRaw) — #[only_owner] */
|
|
2340
|
+
export declare function buildStellarEditAssetConfigTx(opts: StellarBuilderOptions, args: EditAssetConfigArgs): BuiltStellarTx;
|
|
2341
|
+
/** set_position_limits(limits: PositionLimits) — #[only_owner] */
|
|
2342
|
+
export declare function buildStellarSetPositionLimitsTx(opts: StellarBuilderOptions, args: PositionLimitsDto): BuiltStellarTx;
|
|
2343
|
+
/** add_e_mode_category(ltv: u32, threshold: u32, bonus: u32) -> u32 — #[only_owner] */
|
|
2344
|
+
export declare function buildStellarAddEModeCategoryTx(opts: StellarBuilderOptions, args: {
|
|
2345
|
+
ltv: number;
|
|
2346
|
+
threshold: number;
|
|
2347
|
+
bonus: number;
|
|
2348
|
+
}): BuiltStellarTx;
|
|
2349
|
+
/** edit_e_mode_category(id: u32, ltv: u32, threshold: u32, bonus: u32) — #[only_owner] */
|
|
2350
|
+
export declare function buildStellarEditEModeCategoryTx(opts: StellarBuilderOptions, args: EModeCategoryEditArgs): BuiltStellarTx;
|
|
2351
|
+
/** remove_e_mode_category(id: u32) — #[only_owner] */
|
|
2352
|
+
export declare function buildStellarRemoveEModeCategoryTx(opts: StellarBuilderOptions, args: {
|
|
2353
|
+
id: number;
|
|
2354
|
+
}): BuiltStellarTx;
|
|
2355
|
+
/** add_asset_to_e_mode_category(asset, category_id, can_collateral, can_borrow) — #[only_owner] */
|
|
2356
|
+
export declare function buildStellarAddAssetToEModeCategoryTx(opts: StellarBuilderOptions, args: EModeAssetArgs): BuiltStellarTx;
|
|
2357
|
+
/** edit_asset_in_e_mode_category(asset, category_id, can_collateral, can_borrow) — #[only_owner] */
|
|
2358
|
+
export declare function buildStellarEditAssetInEModeCategoryTx(opts: StellarBuilderOptions, args: EModeAssetArgs): BuiltStellarTx;
|
|
2359
|
+
/** remove_asset_from_e_mode(asset: Address, category_id: u32) — #[only_owner] */
|
|
2360
|
+
export declare function buildStellarRemoveAssetFromEModeTx(opts: StellarBuilderOptions, args: RemoveEModeAssetArgs): BuiltStellarTx;
|
|
2361
|
+
/** approve_token(token: Address) — #[only_owner] */
|
|
2362
|
+
export declare function buildStellarApproveTokenTx(opts: StellarBuilderOptions, args: {
|
|
2363
|
+
token: string;
|
|
2364
|
+
}): BuiltStellarTx;
|
|
2365
|
+
/** revoke_token(token: Address) — #[only_owner] */
|
|
2366
|
+
export declare function buildStellarRevokeTokenTx(opts: StellarBuilderOptions, args: {
|
|
2367
|
+
token: string;
|
|
2368
|
+
}): BuiltStellarTx;
|
|
2369
|
+
/** configure_market_oracle(caller, asset, cfg) — #[only_role(caller, "ORACLE")] */
|
|
2370
|
+
export declare function buildStellarConfigureMarketOracleTx(opts: StellarBuilderOptions, args: ConfigureMarketOracleArgs): BuiltStellarTx;
|
|
2371
|
+
/** edit_oracle_tolerance(caller, asset, first_tolerance, last_tolerance) — #[only_role(caller, "ORACLE")] */
|
|
2372
|
+
export declare function buildStellarEditOracleToleranceTx(opts: StellarBuilderOptions, args: EditOracleToleranceArgs): BuiltStellarTx;
|
|
2373
|
+
/** disable_token_oracle(caller, asset) — #[only_role(caller, "ORACLE")] */
|
|
2374
|
+
export declare function buildStellarDisableTokenOracleTx(opts: StellarBuilderOptions, args: {
|
|
2375
|
+
asset: string;
|
|
2376
|
+
}): BuiltStellarTx;
|
|
2377
|
+
/** update_indexes(caller, assets: Vec<Address>) — #[only_role(caller, "KEEPER")] */
|
|
2378
|
+
export declare function buildStellarUpdateIndexesTx(opts: StellarBuilderOptions, args: {
|
|
2379
|
+
assets: string[];
|
|
2380
|
+
}): BuiltStellarTx;
|
|
2381
|
+
/** renew_account(caller, account_id: u64) */
|
|
2382
|
+
export declare function buildStellarRenewAccountTx(opts: StellarBuilderOptions, args: {
|
|
2383
|
+
accountNonce: number;
|
|
2384
|
+
}): BuiltStellarTx;
|
|
2385
|
+
/** create_liquidity_pool(asset, params: MarketParamsRaw, config: AssetConfigRaw) -> Address — #[only_owner] */
|
|
2386
|
+
export declare function buildStellarCreateLiquidityPoolTx(opts: StellarBuilderOptions, args: CreateLiquidityPoolArgs): BuiltStellarTx;
|
|
2387
|
+
/** upgrade_liquidity_pool_params(asset, params: InterestRateModel) — #[only_owner] */
|
|
2388
|
+
export declare function buildStellarUpgradeLiquidityPoolParamsTx(opts: StellarBuilderOptions, args: UpgradeLiquidityPoolParamsArgs): BuiltStellarTx;
|
|
2389
|
+
/** upgrade_liquidity_pool(asset, new_wasm_hash: BytesN<32>) — #[only_owner] */
|
|
2390
|
+
export declare function buildStellarUpgradeLiquidityPoolTx(opts: StellarBuilderOptions, args: UpgradeLiquidityPoolArgs): BuiltStellarTx;
|
|
2391
|
+
/** claim_revenue(caller, assets: Vec<Address>) -> Vec<i128> — #[only_role(caller, "REVENUE")] */
|
|
2392
|
+
export declare function buildStellarClaimRevenueTx(opts: StellarBuilderOptions, args: {
|
|
2393
|
+
assets: string[];
|
|
2394
|
+
}): BuiltStellarTx;
|
|
2395
|
+
/** add_rewards(caller, rewards: Vec<(Address, i128)>) — #[only_role(caller, "REVENUE")] */
|
|
2396
|
+
export declare function buildStellarAddRewardsTx(opts: StellarBuilderOptions, args: {
|
|
2397
|
+
rewards: RewardEntry[];
|
|
2398
|
+
}): BuiltStellarTx;
|
|
2399
|
+
/** update_account_threshold(caller, asset, has_risks, account_ids: Vec<u64>) — #[only_role(caller, "KEEPER")] */
|
|
2400
|
+
export declare function buildStellarUpdateAccountThresholdTx(opts: StellarBuilderOptions, args: UpdateAccountThresholdArgs): BuiltStellarTx;
|
|
2401
|
+
/**
|
|
2402
|
+
* Serialize a live `xdr.ScVal` to base64 XDR for the string-only decoder API.
|
|
2403
|
+
* Use this if you hold parsed ScVals (e.g. from the high-level RPC client);
|
|
2404
|
+
* `.toXDR` is wire-format/structural, so it is safe across SDK copies.
|
|
2405
|
+
*/
|
|
2406
|
+
export declare const toBase64Xdr: (scv: {
|
|
2407
|
+
toXDR(format: "base64"): string;
|
|
2408
|
+
}) => string;
|
|
2409
|
+
/** Build the `"<domain>:<action>"` dispatch key from the event topic ScVals. */
|
|
2410
|
+
export declare const stellarLendingDispatchKey: (topicsB64: readonly string[]) => string;
|
|
2411
|
+
/** Topic keys this SDK can decode (the 21 controller contractevents). */
|
|
2412
|
+
export declare const STELLAR_LENDING_TOPICS: readonly string[];
|
|
2413
|
+
/**
|
|
2414
|
+
* Decode a Stellar lending controller event from its base64-XDR topics and
|
|
2415
|
+
* data (exactly as Soroban RPC `getEvents` delivers them). Returns `null` for a
|
|
2416
|
+
* topic this SDK does not decode (e.g. access-control `role_granted` events),
|
|
2417
|
+
* so consumers can skip unknown events without throwing.
|
|
2418
|
+
*/
|
|
2419
|
+
export declare function decodeStellarLendingEvent(topicsB64: readonly string[], dataB64: string): StellarLendingDecodedEvent | null;
|
|
2420
|
+
/**
|
|
2421
|
+
* Stellar lending activity-id derivation: the inputs that compose
|
|
2422
|
+
* `NftActivityDoc.id` (`${txHash}-${eventIdentifier}-${eventOrder}`).
|
|
2423
|
+
*
|
|
2424
|
+
* The activity-type string values mirror `@xoxno/types` `XoxnoLendingActivity`,
|
|
2425
|
+
* inlined rather than imported since `@xoxno/types` does not re-export its enums
|
|
2426
|
+
* on its top-level type surface.
|
|
2427
|
+
*/
|
|
2428
|
+
/** Synthetic NFT collection ticker for Stellar lending accounts. */
|
|
2429
|
+
export declare const XOXNO_LENDING_STELLAR_TICKER = "XLENDXLM-a7c9f3";
|
|
2430
|
+
/**
|
|
2431
|
+
* A child delta's contribution to `eventOrder`: `base * STRIDE + childIndex`.
|
|
2432
|
+
* The stride bounds the number of child deltas per base event before two base
|
|
2433
|
+
* events could collide.
|
|
2434
|
+
*/
|
|
2435
|
+
export declare const SYNTHETIC_EVENT_ORDER_STRIDE = 10000;
|
|
2436
|
+
/** `XoxnoLendingActivity` values used by the position activity mapping. */
|
|
2437
|
+
export type StellarLendingActivityType = "lendingUpdateAccountPosition" | "lendingLiquidateRepayDebt" | "lendingLiquidateSeizeCollateral" | "lendingUpdateAccountParameters";
|
|
2438
|
+
/**
|
|
2439
|
+
* Synthetic NFT identifier for a Stellar lending account, e.g.
|
|
2440
|
+
* `XLENDXLM-a7c9f3-2a` for account 42. The u64 account id is rendered as
|
|
2441
|
+
* even-length lowercase hex.
|
|
2442
|
+
*/
|
|
2443
|
+
export declare function buildStellarLendingIdentifier(accountId: string): string;
|
|
2444
|
+
/**
|
|
2445
|
+
* Extract the base event order from a Soroban RPC event id (`<ledger>-<index>`).
|
|
2446
|
+
* Returns 0 when the id is malformed or has no index segment.
|
|
2447
|
+
*/
|
|
2448
|
+
export declare function extractEventOrder(eventId: string): number;
|
|
2449
|
+
/**
|
|
2450
|
+
* Stable per-child ordering within one base event:
|
|
2451
|
+
* `baseEventOrder * 10_000 + childIndex`. Keeps multiple deltas emitted by a
|
|
2452
|
+
* single transaction deterministically ordered and collision-free.
|
|
2453
|
+
*/
|
|
2454
|
+
export declare function syntheticEventOrder(baseEventOrder: number, childIndex?: number): number;
|
|
2455
|
+
/**
|
|
2456
|
+
* Map a position-delta `action` symbol to its `XoxnoLendingActivity` value.
|
|
2457
|
+
* The tag list is authoritative in `rs-lending-xlm common/src/events.rs`.
|
|
2458
|
+
*/
|
|
2459
|
+
export declare function mapStellarPositionActivityType(action?: string): StellarLendingActivityType;
|
|
2460
|
+
/**
|
|
2461
|
+
* Resolved token entry returned by the quote server's tokens endpoint.
|
|
2462
|
+
* Mirrors the indexer's `TokenEntry` JSON exactly.
|
|
2463
|
+
*/
|
|
2464
|
+
export interface StellarQuoteToken {
|
|
2465
|
+
/** Canonical token id. `C…` for Soroban contracts; `CODE:GISSUER…`
|
|
2466
|
+
* for Classic; `XLM` for native. */
|
|
2467
|
+
id: string;
|
|
2468
|
+
kind: StellarTokenKind;
|
|
2469
|
+
decimals: number;
|
|
2470
|
+
/** Soroban Asset Contract peer for Classic assets (null otherwise). */
|
|
2471
|
+
sacPeer: string | null;
|
|
2472
|
+
/** Classic asset code (for Classic / SAC entries; null for Soroban). */
|
|
2473
|
+
code: string | null;
|
|
2474
|
+
/** Number of pools touching this token in the current snapshot. */
|
|
2475
|
+
degree: number;
|
|
2476
|
+
}
|
|
2477
|
+
export interface StellarQuoteFetchOptions {
|
|
2478
|
+
/** Network selects which base URL to hit. */
|
|
2479
|
+
network: StellarNetwork;
|
|
2480
|
+
/** Override the resolved base URL (useful for tests / preview). */
|
|
2481
|
+
baseUrl?: string;
|
|
2482
|
+
/** Per-call fetch options (signal, headers, etc.). */
|
|
2483
|
+
fetchOptions?: RequestInit;
|
|
2484
|
+
}
|
|
2485
|
+
/**
|
|
2486
|
+
* Fetch a route quote from the Stellar aggregator quote server.
|
|
2487
|
+
*
|
|
2488
|
+
* Forward mode: pass `amountIn` to compute the maximum reachable
|
|
2489
|
+
* `amountOut`. Reverse mode: pass `amountOut` to compute the minimum
|
|
2490
|
+
* `amountIn` that delivers at least that output.
|
|
2491
|
+
*
|
|
2492
|
+
* Pass both `sender` (G-strkey) and `router` (C-strkey) to receive a
|
|
2493
|
+
* ready-to-sign envelope under `transaction.envelopeXdr`. The caller
|
|
2494
|
+
* must still run `simulateTransaction` to attach Soroban resource fees
|
|
2495
|
+
* before signing.
|
|
2496
|
+
*/
|
|
2497
|
+
export declare function getStellarAggregatorQuote(request: StellarAggregatorQuoteRequestDto, opts: StellarQuoteFetchOptions): Promise<StellarAggregatorQuoteResponseDto>;
|
|
2498
|
+
/**
|
|
2499
|
+
* List tokens currently indexed by the quote server. Useful to populate
|
|
2500
|
+
* pickers or validate that a user-supplied token has on-chain liquidity.
|
|
2501
|
+
*/
|
|
2502
|
+
export declare function getStellarQuoteTokens(opts: StellarQuoteFetchOptions): Promise<StellarQuoteToken[]>;
|
|
2503
|
+
export interface StellarBatchSwapBuilderOptions extends StellarBuilderOptions {
|
|
2504
|
+
/**
|
|
2505
|
+
* Override the resolved aggregator router contract address. Normally
|
|
2506
|
+
* resolved from `STELLAR_AGGREGATOR_ROUTER[network]`.
|
|
2507
|
+
*/
|
|
2508
|
+
routerAddress?: string;
|
|
2509
|
+
/**
|
|
2510
|
+
* Total input amount the router will pull from `caller` once at the
|
|
2511
|
+
* start of `batch_execute` (i128 decimal string). Per-path
|
|
2512
|
+
* allocations are derived inside the router from each path's
|
|
2513
|
+
* `splitPpm`. For a quote-derived swap, pass `quote.amountIn`.
|
|
2514
|
+
*/
|
|
2515
|
+
totalIn: string;
|
|
2516
|
+
/**
|
|
2517
|
+
* Referral identifier embedded into the BatchSwap. Defaults to `0`
|
|
2518
|
+
* (no referral / no fee — matches rs-aggregator MVX semantics).
|
|
2519
|
+
* Non-zero IDs MUST be registered on-chain via `add_referral` or the
|
|
2520
|
+
* router reverts at execution.
|
|
2521
|
+
*/
|
|
2522
|
+
referralId?: number | string;
|
|
2523
|
+
}
|
|
2524
|
+
/**
|
|
2525
|
+
* Build an unsigned XDR for a direct user → aggregator router swap.
|
|
2526
|
+
*
|
|
2527
|
+
* The `swap` payload (paths + total-min-out) comes straight from the
|
|
2528
|
+
* quote server; map a `StellarAggregatorQuoteResponseDto` to
|
|
2529
|
+
* `AggregatorSwapDto` via `mapQuoteResponseToAggregatorSwap` before
|
|
2530
|
+
* calling this. `opts.totalIn` is the authoritative input amount.
|
|
2531
|
+
*/
|
|
2532
|
+
export declare function buildStellarBatchSwapTx(opts: StellarBatchSwapBuilderOptions, swap: AggregatorSwapDto): BuiltStellarTx;
|
|
2533
|
+
/**
|
|
2534
|
+
* Translate a quote-server response into the controller-facing
|
|
2535
|
+
* `AggregatorSwapDto`. Each path's `splitPpm` comes straight from the
|
|
2536
|
+
* server; the single-path fallback (when `paths` is omitted) gets the
|
|
2537
|
+
* full 1_000_000 weight.
|
|
2538
|
+
*
|
|
2539
|
+
* Throws if `amountOutMin` is missing — the controller refuses
|
|
2540
|
+
* unbounded swaps so the SDK rejects them at the boundary.
|
|
2541
|
+
*/
|
|
2542
|
+
export declare function mapQuoteResponseToAggregatorSwap(quote: StellarAggregatorQuoteResponseDto): AggregatorSwapDto;
|
|
2543
|
+
export declare function buildSdk(client: XOXNOClient): SDK;
|
|
2544
|
+
|
|
2545
|
+
export {};
|