@xoxno/sdk-js 1.0.134 → 1.0.136

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.
@@ -1,2853 +0,0 @@
1
- // Generated by dts-bundle-generator v9.5.1
2
-
3
- import { rpc, xdr } from '@stellar/stellar-sdk';
4
- import { ActivePerpAssetCtx, ActiveSpotAssetCtx, 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, LendingGovernanceProposalDoc, LendingGovernanceProposalFilter, LendingGovernanceProposalQuery, 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, 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 "/lending/governance/proposals": {
415
- readonly input: {
416
- filter: PublicOnly<LendingGovernanceProposalFilter>;
417
- };
418
- readonly output: LendingGovernanceProposalQuery;
419
- };
420
- readonly "/lending/governance/proposal/:id": {
421
- readonly input: {};
422
- readonly output: LendingGovernanceProposalDoc;
423
- };
424
- readonly "/user/lending/:address": {
425
- readonly input: {
426
- token?: string;
427
- };
428
- readonly output: LendingAccountProfile[];
429
- };
430
- readonly "/lending/market/indexes": {
431
- readonly input: {
432
- chain?: ActivityChain[];
433
- };
434
- readonly output: Record<string, LendingIndexesDto>;
435
- };
436
- readonly "/user/lending/position/:identifier": {
437
- readonly input: {};
438
- readonly output: LendingAccountProfile[];
439
- };
440
- readonly "/lending/pnl": {
441
- readonly input: {
442
- identifiers: string[];
443
- };
444
- readonly output: LendingAccountPnl[];
445
- };
446
- readonly "/user/lending/pnl/:address": {
447
- readonly input: {};
448
- readonly output: LendingAccountPnl[];
449
- };
450
- readonly "/user/lending/summary/:identifier": {
451
- readonly input: {};
452
- readonly output: LendingAccountSummary;
453
- };
454
- readonly "/user/lending/image/:nonce": {
455
- readonly input: {
456
- isStatic: boolean;
457
- chain?: ActivityChain[];
458
- };
459
- readonly output: string;
460
- };
461
- readonly "/lending/market/emode-categories": {
462
- readonly input: {
463
- categoryIds?: string[];
464
- };
465
- readonly output: LendingEModeCategoryProfile[];
466
- };
467
- readonly "/lending/market/:token/emode-categories": {
468
- readonly input: {};
469
- readonly output: LendingEModeCategoryProfile[];
470
- };
471
- readonly "/lending/market/:token/analytics": {
472
- readonly input: {
473
- startTime?: string;
474
- endTime?: string;
475
- bin?: string;
476
- };
477
- readonly output: LendingMarketAnalyticsGraph[];
478
- };
479
- readonly "/lending/market/:token/average": {
480
- readonly input: {};
481
- readonly output: LendingMarketAverageGraph[];
482
- };
483
- readonly "/lending/leaderboard": {
484
- readonly input: {
485
- skip?: number;
486
- top?: number;
487
- orderBy?: LendingPositionOrderByColumn;
488
- orderDirection?: KustoOrderDirection;
489
- token?: string;
490
- chain?: ActivityChain[];
491
- };
492
- readonly output: LendingPositionStatus[];
493
- };
494
- readonly "/lending/leaderboard/liquidate": {
495
- readonly input: {};
496
- readonly output: LendingPositionStatus[];
497
- };
498
- readonly "/lending/leaderboard/clean-bad-debt": {
499
- readonly input: {};
500
- readonly output: LendingPositionStatus[];
501
- };
502
- readonly "/lending/stats": {
503
- readonly input: {};
504
- readonly output: LendingOverallStats;
505
- };
506
- readonly "/lending/market/prices": {
507
- readonly input: {
508
- returnAsUsd?: boolean;
509
- };
510
- readonly output: Record<string, number>;
511
- };
512
- readonly "/nft/query": {
513
- readonly input: {
514
- filter: PublicOnly<NftDocFilter>;
515
- continuationToken?: string;
516
- };
517
- readonly output: NftPaginated & {
518
- continuationToken?: string;
519
- };
520
- };
521
- readonly "/nft/:identifier/like": {
522
- readonly input: {};
523
- readonly output: {};
524
- readonly POST: {
525
- readonly input: {};
526
- readonly output: LikeNftDto;
527
- readonly body: {};
528
- readonly securityMode: "requiredAny";
529
- };
530
- };
531
- readonly "/user/:address/inventory-summary": {
532
- readonly input: {
533
- activeAuction?: boolean;
534
- };
535
- readonly output: InventorySummaryDtoHydrated[];
536
- };
537
- readonly "/user/:address/offers": {
538
- readonly input: {
539
- skip?: number;
540
- top?: number;
541
- continuationToken?: string;
542
- type?: OfferType;
543
- };
544
- readonly output: NftOfferPaginated & {
545
- continuationToken?: string;
546
- };
547
- };
548
- readonly "/nft/offer/query": {
549
- readonly input: {
550
- filter: PublicOnly<NftOfferDocFilter>;
551
- continuationToken?: string;
552
- };
553
- readonly output: NftOfferPaginated & {
554
- continuationToken?: string;
555
- };
556
- };
557
- readonly "/nft/offer/:identifier": {
558
- readonly input: {};
559
- readonly output: NftOfferDocHydrated[];
560
- };
561
- readonly "/user/:address/favorite/nfts": {
562
- readonly input: {
563
- skip?: number;
564
- top?: number;
565
- continuationToken?: string;
566
- };
567
- readonly output: NftPaginated & {
568
- continuationToken?: string;
569
- };
570
- };
571
- readonly "/collection/:collection/attributes": {
572
- readonly input: {};
573
- readonly output: Record<string, ValueFp & Record<string, TraitInfo>>;
574
- };
575
- readonly "/nft/:identifier/offers": {
576
- readonly input: {
577
- skip?: number;
578
- top?: number;
579
- continuationToken?: string;
580
- };
581
- readonly output: NftOfferPaginated & {
582
- continuationToken?: string;
583
- };
584
- };
585
- readonly "/collection/:collection/ranks": {
586
- readonly input: {};
587
- readonly output: CollectionRanksDTO[];
588
- };
589
- readonly "/collection/:collection/listings": {
590
- readonly input: {};
591
- readonly output: ListingsResponseDto;
592
- };
593
- readonly "/nft/pinned": {
594
- readonly input: {
595
- chain: ActivityChain[];
596
- };
597
- readonly output: NftDocHydrated[];
598
- };
599
- readonly "/nft/sign-withdraw": {
600
- readonly input: {};
601
- readonly output: {};
602
- readonly POST: {
603
- readonly input: {};
604
- readonly output: SignDataDto;
605
- readonly body: SignWithdrawDto;
606
- readonly securityMode: "requiredAny";
607
- };
608
- };
609
- readonly "/collection/:collection/sign-offer": {
610
- readonly input: {};
611
- readonly output: {};
612
- readonly POST: {
613
- readonly input: {};
614
- readonly output: SignDataDto;
615
- readonly body: SignAcceptGlobalOfferDto;
616
- readonly securityMode: "requiredAny";
617
- };
618
- };
619
- readonly "/collection/:collection/sign-mint": {
620
- readonly input: {};
621
- readonly output: {};
622
- readonly POST: {
623
- readonly input: {};
624
- readonly output: SignDataDto;
625
- readonly body: SignMintDto;
626
- readonly securityMode: "requiredAny";
627
- };
628
- };
629
- readonly "/nft/:identifier": {
630
- readonly input: {};
631
- readonly output: NftDocFull;
632
- };
633
- readonly "/collection/:collection/profile": {
634
- readonly input: {};
635
- readonly output: CollectionProfileDoc;
636
- readonly PATCH: {
637
- readonly input: {};
638
- readonly output: CollectionProfileDoc;
639
- readonly body: CollectionProfileEditDto;
640
- readonly securityMode: "requiredAny";
641
- };
642
- };
643
- readonly "/collection/:collection/floor-price": {
644
- readonly input: {
645
- token?: string;
646
- };
647
- readonly output: FloorPriceDto;
648
- };
649
- readonly "/collection/floor-price": {
650
- readonly input: {
651
- collection?: string[];
652
- };
653
- readonly output: Record<string, number>;
654
- };
655
- readonly "/collection/pinned": {
656
- readonly input: {
657
- chain: ActivityChain[];
658
- };
659
- readonly output: PinnedCollectionDto[];
660
- };
661
- readonly "/collection/pinned-drops": {
662
- readonly input: {
663
- chain: ActivityChain[];
664
- };
665
- readonly output: CollectionMintProfileDocHydrated[];
666
- };
667
- readonly "/collection/:collection/pinned-drops": {
668
- readonly input: {};
669
- readonly output: CollectionPinnedStatusDto;
670
- };
671
- readonly "/collection/:collection/pinned": {
672
- readonly input: {};
673
- readonly output: CollectionPinnedStatusDto;
674
- };
675
- readonly "/collection/:collection/follow": {
676
- readonly input: {};
677
- readonly output: {};
678
- readonly POST: {
679
- readonly input: {};
680
- readonly output: FollowCollectionDto;
681
- readonly body: {};
682
- readonly securityMode: "requiredAny";
683
- };
684
- };
685
- readonly "/collection/query": {
686
- readonly input: {
687
- filter?: PublicOnly<CollectionProfileFilter>;
688
- continuationToken?: string;
689
- };
690
- readonly output: CollectionProfilePaginated & {
691
- continuationToken?: string;
692
- };
693
- };
694
- readonly "/collection/drops/query": {
695
- readonly input: {
696
- filter?: PublicOnly<CollectionMintProfileFilter>;
697
- continuationToken?: string;
698
- };
699
- readonly output: CollectionMintProfilePaginated & {
700
- continuationToken?: string;
701
- };
702
- };
703
- readonly "/collection/:collection/drop-info": {
704
- readonly input: {};
705
- readonly output: CollectionMintProfileDocWithStages;
706
- readonly securityMode: "optionalAny";
707
- };
708
- readonly "/collection/:creatorTag/:collectionTag/drop-info": {
709
- readonly input: {};
710
- readonly output: CollectionMintProfileDocWithStages;
711
- readonly securityMode: "optionalAny";
712
- };
713
- readonly "/collection/:collection/upload-picture": {
714
- readonly input: {};
715
- readonly output: {};
716
- readonly PUT: {
717
- readonly input: {};
718
- readonly output: CollectionProfileDoc;
719
- readonly body: FormData;
720
- readonly securityMode: "requiredAny";
721
- };
722
- };
723
- readonly "/collection/:collection/upload-banner": {
724
- readonly input: {};
725
- readonly output: {};
726
- readonly PUT: {
727
- readonly input: {};
728
- readonly output: CollectionProfileDoc;
729
- readonly body: FormData;
730
- readonly securityMode: "requiredAny";
731
- };
732
- };
733
- readonly "/collection/:collection/reset-picture": {
734
- readonly input: {};
735
- readonly output: {};
736
- readonly PUT: {
737
- readonly input: {};
738
- readonly output: CollectionProfileDoc;
739
- readonly body: {};
740
- readonly securityMode: "requiredAny";
741
- };
742
- };
743
- readonly "/collection/:collection/reset-banner": {
744
- readonly input: {};
745
- readonly output: {};
746
- readonly PUT: {
747
- readonly input: {};
748
- readonly output: CollectionProfileDoc;
749
- readonly body: {};
750
- readonly securityMode: "requiredAny";
751
- };
752
- };
753
- readonly "/collection/:collection/holders": {
754
- readonly input: {};
755
- readonly output: CollectionHoldersDto;
756
- };
757
- readonly "/collection/:collection/holders/export": {
758
- readonly input: {};
759
- readonly output: CollectionHoldersExportDto[];
760
- };
761
- readonly "/collection/:collection/owner": {
762
- readonly input: {};
763
- readonly output: CollectionOwnerDto;
764
- };
765
- readonly "/collection/:collection/stats": {
766
- readonly input: {};
767
- readonly output: CollectionStatsDocHydrated;
768
- };
769
- readonly "/collection/stats/query": {
770
- readonly input: {
771
- filter: PublicOnly<CollectionStatsFilter>;
772
- continuationToken?: string;
773
- };
774
- readonly output: CollectionStatsPaginated & {
775
- continuationToken?: string;
776
- };
777
- };
778
- readonly "/collection/global-offer/query": {
779
- readonly input: {
780
- filter: PublicOnly<CollectionOffersFilter>;
781
- continuationToken?: string;
782
- };
783
- readonly output: GlobalOfferPaginated & {
784
- continuationToken?: string;
785
- };
786
- };
787
- readonly "/user/:address/creator/listing": {
788
- readonly input: {};
789
- readonly output: CreatorDetailsDto;
790
- };
791
- readonly "/user/:address/creator/details": {
792
- readonly input: {};
793
- readonly output: CreatorDetailsDto;
794
- };
795
- readonly "/launchpad/:scAddress/shareholders/royalties": {
796
- readonly input: {};
797
- readonly output: ShareholderDto[];
798
- };
799
- readonly "/launchpad/:scAddress/shareholders/collection/:collectionTag": {
800
- readonly input: {};
801
- readonly output: ShareholderDto[];
802
- };
803
- readonly "/pool/:poolId/profile": {
804
- readonly input: {};
805
- readonly output: StakingSummary;
806
- readonly PATCH: {
807
- readonly input: {};
808
- readonly output: StakingPoolDoc;
809
- readonly body: StakingEditDto;
810
- readonly securityMode: "requiredAny";
811
- };
812
- };
813
- readonly "/pool/:poolId/whitelist": {
814
- readonly input: {};
815
- readonly output: NftDocHydrated[];
816
- };
817
- readonly "/pool/:poolId/upload-picture": {
818
- readonly input: {};
819
- readonly output: {};
820
- readonly PUT: {
821
- readonly input: {};
822
- readonly output: StakingPoolDoc;
823
- readonly body: FormData;
824
- readonly securityMode: "requiredAny";
825
- };
826
- };
827
- readonly "/user/:address/staking/available-pools": {
828
- readonly input: {};
829
- readonly output: StakingSummary[];
830
- };
831
- readonly "/user/:address/staking/owned-collections": {
832
- readonly input: {};
833
- readonly output: OwnedCollectionsDto;
834
- };
835
- readonly "/user/:address/staking/owned-pools": {
836
- readonly input: {};
837
- readonly output: StakingSummary[];
838
- };
839
- readonly "/user/:address/staking/summary": {
840
- readonly input: {};
841
- readonly output: UserStakingSummaryDto[];
842
- };
843
- readonly "/user/:address/staking/creator": {
844
- readonly input: {};
845
- readonly output: StakingCreatorDoc;
846
- };
847
- readonly "/user/:address/staking/collection/:collection": {
848
- readonly input: {};
849
- readonly output: StakingSummary[];
850
- };
851
- readonly "/user/:address/staking/pool/:poolId/nfts": {
852
- readonly input: {
853
- status?: StakingStatus;
854
- };
855
- readonly output: StakingUserPoolNfts;
856
- };
857
- readonly "/collection/:collection/staking/summary": {
858
- readonly input: {};
859
- readonly output: StakingSummary[];
860
- readonly securityMode: "optionalAny";
861
- };
862
- readonly "/collection/:collection/staking/delegators": {
863
- readonly input: {};
864
- readonly output: string[];
865
- };
866
- readonly "/collection/staking/explore": {
867
- readonly input: {};
868
- readonly output: StakingExploreDtoHydrated[];
869
- };
870
- readonly "/user/:creatorTag/owned-services": {
871
- readonly input: {};
872
- readonly output: OwnedServicesDto;
873
- };
874
- readonly "/search": {
875
- readonly input: {
876
- filter: PublicOnly<FilterQueryDto>;
877
- };
878
- readonly output: GlobalSearchResourcesPaginated;
879
- };
880
- readonly "/user/search": {
881
- readonly input: {
882
- filter: PublicOnly<FilterQueryDto>;
883
- };
884
- readonly output: GlobalSearchResourcesPaginated;
885
- };
886
- readonly "/collection/search": {
887
- readonly input: {
888
- filter: PublicOnly<FilterQueryDto>;
889
- };
890
- readonly output: GlobalSearchResourcesPaginated;
891
- };
892
- readonly "/collection/drops/search": {
893
- readonly input: {
894
- filter: PublicOnly<FilterQueryDto>;
895
- };
896
- readonly output: CollectionMintProfilePaginated;
897
- };
898
- readonly "/nft/search/query": {
899
- readonly input: {
900
- filter: PublicOnly<NftDocFilter>;
901
- };
902
- readonly output: NftPaginated;
903
- };
904
- readonly "/lending/market-sc": {
905
- readonly input: {};
906
- readonly output: string[];
907
- };
908
- readonly "/lending/active-accounts": {
909
- readonly input: {};
910
- readonly output: number[];
911
- };
912
- readonly "/lending/account/:nonce/attributes": {
913
- readonly input: {};
914
- readonly output: LendingNftAttributes;
915
- };
916
- readonly "/lending/account/:nonce/positions": {
917
- readonly input: {};
918
- readonly output: LendingNftAttributes[];
919
- };
920
- readonly "/lending/market/:token/price/egld": {
921
- readonly input: {};
922
- readonly output: LendingTokenPriceDto;
923
- };
924
- readonly "/faucet": {
925
- readonly input: {};
926
- readonly output: {};
927
- readonly POST: {
928
- readonly input: {};
929
- readonly output: SuccessDto;
930
- readonly body: {};
931
- readonly securityMode: "requiredAny";
932
- };
933
- };
934
- readonly "/user/notifications": {
935
- readonly input: {
936
- skip?: number;
937
- top?: number;
938
- continuationToken?: string;
939
- };
940
- readonly output: NotificationPaginated & {
941
- continuationToken?: string;
942
- };
943
- readonly securityMode: "requiredAny";
944
- };
945
- readonly "/user/notifications/unread-count": {
946
- readonly input: {};
947
- readonly output: PushNotificationCountResponse;
948
- readonly securityMode: "requiredAny";
949
- };
950
- readonly "/user/notifications/clear": {
951
- readonly input: {};
952
- readonly output: {};
953
- readonly DELETE: {
954
- readonly input: {};
955
- readonly output: SuccessDto;
956
- readonly body: {};
957
- readonly securityMode: "requiredAny";
958
- };
959
- };
960
- readonly "/user/notifications/read": {
961
- readonly input: {};
962
- readonly output: {};
963
- readonly PATCH: {
964
- readonly input: {
965
- id?: string;
966
- };
967
- readonly output: NotificationDoc | SuccessDto;
968
- readonly body: {};
969
- readonly securityMode: "requiredAny";
970
- };
971
- };
972
- readonly "/mobile/device/register": {
973
- readonly input: {};
974
- readonly output: {};
975
- readonly POST: {
976
- readonly input: {};
977
- readonly output: MobileDeviceDoc;
978
- readonly body: MobileDeviceRegistrationDto;
979
- readonly securityMode: "requiredWeb2";
980
- };
981
- };
982
- readonly "/mobile/device/:deviceId": {
983
- readonly input: {};
984
- readonly output: MobileDeviceDoc;
985
- readonly securityMode: "requiredWeb2";
986
- readonly DELETE: {
987
- readonly input: {};
988
- readonly output: SuccessDto;
989
- readonly body: {};
990
- readonly securityMode: "requiredWeb2";
991
- };
992
- };
993
- readonly "/mobile/history": {
994
- readonly input: {
995
- skip?: number;
996
- top?: number;
997
- continuationToken?: string;
998
- };
999
- readonly output: PushNotificationResponse & {
1000
- continuationToken?: string;
1001
- };
1002
- readonly securityMode: "requiredAny";
1003
- };
1004
- readonly "/mobile/history/unread-count": {
1005
- readonly input: {};
1006
- readonly output: PushNotificationCountResponse;
1007
- readonly securityMode: "requiredAny";
1008
- };
1009
- readonly "/mobile/history/:notificationId/read": {
1010
- readonly input: {};
1011
- readonly output: {};
1012
- readonly PUT: {
1013
- readonly input: {};
1014
- readonly output: PushNotificationDoc;
1015
- readonly body: {};
1016
- readonly securityMode: "requiredAny";
1017
- };
1018
- };
1019
- readonly "/mobile/history/read-all": {
1020
- readonly input: {};
1021
- readonly output: {};
1022
- readonly PUT: {
1023
- readonly input: {};
1024
- readonly output: NotificationSuccessResponseDto;
1025
- readonly body: {};
1026
- readonly securityMode: "requiredAny";
1027
- };
1028
- };
1029
- readonly "/mobile/history/clear-all": {
1030
- readonly input: {};
1031
- readonly output: {};
1032
- readonly DELETE: {
1033
- readonly input: {};
1034
- readonly output: NotificationSuccessResponseDto;
1035
- readonly body: {};
1036
- readonly securityMode: "requiredAny";
1037
- };
1038
- };
1039
- readonly "/mobile/history/clear-id/:notificationId": {
1040
- readonly input: {};
1041
- readonly output: {};
1042
- readonly DELETE: {
1043
- readonly input: {};
1044
- readonly output: NotificationSuccessResponseDto;
1045
- readonly body: {};
1046
- readonly securityMode: "requiredAny";
1047
- };
1048
- };
1049
- readonly "/eventNotifications/event/:eventId/update": {
1050
- readonly input: {};
1051
- readonly output: {};
1052
- readonly POST: {
1053
- readonly input: {};
1054
- readonly output: NotificationSuccessResponseDto;
1055
- readonly body: EventNotificationDto;
1056
- readonly securityMode: "requiredAny";
1057
- };
1058
- };
1059
- readonly "/eventNotifications/event/:eventId/reminder": {
1060
- readonly input: {};
1061
- readonly output: {};
1062
- readonly POST: {
1063
- readonly input: {};
1064
- readonly output: NotificationSuccessResponseDto;
1065
- readonly body: EventNotificationDto;
1066
- readonly securityMode: "requiredAny";
1067
- };
1068
- };
1069
- readonly "/eventNotifications/creator/marketing": {
1070
- readonly input: {};
1071
- readonly output: {};
1072
- readonly POST: {
1073
- readonly input: {};
1074
- readonly output: NotificationSuccessResponseDto;
1075
- readonly body: CreatorMarketingNotificationDto;
1076
- readonly securityMode: "requiredAny";
1077
- };
1078
- };
1079
- readonly "/eventNotifications/user/:userId/direct": {
1080
- readonly input: {};
1081
- readonly output: {};
1082
- readonly POST: {
1083
- readonly input: {};
1084
- readonly output: NotificationSuccessResponseDto;
1085
- readonly body: EventNotificationDto;
1086
- readonly securityMode: "requiredAny";
1087
- };
1088
- };
1089
- readonly "/user/stellar/challenge": {
1090
- readonly input: {
1091
- account: string;
1092
- };
1093
- readonly output: StellarChallengeResponseDto;
1094
- };
1095
- readonly "/user/native-token": {
1096
- readonly input: {
1097
- originalUrl?: string;
1098
- extraInfo?: string;
1099
- };
1100
- readonly output: string;
1101
- };
1102
- readonly "/user/web2": {
1103
- readonly input: {};
1104
- readonly output: Web2UserDoc;
1105
- readonly securityMode: "requiredWeb2";
1106
- };
1107
- readonly "/user/web2/session-cookie": {
1108
- readonly input: {};
1109
- readonly output: {};
1110
- readonly POST: {
1111
- readonly input: {};
1112
- readonly output: SuccessWithMessageDto;
1113
- readonly body: {};
1114
- readonly securityMode: "requiredWeb2";
1115
- };
1116
- };
1117
- readonly "/user/web2/wallet": {
1118
- readonly input: {};
1119
- readonly output: {};
1120
- readonly POST: {
1121
- readonly input: {};
1122
- readonly output: Web2UserDoc;
1123
- readonly body: NativeWalletDto;
1124
- readonly securityMode: "requiredWeb2";
1125
- };
1126
- };
1127
- readonly "/user/web2/wallet-switch": {
1128
- readonly input: {};
1129
- readonly output: {};
1130
- readonly POST: {
1131
- readonly input: {};
1132
- readonly output: Web2UserDoc;
1133
- readonly body: SwitchWalletDto;
1134
- readonly securityMode: "requiredWeb2";
1135
- };
1136
- };
1137
- readonly "/user/web2/wallet-link": {
1138
- readonly input: {};
1139
- readonly output: {};
1140
- readonly POST: {
1141
- readonly input: {};
1142
- readonly output: Web2UserDoc;
1143
- readonly body: Web2WalletDto;
1144
- readonly securityMode: "requiredWeb2";
1145
- };
1146
- };
1147
- readonly "/user/web2/:index/wallet-link": {
1148
- readonly input: {};
1149
- readonly output: {};
1150
- readonly DELETE: {
1151
- readonly input: {};
1152
- readonly output: Web2UserDoc;
1153
- readonly body: {};
1154
- readonly securityMode: "requiredWeb2";
1155
- };
1156
- };
1157
- readonly "/user/web2/shards": {
1158
- readonly input: {};
1159
- readonly output: Web2UserShardsDto;
1160
- readonly securityMode: "requiredWeb2";
1161
- };
1162
- readonly "/activity/query": {
1163
- readonly input: {
1164
- filter: PublicOnly<NftActivityFilter>;
1165
- continuationToken?: string;
1166
- };
1167
- readonly output: NftActivityPaginated & {
1168
- continuationToken?: string;
1169
- };
1170
- };
1171
- readonly "/activity/:identifier": {
1172
- readonly input: {};
1173
- readonly output: NftActivityDocHydrated;
1174
- };
1175
- readonly "/analytics/volume": {
1176
- readonly input: {
1177
- startTime?: string;
1178
- endTime?: string;
1179
- bin?: string;
1180
- chain: ActivityChain[];
1181
- };
1182
- readonly output: VolumeGraph[];
1183
- };
1184
- readonly "/collection/:collection/analytics/volume": {
1185
- readonly input: {
1186
- startTime?: string;
1187
- endTime?: string;
1188
- bin?: string;
1189
- };
1190
- readonly output: AnalyticsVolumeDto[];
1191
- };
1192
- readonly "/collections/analytics/volume": {
1193
- readonly input: {
1194
- collections: string;
1195
- startTime?: string;
1196
- endTime?: string;
1197
- bin?: string;
1198
- chain: ActivityChain[];
1199
- };
1200
- readonly output: Record<string, AnalyticsVolumeDto[]>;
1201
- };
1202
- readonly "/user/:address/analytics/volume": {
1203
- readonly input: {};
1204
- readonly output: UserAnalyticsDto;
1205
- };
1206
- readonly "/analytics/overview": {
1207
- readonly input: {
1208
- chain: ActivityChain[];
1209
- };
1210
- readonly output: GlobalAnalyticsOverviewResponseDto;
1211
- };
1212
- readonly "/user/stats": {
1213
- readonly input: {
1214
- skip?: number;
1215
- top?: number;
1216
- orderBy?: UserStatsOrderByColumn;
1217
- orderDirection?: KustoOrderDirection;
1218
- };
1219
- readonly output: UserStatsDto[];
1220
- };
1221
- readonly "/user/xoxno-drop": {
1222
- readonly input: {
1223
- skip?: number;
1224
- top?: number;
1225
- address?: string;
1226
- };
1227
- readonly output: AirdropDtoHydrated[];
1228
- };
1229
- readonly "/user/me/xoxno-drop": {
1230
- readonly input: {};
1231
- readonly output: AirdropDtoHydrated[];
1232
- readonly securityMode: "requiredAny";
1233
- };
1234
- readonly "/transactions/:txHash": {
1235
- readonly input: {
1236
- withResults?: boolean;
1237
- };
1238
- readonly output: TransactionDetailed;
1239
- };
1240
- readonly "/transactions/:txHash/status": {
1241
- readonly input: {};
1242
- readonly output: TransactionProcessStatus;
1243
- };
1244
- readonly "/transaction/cost": {
1245
- readonly input: {};
1246
- readonly output: {};
1247
- readonly POST: {
1248
- readonly input: {};
1249
- readonly output: TransactionCostData;
1250
- readonly body: TransactionCreate;
1251
- };
1252
- };
1253
- readonly "/transactions": {
1254
- readonly input: {};
1255
- readonly output: {};
1256
- readonly POST: {
1257
- readonly input: {};
1258
- readonly output: TransactionSendResult;
1259
- readonly body: TransactionCreate;
1260
- };
1261
- };
1262
- readonly "/transactions/batch": {
1263
- readonly input: {};
1264
- readonly output: {};
1265
- readonly POST: {
1266
- readonly input: {
1267
- isRelay?: boolean;
1268
- };
1269
- readonly output: TransactionSendResult[];
1270
- readonly body: TransactionCreate[];
1271
- };
1272
- };
1273
- readonly "/user/chat/message": {
1274
- readonly input: {};
1275
- readonly output: {};
1276
- readonly POST: {
1277
- readonly input: {};
1278
- readonly output: ChatMessageDocHydrated;
1279
- readonly body: SendChatMessageDto;
1280
- readonly securityMode: "requiredAny";
1281
- };
1282
- };
1283
- readonly "/user/chat/conversation": {
1284
- readonly input: {
1285
- skip?: number;
1286
- top?: number;
1287
- isGroupChat?: boolean;
1288
- continuationToken?: string;
1289
- };
1290
- readonly output: UserConversationPaginated & {
1291
- continuationToken?: string;
1292
- };
1293
- readonly securityMode: "requiredAny";
1294
- };
1295
- readonly "/user/chat/conversation/:conversationId": {
1296
- readonly input: {
1297
- skip?: number;
1298
- top?: number;
1299
- receiver: string;
1300
- continuationToken?: string;
1301
- };
1302
- readonly output: ChatMessagePaginated & {
1303
- continuationToken?: string;
1304
- };
1305
- readonly securityMode: "requiredAny";
1306
- readonly DELETE: {
1307
- readonly input: {};
1308
- readonly output: SuccessDto;
1309
- readonly body: {};
1310
- readonly securityMode: "requiredAny";
1311
- };
1312
- };
1313
- readonly "/user/chat/conversation-summary": {
1314
- readonly input: {};
1315
- readonly output: GlobalConversationSummaryDto;
1316
- readonly securityMode: "requiredAny";
1317
- };
1318
- readonly "/user/chat/conversation/:conversationId/message/:messageId": {
1319
- readonly input: {};
1320
- readonly output: {};
1321
- readonly DELETE: {
1322
- readonly input: {
1323
- deleteForAll?: boolean;
1324
- };
1325
- readonly output: SuccessDto;
1326
- readonly body: {};
1327
- readonly securityMode: "requiredAny";
1328
- };
1329
- };
1330
- readonly "/user/chat/block": {
1331
- readonly input: {
1332
- skip?: number;
1333
- top?: number;
1334
- continuationToken?: string;
1335
- };
1336
- readonly output: UserBlockPaginated & {
1337
- continuationToken?: string;
1338
- };
1339
- readonly securityMode: "requiredAny";
1340
- };
1341
- readonly "/user/chat/block/:address": {
1342
- readonly input: {};
1343
- readonly output: {};
1344
- readonly POST: {
1345
- readonly input: {};
1346
- readonly output: SuccessDto;
1347
- readonly body: {};
1348
- readonly securityMode: "requiredAny";
1349
- };
1350
- };
1351
- readonly "/user/chat/token": {
1352
- readonly input: {};
1353
- readonly output: {};
1354
- readonly POST: {
1355
- readonly input: {};
1356
- readonly output: WebSocketTokenDto;
1357
- readonly body: {};
1358
- readonly securityMode: "requiredAny";
1359
- };
1360
- };
1361
- readonly "/hatom/user/:address": {
1362
- readonly input: {};
1363
- readonly output: UserInfo;
1364
- };
1365
- readonly "/countries": {
1366
- readonly input: {};
1367
- readonly output: string[];
1368
- };
1369
- readonly "/event": {
1370
- readonly input: {};
1371
- readonly output: {};
1372
- readonly POST: {
1373
- readonly input: {};
1374
- readonly output: EventProfile;
1375
- readonly body: EventProfileCreateDto;
1376
- readonly securityMode: "requiredAny";
1377
- };
1378
- };
1379
- readonly "/event/:eventId": {
1380
- readonly input: {};
1381
- readonly output: EventProfile;
1382
- readonly securityMode: "optionalAny";
1383
- readonly PATCH: {
1384
- readonly input: {};
1385
- readonly output: EventProfile;
1386
- readonly body: EventProfileEditDto;
1387
- readonly securityMode: "requiredAny";
1388
- };
1389
- readonly DELETE: {
1390
- readonly input: {};
1391
- readonly output: SuccessDto;
1392
- readonly body: {};
1393
- readonly securityMode: "requiredAny";
1394
- };
1395
- };
1396
- readonly "/event/profile/query": {
1397
- readonly input: {
1398
- filter: PublicOnly<EventProfileFilter>;
1399
- };
1400
- readonly output: EventProfileQuery;
1401
- };
1402
- readonly "/event/:eventId/profile": {
1403
- readonly input: {};
1404
- readonly output: {};
1405
- readonly PUT: {
1406
- readonly input: {};
1407
- readonly output: EventProfile;
1408
- readonly body: FormData;
1409
- readonly securityMode: "requiredAny";
1410
- };
1411
- };
1412
- readonly "/event/:eventId/background": {
1413
- readonly input: {};
1414
- readonly output: {};
1415
- readonly PUT: {
1416
- readonly input: {};
1417
- readonly output: EventProfile;
1418
- readonly body: FormData;
1419
- readonly securityMode: "requiredAny";
1420
- };
1421
- };
1422
- readonly "/event/:eventId/description": {
1423
- readonly input: {};
1424
- readonly output: {};
1425
- readonly PUT: {
1426
- readonly input: {};
1427
- readonly output: EventProfile;
1428
- readonly body: FormData;
1429
- readonly securityMode: "requiredAny";
1430
- };
1431
- };
1432
- readonly "/event/:eventId/description/image": {
1433
- readonly input: {};
1434
- readonly output: {};
1435
- readonly PUT: {
1436
- readonly input: {};
1437
- readonly output: string;
1438
- readonly body: FormData;
1439
- readonly securityMode: "requiredAny";
1440
- };
1441
- };
1442
- readonly "/event/:eventId/description/image/:imageId": {
1443
- readonly input: {};
1444
- readonly output: {};
1445
- readonly DELETE: {
1446
- readonly input: {};
1447
- readonly output: SuccessDto;
1448
- readonly body: {};
1449
- readonly securityMode: "requiredAny";
1450
- };
1451
- };
1452
- readonly "/event/:eventId/register": {
1453
- readonly input: {};
1454
- readonly output: {};
1455
- readonly POST: {
1456
- readonly input: {
1457
- invitationId?: string;
1458
- };
1459
- readonly output: EventRegistrationResponseDto;
1460
- readonly body: EventGuestRegistrationDto;
1461
- readonly securityMode: "requiredAny";
1462
- };
1463
- };
1464
- readonly "/event/:eventId/ticket": {
1465
- readonly input: {};
1466
- readonly output: EventTicketProfileDoc[];
1467
- readonly POST: {
1468
- readonly input: {};
1469
- readonly output: EventTicketProfileDoc;
1470
- readonly body: EventTicketProfileCreateDto;
1471
- readonly securityMode: "requiredAny";
1472
- };
1473
- };
1474
- readonly "/event/:eventId/ticket/:ticketId": {
1475
- readonly input: {};
1476
- readonly output: EventTicketProfileDoc;
1477
- readonly PATCH: {
1478
- readonly input: {};
1479
- readonly output: EventTicketProfileDoc;
1480
- readonly body: EventTicketProfileEditDto;
1481
- readonly securityMode: "requiredAny";
1482
- };
1483
- readonly PUT: {
1484
- readonly input: {};
1485
- readonly output: EventTicketProfileDoc;
1486
- readonly body: FormData;
1487
- readonly securityMode: "requiredAny";
1488
- };
1489
- readonly POST: {
1490
- readonly input: {};
1491
- readonly output: SuccessDto;
1492
- readonly body: {};
1493
- };
1494
- };
1495
- readonly "/event/:eventId/stage": {
1496
- readonly input: {
1497
- isEnabled?: boolean;
1498
- };
1499
- readonly output: EventStageProfileDoc[];
1500
- readonly POST: {
1501
- readonly input: {};
1502
- readonly output: EventStageProfileDoc;
1503
- readonly body: EventStageProfileCreateDto;
1504
- readonly securityMode: "requiredAny";
1505
- };
1506
- };
1507
- readonly "/event/:eventId/stage/:stageId": {
1508
- readonly input: {};
1509
- readonly output: EventStageProfileDoc;
1510
- readonly PATCH: {
1511
- readonly input: {};
1512
- readonly output: EventStageProfileDoc;
1513
- readonly body: EventStageProfileEditDto;
1514
- readonly securityMode: "requiredAny";
1515
- };
1516
- readonly DELETE: {
1517
- readonly input: {};
1518
- readonly output: SuccessDto;
1519
- readonly body: {};
1520
- readonly securityMode: "requiredAny";
1521
- };
1522
- };
1523
- readonly "/event/:eventId/calculate-prices": {
1524
- readonly input: {};
1525
- readonly output: {};
1526
- readonly POST: {
1527
- readonly input: {};
1528
- readonly output: TicketPricesResponse;
1529
- readonly body: TicketCalculationRequestDto;
1530
- };
1531
- };
1532
- readonly "/event/:eventId/validate-discount": {
1533
- readonly input: {};
1534
- readonly output: {};
1535
- readonly POST: {
1536
- readonly input: {};
1537
- readonly output: DiscountCodeValidationResponse;
1538
- readonly body: {};
1539
- };
1540
- };
1541
- readonly "/user/:address/creator/events": {
1542
- readonly input: {};
1543
- readonly output: CreatorDetailsDto;
1544
- readonly securityMode: "optionalAny";
1545
- };
1546
- readonly "/event/:eventId/invite": {
1547
- readonly input: {};
1548
- readonly output: {};
1549
- readonly POST: {
1550
- readonly input: {};
1551
- readonly output: EventInvitationDoc[];
1552
- readonly body: EventInvitationCreateDto[];
1553
- readonly securityMode: "requiredAny";
1554
- };
1555
- };
1556
- readonly "/event/:eventId/invite/query": {
1557
- readonly input: {
1558
- filter: PublicOnly<EventInvitationFilter>;
1559
- };
1560
- readonly output: EventInvitationQuery;
1561
- readonly securityMode: "requiredAny";
1562
- };
1563
- readonly "/event/:eventId/invite/:inviteId": {
1564
- readonly input: {};
1565
- readonly output: EventInvitation;
1566
- readonly POST: {
1567
- readonly input: {};
1568
- readonly output: EventAcceptInvitation;
1569
- readonly body: EventClaimInvitationDto;
1570
- readonly securityMode: "requiredAny";
1571
- };
1572
- readonly DELETE: {
1573
- readonly input: {};
1574
- readonly output: EventInvitationDoc;
1575
- readonly body: {};
1576
- readonly securityMode: "requiredAny";
1577
- };
1578
- };
1579
- readonly "/event/:eventId/voucher/query": {
1580
- readonly input: {
1581
- filter: PublicOnly<EventVoucherFilter>;
1582
- };
1583
- readonly output: EventVoucherQuery;
1584
- readonly securityMode: "requiredAny";
1585
- };
1586
- readonly "/event/:eventId/questions": {
1587
- readonly input: {};
1588
- readonly output: EventQuestionDoc[];
1589
- readonly securityMode: "requiredAny";
1590
- };
1591
- readonly "/event/:eventId/question": {
1592
- readonly input: {};
1593
- readonly output: {};
1594
- readonly POST: {
1595
- readonly input: {};
1596
- readonly output: EventQuestionDoc;
1597
- readonly body: EventQuestionCreateDto;
1598
- readonly securityMode: "requiredAny";
1599
- };
1600
- };
1601
- readonly "/event/:eventId/question/:questionId": {
1602
- readonly input: {};
1603
- readonly output: {};
1604
- readonly PATCH: {
1605
- readonly input: {};
1606
- readonly output: EventQuestionDoc;
1607
- readonly body: EventQuestionEditDto;
1608
- readonly securityMode: "requiredAny";
1609
- };
1610
- readonly DELETE: {
1611
- readonly input: {};
1612
- readonly output: SuccessDto;
1613
- readonly body: {};
1614
- readonly securityMode: "requiredAny";
1615
- };
1616
- };
1617
- readonly "/event/:eventId/guest/query": {
1618
- readonly input: {
1619
- filter: PublicOnly<EventGuestFilter>;
1620
- };
1621
- readonly output: EventGuestProfileQuery;
1622
- readonly securityMode: "requiredAny";
1623
- };
1624
- readonly "/event/:eventId/guest/:address": {
1625
- readonly input: {};
1626
- readonly output: EventGuestProfile;
1627
- readonly securityMode: "requiredAny";
1628
- };
1629
- readonly "/event/:eventId/guest-export": {
1630
- readonly input: {};
1631
- readonly output: EventGuestExport[];
1632
- readonly securityMode: "requiredAny";
1633
- };
1634
- readonly "/event/:eventId/role": {
1635
- readonly input: {};
1636
- readonly output: EventUserRole[];
1637
- readonly POST: {
1638
- readonly input: {};
1639
- readonly output: EventUserRole;
1640
- readonly body: EventUserRoleCreateDto;
1641
- readonly securityMode: "requiredAny";
1642
- };
1643
- readonly PATCH: {
1644
- readonly input: {};
1645
- readonly output: EventUserRole;
1646
- readonly body: EventUserRoleEditDto;
1647
- readonly securityMode: "requiredAny";
1648
- };
1649
- readonly securityMode: "requiredAny";
1650
- };
1651
- readonly "/event/:eventId/role/:roleId": {
1652
- readonly input: {};
1653
- readonly output: EventUserRoleDoc;
1654
- readonly DELETE: {
1655
- readonly input: {};
1656
- readonly output: SuccessDto;
1657
- readonly body: {};
1658
- readonly securityMode: "requiredAny";
1659
- };
1660
- readonly POST: {
1661
- readonly input: {};
1662
- readonly output: EventUserRoleDoc;
1663
- readonly body: {};
1664
- readonly securityMode: "requiredAny";
1665
- };
1666
- };
1667
- readonly "/event/:eventId/guest": {
1668
- readonly input: {};
1669
- readonly output: {};
1670
- readonly DELETE: {
1671
- readonly input: {};
1672
- readonly output: SuccessDto;
1673
- readonly body: {};
1674
- readonly securityMode: "requiredAny";
1675
- };
1676
- };
1677
- readonly "/event/:eventId/roleOf/:address": {
1678
- readonly input: {};
1679
- readonly output: EventUserRoleDoc;
1680
- readonly securityMode: "requiredAny";
1681
- };
1682
- readonly "/user/me/event": {
1683
- readonly input: {
1684
- extended: boolean;
1685
- };
1686
- readonly output: EventProfile[];
1687
- readonly securityMode: "requiredAny";
1688
- };
1689
- readonly "/user/me/events/past": {
1690
- readonly input: {};
1691
- readonly output: EventProfile[];
1692
- readonly securityMode: "requiredAny";
1693
- };
1694
- readonly "/user/me/events/hosted": {
1695
- readonly input: {};
1696
- readonly output: EventProfile[];
1697
- readonly securityMode: "requiredAny";
1698
- };
1699
- readonly "/user/me/events/upcoming": {
1700
- readonly input: {};
1701
- readonly output: EventProfile[];
1702
- readonly securityMode: "requiredAny";
1703
- };
1704
- readonly "/user/me/event/badge": {
1705
- readonly input: {};
1706
- readonly output: string;
1707
- readonly securityMode: "requiredAny";
1708
- };
1709
- readonly "/user/me/event/badge/payload": {
1710
- readonly input: {};
1711
- readonly output: BageQRData;
1712
- readonly securityMode: "requiredAny";
1713
- };
1714
- readonly "/event/:eventId/scan": {
1715
- readonly input: {};
1716
- readonly output: {};
1717
- readonly POST: {
1718
- readonly input: {};
1719
- readonly output: TicketValidationResult;
1720
- readonly body: EventCheckInQR;
1721
- readonly securityMode: "requiredAny";
1722
- };
1723
- };
1724
- readonly "/event/:eventId/voucher": {
1725
- readonly input: {};
1726
- readonly output: {};
1727
- readonly POST: {
1728
- readonly input: {};
1729
- readonly output: EventVoucherDoc;
1730
- readonly body: EventVoucherCreateDto;
1731
- readonly securityMode: "requiredAny";
1732
- };
1733
- };
1734
- readonly "/event/:eventId/voucher/:voucherCode": {
1735
- readonly input: {};
1736
- readonly output: {};
1737
- readonly PATCH: {
1738
- readonly input: {};
1739
- readonly output: EventVoucherDoc;
1740
- readonly body: EventVoucherEditDto;
1741
- readonly securityMode: "requiredAny";
1742
- };
1743
- readonly DELETE: {
1744
- readonly input: {};
1745
- readonly output: EventVoucherDoc;
1746
- readonly body: {};
1747
- readonly securityMode: "requiredAny";
1748
- };
1749
- };
1750
- readonly "/event/:eventId/manual-check-in": {
1751
- readonly input: {};
1752
- readonly output: {};
1753
- readonly POST: {
1754
- readonly input: {};
1755
- readonly output: TicketValidationResult;
1756
- readonly body: ManualCheckInDto;
1757
- readonly securityMode: "requiredAny";
1758
- };
1759
- };
1760
- readonly "/event/:eventId/answered-questions/:address": {
1761
- readonly input: {};
1762
- readonly output: AnsweredQuestionWithDetails[];
1763
- readonly securityMode: "requiredAny";
1764
- };
1765
- readonly "/event/:eventId/guest/approve": {
1766
- readonly input: {};
1767
- readonly output: {};
1768
- readonly PATCH: {
1769
- readonly input: {};
1770
- readonly output: EventGuestProfile[];
1771
- readonly body: EventGuestApproveDto[];
1772
- readonly securityMode: "requiredAny";
1773
- };
1774
- };
1775
- readonly "/event/:eventId/google-pass/:address": {
1776
- readonly input: {};
1777
- readonly output: string[];
1778
- };
1779
- readonly "/event/profile/location": {
1780
- readonly input: {};
1781
- readonly output: EventCountGroupedByCountry[];
1782
- };
1783
- readonly "/event/:eventId/referral-config": {
1784
- readonly input: {};
1785
- readonly output: {};
1786
- readonly POST: {
1787
- readonly input: {};
1788
- readonly output: EventReferralConfigDoc;
1789
- readonly body: EventReferralConfigCreateDto;
1790
- readonly securityMode: "requiredAny";
1791
- };
1792
- };
1793
- readonly "/event/:eventId/referral-config/:configId": {
1794
- readonly input: {};
1795
- readonly output: {};
1796
- readonly PATCH: {
1797
- readonly input: {};
1798
- readonly output: EventReferralConfigDoc;
1799
- readonly body: EventReferralConfigEditDto;
1800
- readonly securityMode: "requiredAny";
1801
- };
1802
- readonly DELETE: {
1803
- readonly input: {};
1804
- readonly output: EventReferralConfigDoc;
1805
- readonly body: {};
1806
- readonly securityMode: "requiredAny";
1807
- };
1808
- };
1809
- readonly "/event/:eventId/referral-configs": {
1810
- readonly input: {
1811
- filter?: PublicOnly<EventReferralConfigFilter>;
1812
- };
1813
- readonly output: EventReferralConfigPaginated;
1814
- readonly securityMode: "requiredAny";
1815
- };
1816
- readonly "/event/:eventId/referral": {
1817
- readonly input: {};
1818
- readonly output: {};
1819
- readonly POST: {
1820
- readonly input: {};
1821
- readonly output: EventReferralDoc;
1822
- readonly body: EventReferralCreateDto;
1823
- readonly securityMode: "requiredAny";
1824
- };
1825
- };
1826
- readonly "/event/:eventId/referral/:referralCode": {
1827
- readonly input: {};
1828
- readonly output: {};
1829
- readonly PATCH: {
1830
- readonly input: {};
1831
- readonly output: EventReferralDoc;
1832
- readonly body: EventReferralEditDto;
1833
- readonly securityMode: "requiredAny";
1834
- };
1835
- readonly DELETE: {
1836
- readonly input: {};
1837
- readonly output: EventReferralDoc;
1838
- readonly body: {};
1839
- readonly securityMode: "requiredAny";
1840
- };
1841
- };
1842
- readonly "/event/:eventId/referrals": {
1843
- readonly input: {
1844
- filter?: PublicOnly<EventReferralFilter>;
1845
- };
1846
- readonly output: EventReferralPaginated;
1847
- readonly securityMode: "requiredAny";
1848
- };
1849
- readonly "/event/:eventId/referrals/self-serviced": {
1850
- readonly input: {};
1851
- readonly output: EventReferralDoc[];
1852
- readonly securityMode: "requiredAny";
1853
- };
1854
- readonly "/event/:eventId/notify-attendees": {
1855
- readonly input: {};
1856
- readonly output: {};
1857
- readonly POST: {
1858
- readonly input: {};
1859
- readonly output: SuccessWithMessageDto;
1860
- readonly body: EventNotificationDto;
1861
- readonly securityMode: "requiredAny";
1862
- };
1863
- };
1864
- readonly "/notify/global-broadcast": {
1865
- readonly input: {};
1866
- readonly output: {};
1867
- readonly POST: {
1868
- readonly input: {};
1869
- readonly output: SuccessWithMessageDto;
1870
- readonly body: EventNotificationDto;
1871
- readonly securityMode: "requiredAny";
1872
- };
1873
- };
1874
- readonly "/stellar/aggregator/quote": {
1875
- readonly input: {
1876
- assetIn: string;
1877
- assetOut: string;
1878
- amount: string;
1879
- tradeType: string;
1880
- network: string;
1881
- slippageBps?: number;
1882
- parts?: number;
1883
- maxHops?: number;
1884
- };
1885
- readonly output: SoroswapQuoteResponseDto;
1886
- };
1887
- readonly "/perp/exchange/acceptTerms": {
1888
- readonly input: {};
1889
- readonly output: {};
1890
- readonly POST: {
1891
- readonly input: {};
1892
- readonly output: SuccessDto;
1893
- readonly body: {};
1894
- readonly securityMode: "requiredAny";
1895
- };
1896
- };
1897
- readonly "/perp/exchange/sendAsset": {
1898
- readonly input: {};
1899
- readonly output: {};
1900
- readonly POST: {
1901
- readonly input: {};
1902
- readonly output: SuccessDto;
1903
- readonly body: {};
1904
- readonly securityMode: "requiredAny";
1905
- };
1906
- };
1907
- readonly "/perp/exchange/sendExternalAsset": {
1908
- readonly input: {};
1909
- readonly output: {};
1910
- readonly POST: {
1911
- readonly input: {};
1912
- readonly output: SuccessDto;
1913
- readonly body: {};
1914
- readonly securityMode: "requiredAny";
1915
- };
1916
- };
1917
- readonly "/perp/exchange/deposit": {
1918
- readonly input: {};
1919
- readonly output: {};
1920
- readonly POST: {
1921
- readonly input: {};
1922
- readonly output: SuccessDto;
1923
- readonly body: {};
1924
- readonly securityMode: "requiredAny";
1925
- };
1926
- };
1927
- readonly "/perp/exchange/withdraw": {
1928
- readonly input: {};
1929
- readonly output: {};
1930
- readonly POST: {
1931
- readonly input: {};
1932
- readonly output: SuccessDto;
1933
- readonly body: {};
1934
- readonly securityMode: "requiredAny";
1935
- };
1936
- };
1937
- readonly "/perp/exchange/order": {
1938
- readonly input: {};
1939
- readonly output: {};
1940
- readonly POST: {
1941
- readonly input: {};
1942
- readonly output: PerpOrderResponse;
1943
- readonly body: {};
1944
- readonly securityMode: "requiredAny";
1945
- };
1946
- };
1947
- readonly "/tradingview/bars/:symbol": {
1948
- readonly input: {};
1949
- readonly output: BarDto[];
1950
- };
1951
- readonly "/tradingview/coin/:symbol": {
1952
- readonly input: {};
1953
- readonly output: SymbolInfoDto[];
1954
- };
1955
- readonly "/perp/coin/:symbol": {
1956
- readonly input: {};
1957
- readonly output: PerpCoinExtended[];
1958
- };
1959
- readonly "/perp/coin/spot/:symbol": {
1960
- readonly input: {};
1961
- readonly output: PerpSpotCoinExtended[];
1962
- };
1963
- readonly "/perp/coins": {
1964
- readonly input: {};
1965
- readonly output: PerpCoinExtendedSlim[];
1966
- };
1967
- readonly "/perp/legal-check/:address": {
1968
- readonly input: {};
1969
- readonly output: PerpLegalCheck;
1970
- };
1971
- readonly "/perp/coins/spot": {
1972
- readonly input: {};
1973
- readonly output: PerpSpotCoinExtendedSlim[];
1974
- };
1975
- readonly "/perp/orderbook/:symbol": {
1976
- readonly input: {};
1977
- readonly output: L2BookPerpResponseSingle[];
1978
- };
1979
- readonly "/perp/trades/:symbol": {
1980
- readonly input: {};
1981
- readonly output: TradesPerpResponseSingle[];
1982
- };
1983
- readonly "/perp/stats/spot/:symbol": {
1984
- readonly input: {};
1985
- readonly output: ActiveSpotAssetCtx[];
1986
- };
1987
- readonly "/perp/stats/:symbol": {
1988
- readonly input: {};
1989
- readonly output: ActivePerpAssetCtx[];
1990
- };
1991
- readonly "/perp/subscribe": {
1992
- readonly input: {};
1993
- readonly output: {};
1994
- readonly POST: {
1995
- readonly input: {};
1996
- readonly output: SuccessDto;
1997
- readonly body: PerpEvent;
1998
- };
1999
- };
2000
- readonly "/perp/unsubscribe": {
2001
- readonly input: {};
2002
- readonly output: {};
2003
- readonly POST: {
2004
- readonly input: {};
2005
- readonly output: SuccessDto;
2006
- readonly body: PerpEvent;
2007
- };
2008
- };
2009
- };
2010
- export type RemoveColon<S extends string> = S extends `:${infer R}` ? R : S;
2011
- export type CamelCase<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Head}${CamelCase<Capitalize<Tail>>}` : S;
2012
- export type IsEmptyObj<T> = keyof T extends never ? true : false;
2013
- export type NeedsDefault<I, O, _Full> = IsEmptyObj<I> extends true ? IsEmptyObj<O> extends true ? false : true : true;
2014
- export type CollectParams<S extends string> = S extends `${string}:${infer P}/${infer R}` ? {
2015
- [K in P]: string;
2016
- } & CollectParams<`/${R}`> : S extends `${string}:${infer P}` ? {
2017
- [K in P]: string;
2018
- } : {};
2019
- export type RequireAtLeastOne<T> = {
2020
- [K in keyof T]-?: {
2021
- [P in K]-?: T[P];
2022
- } & Omit<T, K>;
2023
- }[keyof T] & T;
2024
- export type BodyBag<VB, Defined extends boolean> = Defined extends true ? IsEmptyObj<VB> extends true ? {
2025
- body?: never;
2026
- } : {
2027
- body: RequireAtLeastOne<VB>;
2028
- } : {
2029
- body?: RequireAtLeastOne<VB>;
2030
- };
2031
- export type SecurityModeOf<T> = T extends {
2032
- securityMode: infer S;
2033
- } ? S : undefined;
2034
- export type AuthBag<M> = M extends "optionalAny" ? {
2035
- auth?: string;
2036
- } : M extends "requiredAny" | "requiredWeb2" | "requiredJwt" ? {
2037
- auth: string;
2038
- } : {
2039
- auth?: never;
2040
- };
2041
- export type VerbExtras<Full, PBag> = {
2042
- [Verb in keyof Full as Verb extends "input" | "body" | "output" | "securityMode" ? never : Verb]: Full[Verb] extends {
2043
- input: infer VI;
2044
- output: infer VO;
2045
- } ? (args: VI & PBag & BodyBag<Full[Verb] extends {
2046
- body: infer VB;
2047
- } ? VB : never, "body" extends keyof Full[Verb] ? true : false> & AuthBag<SecurityModeOf<Full[Verb]>> & OurRequestInit) => Promise<VO> : never;
2048
- };
2049
- export type DropKey<T, K extends PropertyKey> = {
2050
- [P in Exclude<keyof T, K>]: T[P];
2051
- };
2052
- export type RequiredKeys<T> = {
2053
- [K in keyof T]-?: {} extends Pick<T, K> ? never : K;
2054
- }[keyof T];
2055
- export type HasRequiredKeys<T> = [
2056
- RequiredKeys<T>
2057
- ] extends [
2058
- never
2059
- ] ? false : true;
2060
- export type PathToTree<P extends string, I, O, Full = {
2061
- input: I;
2062
- output: O;
2063
- }, Root extends string = P, Bag extends object = CollectParams<Root>> = P extends `/${infer Head}/${infer Rest}` ? Head extends `:${infer Param}` ? {
2064
- [K in CamelCase<Param>]: (value: string) => PathToTree<`/${Rest}`, I, O, Full, Root, DropKey<Bag, Param>>;
2065
- } : {
2066
- [K in CamelCase<Head>]: PathToTree<`/${Rest}`, I, O, Full, Root, Bag>;
2067
- } : P extends `/:${infer Param}` ? {
2068
- [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>>;
2069
- } : P extends `/${infer Leaf}` ? {
2070
- [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>;
2071
- } : never;
2072
- export type AnyFn = (...a: any[]) => any;
2073
- export type IsFn<T> = T extends AnyFn ? true : false;
2074
- export type U2I<U> = (U extends any ? (k: U) => 0 : never) extends (k: infer I) => 0 ? I : never;
2075
- export type UnionKeys<U> = U extends any ? keyof U : never;
2076
- export type CollapseFnUnion<F> = (...a: Parameters<Extract<F, AnyFn>>) => U2I<F extends AnyFn ? ReturnType<F> : never>;
2077
- export type ValuesForKey<U, K extends PropertyKey> = Exclude<U extends any ? (K extends keyof U ? U[K] : never) : never, never>;
2078
- export type FnUnion<U> = Extract<U, AnyFn>;
2079
- export type ObjUnion<U> = Exclude<U, AnyFn>;
2080
- export type CollapseFnUnionOrNever<U> = [
2081
- FnUnion<U>
2082
- ] extends [
2083
- never
2084
- ] ? {} : CollapseFnUnion<FnUnion<U>>;
2085
- export type MergeRec<U> = [
2086
- U
2087
- ] extends [
2088
- object
2089
- ] ? {
2090
- [K in UnionKeys<ObjUnion<U>>]: MergeRec<ValuesForKey<ObjUnion<U>, K>>;
2091
- } & CollapseFnUnionOrNever<U> : U;
2092
- export type SimplifyDeep<T> = IsFn<T> extends true ? T : T extends object ? {
2093
- [K in keyof T]: SimplifyDeep<T[K]>;
2094
- } : T;
2095
- export type SDKUnion = {
2096
- [R in keyof typeof endpoints]: PathToTree<R, (typeof endpoints)[R]["input"], (typeof endpoints)[R]["output"], (typeof endpoints)[R]>;
2097
- }[keyof typeof endpoints];
2098
- export type SDK = SimplifyDeep<MergeRec<SDKUnion>>;
2099
- /**
2100
- * Stellar Soroban contract addresses + Soroban RPC + quote-server config
2101
- * per network.
2102
- *
2103
- * Addresses are env-sourced so ops can rotate mainnet/testnet deployments
2104
- * without a code change. Defaults fall back to empty strings so a missing
2105
- * env surfaces as a clear "not configured" error at call time rather than
2106
- * silently pointing at the wrong contract.
2107
- */
2108
- export type StellarNetwork = "mainnet" | "testnet";
2109
- /**
2110
- * Stellar lending controller contract addresses per network.
2111
- * Env vars:
2112
- * - STELLAR_LENDING_CONTROLLER_MAINNET
2113
- * - STELLAR_LENDING_CONTROLLER_TESTNET
2114
- */
2115
- export declare const STELLAR_LENDING_CONTROLLER: Record<StellarNetwork, string>;
2116
- /**
2117
- * Stellar aggregator router contract addresses per network.
2118
- * Targets `execute_strategy(sender, total_in, swap_xdr)` for direct
2119
- * (non-lending) swaps.
2120
- * Env vars:
2121
- * - STELLAR_AGGREGATOR_ROUTER_MAINNET
2122
- * - STELLAR_AGGREGATOR_ROUTER_TESTNET
2123
- */
2124
- export declare const STELLAR_AGGREGATOR_ROUTER: Record<StellarNetwork, string>;
2125
- /**
2126
- * Stellar governance (timelock) contract addresses per network. Owns the
2127
- * controller's admin surface: PROPOSER-gated `propose_*` scheduling and the
2128
- * open `execute` / `execute_*` lifecycle.
2129
- * Env vars:
2130
- * - STELLAR_GOVERNANCE_MAINNET
2131
- * - STELLAR_GOVERNANCE_TESTNET
2132
- */
2133
- export declare const STELLAR_GOVERNANCE: Record<StellarNetwork, string>;
2134
- /**
2135
- * Default Soroban RPC URLs per network.
2136
- * Overridable at runtime via the `sorobanRpcUrl` option on each builder.
2137
- */
2138
- export declare const STELLAR_SOROBAN_RPC_URL: Record<StellarNetwork, string>;
2139
- /**
2140
- * Stellar aggregator quote-server base URLs per network. The quote server
2141
- * exposes `GET /api/v1/tokens` and `GET /api/v1/quote`.
2142
- *
2143
- * Env vars:
2144
- * - STELLAR_QUOTE_URL_MAINNET
2145
- * - STELLAR_QUOTE_URL_TESTNET
2146
- */
2147
- export declare const STELLAR_QUOTE_URL: Record<StellarNetwork, string>;
2148
- /**
2149
- * Stellar network passphrases (Soroban tx signing domain separator).
2150
- * These are fixed by the Stellar network itself and must not be overridden.
2151
- */
2152
- export declare const STELLAR_NETWORK_PASSPHRASE: Record<StellarNetwork, string>;
2153
- /**
2154
- * Assert a controller address is configured for the target network.
2155
- * Throws early with a clear message rather than building an XDR that
2156
- * points at `""`.
2157
- */
2158
- export declare function getStellarLendingController(network: StellarNetwork): string;
2159
- /**
2160
- * Assert an aggregator router address is configured for the target network.
2161
- * Used by `buildStellarExecuteStrategyTx` for direct user -> router swaps.
2162
- */
2163
- export declare function getStellarAggregatorRouter(network: StellarNetwork): string;
2164
- /**
2165
- * Assert a governance address is configured for the target network. Used by
2166
- * the governance `propose_*` / `execute` / `execute_*` builders.
2167
- */
2168
- export declare function getStellarGovernance(network: StellarNetwork): string;
2169
- declare const STELLAR_SWAP_VENUES: readonly [
2170
- "Soroswap",
2171
- "Aquarius",
2172
- "Phoenix",
2173
- "Sushi",
2174
- "CometDex"
2175
- ];
2176
- export type StellarSwapVenue = (typeof STELLAR_SWAP_VENUES)[number];
2177
- export interface StellarStrategySwapHopInput {
2178
- amountOut: string;
2179
- pool: string;
2180
- tokenIn: string;
2181
- tokenOut: string;
2182
- venue: StellarSwapVenue;
2183
- }
2184
- export interface StellarStrategySwapPathInput {
2185
- hops: StellarStrategySwapHopInput[];
2186
- splitPpm: number;
2187
- }
2188
- export interface StellarStrategyPayloadInput {
2189
- paths: StellarStrategySwapPathInput[];
2190
- referralId?: number | string;
2191
- tokenIn: string;
2192
- tokenOut: string;
2193
- totalMinOut: string;
2194
- }
2195
- export type StellarStrategySwapInput = string | Uint8Array | {
2196
- routeXdr: string;
2197
- } | {
2198
- swapXdr: string;
2199
- } | {
2200
- bytes: string | Uint8Array;
2201
- } | StellarStrategyPayloadInput;
2202
- /**
2203
- * Stellar `G...` public key of the caller (tx source account).
2204
- */
2205
- export type StellarAccountAddress = string;
2206
- export interface StellarBuilderOptions {
2207
- network: StellarNetwork;
2208
- caller: StellarAccountAddress;
2209
- /**
2210
- * Current sequence number of the caller account, as a decimal string.
2211
- * Callers fetch this from Soroban RPC (`server.getAccount(caller)`) before
2212
- * building. Keeping it as an input (rather than fetching inside the builder)
2213
- * makes builders sync-friendly, RPC-free, and deterministic for snapshot tests.
2214
- */
2215
- sourceSequence: string;
2216
- /**
2217
- * Override the controller contract address. Normally resolved from env via
2218
- * `getStellarLendingController(network)` — override is for tests and
2219
- * preview/staging deployments.
2220
- */
2221
- controllerAddress?: string;
2222
- /**
2223
- * Override the governance (timelock) contract address. Normally resolved from
2224
- * env via `getStellarGovernance(network)` — override is for tests and
2225
- * preview/staging deployments. Required (env or override) for the governance
2226
- * `propose_*` / `execute` / `execute_*` builders.
2227
- */
2228
- governanceAddress?: string;
2229
- /** Base fee in stroops (default BASE_FEE = "100"). */
2230
- fee?: string;
2231
- /** Tx timeout in seconds (default 300). */
2232
- timeoutSeconds?: number;
2233
- }
2234
- export interface BuiltStellarTx {
2235
- /** Unsigned transaction XDR (base64) ready for wallet signing. */
2236
- xdr: string;
2237
- }
2238
- /**
2239
- * Input shape for the Stellar-specific `swap` payload carried on
2240
- * `MultiplyArgs.steps`, `SwapDebtArgs.steps`, `SwapCollateralArgs.steps`, and
2241
- * `RepayDebtWithCollateralArgs.steps`.
2242
- *
2243
- * `@xoxno/types` declares `steps: unknown` on these DTOs so every chain owns
2244
- * its own encoding. On Stellar, callers pass opaque aggregator strategy bytes,
2245
- * normally the quote response `routeXdr` (base64 ScVal XDR) or `{ routeXdr }`.
2246
- * The lending controller forwards those bytes to the aggregator and does not
2247
- * decode the aggregator route.
2248
- */
2249
- export type StellarSwapStepsInput = StellarStrategySwapInput;
2250
- export type StellarSwapHopInput = StellarStrategySwapHopInput;
2251
- export type StellarSwapPathInput = StellarStrategySwapPathInput;
2252
- /**
2253
- * Assemble an unsigned XDR that invokes a single Soroban contract method.
2254
- *
2255
- * Uses a synthetic `Account(caller, sourceSequence)` — no RPC call. The
2256
- * returned XDR still needs preparation (simulation to populate Soroban
2257
- * footprint + auth entries + resource fees) before signing. The UI layer
2258
- * does this via `rpc.Server.prepareTransaction`.
2259
- */
2260
- export declare function buildTx(opts: StellarBuilderOptions, method: string, params: xdr.ScVal[]): BuiltStellarTx;
2261
- export interface StellarTokenAmount {
2262
- token: string;
2263
- amount: string;
2264
- }
2265
- export interface StellarSupplyBatchArgs {
2266
- accountNonce?: number;
2267
- eModeCategory?: number;
2268
- assets: ReadonlyArray<StellarTokenAmount>;
2269
- }
2270
- export interface StellarBorrowBatchArgs {
2271
- accountNonce: number;
2272
- borrows: ReadonlyArray<StellarTokenAmount>;
2273
- }
2274
- export interface StellarWithdrawBatchArgs {
2275
- accountNonce: number;
2276
- withdrawals: ReadonlyArray<StellarTokenAmount>;
2277
- /**
2278
- * Optional recipient override (`C...` or `G...`). The pool pays the
2279
- * withdrawn tokens to this address instead of the caller. Omit for the
2280
- * standard flow — the contract arg is still sent, encoded as
2281
- * `Option::None` (ScVal void), which the controller resolves to the
2282
- * caller.
2283
- */
2284
- to?: string;
2285
- }
2286
- export interface StellarRepayBatchArgs {
2287
- accountNonce: number;
2288
- payments: ReadonlyArray<StellarTokenAmount>;
2289
- }
2290
- /**
2291
- * supply(caller, account_id: u64, e_mode_category: u32, assets: Vec<(Address, i128)>)
2292
- */
2293
- export declare function buildStellarSupplyBatchTx(opts: StellarBuilderOptions, args: StellarSupplyBatchArgs): BuiltStellarTx;
2294
- /**
2295
- * @xoxno/types `SupplyArgs` is a single-asset shape; the Stellar contract
2296
- * expects a batch — we wrap the single asset in a 1-element Vec.
2297
- */
2298
- export declare function buildStellarSupplyTx(opts: StellarBuilderOptions, args: SupplyArgs): BuiltStellarTx;
2299
- export declare function buildStellarBorrowBatchTx(opts: StellarBuilderOptions, args: StellarBorrowBatchArgs): BuiltStellarTx;
2300
- /**
2301
- * borrow(caller, account_id: u64, borrows: Vec<(Address, i128)>)
2302
- */
2303
- export declare function buildStellarBorrowTx(opts: StellarBuilderOptions, args: BorrowArgs): BuiltStellarTx;
2304
- export declare function buildStellarWithdrawBatchTx(opts: StellarBuilderOptions, args: StellarWithdrawBatchArgs): BuiltStellarTx;
2305
- /**
2306
- * withdraw(caller, account_id: u64, withdrawals: Vec<(Address, i128)>,
2307
- * to: Option<Address>) — `to` is always sent; absent means the caller
2308
- * receives the funds.
2309
- */
2310
- export declare function buildStellarWithdrawTx(opts: StellarBuilderOptions, args: WithdrawArgs): BuiltStellarTx;
2311
- export declare function buildStellarRepayBatchTx(opts: StellarBuilderOptions, args: StellarRepayBatchArgs): BuiltStellarTx;
2312
- /**
2313
- * repay(caller, account_id: u64, payments: Vec<(Address, i128)>)
2314
- */
2315
- export declare function buildStellarRepayTx(opts: StellarBuilderOptions, args: RepayArgs): BuiltStellarTx;
2316
- /**
2317
- * liquidate(liquidator, account_id: u64, debt_payments: Vec<(Address, i128)>)
2318
- */
2319
- export declare function buildStellarLiquidateTx(opts: StellarBuilderOptions, args: LiquidateArgs): BuiltStellarTx;
2320
- /**
2321
- * flash_loan(caller, asset, amount: i128, receiver, data: Bytes)
2322
- */
2323
- export declare function buildStellarFlashLoanTx(opts: StellarBuilderOptions, args: FlashLoanArgs): BuiltStellarTx;
2324
- /**
2325
- * multiply(caller, account_id, e_mode_category, collateral_token,
2326
- * debt_to_flash_loan: i128, debt_token, mode: PositionMode,
2327
- * swap: Bytes, initial_payment: Option<(Address, i128)>,
2328
- * convert_swap: Option<Bytes>) -> u64
2329
- *
2330
- * `mode` is a repr(u32) `PositionMode` → encoded as `scvU32`. The two trailing
2331
- * `Option`s seed an optional initial collateral payment and a secondary swap
2332
- * converting it into the collateral token; both omit to Soroban `Void`.
2333
- */
2334
- export declare function buildStellarMultiplyTx(opts: StellarBuilderOptions, args: MultiplyArgs): BuiltStellarTx;
2335
- /**
2336
- * swap_debt(caller, account_id, existing_debt_token, new_debt_amount: i128,
2337
- * new_debt_token, steps: Bytes)
2338
- */
2339
- export declare function buildStellarSwapDebtTx(opts: StellarBuilderOptions, args: SwapDebtArgs): BuiltStellarTx;
2340
- /**
2341
- * swap_collateral(caller, account_id, current_collateral, from_amount: i128,
2342
- * new_collateral, steps: Bytes)
2343
- */
2344
- export declare function buildStellarSwapCollateralTx(opts: StellarBuilderOptions, args: SwapCollateralArgs): BuiltStellarTx;
2345
- /**
2346
- * repay_debt_with_collateral(caller, account_id, collateral_token,
2347
- * collateral_amount: i128, debt_token,
2348
- * steps: Bytes, close_position: bool)
2349
- */
2350
- export declare function buildStellarRepayDebtWithCollateralTx(opts: StellarBuilderOptions, args: RepayDebtWithCollateralArgs): BuiltStellarTx;
2351
- /** `InterestRateModel` — 8 RAY rates + reserve factor bps. */
2352
- export declare const encodeInterestRateModel: (m: InterestRateModelDto) => xdr.ScVal;
2353
- /** `MarketParamsRaw` — `InterestRateModel` plus the pool asset identity. */
2354
- export declare const encodeMarketParamsRaw: (p: MarketParamsRawDto) => xdr.ScVal;
2355
- /** `AssetConfigRaw` — 11 risk/limit fields. */
2356
- export declare const encodeAssetConfigRaw: (c: AssetConfigRawDto) => xdr.ScVal;
2357
- /** `PositionLimits` — per-account supply/borrow position caps. */
2358
- export declare const encodePositionLimits: (l: PositionLimitsDto) => xdr.ScVal;
2359
- /** `OracleSourceConfigInput` data-enum — `Reflector(...)` | `RedStone(...)`. */
2360
- export declare const encodeOracleSourceConfigInput: (src: OracleSourceConfigInputDto) => xdr.ScVal;
2361
- /** `MarketOracleConfigInput` — strategy + primary/anchor sources + sanity bounds. */
2362
- export declare const encodeMarketOracleConfigInput: (cfg: MarketOracleConfigInputDto) => xdr.ScVal;
2363
- export interface RoleGrantArgs {
2364
- account: string;
2365
- role: string;
2366
- }
2367
- export interface TransferOwnershipArgs {
2368
- newOwner: string;
2369
- liveUntilLedger: number;
2370
- }
2371
- export interface EditAssetConfigArgs {
2372
- asset: string;
2373
- config: AssetConfigRawDto;
2374
- }
2375
- export interface EModeCategoryEditArgs {
2376
- id: number;
2377
- ltv: number;
2378
- threshold: number;
2379
- bonus: number;
2380
- }
2381
- export interface EModeAssetArgs {
2382
- asset: string;
2383
- categoryId: number;
2384
- canCollateral: boolean;
2385
- canBorrow: boolean;
2386
- }
2387
- export interface RemoveEModeAssetArgs {
2388
- asset: string;
2389
- categoryId: number;
2390
- }
2391
- export interface ConfigureMarketOracleArgs {
2392
- asset: string;
2393
- config: MarketOracleConfigInputDto;
2394
- }
2395
- export interface EditOracleToleranceArgs {
2396
- asset: string;
2397
- firstTolerance: number;
2398
- lastTolerance: number;
2399
- }
2400
- export interface CreateLiquidityPoolArgs {
2401
- asset: string;
2402
- params: MarketParamsRawDto;
2403
- config: AssetConfigRawDto;
2404
- }
2405
- export interface UpgradeLiquidityPoolParamsArgs {
2406
- asset: string;
2407
- params: InterestRateModelDto;
2408
- }
2409
- export interface UpgradeLiquidityPoolArgs {
2410
- asset: string;
2411
- wasmHash: string;
2412
- }
2413
- export interface RewardEntry {
2414
- token: string;
2415
- amount: string;
2416
- }
2417
- export interface UpdateAccountThresholdArgs {
2418
- asset: string;
2419
- hasRisks: boolean;
2420
- accountNonces: number[];
2421
- }
2422
- /** upgrade(new_wasm_hash: BytesN<32>) */
2423
- export declare function buildStellarUpgradeControllerTx(opts: StellarBuilderOptions, args: {
2424
- wasmHash: string;
2425
- }): BuiltStellarTx;
2426
- /** migrate(new_version: u32) */
2427
- export declare function buildStellarMigrateTx(opts: StellarBuilderOptions, args: {
2428
- newVersion: number;
2429
- }): BuiltStellarTx;
2430
- /** pause() */
2431
- export declare function buildStellarPauseTx(opts: StellarBuilderOptions): BuiltStellarTx;
2432
- /** unpause() */
2433
- export declare function buildStellarUnpauseTx(opts: StellarBuilderOptions): BuiltStellarTx;
2434
- /** grant_role(account: Address, role: Symbol) */
2435
- export declare function buildStellarGrantRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs): BuiltStellarTx;
2436
- /** revoke_role(account: Address, role: Symbol) */
2437
- export declare function buildStellarRevokeRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs): BuiltStellarTx;
2438
- /** transfer_ownership(new_owner: Address, live_until_ledger: u32) */
2439
- export declare function buildStellarTransferOwnershipTx(opts: StellarBuilderOptions, args: TransferOwnershipArgs): BuiltStellarTx;
2440
- /** accept_ownership() */
2441
- export declare function buildStellarAcceptOwnershipTx(opts: StellarBuilderOptions): BuiltStellarTx;
2442
- /** set_aggregator(addr: Address) — #[only_owner] */
2443
- export declare function buildStellarSetAggregatorTx(opts: StellarBuilderOptions, args: {
2444
- aggregator: string;
2445
- }): BuiltStellarTx;
2446
- /** set_accumulator(addr: Address) — #[only_owner] */
2447
- export declare function buildStellarSetAccumulatorTx(opts: StellarBuilderOptions, args: {
2448
- accumulator: string;
2449
- }): BuiltStellarTx;
2450
- /** set_liquidity_pool_template(hash: BytesN<32>) — #[only_owner] */
2451
- export declare function buildStellarSetLiquidityPoolTemplateTx(opts: StellarBuilderOptions, args: {
2452
- wasmHash: string;
2453
- }): BuiltStellarTx;
2454
- /** edit_asset_config(asset: Address, cfg: AssetConfigRaw) — #[only_owner] */
2455
- export declare function buildStellarEditAssetConfigTx(opts: StellarBuilderOptions, args: EditAssetConfigArgs): BuiltStellarTx;
2456
- /** set_position_limits(limits: PositionLimits) — #[only_owner] */
2457
- export declare function buildStellarSetPositionLimitsTx(opts: StellarBuilderOptions, args: PositionLimitsDto): BuiltStellarTx;
2458
- /** add_e_mode_category(ltv: u32, threshold: u32, bonus: u32) -> u32 — #[only_owner] */
2459
- export declare function buildStellarAddEModeCategoryTx(opts: StellarBuilderOptions, args: {
2460
- ltv: number;
2461
- threshold: number;
2462
- bonus: number;
2463
- }): BuiltStellarTx;
2464
- /** edit_e_mode_category(id: u32, ltv: u32, threshold: u32, bonus: u32) — #[only_owner] */
2465
- export declare function buildStellarEditEModeCategoryTx(opts: StellarBuilderOptions, args: EModeCategoryEditArgs): BuiltStellarTx;
2466
- /** remove_e_mode_category(id: u32) — #[only_owner] */
2467
- export declare function buildStellarRemoveEModeCategoryTx(opts: StellarBuilderOptions, args: {
2468
- id: number;
2469
- }): BuiltStellarTx;
2470
- /** add_asset_to_e_mode_category(asset, category_id, can_collateral, can_borrow) — #[only_owner] */
2471
- export declare function buildStellarAddAssetToEModeCategoryTx(opts: StellarBuilderOptions, args: EModeAssetArgs): BuiltStellarTx;
2472
- /** edit_asset_in_e_mode_category(asset, category_id, can_collateral, can_borrow) — #[only_owner] */
2473
- export declare function buildStellarEditAssetInEModeCategoryTx(opts: StellarBuilderOptions, args: EModeAssetArgs): BuiltStellarTx;
2474
- /** remove_asset_from_e_mode(asset: Address, category_id: u32) — #[only_owner] */
2475
- export declare function buildStellarRemoveAssetFromEModeTx(opts: StellarBuilderOptions, args: RemoveEModeAssetArgs): BuiltStellarTx;
2476
- /** approve_token(token: Address) — #[only_owner] */
2477
- export declare function buildStellarApproveTokenTx(opts: StellarBuilderOptions, args: {
2478
- token: string;
2479
- }): BuiltStellarTx;
2480
- /** revoke_token(token: Address) — #[only_owner] */
2481
- export declare function buildStellarRevokeTokenTx(opts: StellarBuilderOptions, args: {
2482
- token: string;
2483
- }): BuiltStellarTx;
2484
- /** configure_market_oracle(caller, asset, cfg) — #[only_role(caller, "ORACLE")] */
2485
- export declare function buildStellarConfigureMarketOracleTx(opts: StellarBuilderOptions, args: ConfigureMarketOracleArgs): BuiltStellarTx;
2486
- /** edit_oracle_tolerance(caller, asset, first_tolerance, last_tolerance) — #[only_role(caller, "ORACLE")] */
2487
- export declare function buildStellarEditOracleToleranceTx(opts: StellarBuilderOptions, args: EditOracleToleranceArgs): BuiltStellarTx;
2488
- /** disable_token_oracle(caller, asset) — #[only_role(caller, "ORACLE")] */
2489
- export declare function buildStellarDisableTokenOracleTx(opts: StellarBuilderOptions, args: {
2490
- asset: string;
2491
- }): BuiltStellarTx;
2492
- /** update_indexes(caller, assets: Vec<Address>) — #[only_role(caller, "KEEPER")] */
2493
- export declare function buildStellarUpdateIndexesTx(opts: StellarBuilderOptions, args: {
2494
- assets: string[];
2495
- }): BuiltStellarTx;
2496
- /** renew_account(caller, account_id: u64) */
2497
- export declare function buildStellarRenewAccountTx(opts: StellarBuilderOptions, args: {
2498
- accountNonce: number;
2499
- }): BuiltStellarTx;
2500
- /** create_liquidity_pool(asset, params: MarketParamsRaw, config: AssetConfigRaw) -> Address — #[only_owner] */
2501
- export declare function buildStellarCreateLiquidityPoolTx(opts: StellarBuilderOptions, args: CreateLiquidityPoolArgs): BuiltStellarTx;
2502
- /** upgrade_liquidity_pool_params(asset, params: InterestRateModel) — #[only_owner] */
2503
- export declare function buildStellarUpgradeLiquidityPoolParamsTx(opts: StellarBuilderOptions, args: UpgradeLiquidityPoolParamsArgs): BuiltStellarTx;
2504
- /** upgrade_liquidity_pool(asset, new_wasm_hash: BytesN<32>) — #[only_owner] */
2505
- export declare function buildStellarUpgradeLiquidityPoolTx(opts: StellarBuilderOptions, args: UpgradeLiquidityPoolArgs): BuiltStellarTx;
2506
- /** claim_revenue(caller, assets: Vec<Address>) -> Vec<i128> — #[only_role(caller, "REVENUE")] */
2507
- export declare function buildStellarClaimRevenueTx(opts: StellarBuilderOptions, args: {
2508
- assets: string[];
2509
- }): BuiltStellarTx;
2510
- /** add_rewards(caller, rewards: Vec<(Address, i128)>) — #[only_role(caller, "REVENUE")] */
2511
- export declare function buildStellarAddRewardsTx(opts: StellarBuilderOptions, args: {
2512
- rewards: RewardEntry[];
2513
- }): BuiltStellarTx;
2514
- /** update_account_threshold(caller, asset, has_risks, account_ids: Vec<u64>) — #[only_role(caller, "KEEPER")] */
2515
- export declare function buildStellarUpdateAccountThresholdTx(opts: StellarBuilderOptions, args: UpdateAccountThresholdArgs): BuiltStellarTx;
2516
- /**
2517
- * A `salt: BytesN<32>` for a governance proposal/execution. Accepts a 32-byte
2518
- * hex string (optionally `0x`-prefixed) or a 32-byte `Buffer`/`Uint8Array`.
2519
- */
2520
- export type StellarGovernanceSalt = string | Buffer | Uint8Array;
2521
- /** The 32-zero-byte `BytesN<32>` predecessor used for every op in this system. */
2522
- export declare const STELLAR_GOVERNANCE_ZERO_PREDECESSOR: string;
2523
- export interface AddEModeCategoryArgs {
2524
- ltv: number;
2525
- threshold: number;
2526
- bonus: number;
2527
- }
2528
- export interface RemoveEModeCategoryArgs {
2529
- id: number;
2530
- }
2531
- export interface UpgradeArgs {
2532
- wasmHash: string;
2533
- }
2534
- export interface MigrateArgs {
2535
- newVersion: number;
2536
- }
2537
- export interface UpdateDelayArgs {
2538
- newDelay: number;
2539
- }
2540
- /** propose_set_aggregator(proposer, addr: Address, salt) */
2541
- export declare function buildStellarProposeSetAggregatorTx(opts: StellarBuilderOptions, args: {
2542
- aggregator: string;
2543
- }, salt: StellarGovernanceSalt): BuiltStellarTx;
2544
- /** propose_set_accumulator(proposer, addr: Address, salt) */
2545
- export declare function buildStellarProposeSetAccumulatorTx(opts: StellarBuilderOptions, args: {
2546
- accumulator: string;
2547
- }, salt: StellarGovernanceSalt): BuiltStellarTx;
2548
- /** propose_set_pool_template(proposer, hash: BytesN<32>, salt) */
2549
- export declare function buildStellarProposeSetPoolTemplateTx(opts: StellarBuilderOptions, args: {
2550
- wasmHash: string;
2551
- }, salt: StellarGovernanceSalt): BuiltStellarTx;
2552
- /** propose_edit_asset_config(proposer, asset: Address, cfg: AssetConfigRaw, salt) */
2553
- export declare function buildStellarProposeEditAssetConfigTx(opts: StellarBuilderOptions, args: EditAssetConfigArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2554
- /** propose_set_position_limits(proposer, limits: PositionLimits, salt) */
2555
- export declare function buildStellarProposeSetPositionLimitsTx(opts: StellarBuilderOptions, args: PositionLimitsDto, salt: StellarGovernanceSalt): BuiltStellarTx;
2556
- /** propose_set_min_borrow_collat(proposer, floor_wad: i128, salt) */
2557
- export declare function buildStellarProposeSetMinBorrowCollatTx(opts: StellarBuilderOptions, args: {
2558
- floorWad: string;
2559
- }, salt: StellarGovernanceSalt): BuiltStellarTx;
2560
- /** propose_add_e_mode_category(proposer, ltv: u32, threshold: u32, bonus: u32, salt) */
2561
- export declare function buildStellarProposeAddEModeCategoryTx(opts: StellarBuilderOptions, args: AddEModeCategoryArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2562
- /** propose_edit_e_mode_category(proposer, id: u32, ltv: u32, threshold: u32, bonus: u32, salt) */
2563
- export declare function buildStellarProposeEditEModeCategoryTx(opts: StellarBuilderOptions, args: EModeCategoryEditArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2564
- /** propose_remove_e_mode_category(proposer, id: u32, salt) */
2565
- export declare function buildStellarProposeRemoveEModeCategoryTx(opts: StellarBuilderOptions, args: RemoveEModeCategoryArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2566
- /** propose_add_asset_to_e_mode(proposer, asset, category_id, can_collateral, can_borrow, salt) */
2567
- export declare function buildStellarProposeAddAssetToEModeTx(opts: StellarBuilderOptions, args: EModeAssetArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2568
- /** propose_edit_asset_in_e_mode(proposer, asset, category_id, can_collateral, can_borrow, salt) */
2569
- export declare function buildStellarProposeEditAssetInEModeTx(opts: StellarBuilderOptions, args: EModeAssetArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2570
- /** propose_remove_asset_from_e_mode(proposer, asset: Address, category_id: u32, salt) */
2571
- export declare function buildStellarProposeRemoveAssetFromEModeTx(opts: StellarBuilderOptions, args: RemoveEModeAssetArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2572
- /** propose_approve_token(proposer, token: Address, salt) */
2573
- export declare function buildStellarProposeApproveTokenTx(opts: StellarBuilderOptions, args: {
2574
- token: string;
2575
- }, salt: StellarGovernanceSalt): BuiltStellarTx;
2576
- /** propose_revoke_token(proposer, token: Address, salt) */
2577
- export declare function buildStellarProposeRevokeTokenTx(opts: StellarBuilderOptions, args: {
2578
- token: string;
2579
- }, salt: StellarGovernanceSalt): BuiltStellarTx;
2580
- /** propose_create_liquidity_pool(proposer, asset, params: MarketParamsRaw, config: AssetConfigRaw, salt) */
2581
- export declare function buildStellarProposeCreateLiquidityPoolTx(opts: StellarBuilderOptions, args: CreateLiquidityPoolArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2582
- /** propose_upgrade_pool_params(proposer, asset, params: InterestRateModel, salt) */
2583
- export declare function buildStellarProposeUpgradePoolParamsTx(opts: StellarBuilderOptions, args: UpgradeLiquidityPoolParamsArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2584
- /** propose_deploy_pool(proposer, salt) */
2585
- export declare function buildStellarProposeDeployPoolTx(opts: StellarBuilderOptions, salt: StellarGovernanceSalt): BuiltStellarTx;
2586
- /** propose_upgrade_pool(proposer, new_wasm_hash: BytesN<32>, salt) */
2587
- export declare function buildStellarProposeUpgradePoolTx(opts: StellarBuilderOptions, args: {
2588
- wasmHash: string;
2589
- }, salt: StellarGovernanceSalt): BuiltStellarTx;
2590
- /** propose_grant_controller_role(proposer, account: Address, role: Symbol, salt) */
2591
- export declare function buildStellarProposeGrantControllerRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2592
- /** propose_revoke_controller_role(proposer, account: Address, role: Symbol, salt) */
2593
- export declare function buildStellarProposeRevokeControllerRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2594
- /** propose_upgrade_controller(proposer, new_wasm_hash: BytesN<32>, salt) */
2595
- export declare function buildStellarProposeUpgradeControllerTx(opts: StellarBuilderOptions, args: UpgradeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2596
- /** propose_migrate_controller(proposer, new_version: u32, salt) */
2597
- export declare function buildStellarProposeMigrateControllerTx(opts: StellarBuilderOptions, args: MigrateArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2598
- /** propose_transfer_ctrl_ownership(proposer, new_owner: Address, live_until_ledger: u32, salt) */
2599
- export declare function buildStellarProposeTransferCtrlOwnershipTx(opts: StellarBuilderOptions, args: TransferOwnershipArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2600
- /**
2601
- * propose_configure_market_oracle(proposer, asset, cfg: MarketOracleConfigInput, salt)
2602
- *
2603
- * The SDK passes the oracle INPUT args verbatim; the contract resolves the
2604
- * input to a resolved config at propose time (do NOT resolve in the SDK).
2605
- */
2606
- export declare function buildStellarProposeConfigureMarketOracleTx(opts: StellarBuilderOptions, args: ConfigureMarketOracleArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2607
- /** propose_edit_oracle_tolerance(proposer, asset, first_tolerance_bps: u32, last_tolerance_bps: u32, salt) */
2608
- export declare function buildStellarProposeEditOracleToleranceTx(opts: StellarBuilderOptions, args: EditOracleToleranceArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2609
- /** propose_governance_upgrade(proposer, new_wasm_hash: BytesN<32>, salt) */
2610
- export declare function buildStellarProposeGovernanceUpgradeTx(opts: StellarBuilderOptions, args: UpgradeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2611
- /** propose_update_delay(proposer, new_delay: u32, salt) */
2612
- export declare function buildStellarProposeUpdateDelayTx(opts: StellarBuilderOptions, args: UpdateDelayArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2613
- /** propose_grant_governance_role(proposer, account: Address, role: Symbol, salt) */
2614
- export declare function buildStellarProposeGrantGovernanceRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2615
- /** propose_revoke_governance_role(proposer, account: Address, role: Symbol, salt) */
2616
- export declare function buildStellarProposeRevokeGovernanceRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2617
- /** propose_transfer_gov_own(proposer, new_owner: Address, live_until_ledger: u32, salt) */
2618
- export declare function buildStellarProposeTransferGovOwnTx(opts: StellarBuilderOptions, args: TransferOwnershipArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2619
- export interface StellarGovernanceExecuteArgs {
2620
- /** Controller (or other) contract the scheduled op targets. */
2621
- target: string;
2622
- /** Controller method name → Soroban `Symbol`. */
2623
- functionName: string;
2624
- /**
2625
- * The controller-call args, each a base64 ScVal XDR string. These must be the
2626
- * SAME ScVals the matching `propose_*` scheduled (the timelock hashes them
2627
- * into the op id), in the controller method's arg order. Reconstructed via
2628
- * `xdr.ScVal.fromXDR(s, 'base64')`.
2629
- */
2630
- argsXdr: string[];
2631
- /** `salt: BytesN<32>` — the same salt used at propose time. */
2632
- salt: StellarGovernanceSalt;
2633
- /**
2634
- * `predecessor: BytesN<32>` — defaults to the 32-zero-byte value used for
2635
- * every op in this system. Override only if a non-zero predecessor is used.
2636
- */
2637
- predecessor?: StellarGovernanceSalt;
2638
- }
2639
- /**
2640
- * Generic `execute(executor, target, function, args, predecessor, salt)` for a
2641
- * controller-targeted op. `executor = None` (open execution), `target` is the
2642
- * controller `Address`, `function` is a `Symbol`, `args` is the `Vec<Val>`
2643
- * reconstructed from `argsXdr`, `predecessor` defaults to 32 zero bytes.
2644
- */
2645
- export declare function buildStellarGovernanceExecuteTx(opts: StellarBuilderOptions, args: StellarGovernanceExecuteArgs): BuiltStellarTx;
2646
- /** execute_governance_upgrade(executor=None, new_wasm_hash: BytesN<32>, salt) */
2647
- export declare function buildStellarGovernanceExecuteGovernanceUpgradeTx(opts: StellarBuilderOptions, args: UpgradeArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2648
- /** execute_update_delay(executor=None, new_delay: u32, salt) */
2649
- export declare function buildStellarGovernanceExecuteUpdateDelayTx(opts: StellarBuilderOptions, args: UpdateDelayArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2650
- /** execute_grant_governance_role(executor=None, account: Address, role: Symbol, salt) */
2651
- export declare function buildStellarGovernanceExecuteGrantGovernanceRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2652
- /** execute_revoke_governance_role(executor=None, account: Address, role: Symbol, salt) */
2653
- export declare function buildStellarGovernanceExecuteRevokeGovernanceRoleTx(opts: StellarBuilderOptions, args: RoleGrantArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2654
- /** execute_transfer_gov_own(executor=None, new_owner: Address, live_until_ledger: u32, salt) */
2655
- export declare function buildStellarGovernanceExecuteTransferGovOwnTx(opts: StellarBuilderOptions, args: TransferOwnershipArgs, salt: StellarGovernanceSalt): BuiltStellarTx;
2656
- /**
2657
- * Serialize a live `xdr.ScVal` to base64 XDR for the string-only decoder API.
2658
- * Use this if you hold parsed ScVals (e.g. from the high-level RPC client);
2659
- * `.toXDR` is wire-format/structural, so it is safe across SDK copies.
2660
- */
2661
- export declare const toBase64Xdr: (scv: {
2662
- toXDR(format: "base64"): string;
2663
- }) => string;
2664
- /** Build the `"<domain>:<action>"` dispatch key from the event topic ScVals. */
2665
- export declare const stellarLendingDispatchKey: (topicsB64: readonly string[]) => string;
2666
- /** Topic keys this SDK can decode (the 19 controller contractevents). */
2667
- export declare const STELLAR_LENDING_TOPICS: readonly string[];
2668
- /**
2669
- * Decode a Stellar lending controller event from its base64-XDR topics and
2670
- * data (exactly as Soroban RPC `getEvents` delivers them). Returns `null` for a
2671
- * topic this SDK does not decode (e.g. access-control `role_granted` events),
2672
- * so consumers can skip unknown events without throwing.
2673
- */
2674
- export declare function decodeStellarLendingEvent(topicsB64: readonly string[], dataB64: string): StellarLendingDecodedEvent | null;
2675
- /**
2676
- * Stellar lending activity-id derivation: the inputs that compose
2677
- * `NftActivityDoc.id` (`${txHash}-${eventIdentifier}-${eventOrder}`).
2678
- *
2679
- * The activity-type string values mirror `@xoxno/types` `XoxnoLendingActivity`,
2680
- * inlined rather than imported since `@xoxno/types` does not re-export its enums
2681
- * on its top-level type surface.
2682
- */
2683
- /** Synthetic NFT collection ticker for Stellar lending accounts. */
2684
- export declare const XOXNO_LENDING_STELLAR_TICKER = "XLENDXLM-a7c9f3";
2685
- /**
2686
- * A child delta's contribution to `eventOrder`: `base * STRIDE + childIndex`.
2687
- * The stride bounds the number of child deltas per base event before two base
2688
- * events could collide.
2689
- */
2690
- export declare const SYNTHETIC_EVENT_ORDER_STRIDE = 10000;
2691
- /** `XoxnoLendingActivity` values used by the position activity mapping. */
2692
- export type StellarLendingActivityType = "lendingUpdateAccountPosition" | "lendingLiquidateRepayDebt" | "lendingLiquidateSeizeCollateral" | "lendingUpdateAccountParameters";
2693
- /**
2694
- * Synthetic NFT identifier for a Stellar lending account, e.g.
2695
- * `XLENDXLM-a7c9f3-2a` for account 42. The u64 account id is rendered as
2696
- * even-length lowercase hex.
2697
- */
2698
- export declare function buildStellarLendingIdentifier(accountId: string): string;
2699
- /**
2700
- * Extract the base event order from a Soroban RPC event id (`<ledger>-<index>`).
2701
- * Returns 0 when the id is malformed or has no index segment.
2702
- */
2703
- export declare function extractEventOrder(eventId: string): number;
2704
- /**
2705
- * Stable per-child ordering within one base event:
2706
- * `baseEventOrder * 10_000 + childIndex`. Keeps multiple deltas emitted by a
2707
- * single transaction deterministically ordered and collision-free.
2708
- */
2709
- export declare function syntheticEventOrder(baseEventOrder: number, childIndex?: number): number;
2710
- /**
2711
- * Map a position-delta `action` symbol to its `XoxnoLendingActivity` value.
2712
- * The tag list is authoritative in `rs-lending-xlm common/src/events.rs`.
2713
- */
2714
- export declare function mapStellarPositionActivityType(action?: string): StellarLendingActivityType;
2715
- /**
2716
- * Resolved token entry returned by the quote server's tokens endpoint.
2717
- * Mirrors the indexer's `TokenEntry` JSON exactly.
2718
- */
2719
- export interface StellarQuoteToken {
2720
- /** Canonical token id. `C…` for Soroban contracts; `CODE:GISSUER…`
2721
- * for Classic; `XLM` for native. */
2722
- id: string;
2723
- kind: StellarTokenKind;
2724
- decimals: number;
2725
- /** Soroban Asset Contract peer for Classic assets (null otherwise). */
2726
- sacPeer: string | null;
2727
- /** Classic asset code (for Classic / SAC entries; null for Soroban). */
2728
- code: string | null;
2729
- /** Number of pools touching this token in the current snapshot. */
2730
- degree: number;
2731
- }
2732
- export interface StellarQuoteFetchOptions {
2733
- /** Network selects which base URL to hit. */
2734
- network: StellarNetwork;
2735
- /** Override the resolved base URL (useful for tests / preview). */
2736
- baseUrl?: string;
2737
- /** Per-call fetch options (signal, headers, etc.). */
2738
- fetchOptions?: RequestInit;
2739
- }
2740
- /**
2741
- * Fetch a route quote from the Stellar aggregator quote server.
2742
- *
2743
- * Forward mode: pass `amountIn` to compute the maximum reachable
2744
- * `amountOut`. Reverse mode: pass `amountOut` to compute the minimum
2745
- * `amountIn` that delivers at least that output.
2746
- *
2747
- * Pass both `sender` (G-strkey) and `router` (C-strkey) to receive a
2748
- * ready-to-sign envelope under `transaction.envelopeXdr`. The caller
2749
- * must still run `simulateTransaction` to attach Soroban resource fees
2750
- * before signing.
2751
- */
2752
- export declare function getStellarAggregatorQuote(request: StellarAggregatorQuoteRequestDto, opts: StellarQuoteFetchOptions): Promise<StellarAggregatorQuoteResponseDto>;
2753
- /**
2754
- * List tokens currently indexed by the quote server. Useful to populate
2755
- * pickers or validate that a user-supplied token has on-chain liquidity.
2756
- */
2757
- export declare function getStellarQuoteTokens(opts: StellarQuoteFetchOptions): Promise<StellarQuoteToken[]>;
2758
- export type StellarStrategyPayload = StellarStrategyPayloadInput;
2759
- export type StellarStrategySwap = StellarStrategySwapInput;
2760
- export type StellarStrategySwapHop = StellarStrategySwapHopInput;
2761
- export type StellarStrategySwapPath = StellarStrategySwapPathInput;
2762
- export interface StellarExecuteStrategyBuilderOptions extends StellarBuilderOptions {
2763
- /**
2764
- * Override the resolved aggregator router contract address. Normally
2765
- * resolved from `STELLAR_AGGREGATOR_ROUTER[network]`.
2766
- */
2767
- routerAddress?: string;
2768
- /**
2769
- * Total input amount passed to `execute_strategy` (i128 decimal string).
2770
- * For a quote-derived swap, pass `quote.amountIn`.
2771
- */
2772
- totalIn: string;
2773
- /**
2774
- * Referral identifier used only when the `swap` input is a decoded
2775
- * `StrategyPayload` object and does not already include `referralId`.
2776
- * Quote `routeXdr` already contains the referral chosen by the quote server.
2777
- */
2778
- referralId?: number | string;
2779
- }
2780
- /** @deprecated Use `StellarExecuteStrategyBuilderOptions`. */
2781
- export interface StellarBatchSwapBuilderOptions extends StellarExecuteStrategyBuilderOptions {
2782
- }
2783
- export declare const encodeStrategyPayloadToRouteXdr: (payload: StellarStrategyPayloadInput) => string;
2784
- /**
2785
- * Build an unsigned XDR for a direct user -> aggregator router swap.
2786
- *
2787
- * Pass the quote response `routeXdr` string or `{ routeXdr }` directly when
2788
- * available. Decoded `StrategyPayload` objects are accepted for local tests and
2789
- * custom route builders.
2790
- */
2791
- export declare function buildStellarExecuteStrategyTx(opts: StellarExecuteStrategyBuilderOptions, swap: StellarStrategySwapInput): BuiltStellarTx;
2792
- /**
2793
- * @deprecated The router no longer exposes `batch_execute`; this wrapper now
2794
- * builds `execute_strategy(sender, total_in, swap_xdr)`.
2795
- */
2796
- export declare function buildStellarBatchSwapTx(opts: StellarBatchSwapBuilderOptions, swap: StellarStrategySwapInput): BuiltStellarTx;
2797
- /**
2798
- * Translate a quote-server response into the decoded `StrategyPayload` shape.
2799
- * Prefer `mapQuoteResponseToStrategySwap` when the quote includes `routeXdr`.
2800
- */
2801
- export declare function mapQuoteResponseToStrategyPayload(quote: StellarAggregatorQuoteResponseDto, opts?: {
2802
- referralId?: number | string;
2803
- }): StellarStrategyPayloadInput;
2804
- /**
2805
- * Return the executable quote route when the API provided it; otherwise build
2806
- * the decoded fallback payload from hop/path fields.
2807
- */
2808
- export declare function mapQuoteResponseToStrategySwap(quote: StellarAggregatorQuoteResponseDto, opts?: {
2809
- referralId?: number | string;
2810
- }): StellarStrategySwapInput;
2811
- /** @deprecated Use `mapQuoteResponseToStrategyPayload`. */
2812
- export declare const mapQuoteResponseToAggregatorSwap: typeof mapQuoteResponseToStrategyPayload;
2813
- export declare function tagStellarInvokedContractError(contractId: string, error: unknown): Error;
2814
- /**
2815
- * Simulate a built Soroban envelope (footprint, auth, resource fee) and return
2816
- * prepared base64 XDR. Optionally tag failures with the invoked contract id so
2817
- * UIs can map `Error(Contract, #N)` codes to the right ABI.
2818
- */
2819
- export declare function prepareStellarTxXdr(server: Pick<rpc.Server, "prepareTransaction">, xdr: string, opts?: {
2820
- invokedContractId?: string;
2821
- }): Promise<string>;
2822
- export declare function prepareStellarBuiltTx(server: Pick<rpc.Server, "prepareTransaction">, built: BuiltStellarTx, opts?: {
2823
- invokedContractId?: string;
2824
- }): Promise<string>;
2825
- /**
2826
- * Map MVX `PositionMode` numbering to the Stellar lending controller enum.
2827
- *
2828
- * MVX: None=0, Normal=1, Multiply=2, Long=3, Short=4
2829
- * Stellar: Normal=0, Multiply=1, Long=2, Short=3
2830
- */
2831
- export declare function toStellarPositionMode(mvxMode: number): number;
2832
- /**
2833
- * Placeholder aggregator route when `repay_debt_with_collateral` has
2834
- * `collateral_token === debt_token`. The controller short-circuits and never
2835
- * decodes the route, but the Soroban arg must still be valid `Bytes`.
2836
- */
2837
- export declare function buildSameTokenRepaySwapSteps(token: string, collateralAmount: string): StellarStrategyPayloadInput;
2838
- export interface BuildStellarCctpForwardTxArgs extends StellarBuilderOptions {
2839
- forwarderAddress: string;
2840
- message: string;
2841
- attestation: string;
2842
- /** Default 10_000_000 stroops — CCTP mint_and_forward is resource-heavy. */
2843
- fee?: string;
2844
- /** Default 120 seconds. */
2845
- timeoutSeconds?: number;
2846
- }
2847
- /**
2848
- * Build an unsigned XDR for the Stellar CCTP forwarder `mint_and_forward`.
2849
- */
2850
- export declare function buildStellarCctpForwardTx(opts: BuildStellarCctpForwardTxArgs): BuiltStellarTx;
2851
- export declare function buildSdk(client: XOXNOClient): SDK;
2852
-
2853
- export {};