@xoxno/sdk-js 0.1.94-alpha → 0.1.96-alpha
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/dist/collection/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/staking/index.d.ts +1 -1
- package/dist/staking/index.d.ts.map +1 -1
- package/dist/types/collection.d.ts +5 -0
- package/dist/types/collection.d.ts.map +1 -1
- package/dist/types/nft.d.ts +0 -15
- package/dist/types/nft.d.ts.map +1 -1
- package/dist/types/staking.d.ts +26 -75
- package/dist/types/staking.d.ts.map +1 -1
- package/dist/types/user.d.ts +1 -35
- package/dist/types/user.d.ts.map +1 -1
- package/dist/users/index.d.ts +2 -2
- package/dist/users/index.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/collection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAElB,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAElB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EAElB,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAKhF;;;;;;;GAOG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,GAAG,CAAc;;IAKzB;;;;;;;;;;;;;OAaG;IACI,oBAAoB,eACb,MAAM,KACjB,QAAQ,kBAAkB,CAAC,CA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ACrB,KAAG,QAAQ,qBAAqB,CAAC,CAehC;IAEF;;;;;;;OAOG;IACI,kBAAkB,uBAGtB;QACD,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,WAAW,CAAC;KACrB,KAAG,QAAQ,qBAAqB,EAAE,CAAC,CAelC;IAEF;;;;;;;;OAQG;IACI,WAAW,0CAIf;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,WAAW,CAAC;KACrB,KAAG,QAAQ,qBAAqB,CAAC,CAYhC;IAEF;;;;;;;OAOG;IACI,sBAAsB,eACf,MAAM,aACP,MAAM,WACR,MAAM,OACV,MAAM,KACV,QAAQ,eAAe,CAAC,CAmBzB;IAEF;;;;;OAKG;IACI,oBAAoB,QAAa,QAAQ,kBAAkB,EAAE,CAAC,CAWnE;IAEF;;;;;OAKG;IACI,QAAQ,SAAgB,YAAY,KAAG,QAAQ,gBAAgB,CAAC,CAmDrE;IAEF;;;;UAIM;IACC,2BAA2B,2BAG/B;QACD,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,WAAW,CAAC;KACrB,KAAG,QAAQ,mBAAmB,EAAE,CAAC,CAYhC;IAEF;;;;;;;OAOG;IACI,mBAAmB,gBACX,MAAM,EAAE,KACpB,QAAQ,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,CAehC;CACH"}
|
package/dist/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var t,e,a,i,r,o,s,n,l,c,d,h,g,u,p,f,T,m,y,w,S,k,q={d:(t,e)=>{for(var a in e)q.o(e,a)&&!q.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},v={};q.d(v,{$C:()=>d,Yo:()=>m,LU:()=>c,sW:()=>W,X$:()=>M,JA:()=>u,he:()=>g,cO:()=>n,t7:()=>o,iQ:()=>h,MD:()=>F,Gq:()=>i,h4:()=>e,wT:()=>l,JM:()=>s,Vx:()=>y,O8:()=>t,s0:()=>$,o:()=>p,p4:()=>S,AQ:()=>f,J1:()=>w,g6:()=>a,cB:()=>T,Gt:()=>b,I_:()=>r,ZU:()=>k,Us:()=>V,GW:()=>I}),function(t){t.XO="xoxno",t.FM="frameit",t.DR="deadrare",t.KG="krogan"}(t||(t={})),function(t){t.Rank="metadata.rarity.rank",t.Attributes="metadata.attributes",t.Description="metadata.description",t.Name="name",t.OnSale="onSale",t.SaleInfo="saleInfo",t.Royalties="royalties",t.Identifier="identifier",t.Collection="collection",t.OriginalURL="url",t.Nonce="nonce",t.ContentType="originalMedia.contentType",t.WasProcessed="wasProcessed",t.AvifURL="avifUrl",t.WebpURL="webpUrl",t.Type="type"}(e||(e={})),function(t){t.PriceHighToLow="saleInfo.minBidShort desc",t.PriceLowToHigh="saleInfo.minBidShort asc",t.MaxPriceHighToLow="saleInfo.maxBidShort desc",t.MaxPriceLowToHigh="saleInfo.maxBidShort asc",t.BidPriceHighToLow="saleInfo.currentBidShort desc",t.BidPriceLowToHigh="saleInfo.currentBidShort asc",t.RarityHighToLow="metadata.rarity.rank desc",t.RarityLowToHigh="metadata.rarity.rank asc",t.NonceHighToLow="nonce desc",t.NonceLowToHigh="nonce asc",t.RecentListed="saleInfo.timestamp desc",t.OldestListed="saleInfo.timestamp asc",t.EndingLate="saleInfo.deadline desc",t.EndingSoon="saleInfo.deadline asc"}(a||(a={})),function(t){t.EndingLate="startTime desc",t.EndingSoon="startTime asc"}(i||(i={})),function(t){t.TotalVolumeHighToLow="statistics/tradeData/totalEgldVolume desc",t.FollowersHighToLow="statistics/other/followCount desc",t.IsVerifiedTrueToFalse="isVerified desc",t.HasImageTrueToFalse="profile desc",t.HasBannerTrueToFalse="banner desc"}(r||(r={})),function(t){t.WeekVolumeHighToLow="statistics.tradeData.weekEgldVolume desc",t.WeekVolumeLowToHigh="statistics.tradeData.weekEgldVolume asc",t.DailyVolumeHighToLow="statistics.tradeData.dayEgldVolume desc",t.DailyVolumeLowToHigh="statistics.tradeData.dayEgldVolume asc",t.TotalVolumeHighToLow="statistics.tradeData.totalEgldVolume desc",t.TotalVolumeLowToHigh="statistics.tradeData.totalEgldVolume asc",t.AvgVolumePriceHighToLow="statistics.tradeData.averageEgldPrice desc",t.AvgVolumePriceLowToHigh="statistics.tradeData.averageEgldPrice asc",t.ATHHighToLow="statistics.tradeData.athEgldPrice desc",t.ATHLowToHigh="statistics.tradeData.athEgldPrice asc",t.TotalTradesHighToLow="statistics.tradeData.totalTrades desc",t.TotalTradesLowToHigh="statistics.tradeData.totalTrades asc",t.SupplyHighToLow="statistics.other.nftCount desc",t.SupplyLowToHigh="statistics.other.nftCount asc",t.FollowersHighToLow="statistics.other.followCount desc",t.FollowersLowToHigh="statistics.other.followCount asc"}(o||(o={})),function(t){t.PriceHighToLow="priceShort desc",t.PriceLowToHigh="priceShort asc",t.OfferIdHighToLow="offerIddesc",t.OfferIdLowToHigh="offerId asc",t.RecentListed="timestamp desc",t.OldestListed="timestamp asc"}(s||(s={})),function(t){t.Profile="profile",t.Description="description",t.Creator="creator",t.Owner="owner",t.Socials="socials",t.Type="type",t.HasStaking="hasStaking",t.Name="name",t.Banner="banner",t.IsVerified="isVerified",t.IsMintable="isMintable",t.Statistics="statistics",t.Collection="collection"}(n||(n={})),function(t){t.Attributes="attributes",t.Collection="collection",t.Marketplace="marketplace",t.PaymentToken="paymentToken",t.LongPrice="price",t.ShortPrice="priceShort"}(l||(l={})),function(t){t.FixedPrice="FixedPrice",t.Auctions="Auctions",t.All="All",t.AllListed="AllListed"}(c||(c={})),function(t){t.ALL="all",t.Trade="trade",t.P2P="p2p",t.Staking="staking",t.Minting="minting"}(d||(d={})),function(t){t.TotalVolume="TotalVolume",t.TotalTrades="TotalTrades",t.DailyVolume="DailyVolume",t.Last2DaysVolume="Last2DaysVolume",t.DailyTrades="DailyTrades",t.Last2DaysTrades="Last2DaysTrades",t.WeekTrades="WeekTrades",t.LastWeekTrades="LastWeekTrades",t.WeekVolume="WeekVolume",t.LastWeekVolume="LastWeekVolume",t.WeeklyTradesMargin="WeeklyTradesMargin",t.DailyTradesMargin="DailyTradesMargin",t.WeeklyVolumeMargin="WeeklyVolumeMargin",t.DailyVolumeEgldMargin="DailyVolumeEgldMargin",t.CollectionAthTrade="CollectionAthTrade"}(h||(h={})),function(t){t.TradingStats="tradingStats"}(g||(g={})),function(t){t.ListedCountDesc="tradingStats.listedCount DESC",t.ListedCountAsc="tradingStats.listedCount ASC",t.FloorPriceDesc="tradingStats.floorPrice DESC",t.FloorPriceAsc="tradingStats.floorPrice ASC",t.TotalVolumeDesc="tradingStats.totalVolume DESC",t.TotalVolumeAsc="tradingStats.totalVolume ASC",t.TotalTradesDesc="tradingStats.totalTrades DESC",t.TotalTradesAsc="tradingStats.totalTrades ASC",t.AllTimeHighDesc="tradingStats.allTimeHigh.price DESC",t.AllTimeHighAsc="tradingStats.allTimeHigh.price ASC",t.DayVolumeDesc="tradingStats.day.volume DESC",t.DayVolumeAsc="tradingStats.day.volume ASC",t.DayVolumeMarginDesc="tradingStats.day.volumeMargin DESC",t.DayVolumeMarginAsc="tradingStats.day.volumeMargin ASC",t.DayTradesDesc="tradingStats.day.trades DESC",t.DayTradesAsc="tradingStats.day.trades ASC",t.DayTradesMarginDesc="tradingStats.day.tradesMargin DESC",t.DayTradesMarginAsc="tradingStats.day.tradesMargin ASC",t.WeekVolumeDesc="tradingStats.week.volume DESC",t.WeekVolumeAsc="tradingStats.week.volume ASC",t.WeekVolumeMarginDesc="tradingStats.week.volumeMargin DESC",t.WeekVolumeMarginAsc="tradingStats.week.volumeMargin ASC",t.WeekTradesDesc="tradingStats.week.trades DESC",t.WeekTradesAsc="tradingStats.week.trades ASC",t.WeekTradesMarginDesc="tradingStats.week.tradesMargin DESC",t.WeekTradesMarginAsc="tradingStats.week.tradesMargin ASC",t.MonthVolumeDesc="tradingStats.month.volume DESC",t.MonthVolumeAsc="tradingStats.month.volume ASC",t.MonthVolumeMarginDesc="tradingStats.month.volumeMargin DESC",t.MonthVolumeMarginAsc="tradingStats.month.volumeMargin ASC",t.MonthTradesDesc="tradingStats.month.trades DESC",t.MonthTradesAsc="tradingStats.month.trades ASC",t.MonthTradesMarginDesc="tradingStats.month.tradesMargin DESC",t.MonthTradesMarginAsc="tradingStats.month.tradesMargin ASC",t.YearVolumeDesc="tradingStats.year.volume DESC",t.YearVolumeAsc="tradingStats.year.volume ASC",t.YearVolumeMarginDesc="tradingStats.year.volumeMargin DESC",t.YearVolumeMarginAsc="tradingStats.year.volumeMargin ASC",t.YearTradesDesc="tradingStats.year.trades DESC",t.YearTradesAsc="tradingStats.year.trades ASC",t.YearTradesMarginDesc="tradingStats.year.tradesMargin DESC",t.YearTradesMarginAsc="tradingStats.year.tradesMargin ASC"}(u||(u={})),function(t){t.NFT_CREATE="nftCreate",t.NFT_BURN="nftBurn",t.NFT_UPDATE="nftUpdate",t.NFT_TRANSFER="nftTransfer",t.LISTING_CREATE="listingCreate",t.LISTING_WITHDRAW="listingWithdraw",t.LISTING_UPDATE="listingUpdate",t.AUCTION_BID="auctionBid",t.AUCTION_OUT_BID="auctionOutBid",t.OFFER_CREATE="offerCreate",t.OFFER_WITHDRAW="offerWithdraw",t.OFFER_REJECT="offerReject",t.GLOBAL_OFFER_CREATE="globalOfferCreate",t.GLOBAL_OFFER_WITHDRAW="globalOfferWithdraw",t.TRADE="trade",t.BULK_TRADE="bulkTrade",t.AUCTION_TRADE="auctionTrade",t.OTHER_TRADE="otherTrade",t.OFFER_TRADE="offerTrade",t.GLOBAL_OFFER_TRADE="globalOfferTrade",t.STAKE="stake",t.UN_STAKE="unStake"}(p||(p={})),function(t){t.PriceHighToLow="activityData.egldValue desc",t.PriceLowToHigh="activityData.egldValue asc",t.RecentPlaced="timestamp desc",t.OldestPlaced="timestamp asc"}(f||(f={})),function(t){t[t.attributes=0]="attributes",t[t.collection=1]="collection",t[t.offer_id=2]="offer_id",t[t.owner=3]="owner",t[t.short_price=4]="short_price",t[t.price=5]="price",t[t.id=6]="id",t[t.dataType=7]="dataType",t[t.marketplace=8]="marketplace",t[t.payment_token=9]="payment_token"}(T||(T={})),function(t){t[t.NftBid=0]="NftBid",t[t.Nft=1]="Nft",t[t.SftAll=2]="SftAll",t[t.SftOnePerPayment=3]="SftOnePerPayment"}(m||(m={})),function(t){t.Dynamic="Dynamic",t.Fixed="Fixed"}(y||(y={})),function(t){t.Duo="Duo",t.Single="Single",t.Perk="Perk"}(w||(w={})),function(t){t.Received="received",t.Placed="placed"}(S||(S={})),function(t){t.NonFungibleESDT="NonFungibleESDT"}(k||(k={}));const E="https://api.xoxno.com",A="erd1qqqqqqqqqqqqqpgq705fxpfrjne0tl3ece0rrspykq88mynn4kxs2cg43s",C="erd1qqqqqqqqqqqqqpgqd9rvv2n378e27jcts8vfwynpx0gfl5ufz6hqhfy0u0",D="erd1qqqqqqqqqqqqqpgq8xwzu82v8ex3h4ayl5lsvxqxnhecpwyvwe0sf2qj4e";var W;!function(t){t.MAINNET="1",t.DEVNET="D"}(W||(W={}));class I{static instance;apiUrl;apiKey;chain;config;constructor(t=E,e="",a=W.MAINNET){this.apiUrl=t,this.apiKey=e,this.chain=a,this.config=a===W.MAINNET?{XO_SC:"erd1qqqqqqqqqqqqqpgq6wegs2xkypfpync8mn2sa5cmpqjlvrhwz5nqgepyg8",FM_SC:A,DR_SC:C,KG_SC:D,Staking_SC:"erd1qqqqqqqqqqqqqpgqvpkd3g3uwludduv3797j54qt6c888wa59w2shntt6z",Manager_SC:"erd1qqqqqqqqqqqqqpgqg9fa0dmpn8fu3fnleeqn5zt8rl8mdqjkys5s2gtas7",P2P_SC:"erd1qqqqqqqqqqqqqpgq47y8hnct68v6asjv6gxem6h9rumn9frzah0skhxxt6"}:{XO_SC:"erd1qqqqqqqqqqqqqpgql0dnz6n5hpuw8cptlt00khd0nn4ja8eadsfq2xrqw4",FM_SC:A,DR_SC:C,KG_SC:D,Staking_SC:"erd1qqqqqqqqqqqqqpgqsc5hnewwpep8qq0d7kjjzrquapuucrygah0s85zres",Manager_SC:"erd1qqqqqqqqqqqqqpgqluclyhfsa2uw7q9cjwd8knk989hg57u8ah0slq2nlr",P2P_SC:"erd1qqqqqqqqqqqqqpgqfja7ukpngrun78ueq583l0vd6aj4ekhrah0sa9wyrv"}}static init({apiUrl:t=E,apiKey:e="",chain:a=W.MAINNET}={}){if(!I.instance){if(a==W.DEVNET)return I.instance=new I(t??"https://devnet-api.xoxno.com",e,a),I.instance;I.instance=new I(t,e,a)}return I.instance}fetchWithTimeout=async(t,e={},a=4e4)=>{const i={"Accept-Encoding":"gzip,deflate,br",Referer:"https://xoxno.sdk","User-Agent":"XOXNO/1.0/SDK",..."POST"===e.method?{"Content-Type":"application/json"}:{},...e.headers??{}},r=`${"string"==typeof t&&t.startsWith("/")?`${this.apiUrl}${t}`:t}${e.params?"?"+Object.keys(e.params).map((t=>`${t}=${encodeURIComponent(e.params[t])}`)).join("&"):""}`,o=new AbortController;setTimeout((()=>o.abort()),a);const s=await fetch(r,{...e,...e?.next&&e.next.revalidate?{}:{cache:"no-store"},signal:o.signal,...Object.keys(i).length?{headers:i}:{},method:e.method??"GET"});if(!s.ok)throw new Error((await s.json()).message.toString());return s.json()}}const x=async(t,e)=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");const a=[];t.priceRange&&a.push({...t.priceRange,field:"activityData.egldValue"}),t.timestampRange&&a.push({...t.timestampRange,field:"timestamp"});const i={filters:{activityData:null==t.from&&null==t.to?{collection:t.collections,identifier:t.identifiers||void 0}:void 0,from:t.from,to:t.to,activityAddress:t.wallets||void 0,source:t.source||void 0,activityType:t.activityType||void 0,range:a},strictSelect:t.strictSelect,orderBy:t.orderBy,select:t.select,top:t.top||35,skip:t.skip||0},r=await e.fetchWithTimeout("/activity/query",{params:{filter:JSON.stringify(i)},next:{tags:["getActivity"],revalidate:180}});return{...r,getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)},empty:0===r.resources.length}},O=t=>/^[A-Z0-9]{3,10}-[a-z0-9]{6}$/.test(t),P=t=>/^[A-Za-z0-9]{3,10}-[A-Za-z0-9]{6}-[A-Za-z0-9]{2,5}(?:-\d+(?:-[A-Za-z0-9]+)?)?$/.test(t);class M{api;constructor(){this.api=I.init()}getCollectionProfile=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/profile`,{next:{tags:["getCollectionProfile"],revalidate:30}})};getDailyTrending=async()=>await this.api.fetchWithTimeout("/nfts/getDailyTrending",{next:{tags:["getDailyTrending"],revalidate:180}});getCollectionFloorPrice=async(t,e="EGLD")=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);const a=await this.api.fetchWithTimeout(`/collection/${t}/floor-price`,{next:{tags:["getCollectionFloorPrice"]},params:{token:e}});return a?.price?a.price:0};getCollectionAttributes=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/attributes`,{next:{tags:["getCollectionAttributes"],revalidate:180}})};getNFTs=async t=>{if(t?.collections?.forEach((t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>35)throw new Error("Top cannot be greater than 35");const e=[];t.priceRange&&e.push({...t.priceRange,field:t.auctionType==c.Auctions?"saleInfo.currentBidShort":"saleInfo.minBidShort"}),t.rankRange&&e.push({...t.rankRange,field:"metadata.rarity.rank"});const a={filters:{dataType:t.dataType??["nft"],activeAuction:t.activeAuctions,collection:t.collections??[],onSale:t.onlyOnSale,saleInfo:{seller:t.listedBy||[],marketplace:t.listedOnlyOn||void 0,paymentToken:t.listedInToken||[],auctionType:t.auctionType==c.Auctions?["NftBid","SftAll"]:t.auctionType==c.FixedPrice?["Nft","SftOnePerPayment"]:t.auctionType==c.AllListed?["NftBid","SftAll","Nft","SftOnePerPayment"]:void 0},owner:t.ownedBy||[],verifiedOnly:t.onlyVerified||!1,metadata:{attributes:t.attributes||void 0},range:e,cp_staked:t.isStaked||void 0},applyNftExtraDetails:t.applyNftExtraDetails,orderBy:t.orderBy||[],select:t.onlySelectFields||[],includeCount:t.includeCount||!1,top:t.top||35,skip:t.skip||0};return{...await this.api.fetchWithTimeout("/nft/query",{params:{filter:JSON.stringify(a)},next:{tags:["getCollectionNFTs"]},cache:"no-store"}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};suggestCollections=async t=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");if(!t.name)throw new Error("Name is required");const e={name:t.name,top:t.top||35,skip:t.skip||0};return await this.api.fetchWithTimeout("/collection/search",{params:{filter:JSON.stringify(e)},next:{tags:["/collection/search"],revalidate:180}})};collectionListingsAnalytics=async t=>await this.api.fetchWithTimeout(`/collection/${t}/listings`,{next:{tags:["collection/${ticker}/listings"],revalidate:500}});getTradingActivity=async t=>await x(t,this.api);getCollections=async t=>{if(t?.top&&t.top>25)throw new Error("Top cannot be greater than 25");const e={skip:t?.skip||0,top:t?.top||25,select:t?.onlySelectFields||[],filters:{dataType:"collectionProfile",isMintable:t?.onlyMintable||void 0,...t?.collections&&t.collections.length>0&&{collection:t.collections}},orderBy:[t?.orderBy||"statistics.tradeData.weekEgldVolume desc"]},a=await this.api.fetchWithTimeout("/collection/query",{params:{filter:JSON.stringify(e)},next:{tags:["getCollections"],revalidate:180}});return{results:a,resultsCount:a.length,empty:0===a.length,getNextPagePayload:{...t,skip:(t?.skip||0)+(t?.top||25)},hasMoreResults:a.length>=(t?.top||25)}};getGlobalOffers=async t=>{if(t?.top&&t.top>25)throw new Error("Top cannot be greater than 25");const e={skip:t?.skip||0,top:t?.top||25,select:t?.onlySelectFields||[],filters:{collection:t?.collections||[],withAttributes:t?.withAttributes??!1,isActive:t?.onlyActive??!0,offerId:t?.offerIds,owner:t?.ownedBy,marketplace:t?.listedOnlyOn,range:t?.priceRange?{...t.priceRange,type:"priceShort"}:void 0,attributes:t?.attributes},orderBy:[t?.orderBy||s.PriceHighToLow]},a=await this.api.fetchWithTimeout("/collection/global-offer/query",{params:{filter:JSON.stringify(e)},next:{tags:["getGlobalOffers"],revalidate:12}});return{...a,getNextPagePayload:{...t,skip:(t?.top||25)+a.lastSkip}}};getCollectionVolume=async(t,e,a,i)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/analytics/volume?startTime=${e}&endTime=${a}&bin=${i}`,{next:{tags:["getCollectionVolume"],revalidate:180}})};getMarketplaceVolume=async(t,e,a)=>await this.api.fetchWithTimeout(`/analytics/volume?startTime=${t}&endTime=${e}&bin=${a}`,{next:{tags:["getMarketplaceVolume"],revalidate:180}});getCollectionOwners=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/holders`,{next:{tags:["getCollectionOwners"],revalidate:500}})};getExportOwners=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/holders?exportHolders=true`,{next:{tags:["getExportOwners"]}})};getCollectionsStatistics=async t=>{if(t?.top&&t.top>25)throw new Error("Top cannot be greater than 25");return{...await this.api.fetchWithTimeout("/collection/stats/query",{params:{filter:JSON.stringify(t)},next:{tags:["collectionStatistics"],revalidate:12}}),getNextPagePayload:{...t,skip:t.skip+t.top}}};getCollectionStats=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/stats`,{next:{tags:["collectionStatistics"],revalidate:12}})};getAwaitEmpty=async t=>new Promise((e=>{setTimeout((()=>{e(!0)}),t)}));getCollectionMintInfo=async({ticker:t,extra:e})=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/drop-info`,{next:{tags:[`/collection/${t}/drop-info`],revalidate:12},...e})};getCollectionRanks=async({ticker:t,extra:e})=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/ranks`,{next:{tags:[`/collection/${t}/ranks`],revalidate:60},...e})};getDropInfo=async({collectionTag:t,creatorTag:e,extra:a})=>await this.api.fetchWithTimeout(`/collection/${e}/${t}/drop-info`,{next:{tags:[`/collection/${e}/${t}/drop-info`],revalidate:12},...a});getCollectionGraphData=async(t,e,a,i)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/analytics/volume`,{params:{startTime:e,endTime:a,bin:i},next:{tags:[`/collection/${t}/analytics/volume`],revalidate:60}})};getPinnedCollections=async()=>await this.api.fetchWithTimeout("/collection/pinned",{next:{tags:["/collection/pinned"],revalidate:60}});getDrops=async t=>{if(t?.collections?.forEach((t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>35)throw new Error("Top cannot be greater than 35");const e=[];t.timeRange&&e.push({...t.timeRange,field:"startTime"});const a={filters:{collection:t.collections??[],verifiedOnly:t.onlyVerified||!1,mintToken:t.listedInToken||void 0,range:e},orderBy:t.orderBy||[],select:t.onlySelectFields||[],includeCount:t.includeCount||!1,top:t.top||35,skip:t.skip||0};return{...await this.api.fetchWithTimeout("/collection/drops/query",{params:{filter:JSON.stringify(a)},next:{tags:["/collection/drops/query"]},cache:"no-store"}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};getCollectionStakingSummary=async({collection:t,extra:e})=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/staking/summary`,{...e})};getCollectionsFloor=async t=>{t?.forEach((t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t)}));return await this.api.fetchWithTimeout("/collection/floor-price",{params:{collection:t.join(",")}})}}const L=t=>{let e=t.toString(16);return e.length%2!=0&&(e="0"+e),e},N=t=>{try{return t.includes("erd1")}catch(t){return!1}};class ${api;constructor(){this.api=I.init()}getNFTByIdentifier=async t=>{if(!P(t))throw new Error("Invalid identifier: "+t);return await this.api.fetchWithTimeout(`/nft/${t}`)};getNFTsOffers=async(t,e=0,a=25)=>{if(!P(t))throw new Error("Invalid identifier: "+t);return await this.api.fetchWithTimeout(`/nft/${t}/offers?skip=${e}&top=${a}`,{next:{tags:["getNFTsOffers"],revalidate:12}})};getNFTByCollectionAndNonce=async(t,e)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);const a=await this.api.fetchWithTimeout(`/${((t,e)=>[t,L(e)].join("-"))(t,e)}`);return a};getNFTByCollectionAndNonceHex=async(t,e)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);e.length%2!=0&&(e="0"+e);return await this.api.fetchWithTimeout(`/${[t,e].join("-")}`)};getTradingActivity=async t=>await x(t,this.api)}class V{api;collection;constructor(){this.api=I.init(),this.collection=new M}getUserProfile=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/profile`)};getBulkAccounts=async t=>await this.api.fetchWithTimeout("/user/network-account",{method:"POST",body:JSON.stringify(t)});getUserAccount=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/network-account`)};getUserTokenInventory=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/token-inventory`)};getUserSummaryInventory=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/inventory-summary`)};getUserNFTs=async t=>await this.collection.getNFTs(t);getUserOffers=async t=>{if(!N(t.address))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t.address}/offers`,{params:{type:t.type,skip:t.skip,top:t.top}})};suggestUsers=async t=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");if(!t.name)throw new Error("Name is required");const e={name:t.name,top:t.top||35,skip:t.skip||0};return await this.api.fetchWithTimeout("/user/search",{params:{filter:JSON.stringify(e)},next:{tags:["/search/global"],revalidate:180}})};getTradingActivity=async t=>await x(t,this.api);getUserCreatorProfile=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/profile`)};getCreatorListings=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/listing`)};getUserStakingSummary=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/summary`)};getUserStakingAailable=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/available-pools`)};getUserCreatorInfo=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/details`)};getUserCollectionStaking=async(t,e)=>{if(!N(t))throw new Error("Invalid address");if(!O(e))throw new Error("Invalid collection ticker: "+e);return await this.api.fetchWithTimeout(`/user/${t}/staking/collection/${e}`)};getUserPoolStaking=async(t,e)=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}`)};getAvailableNFTsForStakingPool=async(t,e)=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}/nfts`)};getOwnedPoolsByAddress=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/owned-pools`)};getUserAnalyticsSummary=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/analytics/volume`)};getUserFavoriteNFTs=async(t,e,a)=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/favorite/nfts`,{params:{top:e,skip:a}})};getUserFavoriteCollectionTickers=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/favorite/collections`)};getIsCreatorRegistered=async t=>await this.api.fetchWithTimeout(`/user/${t}/creator/is-registered`);getUsersStats=async({top:t,skip:e,orderBy:a})=>{if(t&&t>35)throw new Error("Top cannot be greater than 35");return await this.api.fetchWithTimeout("/user/stats",{params:{top:t,skip:e,orderBy:a??"totalVolume"},next:{tags:["/user/stats"],revalidate:180}})};getAccountNFTsToStake=async(t,e)=>await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}/available-nfts`,{next:{tags:[`/user/${t}/staking/pool/${e}/available-nfts`],revalidate:30}});getStakingCreatorInfo=async t=>await this.api.fetchWithTimeout(`/user/${t}/staking/creator`,{next:{tags:[`/user/${t}/staking/creator`],revalidate:30}});getUsersDrop=async({top:t,skip:e,address:a})=>{if(t&&t>35)throw new Error("Top cannot be greater than 35");if(a&&!N(a))throw new Error("Invalid address");return await this.api.fetchWithTimeout("/user/xoxno-drop",{params:{top:t,skip:e,...a?{address:a}:{}},next:{tags:["/user/xoxno-drop"],revalidate:30}})};getUserOwnerCollections=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/owned-collections`)};getRoyaltiesSharesCreator=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/launchpad/${t}/shareholders/royalties`)};getMintSharesCreator=async(t,e)=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/launchpad/${t}/shareholders/collection/${e}`)}}class b{api;constructor(){this.api=I.init()}getPoolDetails=async t=>await this.api.fetchWithTimeout(`/pool/${t}/profile`)}class F{api;constructor(){this.api=I.init()}getTokensUsdPrice=async()=>await this.api.fetchWithTimeout("/tokens/usd-price");getAshSwapAmount=async({originalToken:t,originalTokenValue:e,paymentToken:a})=>await this.api.fetchWithTimeout("/ash/min-token-quantity",{params:{originalToken:t,originalTokenValue:e,paymentToken:a}});getFungibleTokens=async(t=[d.ALL],e)=>{let a={};e&&(a={identifier:e.join(",")}),t&&(a={...a,category:t.join(",")});return await this.api.fetchWithTimeout("/tokens",{params:a})};getGlobalGraphData=async(t,e,a)=>await this.api.fetchWithTimeout("/analytics/volume",{params:{startTime:t,endTime:e,bin:a},next:{tags:["/analytics/volume"],revalidate:60}});getAnalyticsOverview=async()=>await this.api.fetchWithTimeout("/analytics/overview",{next:{tags:["/analytics/overview"],revalidate:60}});suggestResults=async t=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");if(!t.name)throw new Error("Name is required");const e={name:t.name,top:t.top||35,skip:t.skip||0};return await this.api.fetchWithTimeout("/search",{params:{filter:JSON.stringify(e)},next:{tags:["/search/global"],revalidate:180}})};getExploreStaking=async()=>await this.api.fetchWithTimeout("/collection/staking/explore",{next:{tags:["/collection/staking/explore"],revalidate:60}})}var R=v.$C,B=v.Yo,H=v.LU,U=v.sW,_=v.X$,j=v.JA,G=v.he,J=v.cO,z=v.t7,K=v.iQ,Y=v.MD,X=v.Gq,Z=v.h4,Q=v.wT,tt=v.JM,et=v.Vx,at=v.O8,it=v.s0,rt=v.o,ot=v.p4,st=v.AQ,nt=v.J1,lt=v.g6,ct=v.cB,dt=v.Gt,ht=v.I_,gt=v.ZU,ut=v.Us,pt=v.GW;export{R as AssetCategory,B as AuctionType,H as AuctionTypes,U as Chain,_ as CollectionModule,j as CollectionStatsOrderBy,G as CollectionStatsSelectFields,J as CollectionsFieldsToSelect,z as CollectionsOrderBy,K as CollectionsSummaryFilter,Y as CommonModule,X as DropsOderBy,Z as FieldsToSelect,Q as GlobalOfferFieldsToSelect,tt as GlobalOfferOrderBy,et as IssuingType,at as Marketplace,it as NFTModule,rt as NftActivityType,ot as OfferType,st as OrderByTradingActivity,nt as PoolType,lt as SearchOrderBy,ct as SelectFieldsTradingActivity,dt as StakingModule,ht as SuggestOrderBy,gt as Type,ut as UserModule,pt as XOXNOClient};
|
|
1
|
+
var t,e,a,i,r,o,s,n,l,c,d,h,g,u,p,f,T,m,y,w,S,k,q={d:(t,e)=>{for(var a in e)q.o(e,a)&&!q.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},v={};q.d(v,{$C:()=>d,Yo:()=>m,LU:()=>c,sW:()=>W,X$:()=>M,JA:()=>u,he:()=>g,cO:()=>n,t7:()=>o,iQ:()=>h,MD:()=>F,Gq:()=>i,h4:()=>e,wT:()=>l,JM:()=>s,Vx:()=>y,O8:()=>t,s0:()=>$,o:()=>p,p4:()=>S,AQ:()=>f,J1:()=>w,g6:()=>a,cB:()=>T,Gt:()=>b,I_:()=>r,ZU:()=>k,Us:()=>V,GW:()=>I}),function(t){t.XO="xoxno",t.FM="frameit",t.DR="deadrare",t.KG="krogan"}(t||(t={})),function(t){t.Rank="metadata.rarity.rank",t.Attributes="metadata.attributes",t.Description="metadata.description",t.Name="name",t.OnSale="onSale",t.SaleInfo="saleInfo",t.Royalties="royalties",t.Identifier="identifier",t.Collection="collection",t.OriginalURL="url",t.Nonce="nonce",t.ContentType="originalMedia.contentType",t.WasProcessed="wasProcessed",t.AvifURL="avifUrl",t.WebpURL="webpUrl",t.Type="type"}(e||(e={})),function(t){t.PriceHighToLow="saleInfo.minBidShort desc",t.PriceLowToHigh="saleInfo.minBidShort asc",t.MaxPriceHighToLow="saleInfo.maxBidShort desc",t.MaxPriceLowToHigh="saleInfo.maxBidShort asc",t.BidPriceHighToLow="saleInfo.currentBidShort desc",t.BidPriceLowToHigh="saleInfo.currentBidShort asc",t.RarityHighToLow="metadata.rarity.rank desc",t.RarityLowToHigh="metadata.rarity.rank asc",t.NonceHighToLow="nonce desc",t.NonceLowToHigh="nonce asc",t.RecentListed="saleInfo.timestamp desc",t.OldestListed="saleInfo.timestamp asc",t.EndingLate="saleInfo.deadline desc",t.EndingSoon="saleInfo.deadline asc"}(a||(a={})),function(t){t.EndingLate="startTime desc",t.EndingSoon="startTime asc"}(i||(i={})),function(t){t.TotalVolumeHighToLow="statistics/tradeData/totalEgldVolume desc",t.FollowersHighToLow="statistics/other/followCount desc",t.IsVerifiedTrueToFalse="isVerified desc",t.HasImageTrueToFalse="profile desc",t.HasBannerTrueToFalse="banner desc"}(r||(r={})),function(t){t.WeekVolumeHighToLow="statistics.tradeData.weekEgldVolume desc",t.WeekVolumeLowToHigh="statistics.tradeData.weekEgldVolume asc",t.DailyVolumeHighToLow="statistics.tradeData.dayEgldVolume desc",t.DailyVolumeLowToHigh="statistics.tradeData.dayEgldVolume asc",t.TotalVolumeHighToLow="statistics.tradeData.totalEgldVolume desc",t.TotalVolumeLowToHigh="statistics.tradeData.totalEgldVolume asc",t.AvgVolumePriceHighToLow="statistics.tradeData.averageEgldPrice desc",t.AvgVolumePriceLowToHigh="statistics.tradeData.averageEgldPrice asc",t.ATHHighToLow="statistics.tradeData.athEgldPrice desc",t.ATHLowToHigh="statistics.tradeData.athEgldPrice asc",t.TotalTradesHighToLow="statistics.tradeData.totalTrades desc",t.TotalTradesLowToHigh="statistics.tradeData.totalTrades asc",t.SupplyHighToLow="statistics.other.nftCount desc",t.SupplyLowToHigh="statistics.other.nftCount asc",t.FollowersHighToLow="statistics.other.followCount desc",t.FollowersLowToHigh="statistics.other.followCount asc"}(o||(o={})),function(t){t.PriceHighToLow="priceShort desc",t.PriceLowToHigh="priceShort asc",t.OfferIdHighToLow="offerIddesc",t.OfferIdLowToHigh="offerId asc",t.RecentListed="timestamp desc",t.OldestListed="timestamp asc"}(s||(s={})),function(t){t.Profile="profile",t.Description="description",t.Creator="creator",t.Owner="owner",t.Socials="socials",t.Type="type",t.HasStaking="hasStaking",t.Name="name",t.Banner="banner",t.IsVerified="isVerified",t.IsMintable="isMintable",t.Statistics="statistics",t.Collection="collection"}(n||(n={})),function(t){t.Attributes="attributes",t.Collection="collection",t.Marketplace="marketplace",t.PaymentToken="paymentToken",t.LongPrice="price",t.ShortPrice="priceShort"}(l||(l={})),function(t){t.FixedPrice="FixedPrice",t.Auctions="Auctions",t.All="All",t.AllListed="AllListed"}(c||(c={})),function(t){t.ALL="all",t.Trade="trade",t.P2P="p2p",t.Staking="staking",t.Minting="minting"}(d||(d={})),function(t){t.TotalVolume="TotalVolume",t.TotalTrades="TotalTrades",t.DailyVolume="DailyVolume",t.Last2DaysVolume="Last2DaysVolume",t.DailyTrades="DailyTrades",t.Last2DaysTrades="Last2DaysTrades",t.WeekTrades="WeekTrades",t.LastWeekTrades="LastWeekTrades",t.WeekVolume="WeekVolume",t.LastWeekVolume="LastWeekVolume",t.WeeklyTradesMargin="WeeklyTradesMargin",t.DailyTradesMargin="DailyTradesMargin",t.WeeklyVolumeMargin="WeeklyVolumeMargin",t.DailyVolumeEgldMargin="DailyVolumeEgldMargin",t.CollectionAthTrade="CollectionAthTrade"}(h||(h={})),function(t){t.TradingStats="tradingStats"}(g||(g={})),function(t){t.ListedCountDesc="tradingStats.listedCount DESC",t.ListedCountAsc="tradingStats.listedCount ASC",t.FloorPriceDesc="tradingStats.floorPrice DESC",t.FloorPriceAsc="tradingStats.floorPrice ASC",t.TotalVolumeDesc="tradingStats.totalVolume DESC",t.TotalVolumeAsc="tradingStats.totalVolume ASC",t.TotalTradesDesc="tradingStats.totalTrades DESC",t.TotalTradesAsc="tradingStats.totalTrades ASC",t.AllTimeHighDesc="tradingStats.allTimeHigh.price DESC",t.AllTimeHighAsc="tradingStats.allTimeHigh.price ASC",t.DayVolumeDesc="tradingStats.day.volume DESC",t.DayVolumeAsc="tradingStats.day.volume ASC",t.DayVolumeMarginDesc="tradingStats.day.volumeMargin DESC",t.DayVolumeMarginAsc="tradingStats.day.volumeMargin ASC",t.DayTradesDesc="tradingStats.day.trades DESC",t.DayTradesAsc="tradingStats.day.trades ASC",t.DayTradesMarginDesc="tradingStats.day.tradesMargin DESC",t.DayTradesMarginAsc="tradingStats.day.tradesMargin ASC",t.WeekVolumeDesc="tradingStats.week.volume DESC",t.WeekVolumeAsc="tradingStats.week.volume ASC",t.WeekVolumeMarginDesc="tradingStats.week.volumeMargin DESC",t.WeekVolumeMarginAsc="tradingStats.week.volumeMargin ASC",t.WeekTradesDesc="tradingStats.week.trades DESC",t.WeekTradesAsc="tradingStats.week.trades ASC",t.WeekTradesMarginDesc="tradingStats.week.tradesMargin DESC",t.WeekTradesMarginAsc="tradingStats.week.tradesMargin ASC",t.MonthVolumeDesc="tradingStats.month.volume DESC",t.MonthVolumeAsc="tradingStats.month.volume ASC",t.MonthVolumeMarginDesc="tradingStats.month.volumeMargin DESC",t.MonthVolumeMarginAsc="tradingStats.month.volumeMargin ASC",t.MonthTradesDesc="tradingStats.month.trades DESC",t.MonthTradesAsc="tradingStats.month.trades ASC",t.MonthTradesMarginDesc="tradingStats.month.tradesMargin DESC",t.MonthTradesMarginAsc="tradingStats.month.tradesMargin ASC",t.YearVolumeDesc="tradingStats.year.volume DESC",t.YearVolumeAsc="tradingStats.year.volume ASC",t.YearVolumeMarginDesc="tradingStats.year.volumeMargin DESC",t.YearVolumeMarginAsc="tradingStats.year.volumeMargin ASC",t.YearTradesDesc="tradingStats.year.trades DESC",t.YearTradesAsc="tradingStats.year.trades ASC",t.YearTradesMarginDesc="tradingStats.year.tradesMargin DESC",t.YearTradesMarginAsc="tradingStats.year.tradesMargin ASC"}(u||(u={})),function(t){t.NFT_CREATE="nftCreate",t.NFT_BURN="nftBurn",t.NFT_UPDATE="nftUpdate",t.NFT_TRANSFER="nftTransfer",t.LISTING_CREATE="listingCreate",t.LISTING_WITHDRAW="listingWithdraw",t.LISTING_UPDATE="listingUpdate",t.AUCTION_BID="auctionBid",t.AUCTION_OUT_BID="auctionOutBid",t.OFFER_CREATE="offerCreate",t.OFFER_WITHDRAW="offerWithdraw",t.OFFER_REJECT="offerReject",t.GLOBAL_OFFER_CREATE="globalOfferCreate",t.GLOBAL_OFFER_WITHDRAW="globalOfferWithdraw",t.TRADE="trade",t.BULK_TRADE="bulkTrade",t.AUCTION_TRADE="auctionTrade",t.OTHER_TRADE="otherTrade",t.OFFER_TRADE="offerTrade",t.GLOBAL_OFFER_TRADE="globalOfferTrade",t.STAKE="stake",t.UN_STAKE="unStake"}(p||(p={})),function(t){t.PriceHighToLow="activityData.egldValue desc",t.PriceLowToHigh="activityData.egldValue asc",t.RecentPlaced="timestamp desc",t.OldestPlaced="timestamp asc"}(f||(f={})),function(t){t[t.attributes=0]="attributes",t[t.collection=1]="collection",t[t.offer_id=2]="offer_id",t[t.owner=3]="owner",t[t.short_price=4]="short_price",t[t.price=5]="price",t[t.id=6]="id",t[t.dataType=7]="dataType",t[t.marketplace=8]="marketplace",t[t.payment_token=9]="payment_token"}(T||(T={})),function(t){t[t.NftBid=0]="NftBid",t[t.Nft=1]="Nft",t[t.SftAll=2]="SftAll",t[t.SftOnePerPayment=3]="SftOnePerPayment"}(m||(m={})),function(t){t.Dynamic="Dynamic",t.Fixed="Fixed"}(y||(y={})),function(t){t.Duo="Duo",t.Single="Single",t.Perk="Perk"}(w||(w={})),function(t){t.Received="received",t.Placed="placed"}(S||(S={})),function(t){t.NonFungibleESDT="NonFungibleESDT"}(k||(k={}));const E="https://api.xoxno.com",A="erd1qqqqqqqqqqqqqpgq705fxpfrjne0tl3ece0rrspykq88mynn4kxs2cg43s",C="erd1qqqqqqqqqqqqqpgqd9rvv2n378e27jcts8vfwynpx0gfl5ufz6hqhfy0u0",D="erd1qqqqqqqqqqqqqpgq8xwzu82v8ex3h4ayl5lsvxqxnhecpwyvwe0sf2qj4e";var W;!function(t){t.MAINNET="1",t.DEVNET="D"}(W||(W={}));class I{static instance;apiUrl;apiKey;chain;config;constructor(t=E,e="",a=W.MAINNET){this.apiUrl=t,this.apiKey=e,this.chain=a,this.config=a===W.MAINNET?{XO_SC:"erd1qqqqqqqqqqqqqpgq6wegs2xkypfpync8mn2sa5cmpqjlvrhwz5nqgepyg8",FM_SC:A,DR_SC:C,KG_SC:D,Staking_SC:"erd1qqqqqqqqqqqqqpgqvpkd3g3uwludduv3797j54qt6c888wa59w2shntt6z",Manager_SC:"erd1qqqqqqqqqqqqqpgqg9fa0dmpn8fu3fnleeqn5zt8rl8mdqjkys5s2gtas7",P2P_SC:"erd1qqqqqqqqqqqqqpgq47y8hnct68v6asjv6gxem6h9rumn9frzah0skhxxt6"}:{XO_SC:"erd1qqqqqqqqqqqqqpgql0dnz6n5hpuw8cptlt00khd0nn4ja8eadsfq2xrqw4",FM_SC:A,DR_SC:C,KG_SC:D,Staking_SC:"erd1qqqqqqqqqqqqqpgqsc5hnewwpep8qq0d7kjjzrquapuucrygah0s85zres",Manager_SC:"erd1qqqqqqqqqqqqqpgqluclyhfsa2uw7q9cjwd8knk989hg57u8ah0slq2nlr",P2P_SC:"erd1qqqqqqqqqqqqqpgqfja7ukpngrun78ueq583l0vd6aj4ekhrah0sa9wyrv"}}static init({apiUrl:t=E,apiKey:e="",chain:a=W.MAINNET}={}){if(!I.instance){if(a==W.DEVNET)return I.instance=new I(t??"https://devnet-api.xoxno.com",e,a),I.instance;I.instance=new I(t,e,a)}return I.instance}fetchWithTimeout=async(t,e={},a=4e4)=>{const i={"Accept-Encoding":"gzip,deflate,br",Referer:"https://xoxno.sdk","User-Agent":"XOXNO/1.0/SDK",..."POST"===e.method?{"Content-Type":"application/json"}:{},...e.headers??{}},r=`${"string"==typeof t&&t.startsWith("/")?`${this.apiUrl}${t}`:t}${e.params?"?"+Object.keys(e.params).map((t=>`${t}=${encodeURIComponent(e.params[t])}`)).join("&"):""}`,o=new AbortController;setTimeout((()=>o.abort()),a);const s=await fetch(r,{...e,...e?.next&&e.next.revalidate?{}:{cache:"no-store"},signal:o.signal,...Object.keys(i).length?{headers:i}:{},method:e.method??"GET"});if(!s.ok)throw new Error((await s.json()).message.toString());return s.json()}}const x=async(t,e)=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");const a=[];t.priceRange&&a.push({...t.priceRange,field:"activityData.egldValue"}),t.timestampRange&&a.push({...t.timestampRange,field:"timestamp"});const i={filters:{activityData:null==t.from&&null==t.to?{collection:t.collections,identifier:t.identifiers||void 0}:void 0,from:t.from,to:t.to,activityAddress:t.wallets||void 0,source:t.source||void 0,activityType:t.activityType||void 0,range:a},strictSelect:t.strictSelect,orderBy:t.orderBy,select:t.select,top:t.top||35,skip:t.skip||0},r=await e.fetchWithTimeout("/activity/query",{params:{filter:JSON.stringify(i)},next:{tags:["getActivity"],revalidate:180}});return{...r,getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)},empty:0===r.resources.length}},O=t=>/^[A-Z0-9]{3,10}-[a-z0-9]{6}$/.test(t),P=t=>/^[A-Za-z0-9]{3,10}-[A-Za-z0-9]{6}-[A-Za-z0-9]{2,5}(?:-\d+(?:-[A-Za-z0-9]+)?)?$/.test(t);class M{api;constructor(){this.api=I.init()}getCollectionProfile=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/profile`,{next:{tags:["getCollectionProfile"],revalidate:30}})};getDailyTrending=async()=>await this.api.fetchWithTimeout("/nfts/getDailyTrending",{next:{tags:["getDailyTrending"],revalidate:180}});getCollectionFloorPrice=async(t,e="EGLD")=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);const a=await this.api.fetchWithTimeout(`/collection/${t}/floor-price`,{next:{tags:["getCollectionFloorPrice"]},params:{token:e}});return a?.price?a.price:0};getCollectionAttributes=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/attributes`,{next:{tags:["getCollectionAttributes"],revalidate:180}})};getNFTs=async t=>{if(t?.collections?.forEach((t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>35)throw new Error("Top cannot be greater than 35");const e=[];t.priceRange&&e.push({...t.priceRange,field:t.auctionType==c.Auctions?"saleInfo.currentBidShort":"saleInfo.minBidShort"}),t.rankRange&&e.push({...t.rankRange,field:"metadata.rarity.rank"});const a={filters:{dataType:t.dataType??["nft"],activeAuction:t.activeAuctions,collection:t.collections??[],onSale:t.onlyOnSale,saleInfo:{seller:t.listedBy||[],marketplace:t.listedOnlyOn||void 0,paymentToken:t.listedInToken||[],auctionType:t.auctionType==c.Auctions?["NftBid","SftAll"]:t.auctionType==c.FixedPrice?["Nft","SftOnePerPayment"]:t.auctionType==c.AllListed?["NftBid","SftAll","Nft","SftOnePerPayment"]:void 0},owner:t.ownedBy||[],verifiedOnly:t.onlyVerified||!1,metadata:{attributes:t.attributes||void 0},range:e,nonce:t.nonces||void 0,cp_staked:t.isStaked||void 0},applyNftExtraDetails:t.applyNftExtraDetails,orderBy:t.orderBy||[],select:t.onlySelectFields||[],strictSelect:t.strictSelect||!1,includeCount:t.includeCount||!1,top:t.top||35,skip:t.skip||0};return{...await this.api.fetchWithTimeout("/nft/query",{params:{filter:JSON.stringify(a)},next:{tags:["getCollectionNFTs"]},cache:"no-store"}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};suggestCollections=async t=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");if(!t.name)throw new Error("Name is required");const e={name:t.name,top:t.top||35,skip:t.skip||0};return await this.api.fetchWithTimeout("/collection/search",{params:{filter:JSON.stringify(e)},next:{tags:["/collection/search"],revalidate:180}})};collectionListingsAnalytics=async t=>await this.api.fetchWithTimeout(`/collection/${t}/listings`,{next:{tags:["collection/${ticker}/listings"],revalidate:500}});getTradingActivity=async t=>await x(t,this.api);getCollections=async t=>{if(t?.top&&t.top>25)throw new Error("Top cannot be greater than 25");const e={skip:t?.skip||0,top:t?.top||25,select:t?.onlySelectFields||[],filters:{dataType:"collectionProfile",isMintable:t?.onlyMintable||void 0,...t?.collections&&t.collections.length>0&&{collection:t.collections}},orderBy:[t?.orderBy||"statistics.tradeData.weekEgldVolume desc"]},a=await this.api.fetchWithTimeout("/collection/query",{params:{filter:JSON.stringify(e)},next:{tags:["getCollections"],revalidate:180}});return{results:a,resultsCount:a.length,empty:0===a.length,getNextPagePayload:{...t,skip:(t?.skip||0)+(t?.top||25)},hasMoreResults:a.length>=(t?.top||25)}};getGlobalOffers=async t=>{if(t?.top&&t.top>25)throw new Error("Top cannot be greater than 25");const e={skip:t?.skip||0,top:t?.top||25,select:t?.onlySelectFields||[],filters:{collection:t?.collections||[],withAttributes:t?.withAttributes??!1,isActive:t?.onlyActive??!0,offerId:t?.offerIds,owner:t?.ownedBy,marketplace:t?.listedOnlyOn,range:t?.priceRange?{...t.priceRange,type:"priceShort"}:void 0,attributes:t?.attributes},orderBy:[t?.orderBy||s.PriceHighToLow]},a=await this.api.fetchWithTimeout("/collection/global-offer/query",{params:{filter:JSON.stringify(e)},next:{tags:["getGlobalOffers"],revalidate:12}});return{...a,getNextPagePayload:{...t,skip:(t?.top||25)+a.lastSkip}}};getCollectionVolume=async(t,e,a,i)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/analytics/volume?startTime=${e}&endTime=${a}&bin=${i}`,{next:{tags:["getCollectionVolume"],revalidate:180}})};getMarketplaceVolume=async(t,e,a)=>await this.api.fetchWithTimeout(`/analytics/volume?startTime=${t}&endTime=${e}&bin=${a}`,{next:{tags:["getMarketplaceVolume"],revalidate:180}});getCollectionOwners=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/holders`,{next:{tags:["getCollectionOwners"],revalidate:500}})};getExportOwners=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/holders?exportHolders=true`,{next:{tags:["getExportOwners"]}})};getCollectionsStatistics=async t=>{if(t?.top&&t.top>25)throw new Error("Top cannot be greater than 25");return{...await this.api.fetchWithTimeout("/collection/stats/query",{params:{filter:JSON.stringify(t)},next:{tags:["collectionStatistics"],revalidate:12}}),getNextPagePayload:{...t,skip:t.skip+t.top}}};getCollectionStats=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/stats`,{next:{tags:["collectionStatistics"],revalidate:12}})};getAwaitEmpty=async t=>new Promise((e=>{setTimeout((()=>{e(!0)}),t)}));getCollectionMintInfo=async({ticker:t,extra:e})=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/drop-info`,{next:{tags:[`/collection/${t}/drop-info`],revalidate:12},...e})};getCollectionRanks=async({ticker:t,extra:e})=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/ranks`,{next:{tags:[`/collection/${t}/ranks`],revalidate:60},...e})};getDropInfo=async({collectionTag:t,creatorTag:e,extra:a})=>await this.api.fetchWithTimeout(`/collection/${e}/${t}/drop-info`,{next:{tags:[`/collection/${e}/${t}/drop-info`],revalidate:12},...a});getCollectionGraphData=async(t,e,a,i)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/analytics/volume`,{params:{startTime:e,endTime:a,bin:i},next:{tags:[`/collection/${t}/analytics/volume`],revalidate:60}})};getPinnedCollections=async()=>await this.api.fetchWithTimeout("/collection/pinned",{next:{tags:["/collection/pinned"],revalidate:60}});getDrops=async t=>{if(t?.collections?.forEach((t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>35)throw new Error("Top cannot be greater than 35");const e=[];t.timeRange&&e.push({...t.timeRange,field:"startTime"});const a={filters:{collection:t.collections??[],verifiedOnly:t.onlyVerified||!1,mintToken:t.listedInToken||void 0,range:e},orderBy:t.orderBy||[],select:t.onlySelectFields||[],includeCount:t.includeCount||!1,top:t.top||35,skip:t.skip||0};return{...await this.api.fetchWithTimeout("/collection/drops/query",{params:{filter:JSON.stringify(a)},next:{tags:["/collection/drops/query"]},cache:"no-store"}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};getCollectionStakingSummary=async({collection:t,extra:e})=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/staking/summary`,{...e})};getCollectionsFloor=async t=>{t?.forEach((t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t)}));return await this.api.fetchWithTimeout("/collection/floor-price",{params:{collection:t.join(",")}})}}const L=t=>{let e=t.toString(16);return e.length%2!=0&&(e="0"+e),e},N=t=>{try{return t.includes("erd1")}catch(t){return!1}};class ${api;constructor(){this.api=I.init()}getNFTByIdentifier=async t=>{if(!P(t))throw new Error("Invalid identifier: "+t);return await this.api.fetchWithTimeout(`/nft/${t}`)};getNFTsOffers=async(t,e=0,a=25)=>{if(!P(t))throw new Error("Invalid identifier: "+t);return await this.api.fetchWithTimeout(`/nft/${t}/offers?skip=${e}&top=${a}`,{next:{tags:["getNFTsOffers"],revalidate:12}})};getNFTByCollectionAndNonce=async(t,e)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);const a=await this.api.fetchWithTimeout(`/${((t,e)=>[t,L(e)].join("-"))(t,e)}`);return a};getNFTByCollectionAndNonceHex=async(t,e)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);e.length%2!=0&&(e="0"+e);return await this.api.fetchWithTimeout(`/${[t,e].join("-")}`)};getTradingActivity=async t=>await x(t,this.api)}class V{api;collection;constructor(){this.api=I.init(),this.collection=new M}getUserProfile=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/profile`)};getBulkAccounts=async t=>await this.api.fetchWithTimeout("/user/network-account",{method:"POST",body:JSON.stringify(t)});getUserAccount=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/network-account`)};getUserTokenInventory=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/token-inventory`)};getUserSummaryInventory=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/inventory-summary`)};getUserNFTs=async t=>await this.collection.getNFTs(t);getUserOffers=async t=>{if(!N(t.address))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t.address}/offers`,{params:{type:t.type,skip:t.skip,top:t.top}})};suggestUsers=async t=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");if(!t.name)throw new Error("Name is required");const e={name:t.name,top:t.top||35,skip:t.skip||0};return await this.api.fetchWithTimeout("/user/search",{params:{filter:JSON.stringify(e)},next:{tags:["/search/global"],revalidate:180}})};getTradingActivity=async t=>await x(t,this.api);getUserCreatorProfile=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/profile`)};getCreatorListings=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/listing`)};getUserStakingSummary=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/summary`)};getUserStakingAailable=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/available-pools`)};getUserCreatorInfo=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/details`)};getUserCollectionStaking=async(t,e)=>{if(!N(t))throw new Error("Invalid address");if(!O(e))throw new Error("Invalid collection ticker: "+e);return await this.api.fetchWithTimeout(`/user/${t}/staking/collection/${e}`)};getUserPoolStaking=async(t,e)=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}`)};getAvailableNFTsForStakingPool=async(t,e)=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}/nfts`)};getOwnedPoolsByAddress=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/owned-pools`)};getUserAnalyticsSummary=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/analytics/volume`)};getUserFavoriteNFTs=async(t,e,a)=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/favorite/nfts`,{params:{top:e,skip:a}})};getUserFavoriteCollectionTickers=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/favorite/collections`)};getIsCreatorRegistered=async t=>await this.api.fetchWithTimeout(`/user/${t}/creator/is-registered`);getUsersStats=async({top:t,skip:e,orderBy:a})=>{if(t&&t>35)throw new Error("Top cannot be greater than 35");return await this.api.fetchWithTimeout("/user/stats",{params:{top:t,skip:e,orderBy:a??"totalVolume"},next:{tags:["/user/stats"],revalidate:180}})};getAccountNFTsToStake=async(t,e)=>await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}/available-nfts`,{next:{tags:[`/user/${t}/staking/pool/${e}/available-nfts`],revalidate:30}});getStakingCreatorInfo=async t=>await this.api.fetchWithTimeout(`/user/${t}/staking/creator`,{next:{tags:[`/user/${t}/staking/creator`],revalidate:30}});getUsersDrop=async({top:t,skip:e,address:a})=>{if(t&&t>35)throw new Error("Top cannot be greater than 35");if(a&&!N(a))throw new Error("Invalid address");return await this.api.fetchWithTimeout("/user/xoxno-drop",{params:{top:t,skip:e,...a?{address:a}:{}},next:{tags:["/user/xoxno-drop"],revalidate:30}})};getUserOwnerCollections=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/owned-collections`)};getRoyaltiesSharesCreator=async t=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/launchpad/${t}/shareholders/royalties`)};getMintSharesCreator=async(t,e)=>{if(!N(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/launchpad/${t}/shareholders/collection/${e}`)}}class b{api;constructor(){this.api=I.init()}getPoolDetails=async t=>await this.api.fetchWithTimeout(`/pool/${t}/profile`)}class F{api;constructor(){this.api=I.init()}getTokensUsdPrice=async()=>await this.api.fetchWithTimeout("/tokens/usd-price");getAshSwapAmount=async({originalToken:t,originalTokenValue:e,paymentToken:a})=>await this.api.fetchWithTimeout("/ash/min-token-quantity",{params:{originalToken:t,originalTokenValue:e,paymentToken:a}});getFungibleTokens=async(t=[d.ALL],e)=>{let a={};e&&(a={identifier:e.join(",")}),t&&(a={...a,category:t.join(",")});return await this.api.fetchWithTimeout("/tokens",{params:a})};getGlobalGraphData=async(t,e,a)=>await this.api.fetchWithTimeout("/analytics/volume",{params:{startTime:t,endTime:e,bin:a},next:{tags:["/analytics/volume"],revalidate:60}});getAnalyticsOverview=async()=>await this.api.fetchWithTimeout("/analytics/overview",{next:{tags:["/analytics/overview"],revalidate:60}});suggestResults=async t=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");if(!t.name)throw new Error("Name is required");const e={name:t.name,top:t.top||35,skip:t.skip||0};return await this.api.fetchWithTimeout("/search",{params:{filter:JSON.stringify(e)},next:{tags:["/search/global"],revalidate:180}})};getExploreStaking=async()=>await this.api.fetchWithTimeout("/collection/staking/explore",{next:{tags:["/collection/staking/explore"],revalidate:60}})}var R=v.$C,B=v.Yo,H=v.LU,U=v.sW,_=v.X$,j=v.JA,G=v.he,J=v.cO,z=v.t7,K=v.iQ,Y=v.MD,X=v.Gq,Z=v.h4,Q=v.wT,tt=v.JM,et=v.Vx,at=v.O8,it=v.s0,rt=v.o,ot=v.p4,st=v.AQ,nt=v.J1,lt=v.g6,ct=v.cB,dt=v.Gt,ht=v.I_,gt=v.ZU,ut=v.Us,pt=v.GW;export{R as AssetCategory,B as AuctionType,H as AuctionTypes,U as Chain,_ as CollectionModule,j as CollectionStatsOrderBy,G as CollectionStatsSelectFields,J as CollectionsFieldsToSelect,z as CollectionsOrderBy,K as CollectionsSummaryFilter,Y as CommonModule,X as DropsOderBy,Z as FieldsToSelect,Q as GlobalOfferFieldsToSelect,tt as GlobalOfferOrderBy,et as IssuingType,at as Marketplace,it as NFTModule,rt as NftActivityType,ot as OfferType,st as OrderByTradingActivity,nt as PoolType,lt as SearchOrderBy,ct as SelectFieldsTradingActivity,dt as StakingModule,ht as SuggestOrderBy,gt as Type,ut as UserModule,pt as XOXNOClient};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@xoxno/sdk-js"]=e():t["@xoxno/sdk-js"]=e()}(this,(()=>(()=>{"use strict";var t,e,i,a,r,o,n,s,l,c,d,g,h,u,p,f,y,m,T,w,S,k,q={d:(t,e)=>{for(var i in e)q.o(e,i)&&!q.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},v={};q.r(v),q.d(v,{AssetCategory:()=>d,AuctionType:()=>m,AuctionTypes:()=>c,Chain:()=>W,CollectionModule:()=>M,CollectionStatsOrderBy:()=>u,CollectionStatsSelectFields:()=>h,CollectionsFieldsToSelect:()=>s,CollectionsOrderBy:()=>o,CollectionsSummaryFilter:()=>g,CommonModule:()=>F,DropsOderBy:()=>a,FieldsToSelect:()=>e,GlobalOfferFieldsToSelect:()=>l,GlobalOfferOrderBy:()=>n,IssuingType:()=>T,Marketplace:()=>t,NFTModule:()=>L,NftActivityType:()=>p,OfferType:()=>S,OrderByTradingActivity:()=>f,PoolType:()=>w,SearchOrderBy:()=>i,SelectFieldsTradingActivity:()=>y,StakingModule:()=>V,SuggestOrderBy:()=>r,Type:()=>k,UserModule:()=>$,XOXNOClient:()=>I}),function(t){t.XO="xoxno",t.FM="frameit",t.DR="deadrare",t.KG="krogan"}(t||(t={})),function(t){t.Rank="metadata.rarity.rank",t.Attributes="metadata.attributes",t.Description="metadata.description",t.Name="name",t.OnSale="onSale",t.SaleInfo="saleInfo",t.Royalties="royalties",t.Identifier="identifier",t.Collection="collection",t.OriginalURL="url",t.Nonce="nonce",t.ContentType="originalMedia.contentType",t.WasProcessed="wasProcessed",t.AvifURL="avifUrl",t.WebpURL="webpUrl",t.Type="type"}(e||(e={})),function(t){t.PriceHighToLow="saleInfo.minBidShort desc",t.PriceLowToHigh="saleInfo.minBidShort asc",t.MaxPriceHighToLow="saleInfo.maxBidShort desc",t.MaxPriceLowToHigh="saleInfo.maxBidShort asc",t.BidPriceHighToLow="saleInfo.currentBidShort desc",t.BidPriceLowToHigh="saleInfo.currentBidShort asc",t.RarityHighToLow="metadata.rarity.rank desc",t.RarityLowToHigh="metadata.rarity.rank asc",t.NonceHighToLow="nonce desc",t.NonceLowToHigh="nonce asc",t.RecentListed="saleInfo.timestamp desc",t.OldestListed="saleInfo.timestamp asc",t.EndingLate="saleInfo.deadline desc",t.EndingSoon="saleInfo.deadline asc"}(i||(i={})),function(t){t.EndingLate="startTime desc",t.EndingSoon="startTime asc"}(a||(a={})),function(t){t.TotalVolumeHighToLow="statistics/tradeData/totalEgldVolume desc",t.FollowersHighToLow="statistics/other/followCount desc",t.IsVerifiedTrueToFalse="isVerified desc",t.HasImageTrueToFalse="profile desc",t.HasBannerTrueToFalse="banner desc"}(r||(r={})),function(t){t.WeekVolumeHighToLow="statistics.tradeData.weekEgldVolume desc",t.WeekVolumeLowToHigh="statistics.tradeData.weekEgldVolume asc",t.DailyVolumeHighToLow="statistics.tradeData.dayEgldVolume desc",t.DailyVolumeLowToHigh="statistics.tradeData.dayEgldVolume asc",t.TotalVolumeHighToLow="statistics.tradeData.totalEgldVolume desc",t.TotalVolumeLowToHigh="statistics.tradeData.totalEgldVolume asc",t.AvgVolumePriceHighToLow="statistics.tradeData.averageEgldPrice desc",t.AvgVolumePriceLowToHigh="statistics.tradeData.averageEgldPrice asc",t.ATHHighToLow="statistics.tradeData.athEgldPrice desc",t.ATHLowToHigh="statistics.tradeData.athEgldPrice asc",t.TotalTradesHighToLow="statistics.tradeData.totalTrades desc",t.TotalTradesLowToHigh="statistics.tradeData.totalTrades asc",t.SupplyHighToLow="statistics.other.nftCount desc",t.SupplyLowToHigh="statistics.other.nftCount asc",t.FollowersHighToLow="statistics.other.followCount desc",t.FollowersLowToHigh="statistics.other.followCount asc"}(o||(o={})),function(t){t.PriceHighToLow="priceShort desc",t.PriceLowToHigh="priceShort asc",t.OfferIdHighToLow="offerIddesc",t.OfferIdLowToHigh="offerId asc",t.RecentListed="timestamp desc",t.OldestListed="timestamp asc"}(n||(n={})),function(t){t.Profile="profile",t.Description="description",t.Creator="creator",t.Owner="owner",t.Socials="socials",t.Type="type",t.HasStaking="hasStaking",t.Name="name",t.Banner="banner",t.IsVerified="isVerified",t.IsMintable="isMintable",t.Statistics="statistics",t.Collection="collection"}(s||(s={})),function(t){t.Attributes="attributes",t.Collection="collection",t.Marketplace="marketplace",t.PaymentToken="paymentToken",t.LongPrice="price",t.ShortPrice="priceShort"}(l||(l={})),function(t){t.FixedPrice="FixedPrice",t.Auctions="Auctions",t.All="All",t.AllListed="AllListed"}(c||(c={})),function(t){t.ALL="all",t.Trade="trade",t.P2P="p2p",t.Staking="staking",t.Minting="minting"}(d||(d={})),function(t){t.TotalVolume="TotalVolume",t.TotalTrades="TotalTrades",t.DailyVolume="DailyVolume",t.Last2DaysVolume="Last2DaysVolume",t.DailyTrades="DailyTrades",t.Last2DaysTrades="Last2DaysTrades",t.WeekTrades="WeekTrades",t.LastWeekTrades="LastWeekTrades",t.WeekVolume="WeekVolume",t.LastWeekVolume="LastWeekVolume",t.WeeklyTradesMargin="WeeklyTradesMargin",t.DailyTradesMargin="DailyTradesMargin",t.WeeklyVolumeMargin="WeeklyVolumeMargin",t.DailyVolumeEgldMargin="DailyVolumeEgldMargin",t.CollectionAthTrade="CollectionAthTrade"}(g||(g={})),function(t){t.TradingStats="tradingStats"}(h||(h={})),function(t){t.ListedCountDesc="tradingStats.listedCount DESC",t.ListedCountAsc="tradingStats.listedCount ASC",t.FloorPriceDesc="tradingStats.floorPrice DESC",t.FloorPriceAsc="tradingStats.floorPrice ASC",t.TotalVolumeDesc="tradingStats.totalVolume DESC",t.TotalVolumeAsc="tradingStats.totalVolume ASC",t.TotalTradesDesc="tradingStats.totalTrades DESC",t.TotalTradesAsc="tradingStats.totalTrades ASC",t.AllTimeHighDesc="tradingStats.allTimeHigh.price DESC",t.AllTimeHighAsc="tradingStats.allTimeHigh.price ASC",t.DayVolumeDesc="tradingStats.day.volume DESC",t.DayVolumeAsc="tradingStats.day.volume ASC",t.DayVolumeMarginDesc="tradingStats.day.volumeMargin DESC",t.DayVolumeMarginAsc="tradingStats.day.volumeMargin ASC",t.DayTradesDesc="tradingStats.day.trades DESC",t.DayTradesAsc="tradingStats.day.trades ASC",t.DayTradesMarginDesc="tradingStats.day.tradesMargin DESC",t.DayTradesMarginAsc="tradingStats.day.tradesMargin ASC",t.WeekVolumeDesc="tradingStats.week.volume DESC",t.WeekVolumeAsc="tradingStats.week.volume ASC",t.WeekVolumeMarginDesc="tradingStats.week.volumeMargin DESC",t.WeekVolumeMarginAsc="tradingStats.week.volumeMargin ASC",t.WeekTradesDesc="tradingStats.week.trades DESC",t.WeekTradesAsc="tradingStats.week.trades ASC",t.WeekTradesMarginDesc="tradingStats.week.tradesMargin DESC",t.WeekTradesMarginAsc="tradingStats.week.tradesMargin ASC",t.MonthVolumeDesc="tradingStats.month.volume DESC",t.MonthVolumeAsc="tradingStats.month.volume ASC",t.MonthVolumeMarginDesc="tradingStats.month.volumeMargin DESC",t.MonthVolumeMarginAsc="tradingStats.month.volumeMargin ASC",t.MonthTradesDesc="tradingStats.month.trades DESC",t.MonthTradesAsc="tradingStats.month.trades ASC",t.MonthTradesMarginDesc="tradingStats.month.tradesMargin DESC",t.MonthTradesMarginAsc="tradingStats.month.tradesMargin ASC",t.YearVolumeDesc="tradingStats.year.volume DESC",t.YearVolumeAsc="tradingStats.year.volume ASC",t.YearVolumeMarginDesc="tradingStats.year.volumeMargin DESC",t.YearVolumeMarginAsc="tradingStats.year.volumeMargin ASC",t.YearTradesDesc="tradingStats.year.trades DESC",t.YearTradesAsc="tradingStats.year.trades ASC",t.YearTradesMarginDesc="tradingStats.year.tradesMargin DESC",t.YearTradesMarginAsc="tradingStats.year.tradesMargin ASC"}(u||(u={})),function(t){t.NFT_CREATE="nftCreate",t.NFT_BURN="nftBurn",t.NFT_UPDATE="nftUpdate",t.NFT_TRANSFER="nftTransfer",t.LISTING_CREATE="listingCreate",t.LISTING_WITHDRAW="listingWithdraw",t.LISTING_UPDATE="listingUpdate",t.AUCTION_BID="auctionBid",t.AUCTION_OUT_BID="auctionOutBid",t.OFFER_CREATE="offerCreate",t.OFFER_WITHDRAW="offerWithdraw",t.OFFER_REJECT="offerReject",t.GLOBAL_OFFER_CREATE="globalOfferCreate",t.GLOBAL_OFFER_WITHDRAW="globalOfferWithdraw",t.TRADE="trade",t.BULK_TRADE="bulkTrade",t.AUCTION_TRADE="auctionTrade",t.OTHER_TRADE="otherTrade",t.OFFER_TRADE="offerTrade",t.GLOBAL_OFFER_TRADE="globalOfferTrade",t.STAKE="stake",t.UN_STAKE="unStake"}(p||(p={})),function(t){t.PriceHighToLow="activityData.egldValue desc",t.PriceLowToHigh="activityData.egldValue asc",t.RecentPlaced="timestamp desc",t.OldestPlaced="timestamp asc"}(f||(f={})),function(t){t[t.attributes=0]="attributes",t[t.collection=1]="collection",t[t.offer_id=2]="offer_id",t[t.owner=3]="owner",t[t.short_price=4]="short_price",t[t.price=5]="price",t[t.id=6]="id",t[t.dataType=7]="dataType",t[t.marketplace=8]="marketplace",t[t.payment_token=9]="payment_token"}(y||(y={})),function(t){t[t.NftBid=0]="NftBid",t[t.Nft=1]="Nft",t[t.SftAll=2]="SftAll",t[t.SftOnePerPayment=3]="SftOnePerPayment"}(m||(m={})),function(t){t.Dynamic="Dynamic",t.Fixed="Fixed"}(T||(T={})),function(t){t.Duo="Duo",t.Single="Single",t.Perk="Perk"}(w||(w={})),function(t){t.Received="received",t.Placed="placed"}(S||(S={})),function(t){t.NonFungibleESDT="NonFungibleESDT"}(k||(k={}));const E="https://api.xoxno.com",A="erd1qqqqqqqqqqqqqpgq705fxpfrjne0tl3ece0rrspykq88mynn4kxs2cg43s",C="erd1qqqqqqqqqqqqqpgqd9rvv2n378e27jcts8vfwynpx0gfl5ufz6hqhfy0u0",D="erd1qqqqqqqqqqqqqpgq8xwzu82v8ex3h4ayl5lsvxqxnhecpwyvwe0sf2qj4e";var W;!function(t){t.MAINNET="1",t.DEVNET="D"}(W||(W={}));class I{static instance;apiUrl;apiKey;chain;config;constructor(t=E,e="",i=W.MAINNET){this.apiUrl=t,this.apiKey=e,this.chain=i,this.config=i===W.MAINNET?{XO_SC:"erd1qqqqqqqqqqqqqpgq6wegs2xkypfpync8mn2sa5cmpqjlvrhwz5nqgepyg8",FM_SC:A,DR_SC:C,KG_SC:D,Staking_SC:"erd1qqqqqqqqqqqqqpgqvpkd3g3uwludduv3797j54qt6c888wa59w2shntt6z",Manager_SC:"erd1qqqqqqqqqqqqqpgqg9fa0dmpn8fu3fnleeqn5zt8rl8mdqjkys5s2gtas7",P2P_SC:"erd1qqqqqqqqqqqqqpgq47y8hnct68v6asjv6gxem6h9rumn9frzah0skhxxt6"}:{XO_SC:"erd1qqqqqqqqqqqqqpgql0dnz6n5hpuw8cptlt00khd0nn4ja8eadsfq2xrqw4",FM_SC:A,DR_SC:C,KG_SC:D,Staking_SC:"erd1qqqqqqqqqqqqqpgqsc5hnewwpep8qq0d7kjjzrquapuucrygah0s85zres",Manager_SC:"erd1qqqqqqqqqqqqqpgqluclyhfsa2uw7q9cjwd8knk989hg57u8ah0slq2nlr",P2P_SC:"erd1qqqqqqqqqqqqqpgqfja7ukpngrun78ueq583l0vd6aj4ekhrah0sa9wyrv"}}static init({apiUrl:t=E,apiKey:e="",chain:i=W.MAINNET}={}){if(!I.instance){if(i==W.DEVNET)return I.instance=new I(t??"https://devnet-api.xoxno.com",e,i),I.instance;I.instance=new I(t,e,i)}return I.instance}fetchWithTimeout=async(t,e={},i=4e4)=>{const a={"Accept-Encoding":"gzip,deflate,br",Referer:"https://xoxno.sdk","User-Agent":"XOXNO/1.0/SDK",..."POST"===e.method?{"Content-Type":"application/json"}:{},...e.headers??{}},r=`${"string"==typeof t&&t.startsWith("/")?`${this.apiUrl}${t}`:t}${e.params?"?"+Object.keys(e.params).map((t=>`${t}=${encodeURIComponent(e.params[t])}`)).join("&"):""}`,o=new AbortController;setTimeout((()=>o.abort()),i);const n=await fetch(r,{...e,...e?.next&&e.next.revalidate?{}:{cache:"no-store"},signal:o.signal,...Object.keys(a).length?{headers:a}:{},method:e.method??"GET"});if(!n.ok)throw new Error((await n.json()).message.toString());return n.json()}}const x=async(t,e)=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");const i=[];t.priceRange&&i.push({...t.priceRange,field:"activityData.egldValue"}),t.timestampRange&&i.push({...t.timestampRange,field:"timestamp"});const a={filters:{activityData:null==t.from&&null==t.to?{collection:t.collections,identifier:t.identifiers||void 0}:void 0,from:t.from,to:t.to,activityAddress:t.wallets||void 0,source:t.source||void 0,activityType:t.activityType||void 0,range:i},strictSelect:t.strictSelect,orderBy:t.orderBy,select:t.select,top:t.top||35,skip:t.skip||0},r=await e.fetchWithTimeout("/activity/query",{params:{filter:JSON.stringify(a)},next:{tags:["getActivity"],revalidate:180}});return{...r,getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)},empty:0===r.resources.length}},O=t=>/^[A-Z0-9]{3,10}-[a-z0-9]{6}$/.test(t),P=t=>/^[A-Za-z0-9]{3,10}-[A-Za-z0-9]{6}-[A-Za-z0-9]{2,5}(?:-\d+(?:-[A-Za-z0-9]+)?)?$/.test(t);class M{api;constructor(){this.api=I.init()}getCollectionProfile=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/profile`,{next:{tags:["getCollectionProfile"],revalidate:30}})};getDailyTrending=async()=>await this.api.fetchWithTimeout("/nfts/getDailyTrending",{next:{tags:["getDailyTrending"],revalidate:180}});getCollectionFloorPrice=async(t,e="EGLD")=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);const i=await this.api.fetchWithTimeout(`/collection/${t}/floor-price`,{next:{tags:["getCollectionFloorPrice"]},params:{token:e}});return i?.price?i.price:0};getCollectionAttributes=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/attributes`,{next:{tags:["getCollectionAttributes"],revalidate:180}})};getNFTs=async t=>{if(t?.collections?.forEach((t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>35)throw new Error("Top cannot be greater than 35");const e=[];t.priceRange&&e.push({...t.priceRange,field:t.auctionType==c.Auctions?"saleInfo.currentBidShort":"saleInfo.minBidShort"}),t.rankRange&&e.push({...t.rankRange,field:"metadata.rarity.rank"});const i={filters:{dataType:t.dataType??["nft"],activeAuction:t.activeAuctions,collection:t.collections??[],onSale:t.onlyOnSale,saleInfo:{seller:t.listedBy||[],marketplace:t.listedOnlyOn||void 0,paymentToken:t.listedInToken||[],auctionType:t.auctionType==c.Auctions?["NftBid","SftAll"]:t.auctionType==c.FixedPrice?["Nft","SftOnePerPayment"]:t.auctionType==c.AllListed?["NftBid","SftAll","Nft","SftOnePerPayment"]:void 0},owner:t.ownedBy||[],verifiedOnly:t.onlyVerified||!1,metadata:{attributes:t.attributes||void 0},range:e,cp_staked:t.isStaked||void 0},applyNftExtraDetails:t.applyNftExtraDetails,orderBy:t.orderBy||[],select:t.onlySelectFields||[],includeCount:t.includeCount||!1,top:t.top||35,skip:t.skip||0};return{...await this.api.fetchWithTimeout("/nft/query",{params:{filter:JSON.stringify(i)},next:{tags:["getCollectionNFTs"]},cache:"no-store"}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};suggestCollections=async t=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");if(!t.name)throw new Error("Name is required");const e={name:t.name,top:t.top||35,skip:t.skip||0};return await this.api.fetchWithTimeout("/collection/search",{params:{filter:JSON.stringify(e)},next:{tags:["/collection/search"],revalidate:180}})};collectionListingsAnalytics=async t=>await this.api.fetchWithTimeout(`/collection/${t}/listings`,{next:{tags:["collection/${ticker}/listings"],revalidate:500}});getTradingActivity=async t=>await x(t,this.api);getCollections=async t=>{if(t?.top&&t.top>25)throw new Error("Top cannot be greater than 25");const e={skip:t?.skip||0,top:t?.top||25,select:t?.onlySelectFields||[],filters:{dataType:"collectionProfile",isMintable:t?.onlyMintable||void 0,...t?.collections&&t.collections.length>0&&{collection:t.collections}},orderBy:[t?.orderBy||"statistics.tradeData.weekEgldVolume desc"]},i=await this.api.fetchWithTimeout("/collection/query",{params:{filter:JSON.stringify(e)},next:{tags:["getCollections"],revalidate:180}});return{results:i,resultsCount:i.length,empty:0===i.length,getNextPagePayload:{...t,skip:(t?.skip||0)+(t?.top||25)},hasMoreResults:i.length>=(t?.top||25)}};getGlobalOffers=async t=>{if(t?.top&&t.top>25)throw new Error("Top cannot be greater than 25");const e={skip:t?.skip||0,top:t?.top||25,select:t?.onlySelectFields||[],filters:{collection:t?.collections||[],withAttributes:t?.withAttributes??!1,isActive:t?.onlyActive??!0,offerId:t?.offerIds,owner:t?.ownedBy,marketplace:t?.listedOnlyOn,range:t?.priceRange?{...t.priceRange,type:"priceShort"}:void 0,attributes:t?.attributes},orderBy:[t?.orderBy||n.PriceHighToLow]},i=await this.api.fetchWithTimeout("/collection/global-offer/query",{params:{filter:JSON.stringify(e)},next:{tags:["getGlobalOffers"],revalidate:12}});return{...i,getNextPagePayload:{...t,skip:(t?.top||25)+i.lastSkip}}};getCollectionVolume=async(t,e,i,a)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/analytics/volume?startTime=${e}&endTime=${i}&bin=${a}`,{next:{tags:["getCollectionVolume"],revalidate:180}})};getMarketplaceVolume=async(t,e,i)=>await this.api.fetchWithTimeout(`/analytics/volume?startTime=${t}&endTime=${e}&bin=${i}`,{next:{tags:["getMarketplaceVolume"],revalidate:180}});getCollectionOwners=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/holders`,{next:{tags:["getCollectionOwners"],revalidate:500}})};getExportOwners=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/holders?exportHolders=true`,{next:{tags:["getExportOwners"]}})};getCollectionsStatistics=async t=>{if(t?.top&&t.top>25)throw new Error("Top cannot be greater than 25");return{...await this.api.fetchWithTimeout("/collection/stats/query",{params:{filter:JSON.stringify(t)},next:{tags:["collectionStatistics"],revalidate:12}}),getNextPagePayload:{...t,skip:t.skip+t.top}}};getCollectionStats=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/stats`,{next:{tags:["collectionStatistics"],revalidate:12}})};getAwaitEmpty=async t=>new Promise((e=>{setTimeout((()=>{e(!0)}),t)}));getCollectionMintInfo=async({ticker:t,extra:e})=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/drop-info`,{next:{tags:[`/collection/${t}/drop-info`],revalidate:12},...e})};getCollectionRanks=async({ticker:t,extra:e})=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/ranks`,{next:{tags:[`/collection/${t}/ranks`],revalidate:60},...e})};getDropInfo=async({collectionTag:t,creatorTag:e,extra:i})=>await this.api.fetchWithTimeout(`/collection/${e}/${t}/drop-info`,{next:{tags:[`/collection/${e}/${t}/drop-info`],revalidate:12},...i});getCollectionGraphData=async(t,e,i,a)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/analytics/volume`,{params:{startTime:e,endTime:i,bin:a},next:{tags:[`/collection/${t}/analytics/volume`],revalidate:60}})};getPinnedCollections=async()=>await this.api.fetchWithTimeout("/collection/pinned",{next:{tags:["/collection/pinned"],revalidate:60}});getDrops=async t=>{if(t?.collections?.forEach((t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>35)throw new Error("Top cannot be greater than 35");const e=[];t.timeRange&&e.push({...t.timeRange,field:"startTime"});const i={filters:{collection:t.collections??[],verifiedOnly:t.onlyVerified||!1,mintToken:t.listedInToken||void 0,range:e},orderBy:t.orderBy||[],select:t.onlySelectFields||[],includeCount:t.includeCount||!1,top:t.top||35,skip:t.skip||0};return{...await this.api.fetchWithTimeout("/collection/drops/query",{params:{filter:JSON.stringify(i)},next:{tags:["/collection/drops/query"]},cache:"no-store"}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};getCollectionStakingSummary=async({collection:t,extra:e})=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/staking/summary`,{...e})};getCollectionsFloor=async t=>{t?.forEach((t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t)}));return await this.api.fetchWithTimeout("/collection/floor-price",{params:{collection:t.join(",")}})}}const N=t=>{let e=t.toString(16);return e.length%2!=0&&(e="0"+e),e},b=t=>{try{return t.includes("erd1")}catch(t){return!1}};class L{api;constructor(){this.api=I.init()}getNFTByIdentifier=async t=>{if(!P(t))throw new Error("Invalid identifier: "+t);return await this.api.fetchWithTimeout(`/nft/${t}`)};getNFTsOffers=async(t,e=0,i=25)=>{if(!P(t))throw new Error("Invalid identifier: "+t);return await this.api.fetchWithTimeout(`/nft/${t}/offers?skip=${e}&top=${i}`,{next:{tags:["getNFTsOffers"],revalidate:12}})};getNFTByCollectionAndNonce=async(t,e)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);const i=await this.api.fetchWithTimeout(`/${((t,e)=>[t,N(e)].join("-"))(t,e)}`);return i};getNFTByCollectionAndNonceHex=async(t,e)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);e.length%2!=0&&(e="0"+e);return await this.api.fetchWithTimeout(`/${[t,e].join("-")}`)};getTradingActivity=async t=>await x(t,this.api)}class ${api;collection;constructor(){this.api=I.init(),this.collection=new M}getUserProfile=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/profile`)};getBulkAccounts=async t=>await this.api.fetchWithTimeout("/user/network-account",{method:"POST",body:JSON.stringify(t)});getUserAccount=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/network-account`)};getUserTokenInventory=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/token-inventory`)};getUserSummaryInventory=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/inventory-summary`)};getUserNFTs=async t=>await this.collection.getNFTs(t);getUserOffers=async t=>{if(!b(t.address))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t.address}/offers`,{params:{type:t.type,skip:t.skip,top:t.top}})};suggestUsers=async t=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");if(!t.name)throw new Error("Name is required");const e={name:t.name,top:t.top||35,skip:t.skip||0};return await this.api.fetchWithTimeout("/user/search",{params:{filter:JSON.stringify(e)},next:{tags:["/search/global"],revalidate:180}})};getTradingActivity=async t=>await x(t,this.api);getUserCreatorProfile=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/profile`)};getCreatorListings=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/listing`)};getUserStakingSummary=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/summary`)};getUserStakingAailable=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/available-pools`)};getUserCreatorInfo=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/details`)};getUserCollectionStaking=async(t,e)=>{if(!b(t))throw new Error("Invalid address");if(!O(e))throw new Error("Invalid collection ticker: "+e);return await this.api.fetchWithTimeout(`/user/${t}/staking/collection/${e}`)};getUserPoolStaking=async(t,e)=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}`)};getAvailableNFTsForStakingPool=async(t,e)=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}/nfts`)};getOwnedPoolsByAddress=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/owned-pools`)};getUserAnalyticsSummary=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/analytics/volume`)};getUserFavoriteNFTs=async(t,e,i)=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/favorite/nfts`,{params:{top:e,skip:i}})};getUserFavoriteCollectionTickers=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/favorite/collections`)};getIsCreatorRegistered=async t=>await this.api.fetchWithTimeout(`/user/${t}/creator/is-registered`);getUsersStats=async({top:t,skip:e,orderBy:i})=>{if(t&&t>35)throw new Error("Top cannot be greater than 35");return await this.api.fetchWithTimeout("/user/stats",{params:{top:t,skip:e,orderBy:i??"totalVolume"},next:{tags:["/user/stats"],revalidate:180}})};getAccountNFTsToStake=async(t,e)=>await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}/available-nfts`,{next:{tags:[`/user/${t}/staking/pool/${e}/available-nfts`],revalidate:30}});getStakingCreatorInfo=async t=>await this.api.fetchWithTimeout(`/user/${t}/staking/creator`,{next:{tags:[`/user/${t}/staking/creator`],revalidate:30}});getUsersDrop=async({top:t,skip:e,address:i})=>{if(t&&t>35)throw new Error("Top cannot be greater than 35");if(i&&!b(i))throw new Error("Invalid address");return await this.api.fetchWithTimeout("/user/xoxno-drop",{params:{top:t,skip:e,...i?{address:i}:{}},next:{tags:["/user/xoxno-drop"],revalidate:30}})};getUserOwnerCollections=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/owned-collections`)};getRoyaltiesSharesCreator=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/launchpad/${t}/shareholders/royalties`)};getMintSharesCreator=async(t,e)=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/launchpad/${t}/shareholders/collection/${e}`)}}class V{api;constructor(){this.api=I.init()}getPoolDetails=async t=>await this.api.fetchWithTimeout(`/pool/${t}/profile`)}class F{api;constructor(){this.api=I.init()}getTokensUsdPrice=async()=>await this.api.fetchWithTimeout("/tokens/usd-price");getAshSwapAmount=async({originalToken:t,originalTokenValue:e,paymentToken:i})=>await this.api.fetchWithTimeout("/ash/min-token-quantity",{params:{originalToken:t,originalTokenValue:e,paymentToken:i}});getFungibleTokens=async(t=[d.ALL],e)=>{let i={};e&&(i={identifier:e.join(",")}),t&&(i={...i,category:t.join(",")});return await this.api.fetchWithTimeout("/tokens",{params:i})};getGlobalGraphData=async(t,e,i)=>await this.api.fetchWithTimeout("/analytics/volume",{params:{startTime:t,endTime:e,bin:i},next:{tags:["/analytics/volume"],revalidate:60}});getAnalyticsOverview=async()=>await this.api.fetchWithTimeout("/analytics/overview",{next:{tags:["/analytics/overview"],revalidate:60}});suggestResults=async t=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");if(!t.name)throw new Error("Name is required");const e={name:t.name,top:t.top||35,skip:t.skip||0};return await this.api.fetchWithTimeout("/search",{params:{filter:JSON.stringify(e)},next:{tags:["/search/global"],revalidate:180}})};getExploreStaking=async()=>await this.api.fetchWithTimeout("/collection/staking/explore",{next:{tags:["/collection/staking/explore"],revalidate:60}})}return v})()));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@xoxno/sdk-js"]=e():t["@xoxno/sdk-js"]=e()}(this,(()=>(()=>{"use strict";var t,e,i,a,r,o,n,s,l,c,d,g,h,u,p,f,y,m,T,w,S,k,q={d:(t,e)=>{for(var i in e)q.o(e,i)&&!q.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},v={};q.r(v),q.d(v,{AssetCategory:()=>d,AuctionType:()=>m,AuctionTypes:()=>c,Chain:()=>W,CollectionModule:()=>M,CollectionStatsOrderBy:()=>u,CollectionStatsSelectFields:()=>h,CollectionsFieldsToSelect:()=>s,CollectionsOrderBy:()=>o,CollectionsSummaryFilter:()=>g,CommonModule:()=>F,DropsOderBy:()=>a,FieldsToSelect:()=>e,GlobalOfferFieldsToSelect:()=>l,GlobalOfferOrderBy:()=>n,IssuingType:()=>T,Marketplace:()=>t,NFTModule:()=>L,NftActivityType:()=>p,OfferType:()=>S,OrderByTradingActivity:()=>f,PoolType:()=>w,SearchOrderBy:()=>i,SelectFieldsTradingActivity:()=>y,StakingModule:()=>V,SuggestOrderBy:()=>r,Type:()=>k,UserModule:()=>$,XOXNOClient:()=>I}),function(t){t.XO="xoxno",t.FM="frameit",t.DR="deadrare",t.KG="krogan"}(t||(t={})),function(t){t.Rank="metadata.rarity.rank",t.Attributes="metadata.attributes",t.Description="metadata.description",t.Name="name",t.OnSale="onSale",t.SaleInfo="saleInfo",t.Royalties="royalties",t.Identifier="identifier",t.Collection="collection",t.OriginalURL="url",t.Nonce="nonce",t.ContentType="originalMedia.contentType",t.WasProcessed="wasProcessed",t.AvifURL="avifUrl",t.WebpURL="webpUrl",t.Type="type"}(e||(e={})),function(t){t.PriceHighToLow="saleInfo.minBidShort desc",t.PriceLowToHigh="saleInfo.minBidShort asc",t.MaxPriceHighToLow="saleInfo.maxBidShort desc",t.MaxPriceLowToHigh="saleInfo.maxBidShort asc",t.BidPriceHighToLow="saleInfo.currentBidShort desc",t.BidPriceLowToHigh="saleInfo.currentBidShort asc",t.RarityHighToLow="metadata.rarity.rank desc",t.RarityLowToHigh="metadata.rarity.rank asc",t.NonceHighToLow="nonce desc",t.NonceLowToHigh="nonce asc",t.RecentListed="saleInfo.timestamp desc",t.OldestListed="saleInfo.timestamp asc",t.EndingLate="saleInfo.deadline desc",t.EndingSoon="saleInfo.deadline asc"}(i||(i={})),function(t){t.EndingLate="startTime desc",t.EndingSoon="startTime asc"}(a||(a={})),function(t){t.TotalVolumeHighToLow="statistics/tradeData/totalEgldVolume desc",t.FollowersHighToLow="statistics/other/followCount desc",t.IsVerifiedTrueToFalse="isVerified desc",t.HasImageTrueToFalse="profile desc",t.HasBannerTrueToFalse="banner desc"}(r||(r={})),function(t){t.WeekVolumeHighToLow="statistics.tradeData.weekEgldVolume desc",t.WeekVolumeLowToHigh="statistics.tradeData.weekEgldVolume asc",t.DailyVolumeHighToLow="statistics.tradeData.dayEgldVolume desc",t.DailyVolumeLowToHigh="statistics.tradeData.dayEgldVolume asc",t.TotalVolumeHighToLow="statistics.tradeData.totalEgldVolume desc",t.TotalVolumeLowToHigh="statistics.tradeData.totalEgldVolume asc",t.AvgVolumePriceHighToLow="statistics.tradeData.averageEgldPrice desc",t.AvgVolumePriceLowToHigh="statistics.tradeData.averageEgldPrice asc",t.ATHHighToLow="statistics.tradeData.athEgldPrice desc",t.ATHLowToHigh="statistics.tradeData.athEgldPrice asc",t.TotalTradesHighToLow="statistics.tradeData.totalTrades desc",t.TotalTradesLowToHigh="statistics.tradeData.totalTrades asc",t.SupplyHighToLow="statistics.other.nftCount desc",t.SupplyLowToHigh="statistics.other.nftCount asc",t.FollowersHighToLow="statistics.other.followCount desc",t.FollowersLowToHigh="statistics.other.followCount asc"}(o||(o={})),function(t){t.PriceHighToLow="priceShort desc",t.PriceLowToHigh="priceShort asc",t.OfferIdHighToLow="offerIddesc",t.OfferIdLowToHigh="offerId asc",t.RecentListed="timestamp desc",t.OldestListed="timestamp asc"}(n||(n={})),function(t){t.Profile="profile",t.Description="description",t.Creator="creator",t.Owner="owner",t.Socials="socials",t.Type="type",t.HasStaking="hasStaking",t.Name="name",t.Banner="banner",t.IsVerified="isVerified",t.IsMintable="isMintable",t.Statistics="statistics",t.Collection="collection"}(s||(s={})),function(t){t.Attributes="attributes",t.Collection="collection",t.Marketplace="marketplace",t.PaymentToken="paymentToken",t.LongPrice="price",t.ShortPrice="priceShort"}(l||(l={})),function(t){t.FixedPrice="FixedPrice",t.Auctions="Auctions",t.All="All",t.AllListed="AllListed"}(c||(c={})),function(t){t.ALL="all",t.Trade="trade",t.P2P="p2p",t.Staking="staking",t.Minting="minting"}(d||(d={})),function(t){t.TotalVolume="TotalVolume",t.TotalTrades="TotalTrades",t.DailyVolume="DailyVolume",t.Last2DaysVolume="Last2DaysVolume",t.DailyTrades="DailyTrades",t.Last2DaysTrades="Last2DaysTrades",t.WeekTrades="WeekTrades",t.LastWeekTrades="LastWeekTrades",t.WeekVolume="WeekVolume",t.LastWeekVolume="LastWeekVolume",t.WeeklyTradesMargin="WeeklyTradesMargin",t.DailyTradesMargin="DailyTradesMargin",t.WeeklyVolumeMargin="WeeklyVolumeMargin",t.DailyVolumeEgldMargin="DailyVolumeEgldMargin",t.CollectionAthTrade="CollectionAthTrade"}(g||(g={})),function(t){t.TradingStats="tradingStats"}(h||(h={})),function(t){t.ListedCountDesc="tradingStats.listedCount DESC",t.ListedCountAsc="tradingStats.listedCount ASC",t.FloorPriceDesc="tradingStats.floorPrice DESC",t.FloorPriceAsc="tradingStats.floorPrice ASC",t.TotalVolumeDesc="tradingStats.totalVolume DESC",t.TotalVolumeAsc="tradingStats.totalVolume ASC",t.TotalTradesDesc="tradingStats.totalTrades DESC",t.TotalTradesAsc="tradingStats.totalTrades ASC",t.AllTimeHighDesc="tradingStats.allTimeHigh.price DESC",t.AllTimeHighAsc="tradingStats.allTimeHigh.price ASC",t.DayVolumeDesc="tradingStats.day.volume DESC",t.DayVolumeAsc="tradingStats.day.volume ASC",t.DayVolumeMarginDesc="tradingStats.day.volumeMargin DESC",t.DayVolumeMarginAsc="tradingStats.day.volumeMargin ASC",t.DayTradesDesc="tradingStats.day.trades DESC",t.DayTradesAsc="tradingStats.day.trades ASC",t.DayTradesMarginDesc="tradingStats.day.tradesMargin DESC",t.DayTradesMarginAsc="tradingStats.day.tradesMargin ASC",t.WeekVolumeDesc="tradingStats.week.volume DESC",t.WeekVolumeAsc="tradingStats.week.volume ASC",t.WeekVolumeMarginDesc="tradingStats.week.volumeMargin DESC",t.WeekVolumeMarginAsc="tradingStats.week.volumeMargin ASC",t.WeekTradesDesc="tradingStats.week.trades DESC",t.WeekTradesAsc="tradingStats.week.trades ASC",t.WeekTradesMarginDesc="tradingStats.week.tradesMargin DESC",t.WeekTradesMarginAsc="tradingStats.week.tradesMargin ASC",t.MonthVolumeDesc="tradingStats.month.volume DESC",t.MonthVolumeAsc="tradingStats.month.volume ASC",t.MonthVolumeMarginDesc="tradingStats.month.volumeMargin DESC",t.MonthVolumeMarginAsc="tradingStats.month.volumeMargin ASC",t.MonthTradesDesc="tradingStats.month.trades DESC",t.MonthTradesAsc="tradingStats.month.trades ASC",t.MonthTradesMarginDesc="tradingStats.month.tradesMargin DESC",t.MonthTradesMarginAsc="tradingStats.month.tradesMargin ASC",t.YearVolumeDesc="tradingStats.year.volume DESC",t.YearVolumeAsc="tradingStats.year.volume ASC",t.YearVolumeMarginDesc="tradingStats.year.volumeMargin DESC",t.YearVolumeMarginAsc="tradingStats.year.volumeMargin ASC",t.YearTradesDesc="tradingStats.year.trades DESC",t.YearTradesAsc="tradingStats.year.trades ASC",t.YearTradesMarginDesc="tradingStats.year.tradesMargin DESC",t.YearTradesMarginAsc="tradingStats.year.tradesMargin ASC"}(u||(u={})),function(t){t.NFT_CREATE="nftCreate",t.NFT_BURN="nftBurn",t.NFT_UPDATE="nftUpdate",t.NFT_TRANSFER="nftTransfer",t.LISTING_CREATE="listingCreate",t.LISTING_WITHDRAW="listingWithdraw",t.LISTING_UPDATE="listingUpdate",t.AUCTION_BID="auctionBid",t.AUCTION_OUT_BID="auctionOutBid",t.OFFER_CREATE="offerCreate",t.OFFER_WITHDRAW="offerWithdraw",t.OFFER_REJECT="offerReject",t.GLOBAL_OFFER_CREATE="globalOfferCreate",t.GLOBAL_OFFER_WITHDRAW="globalOfferWithdraw",t.TRADE="trade",t.BULK_TRADE="bulkTrade",t.AUCTION_TRADE="auctionTrade",t.OTHER_TRADE="otherTrade",t.OFFER_TRADE="offerTrade",t.GLOBAL_OFFER_TRADE="globalOfferTrade",t.STAKE="stake",t.UN_STAKE="unStake"}(p||(p={})),function(t){t.PriceHighToLow="activityData.egldValue desc",t.PriceLowToHigh="activityData.egldValue asc",t.RecentPlaced="timestamp desc",t.OldestPlaced="timestamp asc"}(f||(f={})),function(t){t[t.attributes=0]="attributes",t[t.collection=1]="collection",t[t.offer_id=2]="offer_id",t[t.owner=3]="owner",t[t.short_price=4]="short_price",t[t.price=5]="price",t[t.id=6]="id",t[t.dataType=7]="dataType",t[t.marketplace=8]="marketplace",t[t.payment_token=9]="payment_token"}(y||(y={})),function(t){t[t.NftBid=0]="NftBid",t[t.Nft=1]="Nft",t[t.SftAll=2]="SftAll",t[t.SftOnePerPayment=3]="SftOnePerPayment"}(m||(m={})),function(t){t.Dynamic="Dynamic",t.Fixed="Fixed"}(T||(T={})),function(t){t.Duo="Duo",t.Single="Single",t.Perk="Perk"}(w||(w={})),function(t){t.Received="received",t.Placed="placed"}(S||(S={})),function(t){t.NonFungibleESDT="NonFungibleESDT"}(k||(k={}));const E="https://api.xoxno.com",A="erd1qqqqqqqqqqqqqpgq705fxpfrjne0tl3ece0rrspykq88mynn4kxs2cg43s",C="erd1qqqqqqqqqqqqqpgqd9rvv2n378e27jcts8vfwynpx0gfl5ufz6hqhfy0u0",D="erd1qqqqqqqqqqqqqpgq8xwzu82v8ex3h4ayl5lsvxqxnhecpwyvwe0sf2qj4e";var W;!function(t){t.MAINNET="1",t.DEVNET="D"}(W||(W={}));class I{static instance;apiUrl;apiKey;chain;config;constructor(t=E,e="",i=W.MAINNET){this.apiUrl=t,this.apiKey=e,this.chain=i,this.config=i===W.MAINNET?{XO_SC:"erd1qqqqqqqqqqqqqpgq6wegs2xkypfpync8mn2sa5cmpqjlvrhwz5nqgepyg8",FM_SC:A,DR_SC:C,KG_SC:D,Staking_SC:"erd1qqqqqqqqqqqqqpgqvpkd3g3uwludduv3797j54qt6c888wa59w2shntt6z",Manager_SC:"erd1qqqqqqqqqqqqqpgqg9fa0dmpn8fu3fnleeqn5zt8rl8mdqjkys5s2gtas7",P2P_SC:"erd1qqqqqqqqqqqqqpgq47y8hnct68v6asjv6gxem6h9rumn9frzah0skhxxt6"}:{XO_SC:"erd1qqqqqqqqqqqqqpgql0dnz6n5hpuw8cptlt00khd0nn4ja8eadsfq2xrqw4",FM_SC:A,DR_SC:C,KG_SC:D,Staking_SC:"erd1qqqqqqqqqqqqqpgqsc5hnewwpep8qq0d7kjjzrquapuucrygah0s85zres",Manager_SC:"erd1qqqqqqqqqqqqqpgqluclyhfsa2uw7q9cjwd8knk989hg57u8ah0slq2nlr",P2P_SC:"erd1qqqqqqqqqqqqqpgqfja7ukpngrun78ueq583l0vd6aj4ekhrah0sa9wyrv"}}static init({apiUrl:t=E,apiKey:e="",chain:i=W.MAINNET}={}){if(!I.instance){if(i==W.DEVNET)return I.instance=new I(t??"https://devnet-api.xoxno.com",e,i),I.instance;I.instance=new I(t,e,i)}return I.instance}fetchWithTimeout=async(t,e={},i=4e4)=>{const a={"Accept-Encoding":"gzip,deflate,br",Referer:"https://xoxno.sdk","User-Agent":"XOXNO/1.0/SDK",..."POST"===e.method?{"Content-Type":"application/json"}:{},...e.headers??{}},r=`${"string"==typeof t&&t.startsWith("/")?`${this.apiUrl}${t}`:t}${e.params?"?"+Object.keys(e.params).map((t=>`${t}=${encodeURIComponent(e.params[t])}`)).join("&"):""}`,o=new AbortController;setTimeout((()=>o.abort()),i);const n=await fetch(r,{...e,...e?.next&&e.next.revalidate?{}:{cache:"no-store"},signal:o.signal,...Object.keys(a).length?{headers:a}:{},method:e.method??"GET"});if(!n.ok)throw new Error((await n.json()).message.toString());return n.json()}}const x=async(t,e)=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");const i=[];t.priceRange&&i.push({...t.priceRange,field:"activityData.egldValue"}),t.timestampRange&&i.push({...t.timestampRange,field:"timestamp"});const a={filters:{activityData:null==t.from&&null==t.to?{collection:t.collections,identifier:t.identifiers||void 0}:void 0,from:t.from,to:t.to,activityAddress:t.wallets||void 0,source:t.source||void 0,activityType:t.activityType||void 0,range:i},strictSelect:t.strictSelect,orderBy:t.orderBy,select:t.select,top:t.top||35,skip:t.skip||0},r=await e.fetchWithTimeout("/activity/query",{params:{filter:JSON.stringify(a)},next:{tags:["getActivity"],revalidate:180}});return{...r,getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)},empty:0===r.resources.length}},O=t=>/^[A-Z0-9]{3,10}-[a-z0-9]{6}$/.test(t),P=t=>/^[A-Za-z0-9]{3,10}-[A-Za-z0-9]{6}-[A-Za-z0-9]{2,5}(?:-\d+(?:-[A-Za-z0-9]+)?)?$/.test(t);class M{api;constructor(){this.api=I.init()}getCollectionProfile=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/profile`,{next:{tags:["getCollectionProfile"],revalidate:30}})};getDailyTrending=async()=>await this.api.fetchWithTimeout("/nfts/getDailyTrending",{next:{tags:["getDailyTrending"],revalidate:180}});getCollectionFloorPrice=async(t,e="EGLD")=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);const i=await this.api.fetchWithTimeout(`/collection/${t}/floor-price`,{next:{tags:["getCollectionFloorPrice"]},params:{token:e}});return i?.price?i.price:0};getCollectionAttributes=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/attributes`,{next:{tags:["getCollectionAttributes"],revalidate:180}})};getNFTs=async t=>{if(t?.collections?.forEach((t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>35)throw new Error("Top cannot be greater than 35");const e=[];t.priceRange&&e.push({...t.priceRange,field:t.auctionType==c.Auctions?"saleInfo.currentBidShort":"saleInfo.minBidShort"}),t.rankRange&&e.push({...t.rankRange,field:"metadata.rarity.rank"});const i={filters:{dataType:t.dataType??["nft"],activeAuction:t.activeAuctions,collection:t.collections??[],onSale:t.onlyOnSale,saleInfo:{seller:t.listedBy||[],marketplace:t.listedOnlyOn||void 0,paymentToken:t.listedInToken||[],auctionType:t.auctionType==c.Auctions?["NftBid","SftAll"]:t.auctionType==c.FixedPrice?["Nft","SftOnePerPayment"]:t.auctionType==c.AllListed?["NftBid","SftAll","Nft","SftOnePerPayment"]:void 0},owner:t.ownedBy||[],verifiedOnly:t.onlyVerified||!1,metadata:{attributes:t.attributes||void 0},range:e,nonce:t.nonces||void 0,cp_staked:t.isStaked||void 0},applyNftExtraDetails:t.applyNftExtraDetails,orderBy:t.orderBy||[],select:t.onlySelectFields||[],strictSelect:t.strictSelect||!1,includeCount:t.includeCount||!1,top:t.top||35,skip:t.skip||0};return{...await this.api.fetchWithTimeout("/nft/query",{params:{filter:JSON.stringify(i)},next:{tags:["getCollectionNFTs"]},cache:"no-store"}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};suggestCollections=async t=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");if(!t.name)throw new Error("Name is required");const e={name:t.name,top:t.top||35,skip:t.skip||0};return await this.api.fetchWithTimeout("/collection/search",{params:{filter:JSON.stringify(e)},next:{tags:["/collection/search"],revalidate:180}})};collectionListingsAnalytics=async t=>await this.api.fetchWithTimeout(`/collection/${t}/listings`,{next:{tags:["collection/${ticker}/listings"],revalidate:500}});getTradingActivity=async t=>await x(t,this.api);getCollections=async t=>{if(t?.top&&t.top>25)throw new Error("Top cannot be greater than 25");const e={skip:t?.skip||0,top:t?.top||25,select:t?.onlySelectFields||[],filters:{dataType:"collectionProfile",isMintable:t?.onlyMintable||void 0,...t?.collections&&t.collections.length>0&&{collection:t.collections}},orderBy:[t?.orderBy||"statistics.tradeData.weekEgldVolume desc"]},i=await this.api.fetchWithTimeout("/collection/query",{params:{filter:JSON.stringify(e)},next:{tags:["getCollections"],revalidate:180}});return{results:i,resultsCount:i.length,empty:0===i.length,getNextPagePayload:{...t,skip:(t?.skip||0)+(t?.top||25)},hasMoreResults:i.length>=(t?.top||25)}};getGlobalOffers=async t=>{if(t?.top&&t.top>25)throw new Error("Top cannot be greater than 25");const e={skip:t?.skip||0,top:t?.top||25,select:t?.onlySelectFields||[],filters:{collection:t?.collections||[],withAttributes:t?.withAttributes??!1,isActive:t?.onlyActive??!0,offerId:t?.offerIds,owner:t?.ownedBy,marketplace:t?.listedOnlyOn,range:t?.priceRange?{...t.priceRange,type:"priceShort"}:void 0,attributes:t?.attributes},orderBy:[t?.orderBy||n.PriceHighToLow]},i=await this.api.fetchWithTimeout("/collection/global-offer/query",{params:{filter:JSON.stringify(e)},next:{tags:["getGlobalOffers"],revalidate:12}});return{...i,getNextPagePayload:{...t,skip:(t?.top||25)+i.lastSkip}}};getCollectionVolume=async(t,e,i,a)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/analytics/volume?startTime=${e}&endTime=${i}&bin=${a}`,{next:{tags:["getCollectionVolume"],revalidate:180}})};getMarketplaceVolume=async(t,e,i)=>await this.api.fetchWithTimeout(`/analytics/volume?startTime=${t}&endTime=${e}&bin=${i}`,{next:{tags:["getMarketplaceVolume"],revalidate:180}});getCollectionOwners=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/holders`,{next:{tags:["getCollectionOwners"],revalidate:500}})};getExportOwners=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/holders?exportHolders=true`,{next:{tags:["getExportOwners"]}})};getCollectionsStatistics=async t=>{if(t?.top&&t.top>25)throw new Error("Top cannot be greater than 25");return{...await this.api.fetchWithTimeout("/collection/stats/query",{params:{filter:JSON.stringify(t)},next:{tags:["collectionStatistics"],revalidate:12}}),getNextPagePayload:{...t,skip:t.skip+t.top}}};getCollectionStats=async t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/stats`,{next:{tags:["collectionStatistics"],revalidate:12}})};getAwaitEmpty=async t=>new Promise((e=>{setTimeout((()=>{e(!0)}),t)}));getCollectionMintInfo=async({ticker:t,extra:e})=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/drop-info`,{next:{tags:[`/collection/${t}/drop-info`],revalidate:12},...e})};getCollectionRanks=async({ticker:t,extra:e})=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/ranks`,{next:{tags:[`/collection/${t}/ranks`],revalidate:60},...e})};getDropInfo=async({collectionTag:t,creatorTag:e,extra:i})=>await this.api.fetchWithTimeout(`/collection/${e}/${t}/drop-info`,{next:{tags:[`/collection/${e}/${t}/drop-info`],revalidate:12},...i});getCollectionGraphData=async(t,e,i,a)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/analytics/volume`,{params:{startTime:e,endTime:i,bin:a},next:{tags:[`/collection/${t}/analytics/volume`],revalidate:60}})};getPinnedCollections=async()=>await this.api.fetchWithTimeout("/collection/pinned",{next:{tags:["/collection/pinned"],revalidate:60}});getDrops=async t=>{if(t?.collections?.forEach((t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>35)throw new Error("Top cannot be greater than 35");const e=[];t.timeRange&&e.push({...t.timeRange,field:"startTime"});const i={filters:{collection:t.collections??[],verifiedOnly:t.onlyVerified||!1,mintToken:t.listedInToken||void 0,range:e},orderBy:t.orderBy||[],select:t.onlySelectFields||[],includeCount:t.includeCount||!1,top:t.top||35,skip:t.skip||0};return{...await this.api.fetchWithTimeout("/collection/drops/query",{params:{filter:JSON.stringify(i)},next:{tags:["/collection/drops/query"]},cache:"no-store"}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};getCollectionStakingSummary=async({collection:t,extra:e})=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/staking/summary`,{...e})};getCollectionsFloor=async t=>{t?.forEach((t=>{if(!O(t))throw new Error("Invalid collection ticker: "+t)}));return await this.api.fetchWithTimeout("/collection/floor-price",{params:{collection:t.join(",")}})}}const N=t=>{let e=t.toString(16);return e.length%2!=0&&(e="0"+e),e},b=t=>{try{return t.includes("erd1")}catch(t){return!1}};class L{api;constructor(){this.api=I.init()}getNFTByIdentifier=async t=>{if(!P(t))throw new Error("Invalid identifier: "+t);return await this.api.fetchWithTimeout(`/nft/${t}`)};getNFTsOffers=async(t,e=0,i=25)=>{if(!P(t))throw new Error("Invalid identifier: "+t);return await this.api.fetchWithTimeout(`/nft/${t}/offers?skip=${e}&top=${i}`,{next:{tags:["getNFTsOffers"],revalidate:12}})};getNFTByCollectionAndNonce=async(t,e)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);const i=await this.api.fetchWithTimeout(`/${((t,e)=>[t,N(e)].join("-"))(t,e)}`);return i};getNFTByCollectionAndNonceHex=async(t,e)=>{if(!O(t))throw new Error("Invalid collection ticker: "+t);e.length%2!=0&&(e="0"+e);return await this.api.fetchWithTimeout(`/${[t,e].join("-")}`)};getTradingActivity=async t=>await x(t,this.api)}class ${api;collection;constructor(){this.api=I.init(),this.collection=new M}getUserProfile=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/profile`)};getBulkAccounts=async t=>await this.api.fetchWithTimeout("/user/network-account",{method:"POST",body:JSON.stringify(t)});getUserAccount=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/network-account`)};getUserTokenInventory=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/token-inventory`)};getUserSummaryInventory=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/inventory-summary`)};getUserNFTs=async t=>await this.collection.getNFTs(t);getUserOffers=async t=>{if(!b(t.address))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t.address}/offers`,{params:{type:t.type,skip:t.skip,top:t.top}})};suggestUsers=async t=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");if(!t.name)throw new Error("Name is required");const e={name:t.name,top:t.top||35,skip:t.skip||0};return await this.api.fetchWithTimeout("/user/search",{params:{filter:JSON.stringify(e)},next:{tags:["/search/global"],revalidate:180}})};getTradingActivity=async t=>await x(t,this.api);getUserCreatorProfile=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/profile`)};getCreatorListings=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/listing`)};getUserStakingSummary=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/summary`)};getUserStakingAailable=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/available-pools`)};getUserCreatorInfo=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/details`)};getUserCollectionStaking=async(t,e)=>{if(!b(t))throw new Error("Invalid address");if(!O(e))throw new Error("Invalid collection ticker: "+e);return await this.api.fetchWithTimeout(`/user/${t}/staking/collection/${e}`)};getUserPoolStaking=async(t,e)=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}`)};getAvailableNFTsForStakingPool=async(t,e)=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}/nfts`)};getOwnedPoolsByAddress=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/owned-pools`)};getUserAnalyticsSummary=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/analytics/volume`)};getUserFavoriteNFTs=async(t,e,i)=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/favorite/nfts`,{params:{top:e,skip:i}})};getUserFavoriteCollectionTickers=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/favorite/collections`)};getIsCreatorRegistered=async t=>await this.api.fetchWithTimeout(`/user/${t}/creator/is-registered`);getUsersStats=async({top:t,skip:e,orderBy:i})=>{if(t&&t>35)throw new Error("Top cannot be greater than 35");return await this.api.fetchWithTimeout("/user/stats",{params:{top:t,skip:e,orderBy:i??"totalVolume"},next:{tags:["/user/stats"],revalidate:180}})};getAccountNFTsToStake=async(t,e)=>await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}/available-nfts`,{next:{tags:[`/user/${t}/staking/pool/${e}/available-nfts`],revalidate:30}});getStakingCreatorInfo=async t=>await this.api.fetchWithTimeout(`/user/${t}/staking/creator`,{next:{tags:[`/user/${t}/staking/creator`],revalidate:30}});getUsersDrop=async({top:t,skip:e,address:i})=>{if(t&&t>35)throw new Error("Top cannot be greater than 35");if(i&&!b(i))throw new Error("Invalid address");return await this.api.fetchWithTimeout("/user/xoxno-drop",{params:{top:t,skip:e,...i?{address:i}:{}},next:{tags:["/user/xoxno-drop"],revalidate:30}})};getUserOwnerCollections=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/owned-collections`)};getRoyaltiesSharesCreator=async t=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/launchpad/${t}/shareholders/royalties`)};getMintSharesCreator=async(t,e)=>{if(!b(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/launchpad/${t}/shareholders/collection/${e}`)}}class V{api;constructor(){this.api=I.init()}getPoolDetails=async t=>await this.api.fetchWithTimeout(`/pool/${t}/profile`)}class F{api;constructor(){this.api=I.init()}getTokensUsdPrice=async()=>await this.api.fetchWithTimeout("/tokens/usd-price");getAshSwapAmount=async({originalToken:t,originalTokenValue:e,paymentToken:i})=>await this.api.fetchWithTimeout("/ash/min-token-quantity",{params:{originalToken:t,originalTokenValue:e,paymentToken:i}});getFungibleTokens=async(t=[d.ALL],e)=>{let i={};e&&(i={identifier:e.join(",")}),t&&(i={...i,category:t.join(",")});return await this.api.fetchWithTimeout("/tokens",{params:i})};getGlobalGraphData=async(t,e,i)=>await this.api.fetchWithTimeout("/analytics/volume",{params:{startTime:t,endTime:e,bin:i},next:{tags:["/analytics/volume"],revalidate:60}});getAnalyticsOverview=async()=>await this.api.fetchWithTimeout("/analytics/overview",{next:{tags:["/analytics/overview"],revalidate:60}});suggestResults=async t=>{if(t.top&&t.top>35)throw new Error("Top cannot be greater than 35");if(!t.name)throw new Error("Name is required");const e={name:t.name,top:t.top||35,skip:t.skip||0};return await this.api.fetchWithTimeout("/search",{params:{filter:JSON.stringify(e)},next:{tags:["/search/global"],revalidate:180}})};getExploreStaking=async()=>await this.api.fetchWithTimeout("/collection/staking/explore",{next:{tags:["/collection/staking/explore"],revalidate:60}})}return v})()));
|
package/dist/staking/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/staking/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/staking/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C,qBAAa,aAAa;IACxB,OAAO,CAAC,GAAG,CAAc;;IAIzB;;;;UAIM;IACC,cAAc,WAAkB,MAAM,KAAG,QAAQ,WAAW,CAAC,CAKlE;CACH"}
|
|
@@ -220,6 +220,7 @@ export interface Filter {
|
|
|
220
220
|
collection?: string[];
|
|
221
221
|
mintToken?: string[];
|
|
222
222
|
type?: string[];
|
|
223
|
+
nonce?: number[];
|
|
223
224
|
onSale?: boolean;
|
|
224
225
|
owner?: string[];
|
|
225
226
|
currentOwner?: string[];
|
|
@@ -304,6 +305,8 @@ export interface GetNFTsArgs {
|
|
|
304
305
|
skip?: number;
|
|
305
306
|
/** Document type */
|
|
306
307
|
dataType?: string[];
|
|
308
|
+
/** The nonces of the NFTs */
|
|
309
|
+
nonces?: number[];
|
|
307
310
|
/** If set, will return only NFTs that are staked */
|
|
308
311
|
isStaked?: boolean;
|
|
309
312
|
/** The order of the results based on a field */
|
|
@@ -314,6 +317,8 @@ export interface GetNFTsArgs {
|
|
|
314
317
|
listedOnlyOn?: Marketplace[];
|
|
315
318
|
/** If set, will return only NFTs with the specified attributes */
|
|
316
319
|
attributes?: MetadataAttribute[];
|
|
320
|
+
/** If set, will return only the selected fields */
|
|
321
|
+
strictSelect?: boolean;
|
|
317
322
|
}
|
|
318
323
|
export interface GETDropsArgs {
|
|
319
324
|
/** If set, will return only NFTs from the specified collections */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../src/types/collection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,WAAW,EACZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,MAAM,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,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,QAAQ,EAAE,IAAI,CACZ,OAAO,EACL,MAAM,GACN,YAAY,GACZ,UAAU,GACV,UAAU,GACV,cAAc,GACd,OAAO,GACP,KAAK,GACL,YAAY,GACZ,IAAI,CACP,EAAE,CAAC;CACL;AAED,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,OAAO;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;CACzC"}
|
package/dist/types/nft.d.ts
CHANGED
|
@@ -55,21 +55,6 @@ export interface GameData {
|
|
|
55
55
|
name: string;
|
|
56
56
|
value: number;
|
|
57
57
|
}
|
|
58
|
-
export interface OffersInfo {
|
|
59
|
-
EgldValue: number;
|
|
60
|
-
UsdValue: number;
|
|
61
|
-
deadline: number;
|
|
62
|
-
isActive: boolean;
|
|
63
|
-
offer_id: number;
|
|
64
|
-
owner: string;
|
|
65
|
-
ownerUsername: string;
|
|
66
|
-
payment_nonce: number;
|
|
67
|
-
payment_token: string;
|
|
68
|
-
price: string;
|
|
69
|
-
price_short: number;
|
|
70
|
-
quantity: number;
|
|
71
|
-
timestamp: number;
|
|
72
|
-
}
|
|
73
58
|
export interface NftData {
|
|
74
59
|
id: string;
|
|
75
60
|
name: string;
|
package/dist/types/nft.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nft.d.ts","sourceRoot":"","sources":["../../src/types/nft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,WAAW,YAAa,SAAQ,iBAAiB;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;IAC5B,MAAM,CAAC,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,KAAK;IACpB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB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,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
package/dist/types/staking.d.ts
CHANGED
|
@@ -1,35 +1,4 @@
|
|
|
1
|
-
import { RewardAvaiblePools
|
|
2
|
-
export type StakingPool = {
|
|
3
|
-
name: string;
|
|
4
|
-
collections: TickerElement[];
|
|
5
|
-
pool_type: PoolType;
|
|
6
|
-
issuing_type: IssuingType;
|
|
7
|
-
pool_id: number;
|
|
8
|
-
pool_total_staked?: number;
|
|
9
|
-
whitelist_pool: boolean;
|
|
10
|
-
is_active: boolean;
|
|
11
|
-
is_stake_enabled: boolean;
|
|
12
|
-
daily_reward_in_egld?: number;
|
|
13
|
-
daily_reward_in_usd?: number;
|
|
14
|
-
expiration_in_days: number;
|
|
15
|
-
profile: string;
|
|
16
|
-
unbound_period: number;
|
|
17
|
-
reward_per_epoch: Reward[];
|
|
18
|
-
reward_balance: Reward[];
|
|
19
|
-
start_issuing: number;
|
|
20
|
-
start_issuing_timestamp: number;
|
|
21
|
-
deadline_issuing: number;
|
|
22
|
-
deadline_issuing_timestamp: number;
|
|
23
|
-
cut_fees: number;
|
|
24
|
-
max_stake_per_pool: number;
|
|
25
|
-
reward_tokens: string[];
|
|
26
|
-
reward_per_epoch_per_nft: Reward[];
|
|
27
|
-
max_stake_per_wallet: number;
|
|
28
|
-
is_verified: boolean;
|
|
29
|
-
percent_filled: number | null;
|
|
30
|
-
currentEpoch: number;
|
|
31
|
-
owner: string;
|
|
32
|
-
};
|
|
1
|
+
import { RewardAvaiblePools } from './user';
|
|
33
2
|
export type Reward = {
|
|
34
3
|
value: number;
|
|
35
4
|
ticker: string;
|
|
@@ -43,52 +12,10 @@ export declare enum PoolType {
|
|
|
43
12
|
Single = "Single",
|
|
44
13
|
Perk = "Perk"
|
|
45
14
|
}
|
|
46
|
-
export type Pool = {
|
|
47
|
-
pool_id: number;
|
|
48
|
-
total_staked: number;
|
|
49
|
-
name: string;
|
|
50
|
-
collections: Collection[];
|
|
51
|
-
pool_type: string;
|
|
52
|
-
issuing_type: string;
|
|
53
|
-
pool_total_staked: number;
|
|
54
|
-
whitelist_pool: boolean;
|
|
55
|
-
is_active: boolean;
|
|
56
|
-
is_stake_enabled: boolean;
|
|
57
|
-
expiration_in_days: number;
|
|
58
|
-
profile: string;
|
|
59
|
-
unbound_period: number;
|
|
60
|
-
reward_per_epoch: Reward[];
|
|
61
|
-
reward_balance: any[];
|
|
62
|
-
start_issuing: number;
|
|
63
|
-
start_issuing_timestamp: number;
|
|
64
|
-
deadline_issuing: number;
|
|
65
|
-
deadline_issuing_timestamp: number;
|
|
66
|
-
cut_fees: number;
|
|
67
|
-
max_stake_per_pool: number;
|
|
68
|
-
reward_tokens: string[];
|
|
69
|
-
reward_per_epoch_per_nft: Reward[];
|
|
70
|
-
max_stake_per_wallet: number;
|
|
71
|
-
is_premium: boolean;
|
|
72
|
-
is_verified: boolean;
|
|
73
|
-
percent_filled: number;
|
|
74
|
-
currentEpoch: number;
|
|
75
|
-
owner: string;
|
|
76
|
-
unClaimedReward: UnClaimedReward[];
|
|
77
|
-
dailyRewardPerNFT: Reward[];
|
|
78
|
-
reward_token: string[];
|
|
79
|
-
ticker: string[];
|
|
80
|
-
totalStakedNfts: number;
|
|
81
|
-
};
|
|
82
15
|
export type Collection = {
|
|
83
16
|
ticker: string;
|
|
84
17
|
name: string;
|
|
85
18
|
};
|
|
86
|
-
export type UnClaimedReward = {
|
|
87
|
-
reward_token: string;
|
|
88
|
-
reward_token_nonce: string;
|
|
89
|
-
amount: number;
|
|
90
|
-
pool_id?: number;
|
|
91
|
-
};
|
|
92
19
|
export type GetGroupedStakingPools = {
|
|
93
20
|
ticker: string;
|
|
94
21
|
pools: number;
|
|
@@ -106,7 +33,7 @@ export interface StakingSummaryPools {
|
|
|
106
33
|
name: string;
|
|
107
34
|
profile: string;
|
|
108
35
|
collection: string[];
|
|
109
|
-
|
|
36
|
+
poolStakedCount: number;
|
|
110
37
|
reward: RewardAvaiblePools[];
|
|
111
38
|
userReward?: RewardAvaiblePools[];
|
|
112
39
|
rewardDuration: number;
|
|
@@ -119,4 +46,28 @@ export interface StakingSummaryPools {
|
|
|
119
46
|
hasUnboundPeriod: boolean;
|
|
120
47
|
unBoundPeriod: number;
|
|
121
48
|
}
|
|
49
|
+
export interface PoolDetails {
|
|
50
|
+
poolId: number;
|
|
51
|
+
starEpoch: number;
|
|
52
|
+
endEpoch: number;
|
|
53
|
+
currentEpoch: number;
|
|
54
|
+
poolType: string;
|
|
55
|
+
issuingType: string;
|
|
56
|
+
name: string;
|
|
57
|
+
profile: string;
|
|
58
|
+
collection: string[];
|
|
59
|
+
poolStakedCount: number;
|
|
60
|
+
reward: RewardAvaiblePools[];
|
|
61
|
+
rewardDuration: number;
|
|
62
|
+
isActive: boolean;
|
|
63
|
+
daysLeft: number;
|
|
64
|
+
maxPoolLimit: number;
|
|
65
|
+
maxWalletLimit: number;
|
|
66
|
+
hasMaxWalletLimit: boolean;
|
|
67
|
+
percentageFilled: number;
|
|
68
|
+
unBoundPeriod: boolean;
|
|
69
|
+
hasUnboundPeriod: boolean;
|
|
70
|
+
owner: string;
|
|
71
|
+
delegatorCount: number;
|
|
72
|
+
}
|
|
122
73
|
//# sourceMappingURL=staking.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staking.d.ts","sourceRoot":"","sources":["../../src/types/staking.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"staking.d.ts","sourceRoot":"","sources":["../../src/types/staking.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,MAAM,MAAM,GAAG;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,oBAAY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,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;CACxB"}
|
package/dist/types/user.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ISocials } from './collection';
|
|
2
2
|
import { NftData, Owner } from './nft';
|
|
3
|
-
import {
|
|
3
|
+
import { PoolDetails } from './staking';
|
|
4
4
|
export interface BulkAccount {
|
|
5
5
|
address: string;
|
|
6
6
|
nonce: number;
|
|
@@ -95,16 +95,6 @@ export interface OfferBody {
|
|
|
95
95
|
floorPriceMargin: number;
|
|
96
96
|
floorPrice: number;
|
|
97
97
|
}
|
|
98
|
-
export type UserStakingInfo = {
|
|
99
|
-
pool_id: number;
|
|
100
|
-
pool_type: string;
|
|
101
|
-
unClaimedReward: UnClaimedReward[];
|
|
102
|
-
reward_token: string[];
|
|
103
|
-
name: string;
|
|
104
|
-
profile: string;
|
|
105
|
-
ticker: TickerElement[];
|
|
106
|
-
nfts: Nfts;
|
|
107
|
-
};
|
|
108
98
|
export type Nfts = {
|
|
109
99
|
count: number;
|
|
110
100
|
resultsCount: number;
|
|
@@ -201,30 +191,6 @@ export interface RewardStakinSummary {
|
|
|
201
191
|
amountShort: number;
|
|
202
192
|
usdValue: number;
|
|
203
193
|
}
|
|
204
|
-
export interface PoolDetails {
|
|
205
|
-
poolId: number;
|
|
206
|
-
name: string;
|
|
207
|
-
profile: string;
|
|
208
|
-
collection: string[];
|
|
209
|
-
poolStakedCount: number;
|
|
210
|
-
delegatorCount: number;
|
|
211
|
-
rewardDuration: number;
|
|
212
|
-
reward: RewardAvaiblePools[];
|
|
213
|
-
poolType: string;
|
|
214
|
-
issuingType: string;
|
|
215
|
-
isActive: boolean;
|
|
216
|
-
currentEpoch: number;
|
|
217
|
-
unBoundPeriod: boolean;
|
|
218
|
-
hasUnboundPeriod: boolean;
|
|
219
|
-
maxPoolLimit: number;
|
|
220
|
-
maxWalletLimit: number;
|
|
221
|
-
hasMaxWalletLimit: boolean;
|
|
222
|
-
endDate: number;
|
|
223
|
-
startDate: number;
|
|
224
|
-
owner: string;
|
|
225
|
-
daysLeft: number;
|
|
226
|
-
percentFilled: number;
|
|
227
|
-
}
|
|
228
194
|
export interface RewardAvaiblePools {
|
|
229
195
|
tokenIdentifier: string;
|
|
230
196
|
tokenNonce: number;
|
package/dist/types/user.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,KAA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WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,oBAAoB,EAAE,MAAM,EAAE,CAAC;CAChC;AAED,MAAM,MAAM,eAAe,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
package/dist/users/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreatorInfo, GetNFTsArgs, IMintInfo, NftData, SearchNFTsResponse, StatusResponse, SuggestNFTsArgs, SuggestResults, TradincActivityArgs, TradingActivityResponse } from '../types';
|
|
2
|
-
import { ArgsUserOffers, BulkAccount, CreatorProfile, IApiShareholder, IOwnerInfo, IUserProfile,
|
|
1
|
+
import { CreatorInfo, GetNFTsArgs, IMintInfo, NftData, PoolDetails, SearchNFTsResponse, StatusResponse, SuggestNFTsArgs, SuggestResults, TradincActivityArgs, TradingActivityResponse } from '../types';
|
|
2
|
+
import { ArgsUserOffers, BulkAccount, CreatorProfile, IApiShareholder, IOwnerInfo, IUserProfile, StakingCreatorInfo, UserAnalyticSummary, UserCollectionStaking, UserInventory, UserNetworkAccount, UserOffers, UserPoolStakingInfo, UserStakingSummary, UserStats, UserTokenInventory, UserXOXNODrop } from '../types/user';
|
|
3
3
|
export declare class UserModule {
|
|
4
4
|
private api;
|
|
5
5
|
private collection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/users/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,WAAW,EACX,SAAS,EACT,OAAO,EACP,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAAe,EACf,UAAU,EACV,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/users/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,WAAW,EACX,SAAS,EACT,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAAe,EACf,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,kBAAkB,EAClB,aAAa,EACd,MAAM,eAAe,CAAC;AAKvB,qBAAa,UAAU;IACrB,OAAO,CAAC,GAAG,CAAc;IACzB,OAAO,CAAC,UAAU,CAAmB;;IAMrC;;;;;OAKG;IACI,cAAc,YAAmB,MAAM,KAAG,QAAQ,YAAY,CAAC,CAMpE;IAEF;;;;;OAKG;IACI,eAAe,cACT,MAAM,EAAE,KAClB,QAAQ,WAAW,EAAE,CAAC,CASvB;IAEF;;;;;OAKG;IACI,cAAc,YACV,MAAM,KACd,QAAQ,kBAAkB,CAAC,CAM5B;IAEF;;;;;OAKG;IACI,qBAAqB,YACjB,MAAM,KACd,QAAQ,kBAAkB,CAAC,CAM5B;IAEF;;;;;OAKG;IAEI,uBAAuB,YACnB,MAAM,KACd,QAAQ,aAAa,EAAE,CAAC,CAMzB;IAEF;;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AgC,YAC5B,MAAM,KACd,QAAQ,MAAM,EAAE,CAAC,CAOlB;IAEF;;;UAGM;IACC,sBAAsB,eACf,MAAM,KACjB,QAAQ,cAAc,CAAC,CAKxB;IAEF;;;;;OAKG;IACI,aAAa,4BAIjB;QACD,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,KAAG,QAAQ,SAAS,EAAE,CAAC,CAgBtB;IAEF;;;;;;;OAOG;IACI,qBAAqB,YACjB,MAAM,UACP,MAAM,KACb,QAAQ,OAAO,EAAE,CAAC,CAUnB;IAEF;;;;;;OAMG;IACI,qBAAqB,YACjB,MAAM,KACd,QAAQ,kBAAkB,CAAC,CAU5B;IAEF;;;;;OAKG;IACI,YAAY,4BAIhB;QACD,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,KAAG,QAAQ,aAAa,EAAE,CAAC,CAuB1B;IAEF;;;;UAIM;IACC,uBAAuB,YACnB,MAAM,KACd,QAAQ,UAAU,CAAC,CAMpB;IAEF;;;;UAIM;IACC,yBAAyB,YACrB,MAAM,KACd,QAAQ,eAAe,EAAE,CAAC,CAM3B;IAEF;;;;UAIM;IACC,oBAAoB,YAChB,MAAM,iBACA,MAAM,KACpB,QAAQ,eAAe,EAAE,CAAC,CAM3B;CACH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoxno/sdk-js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.96-alpha",
|
|
4
4
|
"description": "The SDK to interact with the XOXNO Protocol!",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"exports": {
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"@semantic-release/changelog": "^6.0.3",
|
|
65
65
|
"@semantic-release/git": "^10.0.1",
|
|
66
66
|
"@swc/cli": "^0.3.12",
|
|
67
|
-
"@swc/core": "^1.
|
|
67
|
+
"@swc/core": "^1.5.5",
|
|
68
68
|
"@types/jest": "^29.5.12",
|
|
69
|
-
"@types/node": "^20.12.
|
|
69
|
+
"@types/node": "^20.12.11",
|
|
70
70
|
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
71
71
|
"@typescript-eslint/parser": "^7.8.0",
|
|
72
72
|
"commitizen": "^4.3.0",
|