@xoxno/sdk-js 1.0.36 → 1.0.39
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 +6 -6
- package/dist/sdk/swagger.d.ts +2 -2
- package/dist/sdk/types.d.ts +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -205,7 +205,7 @@ sdk.ash.minTokenQuantity(...); // FetchSwapRoutesResponseDto
|
|
|
205
205
|
sdk.ash.maxTokenQuantity(...); // FetchSwapRoutesResponseDto
|
|
206
206
|
|
|
207
207
|
// GET /collection/:collection/attributes
|
|
208
|
-
sdk.collection.collection("...").attributes(...); // Record<string
|
|
208
|
+
sdk.collection.collection("...").attributes(...); // Record<string, ValueFp & Record<string, TraitInfo>>
|
|
209
209
|
|
|
210
210
|
// GET /collection/:collection/ranks
|
|
211
211
|
sdk.collection.collection("...").ranks(...); // CollectionRanksDTO[]
|
|
@@ -229,7 +229,7 @@ sdk.collection.collection("...").profile.PATCH(...); // CollectionProfileDoc
|
|
|
229
229
|
sdk.collection.collection("...").floorPrice(...); // FloorPriceDto
|
|
230
230
|
|
|
231
231
|
// GET /collection/floor-price
|
|
232
|
-
sdk.collection.floorPrice(...); // Record<string
|
|
232
|
+
sdk.collection.floorPrice(...); // Record<string, number>
|
|
233
233
|
|
|
234
234
|
// GET /collection/pinned
|
|
235
235
|
sdk.collection.pinned(...); // PinnedCollectionDto[]
|
|
@@ -523,7 +523,7 @@ sdk.lending.market.token("...").profile(...); // LendingMarketProfile
|
|
|
523
523
|
sdk.lending.market.query(...); // LendingMarketProfileQuery
|
|
524
524
|
|
|
525
525
|
// GET /lending/market/indexes
|
|
526
|
-
sdk.lending.market.indexes(...); // Record<string
|
|
526
|
+
sdk.lending.market.indexes(...); // Record<string, LendingIndexesDto>
|
|
527
527
|
|
|
528
528
|
// GET /lending/market/emode-categories
|
|
529
529
|
sdk.lending.market.emodeCategories(...); // LendingEModeCategoryProfile[]
|
|
@@ -541,7 +541,7 @@ sdk.lending.leaderboard(...); // LendingPositionStatus[]
|
|
|
541
541
|
sdk.lending.stats(...); // LendingOverallStats
|
|
542
542
|
|
|
543
543
|
// GET /lending/market/prices
|
|
544
|
-
sdk.lending.market.prices(...); // Record<string
|
|
544
|
+
sdk.lending.market.prices(...); // Record<string, number>
|
|
545
545
|
|
|
546
546
|
// GET /lending/market-sc
|
|
547
547
|
sdk.lending.marketSc(...); // string[]
|
|
@@ -673,10 +673,10 @@ sdk.tokens(...); // TokenDataDocHydrated[]
|
|
|
673
673
|
sdk.tokens.swap(...); // TokenDataDocHydrated[]
|
|
674
674
|
|
|
675
675
|
// GET /tokens/usd-price
|
|
676
|
-
sdk.tokens.usdPrice(...); // Record<string
|
|
676
|
+
sdk.tokens.usdPrice(...); // Record<string, number>
|
|
677
677
|
|
|
678
678
|
// GET /tokens/egld/fiat-price
|
|
679
|
-
sdk.tokens.egld.fiatPrice(...); // Record<string
|
|
679
|
+
sdk.tokens.egld.fiatPrice(...); // Record<string, number>
|
|
680
680
|
|
|
681
681
|
// GET /tokens/xoxno
|
|
682
682
|
sdk.tokens.xoxno(...); // IMetrics
|
package/dist/sdk/swagger.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AirdropDtoHydrated, AnalyticsMarketplaceUniqueUsers, AnalyticsVolumeDto, AnsweredQuestionWithDetails, ArdaSwapResultDto, BageQRData, ChatMessageDocHydrated, ChatMessagePaginated, CheckLikeStatusResponseDto, CollectionHoldersDto, CollectionHoldersExportDto, CollectionMintProfileDocHydrated, CollectionMintProfileDocWithStages, CollectionMintProfileFilter, CollectionMintProfilePaginated, CollectionOffersFilter, CollectionOwnerDto, CollectionPinnedStatusDto, CollectionProfileDoc, CollectionProfileEditDto, CollectionProfileFilter, CollectionProfilePaginated, CollectionRanksDTO, CollectionStatsDocHydrated, CollectionStatsFilter, CollectionStatsPaginated, CreatorDetailsDto, CreatorMarketingNotificationDto, CreatorProfileDoc, CreatorProfileDto, DelegationDataOutput, DiscountCodeValidationResponse, EditUserCreatorProfileDto, EventCheckInQR, 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, EventVoucherCreateDto, EventVoucherDoc, EventVoucherEditDto, EventVoucherFilter, EventVoucherQuery, FetchSwapRoutesResponseDto, FilterQueryDto, FloorPriceDto, FollowCollectionDto, GlobalAnalyticsOverviewResponseDto, GlobalConversationSummaryDto, GlobalOfferPaginated, GlobalSearchResourcesPaginated, IMetrics, InventorySummaryDtoHydrated, LendingAccountProfile, LendingEModeCategoryProfile, LendingIndexesDto, LendingMarketAnalyticsGraph, LendingMarketProfile, LendingMarketProfileFilter, LendingMarketProfileQuery, LendingOverallStats, LendingPositionStatus, LendingTokenPriceDto, LikeNftDto, ListingsResponseDto, LoginAccessDto, LoginRequestDto, ManualCheckInDto, MobileDeviceDoc, MobileDeviceRegistrationDto, NativeWalletDto, NftActivityDocHydrated, NftActivityFilter, NftActivityPaginated, NftDocFilter, NftDocFull, NftDocHydrated, NftOfferDocFilter, NftOfferDocHydrated, NftOfferPaginated, NftPaginated, NotificationDoc, NotificationPaginated, NotificationPreferencesPostDto, NotificationSuccessResponseDto, OwnedCollectionsDto, OwnedServicesDto, PinnedCollectionDto, ProtocolAprType, ProviderDto, PublicOnly, PushNotificationCountResponse, PushNotificationDoc, PushNotificationResponse, RateType, SendChatMessageDto, SetEmailDto, SetPhoneDto, ShareholderDto, SignAcceptGlobalOfferDto, SignDataDto, SignMintDto, SignWithdrawDto, StakingCreatorDoc, StakingExploreDtoHydrated, StakingPoolDoc,
|
|
1
|
+
import type { AirdropDtoHydrated, AnalyticsMarketplaceUniqueUsers, AnalyticsVolumeDto, AnsweredQuestionWithDetails, ArdaSwapResultDto, BageQRData, ChatMessageDocHydrated, ChatMessagePaginated, CheckLikeStatusResponseDto, CollectionHoldersDto, CollectionHoldersExportDto, CollectionMintProfileDocHydrated, CollectionMintProfileDocWithStages, CollectionMintProfileFilter, CollectionMintProfilePaginated, CollectionOffersFilter, CollectionOwnerDto, CollectionPinnedStatusDto, CollectionProfileDoc, CollectionProfileEditDto, CollectionProfileFilter, CollectionProfilePaginated, CollectionRanksDTO, CollectionStatsDocHydrated, CollectionStatsFilter, CollectionStatsPaginated, CreatorDetailsDto, CreatorMarketingNotificationDto, CreatorProfileDoc, CreatorProfileDto, DelegationDataOutput, DiscountCodeValidationResponse, EditUserCreatorProfileDto, EventCheckInQR, 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, EventVoucherCreateDto, EventVoucherDoc, EventVoucherEditDto, EventVoucherFilter, EventVoucherQuery, FetchSwapRoutesResponseDto, FilterQueryDto, FloorPriceDto, FollowCollectionDto, GlobalAnalyticsOverviewResponseDto, GlobalConversationSummaryDto, GlobalOfferPaginated, GlobalSearchResourcesPaginated, IMetrics, InventorySummaryDtoHydrated, LendingAccountProfile, LendingEModeCategoryProfile, LendingIndexesDto, LendingMarketAnalyticsGraph, LendingMarketProfile, LendingMarketProfileFilter, LendingMarketProfileQuery, LendingOverallStats, LendingPositionStatus, LendingTokenPriceDto, LikeNftDto, ListingsResponseDto, LoginAccessDto, LoginRequestDto, ManualCheckInDto, MobileDeviceDoc, MobileDeviceRegistrationDto, NativeWalletDto, NftActivityDocHydrated, NftActivityFilter, NftActivityPaginated, NftDocFilter, NftDocFull, NftDocHydrated, NftOfferDocFilter, NftOfferDocHydrated, NftOfferPaginated, NftPaginated, NotificationDoc, NotificationPaginated, NotificationPreferencesPostDto, NotificationSuccessResponseDto, OwnedCollectionsDto, OwnedServicesDto, PinnedCollectionDto, ProtocolAprType, ProviderDto, PublicOnly, PushNotificationCountResponse, PushNotificationDoc, PushNotificationResponse, RateType, SendChatMessageDto, SetEmailDto, SetPhoneDto, ShareholderDto, SignAcceptGlobalOfferDto, SignDataDto, SignMintDto, SignWithdrawDto, StakingCreatorDoc, StakingEditDto, StakingExploreDtoHydrated, StakingPoolDoc, StakingSummary, StakingUserPoolNfts, SuccessDto, SuccessWithMessageDto, SwitchWalletDto, TicketCalculationRequestDto, TicketPricesResponse, TicketValidationResult, TokenDataDocHydrated, TradesilvaniaSignature, TraitInfo, TransactionCreate, TransactionDetailed, TransactionProcessStatus, TransactionSendResult, UserAnalyticsDto, UserBillingDetails, UserBlockPaginated, UserConversationPaginated, UserFavoriteResponseDto, UserNetworkInfoDto, UserProfileDoc, UserProfileDto, UserProfileEditDto, UserSettingsDoc, UserStakingSummaryDto, UserStatsDto, UserTokenInventoryResponseDto, ValueFp, VerifyEmailDto, VolumeGraph, Web2UserDoc, Web2UserShardsDto, Web2WalletDto, WebSocketTokenDto, XoxnoInfo, XoxnoLiquidStatsDto } from '@xoxno/types';
|
|
2
2
|
import type { ActivityChain, KustoOrderDirection, LendingPositionOrderByColumn, OfferType, StakingStatus, TokenCategory, UserStatsOrderByColumn } from '@xoxno/types/enums';
|
|
3
3
|
export declare const endpoints: {
|
|
4
4
|
readonly '/user/:address/network-account': {
|
|
@@ -780,7 +780,7 @@ export declare const endpoints: {
|
|
|
780
780
|
readonly PATCH: {
|
|
781
781
|
readonly input: {};
|
|
782
782
|
readonly output: StakingPoolDoc;
|
|
783
|
-
readonly body:
|
|
783
|
+
readonly body: StakingEditDto;
|
|
784
784
|
readonly securityMode: "requiredAny";
|
|
785
785
|
};
|
|
786
786
|
};
|
package/dist/sdk/types.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ type CollectParams<S extends string> = S extends `${string}:${infer P}/${infer R
|
|
|
7
7
|
[K in P]: string;
|
|
8
8
|
} & CollectParams<`/${R}`> : S extends `${string}:${infer P}` ? {
|
|
9
9
|
[K in P]: string;
|
|
10
|
-
} :
|
|
10
|
+
} : {};
|
|
11
11
|
type RequireAtLeastOne<T> = {
|
|
12
12
|
[K in keyof T]-?: {
|
|
13
13
|
[P in K]-?: T[P];
|
|
@@ -60,9 +60,9 @@ type PathToTree<P extends string, I, O, Full = {
|
|
|
60
60
|
} : {
|
|
61
61
|
[K in CamelCase<Head>]: PathToTree<`/${Rest}`, I, O, Full, Root, Bag>;
|
|
62
62
|
} : P extends `/:${infer Param}` ? {
|
|
63
|
-
[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> :
|
|
63
|
+
[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>>;
|
|
64
64
|
} : P extends `/${infer Leaf}` ? {
|
|
65
|
-
[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> :
|
|
65
|
+
[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>;
|
|
66
66
|
} : never;
|
|
67
67
|
type AnyFn = (...a: any[]) => any;
|
|
68
68
|
type IsFn<T> = T extends AnyFn ? true : false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoxno/sdk-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "The SDK to interact with the XOXNO Protocol!",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -104,6 +104,6 @@
|
|
|
104
104
|
"dependencies": {
|
|
105
105
|
"@multiversx/sdk-core": "^13.17.2",
|
|
106
106
|
"@multiversx/sdk-network-providers": "^2.9.3",
|
|
107
|
-
"@xoxno/types": "^1.0.
|
|
107
|
+
"@xoxno/types": "^1.0.187"
|
|
108
108
|
}
|
|
109
109
|
}
|