@xoxno/sdk-js 1.0.212 → 1.0.214

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.
Files changed (52) hide show
  1. package/README.md +73 -42
  2. package/dist/cjs/index.d.ts +3 -3
  3. package/dist/cjs/sdk/index.d.ts +4 -4
  4. package/dist/cjs/sdk/stellar/__tests__/integration.test.d.ts +1 -0
  5. package/dist/cjs/sdk/stellar/admin.d.ts +28 -28
  6. package/dist/cjs/sdk/stellar/cctp.d.ts +2 -2
  7. package/dist/cjs/sdk/stellar/contracts.d.ts +98 -61
  8. package/dist/cjs/sdk/stellar/events/index.d.ts +2 -2
  9. package/dist/cjs/sdk/stellar/governance.d.ts +50 -49
  10. package/dist/cjs/sdk/stellar/index.d.ts +22 -14
  11. package/dist/cjs/sdk/stellar/lending-api-types.d.ts +943 -0
  12. package/dist/cjs/sdk/stellar/lending-read-types.d.ts +54 -269
  13. package/dist/cjs/sdk/stellar/lending-read.d.ts +279 -131
  14. package/dist/cjs/sdk/stellar/lending.d.ts +134 -63
  15. package/dist/cjs/sdk/stellar/prepare.d.ts +27 -7
  16. package/dist/cjs/sdk/stellar/quote.d.ts +16 -9
  17. package/dist/cjs/sdk/stellar/swap.d.ts +4 -5
  18. package/dist/cjs/sdk/stellar-schema.d.ts +5 -0
  19. package/dist/cjs/sdk/swagger.d.ts +96 -51
  20. package/dist/cjs/sdk/types.d.ts +2 -2
  21. package/dist/cjs/utils/api.d.ts +14 -4
  22. package/dist/cjs/utils/const.d.ts +0 -2
  23. package/dist/index.cjs +2 -1
  24. package/dist/index.cjs.LICENSE.txt +8 -0
  25. package/dist/index.d.ts +3 -3
  26. package/dist/index.esm.js +2 -1
  27. package/dist/index.esm.js.LICENSE.txt +8 -0
  28. package/dist/sdk/index.d.ts +4 -4
  29. package/dist/sdk/stellar/__tests__/integration.test.d.ts +1 -0
  30. package/dist/sdk/stellar/admin.d.ts +28 -28
  31. package/dist/sdk/stellar/cctp.d.ts +2 -2
  32. package/dist/sdk/stellar/contracts.d.ts +98 -61
  33. package/dist/sdk/stellar/events/index.d.ts +2 -2
  34. package/dist/sdk/stellar/governance.d.ts +50 -49
  35. package/dist/sdk/stellar/index.cjs +2 -1
  36. package/dist/sdk/stellar/index.cjs.LICENSE.txt +8 -0
  37. package/dist/sdk/stellar/index.d.ts +22 -14
  38. package/dist/sdk/stellar/index.esm.js +2 -1
  39. package/dist/sdk/stellar/index.esm.js.LICENSE.txt +8 -0
  40. package/dist/sdk/stellar/lending-api-types.d.ts +943 -0
  41. package/dist/sdk/stellar/lending-read-types.d.ts +54 -269
  42. package/dist/sdk/stellar/lending-read.d.ts +279 -131
  43. package/dist/sdk/stellar/lending.d.ts +134 -63
  44. package/dist/sdk/stellar/prepare.d.ts +27 -7
  45. package/dist/sdk/stellar/quote.d.ts +16 -9
  46. package/dist/sdk/stellar/swap.d.ts +4 -5
  47. package/dist/sdk/stellar-schema.d.ts +5 -0
  48. package/dist/sdk/swagger.d.ts +96 -51
  49. package/dist/sdk/types.d.ts +2 -2
  50. package/dist/utils/api.d.ts +14 -4
  51. package/dist/utils/const.d.ts +0 -2
  52. package/package.json +9 -4
