@xoxno/sdk-js 1.0.169 → 1.0.172

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -617,6 +617,9 @@ sdk.liquid.egld.executeDelegate(...); // string
617
617
  // GET /liquid/egld/execute-undelegate
618
618
  sdk.liquid.egld.executeUndelegate(...); // string
619
619
 
620
+ // GET /liquid/egld/execute-undelegate-providers
621
+ sdk.liquid.egld.executeUndelegateProviders(...); // string
622
+
620
623
  // GET /liquid/egld/protocol-apr
621
624
  sdk.liquid.egld.protocolApr(...); // ProtocolAprType
622
625
 
@@ -779,6 +782,9 @@ sdk.stellarLending.spokes.spokeId("...").holders(...); // TopHoldersDto
779
782
  // GET /stellar-lending/assets/:asset
780
783
  sdk.stellarLending.assets.asset("...")(...); // AssetDto
781
784
 
785
+ // GET /stellar-lending/assets/:asset/page
786
+ sdk.stellarLending.assets.asset("...").page(...); // AssetPageDto
787
+
782
788
  // GET /stellar-lending/assets/:asset/markets
783
789
  sdk.stellarLending.assets.asset("...").markets(...); // AssetMarketDto[]
784
790
 
@@ -10,8 +10,8 @@
10
10
  * Numeric `*Wad`/`*Ray`/`*ScaledRay` fields cross the wire as decimal strings
11
11
  * (1e18 / 1e27 fixed-point); `*Short` fields are already human-readable numbers.
12
12
  */
13
- import type { StellarAssetPage, StellarAssetPageGraphPoint, StellarAssetPageGraphSeries, StellarAssetPageMarket, StellarGovernanceProposalField, StellarGovernanceProposalKind, StellarGovernanceProposalStatus, StellarGovernanceProposalTarget, StellarInitialPaymentMultiplier } from '@xoxno/types/stellar-lending';
14
- export type { StellarAssetPage, StellarAssetPageGraphPoint, StellarAssetPageGraphSeries, StellarAssetPageMarket, };
13
+ import type { StellarGovernanceProposalField, StellarGovernanceProposalKind, StellarGovernanceProposalStatus, StellarGovernanceProposalTarget, StellarInitialPaymentMultiplier } from '@xoxno/types/stellar-lending';
14
+ export type { StellarLendingContext, StellarAssetPage, StellarAssetPageGraphPoint, StellarAssetPageGraphSeries, StellarAssetPageMarket, } from '@xoxno/types/stellar-lending';
15
15
  /** Side selector for an asset's markets table. */
16
16
  export type StellarLendingMarketSide = 'deposit' | 'borrow';
17
17
  /** Side selector for a reserve's top-holders list. */
@@ -13,7 +13,14 @@
13
13
  */
14
14
  import type { StellarAssetListItem, StellarAssetPage, StellarHubListItem, StellarReserveListItem, StellarSpokeListItem, StellarUserActivityItem } from '@xoxno/types/stellar-lending';
15
15
  import type { OurRequestInit, XOXNOClient } from '../../utils/api';
16
- import type { StellarAccountPositions, StellarAsset, StellarAssetMarket, StellarGovernanceProposalsPage, StellarHub, StellarLendingHoldersSide, StellarLendingMarketSide, StellarMarketGraph, StellarMarketGraphQuery, StellarReserve, StellarSpoke, StellarTopHolders } from './lending-read-types';
16
+ import type { StellarAccountPositions, StellarAsset, StellarAssetMarket, StellarGovernanceProposalsPage, StellarHub, StellarLendingHoldersSide, StellarLendingContext, StellarLendingMarketSide, StellarMarketGraph, StellarMarketGraphQuery, StellarReserve, StellarSpoke, StellarTopHolders } from './lending-read-types';
17
+ type StellarReservesParams = {
18
+ hubId?: number;
19
+ spokeId?: number;
20
+ asset?: string;
21
+ };
22
+ /** Aggregate context for Stellar lending landing/read surfaces. */
23
+ export declare const getStellarLendingContext: (client: XOXNOClient, init?: OurRequestInit) => Promise<StellarLendingContext>;
17
24
  /** Every asset, aggregated across hubs — rows for the Deposit/Borrow tables. */
18
25
  export declare const getStellarAssets: (client: XOXNOClient, init?: OurRequestInit) => Promise<StellarAssetListItem[]>;
19
26
  /** Every hub, aggregated over its hub-assets — rows for the All Hubs table. */
