@xoxno/sdk-js 1.0.213 → 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.
- package/README.md +58 -42
- package/dist/cjs/index.d.ts +3 -3
- package/dist/cjs/sdk/index.d.ts +4 -4
- package/dist/cjs/sdk/stellar/__tests__/integration.test.d.ts +1 -0
- package/dist/cjs/sdk/stellar/admin.d.ts +28 -28
- package/dist/cjs/sdk/stellar/cctp.d.ts +2 -2
- package/dist/cjs/sdk/stellar/contracts.d.ts +98 -61
- package/dist/cjs/sdk/stellar/events/index.d.ts +2 -2
- package/dist/cjs/sdk/stellar/governance.d.ts +50 -49
- package/dist/cjs/sdk/stellar/index.d.ts +22 -14
- package/dist/cjs/sdk/stellar/lending-api-types.d.ts +943 -0
- package/dist/cjs/sdk/stellar/lending-read-types.d.ts +54 -269
- package/dist/cjs/sdk/stellar/lending-read.d.ts +279 -131
- package/dist/cjs/sdk/stellar/lending.d.ts +134 -63
- package/dist/cjs/sdk/stellar/prepare.d.ts +27 -7
- package/dist/cjs/sdk/stellar/quote.d.ts +16 -9
- package/dist/cjs/sdk/stellar/swap.d.ts +4 -5
- package/dist/cjs/sdk/stellar-schema.d.ts +5 -0
- package/dist/cjs/sdk/swagger.d.ts +63 -51
- package/dist/cjs/sdk/types.d.ts +2 -2
- package/dist/cjs/utils/api.d.ts +14 -4
- package/dist/cjs/utils/const.d.ts +0 -2
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.LICENSE.txt +8 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.esm.js +2 -1
- package/dist/index.esm.js.LICENSE.txt +8 -0
- package/dist/sdk/index.d.ts +4 -4
- package/dist/sdk/stellar/__tests__/integration.test.d.ts +1 -0
- package/dist/sdk/stellar/admin.d.ts +28 -28
- package/dist/sdk/stellar/cctp.d.ts +2 -2
- package/dist/sdk/stellar/contracts.d.ts +98 -61
- package/dist/sdk/stellar/events/index.d.ts +2 -2
- package/dist/sdk/stellar/governance.d.ts +50 -49
- package/dist/sdk/stellar/index.cjs +2 -1
- package/dist/sdk/stellar/index.cjs.LICENSE.txt +8 -0
- package/dist/sdk/stellar/index.d.ts +22 -14
- package/dist/sdk/stellar/index.esm.js +2 -1
- package/dist/sdk/stellar/index.esm.js.LICENSE.txt +8 -0
- package/dist/sdk/stellar/lending-api-types.d.ts +943 -0
- package/dist/sdk/stellar/lending-read-types.d.ts +54 -269
- package/dist/sdk/stellar/lending-read.d.ts +279 -131
- package/dist/sdk/stellar/lending.d.ts +134 -63
- package/dist/sdk/stellar/prepare.d.ts +27 -7
- package/dist/sdk/stellar/quote.d.ts +16 -9
- package/dist/sdk/stellar/swap.d.ts +4 -5
- package/dist/sdk/stellar-schema.d.ts +5 -0
- package/dist/sdk/swagger.d.ts +63 -51
- package/dist/sdk/types.d.ts +2 -2
- package/dist/utils/api.d.ts +14 -4
- package/dist/utils/const.d.ts +0 -2
- package/package.json +9 -4
package/dist/sdk/swagger.d.ts
CHANGED
|
@@ -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, 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,
|
|
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: {};
|
|
@@ -971,27 +972,27 @@ export declare const endpoints: {
|
|
|
971
972
|
};
|
|
972
973
|
readonly "/stellar-lending/assets": {
|
|
973
974
|
readonly input: {};
|
|
974
|
-
readonly output: StellarAssetListItemDto
|
|
975
|
+
readonly output: Array<StellarApi.StellarAssetListItemDto>;
|
|
975
976
|
};
|
|
976
977
|
readonly "/stellar-lending/context": {
|
|
977
978
|
readonly input: {};
|
|
978
|
-
readonly output: StellarLendingContextDto;
|
|
979
|
+
readonly output: StellarApi.StellarLendingContextDto;
|
|
979
980
|
};
|
|
980
981
|
readonly "/stellar-lending/live-state": {
|
|
981
982
|
readonly input: {};
|
|
982
|
-
readonly output: StellarLendingLiveStateDto;
|
|
983
|
+
readonly output: StellarApi.StellarLendingLiveStateDto;
|
|
983
984
|
};
|
|
984
985
|
readonly "/stellar-lending/markets/detailed": {
|
|
985
986
|
readonly input: {};
|
|
986
|
-
readonly output: StellarDetailedMarketDto
|
|
987
|
+
readonly output: Array<StellarApi.StellarDetailedMarketDto>;
|
|
987
988
|
};
|
|
988
989
|
readonly "/stellar-lending/hubs": {
|
|
989
990
|
readonly input: {};
|
|
990
|
-
readonly output: StellarHubListItemDto
|
|
991
|
+
readonly output: Array<StellarApi.StellarHubListItemDto>;
|
|
991
992
|
};
|
|
992
993
|
readonly "/stellar-lending/spokes": {
|
|
993
994
|
readonly input: {};
|
|
994
|
-
readonly output: StellarSpokeListItemDto
|
|
995
|
+
readonly output: Array<StellarApi.StellarSpokeListItemDto>;
|
|
995
996
|
};
|
|
996
997
|
readonly "/stellar-lending/reserves": {
|
|
997
998
|
readonly input: {
|
|
@@ -999,33 +1000,33 @@ export declare const endpoints: {
|
|
|
999
1000
|
spokeId?: number;
|
|
1000
1001
|
asset?: string;
|
|
1001
1002
|
};
|
|
1002
|
-
readonly output: StellarReserveListItemDto
|
|
1003
|
+
readonly output: Array<StellarApi.StellarReserveListItemDto>;
|
|
1003
1004
|
};
|
|
1004
1005
|
readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset": {
|
|
1005
1006
|
readonly input: {};
|
|
1006
|
-
readonly output: ReserveDto;
|
|
1007
|
+
readonly output: StellarApi.ReserveDto;
|
|
1007
1008
|
};
|
|
1008
1009
|
readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset/holders": {
|
|
1009
1010
|
readonly input: {
|
|
1010
|
-
side:
|
|
1011
|
+
side: "deposits" | "borrows";
|
|
1011
1012
|
};
|
|
1012
|
-
readonly output: TopHoldersDto;
|
|
1013
|
+
readonly output: StellarApi.TopHoldersDto;
|
|
1013
1014
|
};
|
|
1014
1015
|
readonly "/stellar-lending/hubs/:hubId/holders": {
|
|
1015
1016
|
readonly input: {
|
|
1016
|
-
side:
|
|
1017
|
+
side: "deposits" | "borrows";
|
|
1017
1018
|
};
|
|
1018
|
-
readonly output: TopHoldersDto;
|
|
1019
|
+
readonly output: StellarApi.TopHoldersDto;
|
|
1019
1020
|
};
|
|
1020
1021
|
readonly "/stellar-lending/spokes/:spokeId/holders": {
|
|
1021
1022
|
readonly input: {
|
|
1022
|
-
side:
|
|
1023
|
+
side: "deposits" | "borrows";
|
|
1023
1024
|
};
|
|
1024
|
-
readonly output: TopHoldersDto;
|
|
1025
|
+
readonly output: StellarApi.TopHoldersDto;
|
|
1025
1026
|
};
|
|
1026
1027
|
readonly "/stellar-lending/assets/:asset": {
|
|
1027
1028
|
readonly input: {};
|
|
1028
|
-
readonly output: AssetDto;
|
|
1029
|
+
readonly output: StellarApi.AssetDto;
|
|
1029
1030
|
};
|
|
1030
1031
|
readonly "/stellar-lending/assets/:asset/page": {
|
|
1031
1032
|
readonly input: {
|
|
@@ -1034,43 +1035,43 @@ export declare const endpoints: {
|
|
|
1034
1035
|
bin: string;
|
|
1035
1036
|
owner?: string;
|
|
1036
1037
|
};
|
|
1037
|
-
readonly output: AssetPageDto;
|
|
1038
|
+
readonly output: StellarApi.AssetPageDto;
|
|
1038
1039
|
};
|
|
1039
1040
|
readonly "/stellar-lending/assets/:asset/markets": {
|
|
1040
1041
|
readonly input: {
|
|
1041
|
-
side:
|
|
1042
|
+
side: "deposit" | "borrow";
|
|
1042
1043
|
};
|
|
1043
|
-
readonly output: AssetMarketDto
|
|
1044
|
+
readonly output: Array<StellarApi.AssetMarketDto>;
|
|
1044
1045
|
};
|
|
1045
1046
|
readonly "/stellar-lending/hubs/:hubId": {
|
|
1046
1047
|
readonly input: {};
|
|
1047
|
-
readonly output: HubDto;
|
|
1048
|
+
readonly output: StellarApi.HubDto;
|
|
1048
1049
|
};
|
|
1049
1050
|
readonly "/stellar-lending/spokes/:spokeId": {
|
|
1050
1051
|
readonly input: {};
|
|
1051
|
-
readonly output: SpokeDto;
|
|
1052
|
+
readonly output: StellarApi.SpokeDto;
|
|
1052
1053
|
};
|
|
1053
1054
|
readonly "/stellar-lending/users/:owner/positions": {
|
|
1054
1055
|
readonly input: {};
|
|
1055
|
-
readonly output: AccountPositionsDto;
|
|
1056
|
+
readonly output: StellarApi.AccountPositionsDto;
|
|
1056
1057
|
};
|
|
1057
1058
|
readonly "/stellar-lending/users/:owner/activity": {
|
|
1058
1059
|
readonly input: {
|
|
1059
1060
|
skip?: number;
|
|
1060
1061
|
top?: number;
|
|
1061
1062
|
};
|
|
1062
|
-
readonly output: StellarUserActivityItemDto
|
|
1063
|
+
readonly output: Array<StellarApi.StellarUserActivityItemDto>;
|
|
1063
1064
|
};
|
|
1064
1065
|
readonly "/stellar-lending/accounts/:accountId/positions": {
|
|
1065
1066
|
readonly input: {};
|
|
1066
|
-
readonly output: AccountPositionsDto;
|
|
1067
|
+
readonly output: StellarApi.AccountPositionsDto;
|
|
1067
1068
|
};
|
|
1068
1069
|
readonly "/stellar-lending/governance/proposals": {
|
|
1069
1070
|
readonly input: {
|
|
1070
1071
|
top?: number;
|
|
1071
1072
|
continuationToken?: string;
|
|
1072
1073
|
};
|
|
1073
|
-
readonly output: GovernanceProposalsPageDto;
|
|
1074
|
+
readonly output: StellarApi.GovernanceProposalsPageDto;
|
|
1074
1075
|
};
|
|
1075
1076
|
readonly "/stellar-lending/assets/:asset/graph": {
|
|
1076
1077
|
readonly input: {
|
|
@@ -1078,7 +1079,7 @@ export declare const endpoints: {
|
|
|
1078
1079
|
to: string;
|
|
1079
1080
|
bin: string;
|
|
1080
1081
|
};
|
|
1081
|
-
readonly output: MarketGraphDto;
|
|
1082
|
+
readonly output: StellarApi.MarketGraphDto;
|
|
1082
1083
|
};
|
|
1083
1084
|
readonly "/stellar-lending/hubs/:hubId/graph": {
|
|
1084
1085
|
readonly input: {
|
|
@@ -1086,7 +1087,7 @@ export declare const endpoints: {
|
|
|
1086
1087
|
to: string;
|
|
1087
1088
|
bin: string;
|
|
1088
1089
|
};
|
|
1089
|
-
readonly output: MarketGraphDto;
|
|
1090
|
+
readonly output: StellarApi.MarketGraphDto;
|
|
1090
1091
|
};
|
|
1091
1092
|
readonly "/stellar-lending/spokes/:spokeId/graph": {
|
|
1092
1093
|
readonly input: {
|
|
@@ -1094,7 +1095,7 @@ export declare const endpoints: {
|
|
|
1094
1095
|
to: string;
|
|
1095
1096
|
bin: string;
|
|
1096
1097
|
};
|
|
1097
|
-
readonly output: SpokeGraphDto;
|
|
1098
|
+
readonly output: StellarApi.SpokeGraphDto;
|
|
1098
1099
|
};
|
|
1099
1100
|
readonly "/stellar-lending/reserves/:spokeId/:hubId/:asset/graph": {
|
|
1100
1101
|
readonly input: {
|
|
@@ -1102,7 +1103,7 @@ export declare const endpoints: {
|
|
|
1102
1103
|
to: string;
|
|
1103
1104
|
bin: string;
|
|
1104
1105
|
};
|
|
1105
|
-
readonly output: MarketGraphDto;
|
|
1106
|
+
readonly output: StellarApi.MarketGraphDto;
|
|
1106
1107
|
};
|
|
1107
1108
|
readonly "/stellar-lending/stats/history": {
|
|
1108
1109
|
readonly input: {
|
|
@@ -1110,36 +1111,36 @@ export declare const endpoints: {
|
|
|
1110
1111
|
to: string;
|
|
1111
1112
|
bin: string;
|
|
1112
1113
|
};
|
|
1113
|
-
readonly output: StellarStatsHistoryDto;
|
|
1114
|
+
readonly output: StellarApi.StellarStatsHistoryDto;
|
|
1114
1115
|
};
|
|
1115
1116
|
readonly "/stellar-lending/pnl": {
|
|
1116
1117
|
readonly input: {
|
|
1117
1118
|
accountId: string;
|
|
1118
1119
|
};
|
|
1119
|
-
readonly output: StellarPositionsPnlDto;
|
|
1120
|
+
readonly output: StellarApi.StellarPositionsPnlDto;
|
|
1120
1121
|
};
|
|
1121
1122
|
readonly "/stellar-lending/campaign/leaderboard": {
|
|
1122
1123
|
readonly input: {
|
|
1123
1124
|
skip?: number;
|
|
1124
1125
|
top?: number;
|
|
1125
1126
|
};
|
|
1126
|
-
readonly output: StellarCampaignLeaderboardDto;
|
|
1127
|
+
readonly output: StellarApi.StellarCampaignLeaderboardDto;
|
|
1127
1128
|
};
|
|
1128
1129
|
readonly "/stellar-lending/campaign/me": {
|
|
1129
1130
|
readonly input: {
|
|
1130
1131
|
owner: string;
|
|
1131
1132
|
};
|
|
1132
|
-
readonly output: StellarCampaignMeDto;
|
|
1133
|
+
readonly output: StellarApi.StellarCampaignMeDto;
|
|
1133
1134
|
};
|
|
1134
1135
|
readonly "/stellar-lending/positions": {
|
|
1135
1136
|
readonly input: {
|
|
1136
1137
|
token?: string;
|
|
1137
|
-
orderBy?:
|
|
1138
|
-
orderDirection?:
|
|
1138
|
+
orderBy?: "Supplied" | "Borrowed" | "HealthFactor";
|
|
1139
|
+
orderDirection?: "asc" | "desc";
|
|
1139
1140
|
skip?: number;
|
|
1140
1141
|
top?: number;
|
|
1141
1142
|
};
|
|
1142
|
-
readonly output: StellarPositionsRankDto;
|
|
1143
|
+
readonly output: StellarApi.StellarPositionsRankDto;
|
|
1143
1144
|
};
|
|
1144
1145
|
readonly "/stellar-lending/users/:accountId/history": {
|
|
1145
1146
|
readonly input: {
|
|
@@ -1147,22 +1148,22 @@ export declare const endpoints: {
|
|
|
1147
1148
|
to: string;
|
|
1148
1149
|
bin: string;
|
|
1149
1150
|
};
|
|
1150
|
-
readonly output: UserHistoryDto;
|
|
1151
|
+
readonly output: StellarApi.UserHistoryDto;
|
|
1151
1152
|
};
|
|
1152
1153
|
readonly "/stellar-lending/pnl/scope": {
|
|
1153
1154
|
readonly input: {
|
|
1154
|
-
scope:
|
|
1155
|
+
scope: "asset" | "hub" | "protocol";
|
|
1155
1156
|
};
|
|
1156
|
-
readonly output: PnlByScopeDto;
|
|
1157
|
+
readonly output: StellarApi.PnlByScopeDto;
|
|
1157
1158
|
};
|
|
1158
1159
|
readonly "/stellar-lending/revenue": {
|
|
1159
1160
|
readonly input: {
|
|
1160
1161
|
from: string;
|
|
1161
1162
|
to: string;
|
|
1162
1163
|
bin: string;
|
|
1163
|
-
scope?:
|
|
1164
|
+
scope?: "asset" | "hub" | "protocol";
|
|
1164
1165
|
};
|
|
1165
|
-
readonly output: RevenueSeriesDto;
|
|
1166
|
+
readonly output: StellarApi.RevenueSeriesDto;
|
|
1166
1167
|
};
|
|
1167
1168
|
readonly "/stellar-lending/revenue/fees": {
|
|
1168
1169
|
readonly input: {
|
|
@@ -1171,7 +1172,7 @@ export declare const endpoints: {
|
|
|
1171
1172
|
bin: string;
|
|
1172
1173
|
hubId?: number;
|
|
1173
1174
|
};
|
|
1174
|
-
readonly output: FeeRevenueSeriesDto;
|
|
1175
|
+
readonly output: StellarApi.FeeRevenueSeriesDto;
|
|
1175
1176
|
};
|
|
1176
1177
|
readonly "/stellar-lending/participants": {
|
|
1177
1178
|
readonly input: {
|
|
@@ -1179,7 +1180,7 @@ export declare const endpoints: {
|
|
|
1179
1180
|
spokeId?: number;
|
|
1180
1181
|
token?: string;
|
|
1181
1182
|
};
|
|
1182
|
-
readonly output: ParticipantCountsDto;
|
|
1183
|
+
readonly output: StellarApi.ParticipantCountsDto;
|
|
1183
1184
|
};
|
|
1184
1185
|
readonly "/stellar-lending/liquidations": {
|
|
1185
1186
|
readonly input: {
|
|
@@ -1188,7 +1189,7 @@ export declare const endpoints: {
|
|
|
1188
1189
|
bin: string;
|
|
1189
1190
|
hubId?: number;
|
|
1190
1191
|
};
|
|
1191
|
-
readonly output: LiquidationsSeriesDto;
|
|
1192
|
+
readonly output: StellarApi.LiquidationsSeriesDto;
|
|
1192
1193
|
};
|
|
1193
1194
|
readonly "/stellar-lending/liquidations/leaderboard": {
|
|
1194
1195
|
readonly input: {
|
|
@@ -1196,7 +1197,7 @@ export declare const endpoints: {
|
|
|
1196
1197
|
hubId?: number;
|
|
1197
1198
|
token?: string;
|
|
1198
1199
|
};
|
|
1199
|
-
readonly output: LiquidationsLeaderboardDto;
|
|
1200
|
+
readonly output: StellarApi.LiquidationsLeaderboardDto;
|
|
1200
1201
|
};
|
|
1201
1202
|
readonly "/stellar-lending/volume": {
|
|
1202
1203
|
readonly input: {
|
|
@@ -1206,7 +1207,7 @@ export declare const endpoints: {
|
|
|
1206
1207
|
hubId?: number;
|
|
1207
1208
|
token?: string;
|
|
1208
1209
|
};
|
|
1209
|
-
readonly output: VolumeSeriesDto;
|
|
1210
|
+
readonly output: StellarApi.VolumeSeriesDto;
|
|
1210
1211
|
};
|
|
1211
1212
|
readonly "/stellar-lending/active-users": {
|
|
1212
1213
|
readonly input: {
|
|
@@ -1214,16 +1215,16 @@ export declare const endpoints: {
|
|
|
1214
1215
|
to: string;
|
|
1215
1216
|
bin: string;
|
|
1216
1217
|
};
|
|
1217
|
-
readonly output: ActiveUsersSeriesDto;
|
|
1218
|
+
readonly output: StellarApi.ActiveUsersSeriesDto;
|
|
1218
1219
|
};
|
|
1219
1220
|
readonly "/stellar-lending/distribution": {
|
|
1220
1221
|
readonly input: {
|
|
1221
1222
|
hubId?: number;
|
|
1222
1223
|
spokeId?: number;
|
|
1223
1224
|
token?: string;
|
|
1224
|
-
side?:
|
|
1225
|
+
side?: "deposits" | "borrows";
|
|
1225
1226
|
};
|
|
1226
|
-
readonly output: HolderDistributionDto;
|
|
1227
|
+
readonly output: StellarApi.HolderDistributionDto;
|
|
1227
1228
|
};
|
|
1228
1229
|
readonly "/stellar-lending/rate-spread": {
|
|
1229
1230
|
readonly input: {
|
|
@@ -1233,7 +1234,7 @@ export declare const endpoints: {
|
|
|
1233
1234
|
hubId?: number;
|
|
1234
1235
|
token?: string;
|
|
1235
1236
|
};
|
|
1236
|
-
readonly output: RateSpreadSeriesDto;
|
|
1237
|
+
readonly output: StellarApi.RateSpreadSeriesDto;
|
|
1237
1238
|
};
|
|
1238
1239
|
readonly "/stellar-lending/defillama": {
|
|
1239
1240
|
readonly input: {
|
|
@@ -1241,7 +1242,7 @@ export declare const endpoints: {
|
|
|
1241
1242
|
to: string;
|
|
1242
1243
|
bin: string;
|
|
1243
1244
|
};
|
|
1244
|
-
readonly output: DefiLlamaDimensionsDto;
|
|
1245
|
+
readonly output: StellarApi.DefiLlamaDimensionsDto;
|
|
1245
1246
|
};
|
|
1246
1247
|
readonly "/user/notifications": {
|
|
1247
1248
|
readonly input: {
|
|
@@ -2322,4 +2323,15 @@ export declare const endpoints: {
|
|
|
2322
2323
|
readonly body: PerpEvent;
|
|
2323
2324
|
};
|
|
2324
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
|
+
};
|
|
2325
2337
|
};
|
package/dist/sdk/types.d.ts
CHANGED
|
@@ -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;
|
package/dist/utils/api.d.ts
CHANGED
|
@@ -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
|
-
|
|
29
|
-
|
|
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>;
|
package/dist/utils/const.d.ts
CHANGED
|
@@ -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.
|
|
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.496"
|
|
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"
|