@@ -1,5 +1,6 @@
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, DefillamaLendingExport, DefillamaLendingHistoryExport, DefillamaLendingRevenueExport, StellarLendingUserStatsExport, 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, StellarLendingContextDto, StellarLendingLiveStateDto, StellarDetailedMarketDto, StellarHubListItemDto, StellarSpokeListItemDto, StellarReserveListItemDto, ReserveDto, TopHoldersDto, AssetDto, AssetPageDto, AssetMarketDto, HubDto, SpokeDto, AccountPositionsDto, StellarUserActivityItemDto, GovernanceProposalsPageDto, MarketGraphDto, SpokeGraphDto, StellarStatsHistoryDto, StellarPositionsPnlDto, StellarCampaignLeaderboardDto, StellarCampaignMeDto, 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';
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, EgldLiquidStakingRevenueExport, ProtocolAprType, ProviderDto, DelegationDataOutput, LendingMarketProfile, LendingMarketProfileFilter, LendingMarketProfileQuery, LendingGovernanceProposalFilter, LendingGovernanceProposalQuery, LendingGovernanceProposalDoc, LendingAccountProfile, LendingIndexesDto, LendingAccountPnl, LendingAccountSummary, LendingEModeCategoryProfile, LendingMarketAnalyticsGraph, LendingStatsHistory, LendingMarketAverageGraph, LendingPositionStatus, LendingOverallStats, DefillamaLendingExport, MvxDefillamaExport, MvxRevenueExport, MvxLiquidationsExport, MvxUserStatsExport, DefillamaLendingHistoryExport, DefillamaLendingRevenueExport, StellarLendingUserStatsExport, 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 } from '@xoxno/types';
2
2
  import type { ActivityChain, TokenCategory, LendingPositionOrderByColumn, KustoOrderDirection, OfferType, StakingStatus, UserStatsOrderByColumn } from '@xoxno/types/enums';