@@ -25,11 +32,7 @@ export declare const getStellarSpokes: (client: XOXNOClient, init?: OurRequestIn
25
32
  * omitted from the query string when unset; api-v2 defaults `hubId`/`spokeId`
26
33
  * to `-1` and `asset` to `''` (no filter).
27
34
  */
28
- export declare const getStellarReserves: (client: XOXNOClient, params?: {
29
- hubId?: number;
30
- spokeId?: number;
31
- asset?: string;
32
- }, init?: OurRequestInit) => Promise<StellarReserveListItem[]>;
35
+ export declare const getStellarReserves: (client: XOXNOClient, params?: StellarReservesParams, init?: OurRequestInit) => Promise<StellarReserveListItem[]>;
33
36
  /** Reserve detail: one asset, in one spoke, on one hub. */
34
37
  export declare const getStellarReserve: (client: XOXNOClient, spokeId: number, hubId: number, asset: string, init?: OurRequestInit) => Promise<StellarReserve>;
35
38
  /** Top holders of a reserve, for one side (deposits or borrows). */
@@ -78,14 +81,11 @@ export declare const getStellarReserveGraph: (client: XOXNOClient, spokeId: numb
78
81
  * client through every call.
79
82
  */
80
83
  export declare const stellarLendingRead: (client: XOXNOClient) => {
84
+ context: (init?: OurRequestInit) => Promise<StellarLendingContext>;
81
85
  assets: (init?: OurRequestInit) => Promise<StellarAssetListItem[]>;
82
86
  hubs: (init?: OurRequestInit) => Promise<StellarHubListItem[]>;
83
87
  spokes: (init?: OurRequestInit) => Promise<StellarSpokeListItem[]>;
84
- reserves: (params?: {
85
- hubId?: number;
86
- spokeId?: number;
87
- asset?: string;
88
- }, init?: OurRequestInit) => Promise<StellarReserveListItem[]>;
88
+ reserves: (paramsOrInit?: StellarReservesParams | OurRequestInit, init?: OurRequestInit) => Promise<StellarReserveListItem[]>;
89
89
  reserve: (spokeId: number, hubId: number, asset: string, init?: OurRequestInit) => Promise<StellarReserve>;
90
90
  reserveHolders: (spokeId: number, hubId: number, asset: string, side: StellarLendingHoldersSide, init?: OurRequestInit) => Promise<StellarTopHolders>;
91
91
  asset: (asset: string, init?: OurRequestInit) => Promise<StellarAsset>;
@@ -181,6 +181,7 @@ export interface StellarRepayDebtWithCollateralArgs {
181
181
  export interface StellarMigrateFromBlendArgs {
182
182
  accountId: number | string;
183
183
  spokeId: number;
184
+ hubId: number;
184
185
  blendPool: string;
185
186
  collateralTokens: ReadonlyArray<string>;
186
187
  supplyTokens: ReadonlyArray<string>;
@@ -1,4 +1,4 @@
1
- import type { PublicOnly, RateType, LoginAccessDto, LoginRequestDto, UserNetworkInfoDto, UserTokenInventoryResponseDto, UserProfileDoc, UserProfileEditDto, UserProfileDto, UserSettingsDoc, NotificationPreferencesPostDto, SetEmailDto, SetPhoneDto, UserBillingDetails, VerifyEmailDto, TradesilvaniaSignature, SuccessDto, CreatorProfileDto, CreatorProfileDoc, CreatorProfileEditDto, CollectionStatsFilter, CollectionStatsPaginated, CheckLikeStatusResponseDto, UserFavoriteResponseDto, TokenDataDocHydrated, XoxnoInfo, XoxnoLiquidStatsDto, AnalyticsMarketplaceUniqueUsers, ProtocolAprType, ProviderDto, DelegationDataOutput, LendingMarketProfile, LendingMarketProfileFilter, LendingMarketProfileQuery, LendingGovernanceProposalFilter, LendingGovernanceProposalQuery, LendingGovernanceProposalDoc, LendingAccountProfile, LendingIndexesDto, LendingAccountPnl, LendingAccountSummary, LendingEModeCategoryProfile, LendingMarketAnalyticsGraph, LendingStatsHistory, LendingMarketAverageGraph, LendingPositionStatus, LendingOverallStats, NftDocFilter, NftPaginated, LikeNftDto, InventorySummaryDtoHydrated, NftOfferPaginated, NftOfferDocFilter, NftOfferDocHydrated, ValueFp, TraitInfo, CollectionRanksDTO, ListingsResponseDto, NftDocHydrated, SignDataDto, SignWithdrawDto, SignAcceptGlobalOfferDto, SignMintDto, NftDocFull, CollectionProfileDoc, CollectionProfileEditDto, FloorPriceDto, PinnedCollectionDto, CollectionMintProfileDocHydrated, CollectionPinnedStatusDto, FollowCollectionDto, CollectionProfileFilter, CollectionProfilePaginated, CollectionMintProfileFilter, CollectionMintProfilePaginated, CollectionMintProfileDocWithStages, CollectionHoldersDto, CollectionHoldersExportDto, CollectionOwnerDto, CollectionStatsDocHydrated, CollectionOffersFilter, GlobalOfferPaginated, CreatorDetailsDto, ShareholderDto, StakingSummary, StakingPoolDoc, StakingEditDto, OwnedCollectionsDto, UserStakingSummaryDto, StakingCreatorDoc, StakingUserPoolNfts, StakingExploreDtoHydrated, OwnedServicesDto, FilterQueryDto, GlobalSearchResourcesPaginated, LendingNftAttributes, LendingTokenPriceDto, NotificationPaginated, PushNotificationCountResponse, NotificationDoc, MobileDeviceDoc, MobileDeviceRegistrationDto, PushNotificationResponse, PushNotificationDoc, NotificationSuccessResponseDto, EventNotificationDto, CreatorMarketingNotificationDto, StellarChallengeResponseDto, Web2UserDoc, SuccessWithMessageDto, NativeWalletDto, SwitchWalletDto, Web2WalletDto, Web2UserShardsDto, NftActivityFilter, NftActivityPaginated, NftActivityDocHydrated, VolumeGraph, AnalyticsVolumeDto, UserAnalyticsDto, GlobalAnalyticsOverviewResponseDto, UserStatsDto, AirdropDtoHydrated, TransactionDetailed, TransactionProcessStatus, TransactionCostData, TransactionCreate, TransactionSendResult, ChatMessageDocHydrated, SendChatMessageDto, UserConversationPaginated, ChatMessagePaginated, GlobalConversationSummaryDto, UserBlockPaginated, WebSocketTokenDto, UserInfo, EventProfile, EventProfileCreateDto, EventProfileEditDto, EventProfileFilter, EventProfileQuery, EventRegistrationResponseDto, EventGuestRegistrationDto, EventTicketProfileDoc, EventTicketProfileCreateDto, EventTicketProfileEditDto, EventStageProfileDoc, EventStageProfileCreateDto, EventStageProfileEditDto, TicketPricesResponse, TicketCalculationRequestDto, DiscountCodeValidationResponse, EventInvitationDoc, EventInvitationCreateDto, EventInvitationFilter, EventInvitationQuery, EventInvitation, EventAcceptInvitation, EventClaimInvitationDto, EventVoucherFilter, EventVoucherQuery, EventQuestionDoc, EventQuestionCreateDto, EventQuestionEditDto, EventGuestFilter, EventGuestProfileQuery, EventGuestProfile, EventGuestExport, EventUserRole, EventUserRoleCreateDto, EventUserRoleEditDto, EventUserRoleDoc, BageQRData, TicketValidationResult, EventCheckInQR, EventVoucherDoc, EventVoucherCreateDto, EventVoucherEditDto, ManualCheckInDto, AnsweredQuestionWithDetails, EventGuestApproveDto, EventCountGroupedByCountry, EventReferralConfigDoc, EventReferralConfigCreateDto, EventReferralConfigEditDto, EventReferralConfigFilter, EventReferralConfigPaginated, EventReferralDoc, EventReferralCreateDto, EventReferralEditDto, EventReferralFilter, EventReferralPaginated, BlendUserPosition, SoroswapQuoteResponseDto, PerpOrderResponse, BarDto, SymbolInfoDto, PerpCoinExtended, PerpSpotCoinExtended, PerpCoinExtendedSlim, PerpLegalCheck, PerpSpotCoinExtendedSlim, L2BookPerpResponseSingle, TradesPerpResponseSingle, ActiveSpotAssetCtx, ActivePerpAssetCtx, PerpEvent, StellarAssetListItemDto, StellarHubListItemDto, StellarSpokeListItemDto, StellarReserveListItemDto, ReserveDto, TopHoldersDto, AssetDto, AssetMarketDto, HubDto, SpokeDto, AccountPositionsDto, StellarUserActivityItemDto, GovernanceProposalsPageDto, MarketGraphDto, SpokeGraphDto, StellarStatsHistoryDto, StellarPositionsPnlDto, StellarPositionsRankDto, UserHistoryDto, PnlByScopeDto, RevenueSeriesDto, FeeRevenueSeriesDto, ParticipantCountsDto, LiquidationsSeriesDto, LiquidationsLeaderboardDto, VolumeSeriesDto, ActiveUsersSeriesDto, HolderDistributionDto, RateSpreadSeriesDto, DefiLlamaDimensionsDto } from '@xoxno/types';
1
+ import type { PublicOnly, RateType, LoginAccessDto, LoginRequestDto, UserNetworkInfoDto, UserTokenInventoryResponseDto, UserProfileDoc, UserProfileEditDto, UserProfileDto, UserSettingsDoc, NotificationPreferencesPostDto, SetEmailDto, SetPhoneDto, UserBillingDetails, VerifyEmailDto, TradesilvaniaSignature, SuccessDto, CreatorProfileDto, CreatorProfileDoc, CreatorProfileEditDto, CollectionStatsFilter, CollectionStatsPaginated, CheckLikeStatusResponseDto, UserFavoriteResponseDto, TokenDataDocHydrated, XoxnoInfo, XoxnoLiquidStatsDto, AnalyticsMarketplaceUniqueUsers, ProtocolAprType, ProviderDto, DelegationDataOutput, LendingMarketProfile, LendingMarketProfileFilter, LendingMarketProfileQuery, LendingGovernanceProposalFilter, LendingGovernanceProposalQuery, LendingGovernanceProposalDoc, LendingAccountProfile, LendingIndexesDto, LendingAccountPnl, LendingAccountSummary, LendingEModeCategoryProfile, LendingMarketAnalyticsGraph, LendingStatsHistory, LendingMarketAverageGraph, LendingPositionStatus, LendingOverallStats, NftDocFilter, NftPaginated, LikeNftDto, InventorySummaryDtoHydrated, NftOfferPaginated, NftOfferDocFilter, NftOfferDocHydrated, ValueFp, TraitInfo, CollectionRanksDTO, ListingsResponseDto, NftDocHydrated, SignDataDto, SignWithdrawDto, SignAcceptGlobalOfferDto, SignMintDto, NftDocFull, CollectionProfileDoc, CollectionProfileEditDto, FloorPriceDto, PinnedCollectionDto, CollectionMintProfileDocHydrated, CollectionPinnedStatusDto, FollowCollectionDto, CollectionProfileFilter, CollectionProfilePaginated, CollectionMintProfileFilter, CollectionMintProfilePaginated, CollectionMintProfileDocWithStages, CollectionHoldersDto, CollectionHoldersExportDto, CollectionOwnerDto, CollectionStatsDocHydrated, CollectionOffersFilter, GlobalOfferPaginated, CreatorDetailsDto, ShareholderDto, StakingSummary, StakingPoolDoc, StakingEditDto, OwnedCollectionsDto, UserStakingSummaryDto, StakingCreatorDoc, StakingUserPoolNfts, StakingExploreDtoHydrated, OwnedServicesDto, FilterQueryDto, GlobalSearchResourcesPaginated, LendingNftAttributes, LendingTokenPriceDto, StellarAssetListItemDto, StellarHubListItemDto, StellarSpokeListItemDto, StellarReserveListItemDto, ReserveDto, TopHoldersDto, AssetDto, AssetPageDto, AssetMarketDto, HubDto, SpokeDto, AccountPositionsDto, StellarUserActivityItemDto, GovernanceProposalsPageDto, MarketGraphDto, SpokeGraphDto, StellarStatsHistoryDto, StellarPositionsPnlDto, StellarPositionsRankDto, UserHistoryDto, PnlByScopeDto, RevenueSeriesDto, FeeRevenueSeriesDto, ParticipantCountsDto, LiquidationsSeriesDto, LiquidationsLeaderboardDto, VolumeSeriesDto, ActiveUsersSeriesDto, HolderDistributionDto, RateSpreadSeriesDto, DefiLlamaDimensionsDto, NotificationPaginated, PushNotificationCountResponse, NotificationDoc, MobileDeviceDoc, MobileDeviceRegistrationDto, PushNotificationResponse, PushNotificationDoc, NotificationSuccessResponseDto, EventNotificationDto, CreatorMarketingNotificationDto, StellarChallengeResponseDto, Web2UserDoc, SuccessWithMessageDto, NativeWalletDto, SwitchWalletDto, Web2WalletDto, Web2UserShardsDto, NftActivityFilter, NftActivityPaginated, NftActivityDocHydrated, VolumeGraph, AnalyticsVolumeDto, UserAnalyticsDto, GlobalAnalyticsOverviewResponseDto, UserStatsDto, AirdropDtoHydrated, TransactionDetailed, TransactionProcessStatus, TransactionCostData, TransactionCreate, TransactionSendResult, ChatMessageDocHydrated, SendChatMessageDto, UserConversationPaginated, ChatMessagePaginated, GlobalConversationSummaryDto, UserBlockPaginated, WebSocketTokenDto, UserInfo, EventProfile, EventProfileCreateDto, EventProfileEditDto, EventProfileFilter, EventProfileQuery, EventRegistrationResponseDto, EventGuestRegistrationDto, EventTicketProfileDoc, EventTicketProfileCreateDto, EventTicketProfileEditDto, EventStageProfileDoc, EventStageProfileCreateDto, EventStageProfileEditDto, TicketPricesResponse, TicketCalculationRequestDto, DiscountCodeValidationResponse, EventInvitationDoc, EventInvitationCreateDto, EventInvitationFilter, EventInvitationQuery, EventInvitation, EventAcceptInvitation, EventClaimInvitationDto, EventVoucherFilter, EventVoucherQuery, EventQuestionDoc, EventQuestionCreateDto, EventQuestionEditDto, EventGuestFilter, EventGuestProfileQuery, EventGuestProfile, EventGuestExport, EventUserRole, EventUserRoleCreateDto, EventUserRoleEditDto, EventUserRoleDoc, BageQRData, TicketValidationResult, EventCheckInQR, EventVoucherDoc, EventVoucherCreateDto, EventVoucherEditDto, ManualCheckInDto, AnsweredQuestionWithDetails, EventGuestApproveDto, EventCountGroupedByCountry, EventReferralConfigDoc, EventReferralConfigCreateDto, EventReferralConfigEditDto, EventReferralConfigFilter, EventReferralConfigPaginated, EventReferralDoc, EventReferralCreateDto, EventReferralEditDto, EventReferralFilter, EventReferralPaginated, BlendUserPosition, SoroswapQuoteResponseDto, PerpOrderResponse, BarDto, SymbolInfoDto, PerpCoinExtended, PerpSpotCoinExtended, PerpCoinExtendedSlim, PerpLegalCheck, PerpSpotCoinExtendedSlim, L2BookPerpResponseSingle, TradesPerpResponseSingle, ActiveSpotAssetCtx, ActivePerpAssetCtx, PerpEvent } from '@xoxno/types';
2
2
  import type { ActivityChain, TokenCategory, LendingPositionOrderByColumn, KustoOrderDirection, OfferType, StakingStatus, UserStatsOrderByColumn } from '@xoxno/types/enums';
3
3
  export declare const endpoints: {
4
4
  readonly "/liquid/xoxno/rate": {
@@ -347,6 +347,12 @@ export declare const endpoints: {
347
347
  readonly input: {};
348
348
  readonly output: string;
349
349
  };
350
+ readonly "/liquid/egld/execute-undelegate-providers": {
351
+ readonly input: {
352
+ providers: string;
353
+ };
354
+ readonly output: string;
355
+ };
350
356
  readonly "/liquid/egld/protocol-apr": {
351
357
  readonly input: {};
352
358
  readonly output: ProtocolAprType;
@@ -898,6 +904,255 @@ export declare const endpoints: {
898
904
  readonly securityMode: "requiredAny";
899
905
  };
900
906
  };
907
+ readonly "/stellar-lending/assets": {
908
+ readonly input: {};
909
+ readonly output: StellarAssetListItemDto[];
910
+ };
911
+ readonly "/stellar-lending/hubs": {
912
+ readonly input: {};
913
+ readonly output: StellarHubListItemDto[];
914
+ };
915
+ readonly "/stellar-lending/spokes": {
916
+ readonly input: {};
917
+ readonly output: StellarSpokeListItemDto[];
918
+ };
919
+ readonly "/stellar-lending/reserves": {
920
+ readonly input: {
921
+ hubId?: number;
922
+ spokeId?: number;
923
+ asset?: string;
924
+ };
925
+ readonly output: StellarReserveListItemDto[];
926
+ };
927
+ readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset": {
928
+ readonly input: {};
929
+ readonly output: ReserveDto;
930
+ };
931
+ readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset/holders": {
932
+ readonly input: {
933
+ side: string;
934
+ };
935
+ readonly output: TopHoldersDto;
936
+ };
937
+ readonly "/stellar-lending/hubs/:hubId/holders": {
938
+ readonly input: {
939
+ side: string;
940
+ };
941
+ readonly output: TopHoldersDto;
942
+ };
943
+ readonly "/stellar-lending/spokes/:spokeId/holders": {
944
+ readonly input: {
945
+ side: string;
946
+ };
947
+ readonly output: TopHoldersDto;
948
+ };
949
+ readonly "/stellar-lending/assets/:asset": {
950
+ readonly input: {};
951
+ readonly output: AssetDto;
952
+ };
953
+ readonly "/stellar-lending/assets/:asset/page": {
954
+ readonly input: {
955
+ from: string;
956
+ to: string;
957
+ bin: string;
958
+ owner?: string;
959
+ };
960
+ readonly output: AssetPageDto;
961
+ };
962
+ readonly "/stellar-lending/assets/:asset/markets": {
963
+ readonly input: {
964
+ side: string;
965
+ };
966
+ readonly output: AssetMarketDto[];
967
+ };
968
+ readonly "/stellar-lending/hubs/:hubId": {
969
+ readonly input: {};
970
+ readonly output: HubDto;
971
+ };
972
+ readonly "/stellar-lending/spokes/:spokeId": {
973
+ readonly input: {};
974
+ readonly output: SpokeDto;
975
+ };
976
+ readonly "/stellar-lending/users/:owner/positions": {
977
+ readonly input: {};
978
+ readonly output: AccountPositionsDto;
979
+ };
980
+ readonly "/stellar-lending/users/:owner/activity": {
981
+ readonly input: {
982
+ skip?: number;
983
+ top?: number;
984
+ };
985
+ readonly output: StellarUserActivityItemDto[];
986
+ };
987
+ readonly "/stellar-lending/accounts/:accountId/positions": {
988
+ readonly input: {};
989
+ readonly output: AccountPositionsDto;
990
+ };
991
+ readonly "/stellar-lending/governance/proposals": {
992
+ readonly input: {
993
+ top?: number;
994
+ continuationToken?: string;
995
+ };
996
+ readonly output: GovernanceProposalsPageDto;
997
+ };
998
+ readonly "/stellar-lending/assets/:asset/graph": {
999
+ readonly input: {
1000
+ from: string;
1001
+ to: string;
1002
+ bin: string;
1003
+ };
1004
+ readonly output: MarketGraphDto;
1005
+ };
1006
+ readonly "/stellar-lending/hubs/:hubId/graph": {
1007
+ readonly input: {
1008
+ from: string;
1009
+ to: string;
1010
+ bin: string;
1011
+ };
1012
+ readonly output: MarketGraphDto;
1013
+ };
1014
+ readonly "/stellar-lending/spokes/:spokeId/graph": {
1015
+ readonly input: {
1016
+ from: string;
1017
+ to: string;
1018
+ bin: string;
1019
+ };
1020
+ readonly output: SpokeGraphDto;
1021
+ };
1022
+ readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset/graph": {
1023
+ readonly input: {
1024
+ from: string;
1025
+ to: string;
1026
+ bin: string;
1027
+ };
1028
+ readonly output: MarketGraphDto;
1029
+ };
1030
+ readonly "/stellar-lending/stats/history": {
1031
+ readonly input: {
1032
+ from: string;
1033
+ to: string;
1034
+ bin: string;
1035
+ };
1036
+ readonly output: StellarStatsHistoryDto;
1037
+ };
1038
+ readonly "/stellar-lending/pnl": {
1039
+ readonly input: {
1040
+ accountId: string;
1041
+ };
1042
+ readonly output: StellarPositionsPnlDto;
1043
+ };
1044
+ readonly "/stellar-lending/positions": {
1045
+ readonly input: {
1046
+ token?: string;
1047
+ orderBy?: string;
1048
+ orderDirection?: string;
1049
+ skip?: number;
1050
+ top?: number;
1051
+ };
1052
+ readonly output: StellarPositionsRankDto;
1053
+ };
1054
+ readonly "/stellar-lending/users/:accountId/history": {
1055
+ readonly input: {
1056
+ from: string;
1057
+ to: string;
1058
+ bin: string;
1059
+ };
1060
+ readonly output: UserHistoryDto;
1061
+ };
1062
+ readonly "/stellar-lending/pnl/scope": {
1063
+ readonly input: {
1064
+ scope: string;
1065
+ };
1066
+ readonly output: PnlByScopeDto;
1067
+ };
1068
+ readonly "/stellar-lending/revenue": {
1069
+ readonly input: {
1070
+ from: string;
1071
+ to: string;
1072
+ bin: string;
1073
+ scope?: string;
1074
+ };
1075
+ readonly output: RevenueSeriesDto;
1076
+ };
1077
+ readonly "/stellar-lending/revenue/fees": {
1078
+ readonly input: {
1079
+ from: string;
1080
+ to: string;
1081
+ bin: string;
1082
+ hubId?: number;
1083
+ };
1084
+ readonly output: FeeRevenueSeriesDto;
1085
+ };
1086
+ readonly "/stellar-lending/participants": {
1087
+ readonly input: {
1088
+ hubId?: number;
1089
+ spokeId?: number;
1090
+ token?: string;
1091
+ };
1092
+ readonly output: ParticipantCountsDto;
1093
+ };
1094
+ readonly "/stellar-lending/liquidations": {
1095
+ readonly input: {
1096
+ from: string;
1097
+ to: string;
1098
+ bin: string;
1099
+ hubId?: number;
1100
+ };
1101
+ readonly output: LiquidationsSeriesDto;
1102
+ };
1103
+ readonly "/stellar-lending/liquidations/leaderboard": {
1104
+ readonly input: {
1105
+ top?: number;
1106
+ hubId?: number;
1107
+ token?: string;
1108
+ };
1109
+ readonly output: LiquidationsLeaderboardDto;
1110
+ };
1111
+ readonly "/stellar-lending/volume": {
1112
+ readonly input: {
1113
+ from: string;
1114
+ to: string;
1115
+ bin: string;
1116
+ hubId?: number;
1117
+ token?: string;
1118
+ };
1119
+ readonly output: VolumeSeriesDto;
1120
+ };
1121
+ readonly "/stellar-lending/active-users": {
1122
+ readonly input: {
1123
+ from: string;
1124
+ to: string;
1125
+ bin: string;
1126
+ };
1127
+ readonly output: ActiveUsersSeriesDto;
1128
+ };
1129
+ readonly "/stellar-lending/distribution": {
1130
+ readonly input: {
1131
+ hubId?: number;
1132
+ spokeId?: number;
1133
+ token?: string;
1134
+ side?: string;
1135
+ };
1136
+ readonly output: HolderDistributionDto;
1137
+ };
1138
+ readonly "/stellar-lending/rate-spread": {
1139
+ readonly input: {
1140
+ from: string;
1141
+ to: string;
1142
+ bin: string;
1143
+ hubId?: number;
1144
+ token?: string;
1145
+ };
1146
+ readonly output: RateSpreadSeriesDto;
1147
+ };
1148
+ readonly "/stellar-lending/defillama": {
1149
+ readonly input: {
1150
+ from: string;
1151
+ to: string;
1152
+ bin: string;
1153
+ };
1154
+ readonly output: DefiLlamaDimensionsDto;
1155
+ };
901
1156
  readonly "/user/notifications": {
902
1157
  readonly input: {
903
1158
  skip?: number;
@@ -1977,244 +2232,4 @@ export declare const endpoints: {
1977
2232
  readonly body: PerpEvent;
1978
2233
  };
1979
2234
  };
1980
- readonly "/stellar-lending/assets": {
1981
- readonly input: {};
1982
- readonly output: StellarAssetListItemDto[];
1983
- };
1984
- readonly "/stellar-lending/hubs": {
1985
- readonly input: {};
1986
- readonly output: StellarHubListItemDto[];
1987
- };
1988
- readonly "/stellar-lending/spokes": {
1989
- readonly input: {};
1990
- readonly output: StellarSpokeListItemDto[];
1991
- };
1992
- readonly "/stellar-lending/reserves": {
1993
- readonly input: {
1994
- hubId?: number;
1995
- spokeId?: number;
1996
- asset?: string;
1997
- };
1998
- readonly output: StellarReserveListItemDto[];
1999
- };
2000
- readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset": {
2001
- readonly input: {};
2002
- readonly output: ReserveDto;
2003
- };
2004
- readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset/holders": {
2005
- readonly input: {
2006
- side: string;
2007
- };
2008
- readonly output: TopHoldersDto;
2009
- };
2010
- readonly "/stellar-lending/hubs/:hubId/holders": {
2011
- readonly input: {
2012
- side: string;
2013
- };
2014
- readonly output: TopHoldersDto;
2015
- };
2016
- readonly "/stellar-lending/spokes/:spokeId/holders": {
2017
- readonly input: {
2018
- side: string;
2019
- };
2020
- readonly output: TopHoldersDto;
2021
- };
2022
- readonly "/stellar-lending/assets/:asset": {
2023
- readonly input: {};
2024
- readonly output: AssetDto;
2025
- };
2026
- readonly "/stellar-lending/assets/:asset/markets": {
2027
- readonly input: {
2028
- side: string;
2029
- };
2030
- readonly output: AssetMarketDto[];
2031
- };
2032
- readonly "/stellar-lending/hubs/:hubId": {
2033
- readonly input: {};
2034
- readonly output: HubDto;
2035
- };
2036
- readonly "/stellar-lending/spokes/:spokeId": {
2037
- readonly input: {};
2038
- readonly output: SpokeDto;
2039
- };
2040
- readonly "/stellar-lending/users/:owner/positions": {
2041
- readonly input: {};
2042
- readonly output: AccountPositionsDto;
2043
- };
2044
- readonly "/stellar-lending/users/:owner/activity": {
2045
- readonly input: {
2046
- skip?: number;
2047
- top?: number;
2048
- };
2049
- readonly output: StellarUserActivityItemDto[];
2050
- };
2051
- readonly "/stellar-lending/accounts/:accountId/positions": {
2052
- readonly input: {};
2053
- readonly output: AccountPositionsDto;
2054
- };
2055
- readonly "/stellar-lending/governance/proposals": {
2056
- readonly input: {
2057
- top?: number;
2058
- continuationToken?: string;
2059
- };
2060
- readonly output: GovernanceProposalsPageDto;
2061
- };
2062
- readonly "/stellar-lending/assets/:asset/graph": {
2063
- readonly input: {
2064
- from: string;
2065
- to: string;
2066
- bin: string;
2067
- };
2068
- readonly output: MarketGraphDto;
2069
- };
2070
- readonly "/stellar-lending/hubs/:hubId/graph": {
2071
- readonly input: {
2072
- from: string;
2073
- to: string;
2074
- bin: string;
2075
- };
2076
- readonly output: MarketGraphDto;
2077
- };
2078
- readonly "/stellar-lending/spokes/:spokeId/graph": {
2079
- readonly input: {
2080
- from: string;
2081
- to: string;
2082
- bin: string;
2083
- };
2084
- readonly output: SpokeGraphDto;
2085
- };
2086
- readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset/graph": {
2087
- readonly input: {
2088
- from: string;
2089
- to: string;
2090
- bin: string;
2091
- };
2092
- readonly output: MarketGraphDto;
2093
- };
2094
- readonly "/stellar-lending/stats/history": {
2095
- readonly input: {
2096
- from: string;
2097
- to: string;
2098
- bin: string;
2099
- };
2100
- readonly output: StellarStatsHistoryDto;
2101
- };
2102
- readonly "/stellar-lending/pnl": {
2103
- readonly input: {
2104
- accountId: string;
2105
- };
2106
- readonly output: StellarPositionsPnlDto;
2107
- };
2108
- readonly "/stellar-lending/positions": {
2109
- readonly input: {
2110
- token?: string;
2111
- orderBy?: string;
2112
- orderDirection?: string;
2113
- skip?: number;
2114
- top?: number;
2115
- };
2116
- readonly output: StellarPositionsRankDto;
2117
- };
2118
- readonly "/stellar-lending/users/:accountId/history": {
2119
- readonly input: {
2120
- from: string;
2121
- to: string;
2122
- bin: string;
2123
- };
2124
- readonly output: UserHistoryDto;
2125
- };
2126
- readonly "/stellar-lending/pnl/scope": {
2127
- readonly input: {
2128
- scope: string;
2129
- };
2130
- readonly output: PnlByScopeDto;
2131
- };
2132
- readonly "/stellar-lending/revenue": {
2133
- readonly input: {
2134
- from: string;
2135
- to: string;
2136
- bin: string;
2137
- scope?: string;
2138
- };
2139
- readonly output: RevenueSeriesDto;
2140
- };
2141
- readonly "/stellar-lending/revenue/fees": {
2142
- readonly input: {
2143
- from: string;
2144
- to: string;
2145
- bin: string;
2146
- hubId?: number;
2147
- };
2148
- readonly output: FeeRevenueSeriesDto;
2149
- };
2150
- readonly "/stellar-lending/participants": {
2151
- readonly input: {
2152
- hubId?: number;
2153
- spokeId?: number;
2154
- token?: string;
2155
- };
2156
- readonly output: ParticipantCountsDto;
2157
- };
2158
- readonly "/stellar-lending/liquidations": {
2159
- readonly input: {
2160
- from: string;
2161
- to: string;
2162
- bin: string;
2163
- hubId?: number;
2164
- };
2165
- readonly output: LiquidationsSeriesDto;
2166
- };
2167
- readonly "/stellar-lending/liquidations/leaderboard": {
2168
- readonly input: {
2169
- top?: number;
2170
- hubId?: number;
2171
- token?: string;
2172
- };
2173
- readonly output: LiquidationsLeaderboardDto;
2174
- };
2175
- readonly "/stellar-lending/volume": {
2176
- readonly input: {
2177
- from: string;
2178
- to: string;
2179
- bin: string;
2180
- hubId?: number;
2181
- token?: string;
2182
- };
2183
- readonly output: VolumeSeriesDto;
2184
- };
2185
- readonly "/stellar-lending/active-users": {
2186
- readonly input: {
2187
- from: string;
2188
- to: string;
2189
- bin: string;
2190
- };
2191
- readonly output: ActiveUsersSeriesDto;
2192
- };
2193
- readonly "/stellar-lending/distribution": {
2194
- readonly input: {
2195
- hubId?: number;
2196
- spokeId?: number;
2197
- token?: string;
2198
- side?: string;
2199
- };
2200
- readonly output: HolderDistributionDto;
2201
- };
2202
- readonly "/stellar-lending/rate-spread": {
2203
- readonly input: {
2204
- from: string;
2205
- to: string;
2206
- bin: string;
2207
- hubId?: number;
2208
- token?: string;
2209
- };
2210
- readonly output: RateSpreadSeriesDto;
2211
- };
2212
- readonly "/stellar-lending/defillama": {
2213
- readonly input: {
2214
- from: string;
2215
- to: string;
2216
- bin: string;
2217
- };
2218
- readonly output: DefiLlamaDimensionsDto;
2219
- };
2220
2235
  };