3
+ import type * as StellarApi from './stellar/lending-api-types.js';
3
4
  export declare const endpoints: {
4
5
  readonly "/liquid/xoxno/rate": {
5
6
  readonly input: {};
@@ -316,6 +317,13 @@ export declare const endpoints: {
316
317
  };
317
318
  readonly output: AnalyticsMarketplaceUniqueUsers[];
318
319
  };
320
+ readonly "/integrations/liquid-staking/multiversx/revenue": {
321
+ readonly input: {
322
+ startTime: string;
323
+ endTime: string;
324
+ };
325
+ readonly output: EgldLiquidStakingRevenueExport;
326
+ };
319
327
  readonly "/liquid/egld/rate": {
320
328
  readonly input: {};
321
329
  readonly output: RateType;
@@ -491,6 +499,32 @@ export declare const endpoints: {
491
499
  readonly input: {};
492
500
  readonly output: DefillamaLendingExport;
493
501
  };
502
+ readonly "/integrations/lending/multiversx": {
503
+ readonly input: {};
504
+ readonly output: MvxDefillamaExport;
505
+ };
506
+ readonly "/integrations/lending/multiversx/revenue": {
507
+ readonly input: {
508
+ startTime: string;
509
+ endTime: string;
510
+ };
511
+ readonly output: MvxRevenueExport;
512
+ };
513
+ readonly "/integrations/lending/multiversx/liquidations": {
514
+ readonly input: {
515
+ startTime: string;
516
+ endTime: string;
517
+ bin?: string;
518
+ };
519
+ readonly output: MvxLiquidationsExport;
520
+ };
521
+ readonly "/integrations/lending/multiversx/active-users": {
522
+ readonly input: {
523
+ startTime: string;
524
+ endTime: string;
525
+ };
526
+ readonly output: MvxUserStatsExport;
527
+ };
494
528
  readonly "/integrations/lending/stellar/history": {
495
529
  readonly input: {
496
530
  startTime: string;
@@ -938,27 +972,27 @@ export declare const endpoints: {
938
972
  };
939
973
  readonly "/stellar-lending/assets": {
940
974
  readonly input: {};
941
- readonly output: StellarAssetListItemDto[];
975
+ readonly output: Array<StellarApi.StellarAssetListItemDto>;
942
976
  };
943
977
  readonly "/stellar-lending/context": {
944
978
  readonly input: {};
945
- readonly output: StellarLendingContextDto;
979
+ readonly output: StellarApi.StellarLendingContextDto;
946
980
  };
947
981
  readonly "/stellar-lending/live-state": {
948
982
  readonly input: {};
949
- readonly output: StellarLendingLiveStateDto;
983
+ readonly output: StellarApi.StellarLendingLiveStateDto;
950
984
  };
951
985
  readonly "/stellar-lending/markets/detailed": {
952
986
  readonly input: {};
953
- readonly output: StellarDetailedMarketDto[];
987
+ readonly output: Array<StellarApi.StellarDetailedMarketDto>;
954
988
  };
955
989
  readonly "/stellar-lending/hubs": {
956
990
  readonly input: {};
957
- readonly output: StellarHubListItemDto[];
991
+ readonly output: Array<StellarApi.StellarHubListItemDto>;
958
992
  };
959
993
  readonly "/stellar-lending/spokes": {
960
994
  readonly input: {};
961
- readonly output: StellarSpokeListItemDto[];
995
+ readonly output: Array<StellarApi.StellarSpokeListItemDto>;
962
996
  };
963
997
  readonly "/stellar-lending/reserves": {
964
998
  readonly input: {
@@ -966,33 +1000,33 @@ export declare const endpoints: {
966
1000
  spokeId?: number;
967
1001
  asset?: string;
968
1002
  };
969
- readonly output: StellarReserveListItemDto[];
1003
+ readonly output: Array<StellarApi.StellarReserveListItemDto>;
970
1004
  };
971
1005
  readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset": {
972
1006
  readonly input: {};
973
- readonly output: ReserveDto;
1007
+ readonly output: StellarApi.ReserveDto;
974
1008
  };
975
1009
  readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset/holders": {
976
1010
  readonly input: {
977
- side: string;
1011
+ side: "deposits" | "borrows";
978
1012
  };
979
- readonly output: TopHoldersDto;
1013
+ readonly output: StellarApi.TopHoldersDto;
980
1014
  };
981
1015
  readonly "/stellar-lending/hubs/:hubId/holders": {
982
1016
  readonly input: {
983
- side: string;
1017
+ side: "deposits" | "borrows";
984
1018
  };
985
- readonly output: TopHoldersDto;
1019
+ readonly output: StellarApi.TopHoldersDto;
986
1020
  };
987
1021
  readonly "/stellar-lending/spokes/:spokeId/holders": {
988
1022
  readonly input: {
989
- side: string;
1023
+ side: "deposits" | "borrows";
990
1024
  };
991
- readonly output: TopHoldersDto;
1025
+ readonly output: StellarApi.TopHoldersDto;
992
1026
  };
993
1027
  readonly "/stellar-lending/assets/:asset": {
994
1028
  readonly input: {};
995
- readonly output: AssetDto;
1029
+ readonly output: StellarApi.AssetDto;
996
1030
  };
997
1031
  readonly "/stellar-lending/assets/:asset/page": {
998
1032
  readonly input: {
@@ -1001,43 +1035,43 @@ export declare const endpoints: {
1001
1035
  bin: string;
1002
1036
  owner?: string;
1003
1037
  };
1004
- readonly output: AssetPageDto;
1038
+ readonly output: StellarApi.AssetPageDto;
1005
1039
  };
1006
1040
  readonly "/stellar-lending/assets/:asset/markets": {
1007
1041
  readonly input: {
1008
- side: string;
1042
+ side: "deposit" | "borrow";
1009
1043
  };
1010
- readonly output: AssetMarketDto[];
1044
+ readonly output: Array<StellarApi.AssetMarketDto>;
1011
1045
  };
1012
1046
  readonly "/stellar-lending/hubs/:hubId": {
1013
1047
  readonly input: {};
1014
- readonly output: HubDto;
1048
+ readonly output: StellarApi.HubDto;
1015
1049
  };
1016
1050
  readonly "/stellar-lending/spokes/:spokeId": {
1017
1051
  readonly input: {};
1018
- readonly output: SpokeDto;
1052
+ readonly output: StellarApi.SpokeDto;
1019
1053
  };
1020
1054
  readonly "/stellar-lending/users/:owner/positions": {
1021
1055
  readonly input: {};
1022
- readonly output: AccountPositionsDto;
1056
+ readonly output: StellarApi.AccountPositionsDto;
1023
1057
  };
1024
1058
  readonly "/stellar-lending/users/:owner/activity": {
1025
1059
  readonly input: {
1026
1060
  skip?: number;
1027
1061
  top?: number;
1028
1062
  };
1029
- readonly output: StellarUserActivityItemDto[];
1063
+ readonly output: Array<StellarApi.StellarUserActivityItemDto>;
1030
1064
  };
1031
1065
  readonly "/stellar-lending/accounts/:accountId/positions": {
1032
1066
  readonly input: {};
1033
- readonly output: AccountPositionsDto;
1067
+ readonly output: StellarApi.AccountPositionsDto;
1034
1068
  };
1035
1069
  readonly "/stellar-lending/governance/proposals": {
1036
1070
  readonly input: {
1037
1071
  top?: number;
1038
1072
  continuationToken?: string;
1039
1073
  };
1040
- readonly output: GovernanceProposalsPageDto;
1074
+ readonly output: StellarApi.GovernanceProposalsPageDto;
1041
1075
  };
1042
1076
  readonly "/stellar-lending/assets/:asset/graph": {
1043
1077
  readonly input: {
@@ -1045,7 +1079,7 @@ export declare const endpoints: {
1045
1079
  to: string;
1046
1080
  bin: string;
1047
1081
  };
1048
- readonly output: MarketGraphDto;
1082
+ readonly output: StellarApi.MarketGraphDto;
1049
1083
  };
1050
1084
  readonly "/stellar-lending/hubs/:hubId/graph": {
1051
1085
  readonly input: {
@@ -1053,7 +1087,7 @@ export declare const endpoints: {
1053
1087
  to: string;
1054
1088
  bin: string;
1055
1089
  };
1056
- readonly output: MarketGraphDto;
1090
+ readonly output: StellarApi.MarketGraphDto;
1057
1091
  };
1058
1092
  readonly "/stellar-lending/spokes/:spokeId/graph": {
1059
1093
  readonly input: {
@@ -1061,7 +1095,7 @@ export declare const endpoints: {
1061
1095
  to: string;
1062
1096
  bin: string;
1063
1097
  };
1064
- readonly output: SpokeGraphDto;
1098
+ readonly output: StellarApi.SpokeGraphDto;
1065
1099
  };
1066
1100
  readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset/graph": {
1067
1101
  readonly input: {
@@ -1069,7 +1103,7 @@ export declare const endpoints: {
1069
1103
  to: string;
1070
1104
  bin: string;
1071
1105
  };
1072
- readonly output: MarketGraphDto;
1106
+ readonly output: StellarApi.MarketGraphDto;
1073
1107
  };
1074
1108
  readonly "/stellar-lending/stats/history": {
1075
1109
  readonly input: {
@@ -1077,36 +1111,36 @@ export declare const endpoints: {
1077
1111
  to: string;
1078
1112
  bin: string;
1079
1113
  };
1080
- readonly output: StellarStatsHistoryDto;
1114
+ readonly output: StellarApi.StellarStatsHistoryDto;
1081
1115
  };
1082
1116
  readonly "/stellar-lending/pnl": {
1083
1117
  readonly input: {
1084
1118
  accountId: string;
1085
1119
  };
1086
- readonly output: StellarPositionsPnlDto;
1120
+ readonly output: StellarApi.StellarPositionsPnlDto;
1087
1121
  };
1088
1122
  readonly "/stellar-lending/campaign/leaderboard": {
1089
1123
  readonly input: {
1090
1124
  skip?: number;
1091
1125
  top?: number;
1092
1126
  };
1093
- readonly output: StellarCampaignLeaderboardDto;
1127
+ readonly output: StellarApi.StellarCampaignLeaderboardDto;
1094
1128
  };
1095
1129
  readonly "/stellar-lending/campaign/me": {
1096
1130
  readonly input: {
1097
1131
  owner: string;
1098
1132
  };
1099
- readonly output: StellarCampaignMeDto;
1133
+ readonly output: StellarApi.StellarCampaignMeDto;
1100
1134
  };
1101
1135
  readonly "/stellar-lending/positions": {
1102
1136
  readonly input: {
1103
1137
  token?: string;
1104
- orderBy?: string;
1105
- orderDirection?: string;
1138
+ orderBy?: "Supplied" | "Borrowed" | "HealthFactor";
1139
+ orderDirection?: "asc" | "desc";
1106
1140
  skip?: number;
1107
1141
  top?: number;
1108
1142
  };
1109
- readonly output: StellarPositionsRankDto;
1143
+ readonly output: StellarApi.StellarPositionsRankDto;
1110
1144
  };
1111
1145
  readonly "/stellar-lending/users/:accountId/history": {
1112
1146
  readonly input: {
@@ -1114,22 +1148,22 @@ export declare const endpoints: {
1114
1148
  to: string;
1115
1149
  bin: string;
1116
1150
  };
1117
- readonly output: UserHistoryDto;
1151
+ readonly output: StellarApi.UserHistoryDto;
1118
1152
  };
1119
1153
  readonly "/stellar-lending/pnl/scope": {
1120
1154
  readonly input: {
1121
- scope: string;
1155
+ scope: "asset" | "hub" | "protocol";
1122
1156
  };
1123
- readonly output: PnlByScopeDto;
1157
+ readonly output: StellarApi.PnlByScopeDto;
1124
1158
  };
1125
1159
  readonly "/stellar-lending/revenue": {
1126
1160
  readonly input: {
1127
1161
  from: string;
1128
1162
  to: string;
1129
1163
  bin: string;
1130
- scope?: string;
1164
+ scope?: "asset" | "hub" | "protocol";
1131
1165
  };
1132
- readonly output: RevenueSeriesDto;
1166
+ readonly output: StellarApi.RevenueSeriesDto;
1133
1167
  };
1134
1168
  readonly "/stellar-lending/revenue/fees": {
1135
1169
  readonly input: {
@@ -1138,7 +1172,7 @@ export declare const endpoints: {
1138
1172
  bin: string;
1139
1173
  hubId?: number;
1140
1174
  };
1141
- readonly output: FeeRevenueSeriesDto;
1175
+ readonly output: StellarApi.FeeRevenueSeriesDto;
1142
1176
  };
1143
1177
  readonly "/stellar-lending/participants": {
1144
1178
  readonly input: {
@@ -1146,7 +1180,7 @@ export declare const endpoints: {
1146
1180
  spokeId?: number;
1147
1181
  token?: string;
1148
1182
  };
1149
- readonly output: ParticipantCountsDto;
1183
+ readonly output: StellarApi.ParticipantCountsDto;
1150
1184
  };
1151
1185
  readonly "/stellar-lending/liquidations": {
1152
1186
  readonly input: {
@@ -1155,7 +1189,7 @@ export declare const endpoints: {
1155
1189
  bin: string;
1156
1190
  hubId?: number;
1157
1191
  };
1158
- readonly output: LiquidationsSeriesDto;
1192
+ readonly output: StellarApi.LiquidationsSeriesDto;
1159
1193
  };
1160
1194
  readonly "/stellar-lending/liquidations/leaderboard": {
1161
1195
  readonly input: {
@@ -1163,7 +1197,7 @@ export declare const endpoints: {
1163
1197
  hubId?: number;
1164
1198
  token?: string;
1165
1199
  };
1166
- readonly output: LiquidationsLeaderboardDto;
1200
+ readonly output: StellarApi.LiquidationsLeaderboardDto;
1167
1201
  };
1168
1202
  readonly "/stellar-lending/volume": {
1169
1203
  readonly input: {
@@ -1173,7 +1207,7 @@ export declare const endpoints: {
1173
1207
  hubId?: number;
1174
1208
  token?: string;
1175
1209
  };
1176
- readonly output: VolumeSeriesDto;
1210
+ readonly output: StellarApi.VolumeSeriesDto;
1177
1211
  };
1178
1212
  readonly "/stellar-lending/active-users": {
1179
1213
  readonly input: {
@@ -1181,16 +1215,16 @@ export declare const endpoints: {
1181
1215
  to: string;
1182
1216
  bin: string;
1183
1217
  };
1184
- readonly output: ActiveUsersSeriesDto;
1218
+ readonly output: StellarApi.ActiveUsersSeriesDto;
1185
1219
  };
1186
1220
  readonly "/stellar-lending/distribution": {
1187
1221
  readonly input: {
1188
1222
  hubId?: number;
1189
1223
  spokeId?: number;
1190
1224
  token?: string;
1191
- side?: string;
1225
+ side?: "deposits" | "borrows";
1192
1226
  };
1193
- readonly output: HolderDistributionDto;
1227
+ readonly output: StellarApi.HolderDistributionDto;
1194
1228
  };
1195
1229
  readonly "/stellar-lending/rate-spread": {
1196
1230
  readonly input: {
@@ -1200,7 +1234,7 @@ export declare const endpoints: {
1200
1234
  hubId?: number;
1201
1235
  token?: string;
1202
1236
  };
1203
- readonly output: RateSpreadSeriesDto;
1237
+ readonly output: StellarApi.RateSpreadSeriesDto;
1204
1238
  };
1205
1239
  readonly "/stellar-lending/defillama": {
1206
1240
  readonly input: {
@@ -1208,7 +1242,7 @@ export declare const endpoints: {
1208
1242
  to: string;
1209
1243
  bin: string;
1210
1244
  };
1211
- readonly output: DefiLlamaDimensionsDto;
1245
+ readonly output: StellarApi.DefiLlamaDimensionsDto;
1212
1246
  };
1213
1247
  readonly "/user/notifications": {
1214
1248
  readonly input: {
@@ -2289,4 +2323,15 @@ export declare const endpoints: {
2289
2323
  readonly body: PerpEvent;
2290
2324
  };
2291
2325
  };
2326
+ readonly "/stellar-lending/users/:owner/assets/:asset/balance": {
2327
+ readonly input: {};
2328
+ readonly output: StellarApi.StellarWalletBalanceDto;
2329
+ };
2330
+ readonly "/stellar-lending/users/:owner/activity/page": {
2331
+ readonly input: {
2332
+ top?: number;
2333
+ continuationToken?: string;
2334
+ };
2335
+ readonly output: StellarApi.StellarActivityPageDto;
2336
+ };
2292
2337
  };
@@ -1,5 +1,5 @@
1
- import type { OurRequestInit } from '../utils/api';
2
- import type { endpoints, endpoints as routes } from './swagger';
1
+ import type { OurRequestInit } from '../utils/api.js';
2
+ import type { endpoints, endpoints as routes } from './swagger.js';
3
3
  type RemoveColon<S extends string> = S extends `:${infer R}` ? R : S;
4
4
  type CamelCase<S extends string> = S extends `${infer Head}-${infer Tail}` ? `${Head}${CamelCase<Capitalize<Tail>>}` : S;
5
5
  type IsEmptyObj<T> = keyof T extends never ? true : false;
@@ -6,6 +6,18 @@ export type OurRequestInit = Omit<RequestInit, 'body' | 'headers'> & {
6
6
  headers?: SafeHeaders;
7
7
  debug?: boolean;
8
8
  };
9
+ /**
10
+ * Host-supplied configuration for {@link XOXNOClient}.
11
+ *
12
+ * The SDK does not read environment variables or choose an API deployment.
13
+ * Always pass the API base URL from the application configuration. `chain`
14
+ * selects the MultiversX contract set used by generated endpoints; Stellar
15
+ * transaction builders take their own explicit network and contract options.
16
+ */
17
+ export type XOXNOClientOptions = {
18
+ chain?: Chain;
19
+ apiUrl: string;
20
+ } & OurRequestInit;
9
21
  export declare enum Chain {
10
22
  MAINNET = "1",
11
23
  DEVNET = "D"
@@ -25,10 +37,8 @@ export declare class XOXNOClient {
25
37
  Manager_SC: string;
26
38
  P2P_SC: string;
27
39
  };
28
- constructor({ chain, apiUrl, ...init }?: {
29
- chain?: Chain;
30
- apiUrl?: string;
31
- } & OurRequestInit);
40
+ /** Create a client bound to one application-selected API deployment. */
41
+ constructor(options: XOXNOClientOptions);
32
42
  fetchWithTimeout: <T>(path: string, { params, ...options }?: RequestInit & {
33
43
  debug?: boolean;
34
44
  params?: Record<string, any>;
@@ -1,5 +1,3 @@
1
- export declare const API_URL = "https://api.xoxno.com";
2
- export declare const API_URL_DEV = "https://devnet-api.xoxno.com";
3
1
  export declare const XOXNO_SC = "erd1qqqqqqqqqqqqqpgq6wegs2xkypfpync8mn2sa5cmpqjlvrhwz5nqgepyg8";
4
2
  export declare const FM_SC = "erd1qqqqqqqqqqqqqpgq705fxpfrjne0tl3ece0rrspykq88mynn4kxs2cg43s";
5
3
  export declare const DR_SC = "erd1qqqqqqqqqqqqqpgqd9rvv2n378e27jcts8vfwynpx0gfl5ufz6hqhfy0u0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/sdk-js",
3
- "version": "1.0.212",
3
+ "version": "1.0.214",
4
4
  "description": "The SDK to interact with the XOXNO Protocol!",
5
5
  "type": "module",
6
6
  "exports": {
@@ -34,7 +34,7 @@
34
34
  "sideEffects": false,
35
35
  "scripts": {
36
36
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
37
- "build:sdk": "npx bun run src/sdk/parseSwagger.ts && npx oxlint src/sdk/swagger.ts --fix && npx bun run md/extract.ts",
37
+ "build:sdk": "npx bun run src/sdk/parseSwagger.ts --offline && npx oxlint src/sdk/swagger.ts --fix && npx bun run md/extract.ts",
38
38
  "build:types": "tsc --emitDeclarationOnly && node scripts/emit-cjs-dts.mjs",
39
39
  "build:esm": "webpack --config webpack-esm.config.mjs",
40
40
  "build:cjs": "webpack --config webpack-cjs.config.mjs",
@@ -45,7 +45,11 @@
45
45
  "format": "oxlint src --fix",
46
46
  "commit": "git-cz",
47
47
  "release": "semantic-release",
48
- "docs": "typedoc --out docs src/**/*.ts"
48
+ "docs": "typedoc --out docs src/**/*.ts",
49
+ "update:sdk": "bun run src/sdk/parseSwagger.ts && bun run md/extract.ts",
50
+ "docs:stellar": "typedoc --options typedoc.stellar.json",
51
+ "check:examples": "tsc --project tsconfig.examples.json",
52
+ "test:browser": "node --experimental-vm-modules scripts/check-stellar-browser.mjs"
49
53
  },
50
54
  "config": {
51
55
  "commitizen": {
@@ -114,7 +118,8 @@
114
118
  "dependencies": {
115
119
  "@multiversx/sdk-core": "^15.3.2",
116
120
  "@multiversx/sdk-network-providers": "^2.9.3",
117
- "@xoxno/types": "1.0.488"
121
+ "@xoxno/types": "1.0.496",
122
+ "buffer": "^6.0.3"
118
123
  },
119
124
  "peerDependencies": {
120
125
  "@stellar/stellar-sdk": ">=15.0.0 <17.0.0"