@xoxno/sdk-js 0.1.182 → 0.1.184

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/collection/index.d.ts +297 -0
  2. package/dist/collection/index.d.ts.map +1 -0
  3. package/dist/common/index.d.ts +71 -0
  4. package/dist/common/index.d.ts.map +1 -0
  5. package/dist/email/Markdown.d.ts +4 -0
  6. package/dist/email/Markdown.d.ts.map +1 -0
  7. package/dist/email/email.d.ts +31 -0
  8. package/dist/email/email.d.ts.map +1 -0
  9. package/dist/email/event-email.d.ts +20 -0
  10. package/dist/email/event-email.d.ts.map +1 -0
  11. package/dist/email/post-email.d.ts +19 -0
  12. package/dist/email/post-email.d.ts.map +1 -0
  13. package/dist/email/types.d.ts +68 -0
  14. package/dist/email/types.d.ts.map +1 -0
  15. package/dist/email/utils.d.ts +84 -0
  16. package/dist/email/utils.d.ts.map +1 -0
  17. package/dist/email.cjs.js +1854 -0
  18. package/dist/email.cjs.js.LICENSE.txt +102 -0
  19. package/dist/email.d.ts +15 -0
  20. package/dist/email.d.ts.map +1 -0
  21. package/dist/email.esm.js +1854 -0
  22. package/dist/email.esm.js.LICENSE.txt +102 -0
  23. package/dist/index.cjs.js +1 -0
  24. package/dist/index.d.ts +8 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/dist/index.esm.js +1 -0
  27. package/dist/interactions/index.d.ts +256 -0
  28. package/dist/interactions/index.d.ts.map +1 -0
  29. package/dist/interactor.cjs.js +2 -0
  30. package/dist/interactor.cjs.js.LICENSE.txt +10 -0
  31. package/dist/interactor.d.ts +6 -0
  32. package/dist/interactor.d.ts.map +1 -0
  33. package/dist/interactor.esm.js +2 -0
  34. package/dist/interactor.esm.js.LICENSE.txt +10 -0
  35. package/dist/launchpad/index.d.ts +79 -0
  36. package/dist/launchpad/index.d.ts.map +1 -0
  37. package/dist/nft/index.d.ts +69 -0
  38. package/dist/nft/index.d.ts.map +1 -0
  39. package/dist/staking/index.d.ts +12 -0
  40. package/dist/staking/index.d.ts.map +1 -0
  41. package/dist/types/collection.d.ts +851 -0
  42. package/dist/types/collection.d.ts.map +1 -0
  43. package/dist/types/common.d.ts +72 -0
  44. package/dist/types/common.d.ts.map +1 -0
  45. package/dist/types/index.d.ts +8 -0
  46. package/dist/types/index.d.ts.map +1 -0
  47. package/dist/types/interactions.d.ts +97 -0
  48. package/dist/types/interactions.d.ts.map +1 -0
  49. package/dist/types/nft.d.ts +105 -0
  50. package/dist/types/nft.d.ts.map +1 -0
  51. package/dist/types/staking.d.ts +67 -0
  52. package/dist/types/staking.d.ts.map +1 -0
  53. package/dist/types/trading.d.ts +115 -0
  54. package/dist/types/trading.d.ts.map +1 -0
  55. package/dist/types/user.d.ts +302 -0
  56. package/dist/types/user.d.ts.map +1 -0
  57. package/dist/users/index.d.ts +202 -0
  58. package/dist/users/index.d.ts.map +1 -0
  59. package/dist/utils/SmartContractAbis.d.ts +16 -0
  60. package/dist/utils/SmartContractAbis.d.ts.map +1 -0
  61. package/dist/utils/SmartContractService.d.ts +4 -0
  62. package/dist/utils/SmartContractService.d.ts.map +1 -0
  63. package/dist/utils/api.d.ts +31 -0
  64. package/dist/utils/api.d.ts.map +1 -0
  65. package/dist/utils/const.d.ts +14 -0
  66. package/dist/utils/const.d.ts.map +1 -0
  67. package/dist/utils/getActivity.d.ts +11 -0
  68. package/dist/utils/getActivity.d.ts.map +1 -0
  69. package/dist/utils/helpers.d.ts +4 -0
  70. package/dist/utils/helpers.d.ts.map +1 -0
  71. package/dist/utils/regex.d.ts +3 -0
  72. package/dist/utils/regex.d.ts.map +1 -0
  73. package/dist/utils/scCalls.d.ts +10 -0
  74. package/dist/utils/scCalls.d.ts.map +1 -0
  75. package/package.json +1 -1
@@ -0,0 +1,102 @@
1
+ /*!
2
+ * The buffer module from node.js, for the browser.
3
+ *
4
+ * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
5
+ * @license MIT
6
+ */
7
+
8
+ /*!
9
+ * The buffer module from node.js, for the browser.
10
+ *
11
+ * @author Feross Aboukhadijeh <https://feross.org>
12
+ * @license MIT
13
+ */
14
+
15
+ /*!
16
+ * fill-range <https://github.com/jonschlinkert/fill-range>
17
+ *
18
+ * Copyright (c) 2014-present, Jon Schlinkert.
19
+ * Licensed under the MIT License.
20
+ */
21
+
22
+ /*!
23
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
24
+ *
25
+ * Copyright (c) 2014-2016, Jon Schlinkert.
26
+ * Licensed under the MIT License.
27
+ */
28
+
29
+ /*!
30
+ * is-number <https://github.com/jonschlinkert/is-number>
31
+ *
32
+ * Copyright (c) 2014-present, Jon Schlinkert.
33
+ * Released under the MIT License.
34
+ */
35
+
36
+ /*!
37
+ * normalize-path <https://github.com/jonschlinkert/normalize-path>
38
+ *
39
+ * Copyright (c) 2014-2018, Jon Schlinkert.
40
+ * Released under the MIT License.
41
+ */
42
+
43
+ /*!
44
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
45
+ *
46
+ * Copyright (c) 2015-present, Jon Schlinkert.
47
+ * Released under the MIT License.
48
+ */
49
+
50
+ /*! https://mths.be/cssesc v3.0.0 by @mathias */
51
+
52
+ /*! https://mths.be/he v1.2.0 by @mathias | MIT license */
53
+
54
+ /*! https://mths.be/punycode v1.4.1 by @mathias */
55
+
56
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
57
+
58
+ /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
59
+
60
+ /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
61
+
62
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
63
+
64
+ /**
65
+ * @license React
66
+ * react-dom-server-legacy.browser.production.min.js
67
+ *
68
+ * Copyright (c) Facebook, Inc. and its affiliates.
69
+ *
70
+ * This source code is licensed under the MIT license found in the
71
+ * LICENSE file in the root directory of this source tree.
72
+ */
73
+
74
+ /**
75
+ * @license React
76
+ * react-dom-server.browser.production.min.js
77
+ *
78
+ * Copyright (c) Facebook, Inc. and its affiliates.
79
+ *
80
+ * This source code is licensed under the MIT license found in the
81
+ * LICENSE file in the root directory of this source tree.
82
+ */
83
+
84
+ /**
85
+ * @license React
86
+ * react-jsx-runtime.production.min.js
87
+ *
88
+ * Copyright (c) Facebook, Inc. and its affiliates.
89
+ *
90
+ * This source code is licensed under the MIT license found in the
91
+ * LICENSE file in the root directory of this source tree.
92
+ */
93
+
94
+ /**
95
+ * @license React
96
+ * react.production.min.js
97
+ *
98
+ * Copyright (c) Facebook, Inc. and its affiliates.
99
+ *
100
+ * This source code is licensed under the MIT license found in the
101
+ * LICENSE file in the root directory of this source tree.
102
+ */
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t,e,i,a,o,r,n,s,c,l,d,g,h,u,p,f,y,m,T,w,S,k,q,v={d:(t,e)=>{for(var i in e)v.o(e,i)&&!v.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})}},E={};v.r(E),v.d(E,{AssetCategory:()=>d,AuctionType:()=>m,AuctionTypes:()=>l,Chain:()=>x,CollectionModule:()=>M,CollectionStatsOrderBy:()=>u,CollectionStatsSelectFields:()=>h,CollectionsFieldsToSelect:()=>s,CollectionsOrderBy:()=>r,CollectionsSummaryFilter:()=>g,CommonModule:()=>R,DropsOderBy:()=>a,FieldsToSelect:()=>e,GlobalOfferFieldsToSelect:()=>c,GlobalOfferOrderBy:()=>n,IssuingType:()=>T,Marketplace:()=>t,NFTModule:()=>V,NftActivityType:()=>p,OfferType:()=>k,OrderByTradingActivity:()=>f,PoolType:()=>w,SearchOrderBy:()=>i,SelectFieldsTradingActivity:()=>y,StakingModule:()=>$,StakingStatus:()=>S,SuggestOrderBy:()=>o,Type:()=>q,UserModule:()=>F,XOXNOClient:()=>W}),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"}(o||(o={})),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"}(r||(r={})),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"}(c||(c={})),function(t){t.FixedPrice="FixedPrice",t.Auctions="Auctions",t.All="All",t.AllListed="AllListed"}(l||(l={})),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.Staked="staked",t.Unbounding="unstaked",t.Available="available"}(S||(S={})),function(t){t.Received="received",t.Placed="placed"}(k||(k={})),function(t){t.NonFungibleESDT="NonFungibleESDT"}(q||(q={}));const C="https://api.xoxno.com",A="erd1qqqqqqqqqqqqqpgq705fxpfrjne0tl3ece0rrspykq88mynn4kxs2cg43s",D="erd1qqqqqqqqqqqqqpgqd9rvv2n378e27jcts8vfwynpx0gfl5ufz6hqhfy0u0",I="erd1qqqqqqqqqqqqqpgq8xwzu82v8ex3h4ayl5lsvxqxnhecpwyvwe0sf2qj4e";var x;!function(t){t.MAINNET="1",t.DEVNET="D"}(x||(x={}));class W{static instance;apiUrl;apiKey;chain;config;constructor(t=C,e="",i){this.apiUrl=t,this.apiKey=e,this.chain=i,this.config=i==x.MAINNET?{mediaUrl:"https://media.xoxno.com",gatewayUrl:"https://gateway.xoxno.com",XO_SC:"erd1qqqqqqqqqqqqqpgq6wegs2xkypfpync8mn2sa5cmpqjlvrhwz5nqgepyg8",FM_SC:A,DR_SC:D,KG_SC:I,Staking_SC:"erd1qqqqqqqqqqqqqpgqvpkd3g3uwludduv3797j54qt6c888wa59w2shntt6z",Manager_SC:"erd1qqqqqqqqqqqqqpgqg9fa0dmpn8fu3fnleeqn5zt8rl8mdqjkys5s2gtas7",P2P_SC:"erd1qqqqqqqqqqqqqpgq47y8hnct68v6asjv6gxem6h9rumn9frzah0skhxxt6"}:{mediaUrl:"https://devnet-media.xoxno.com",gatewayUrl:"https://devnet-gateway.xoxno.com",XO_SC:"erd1qqqqqqqqqqqqqpgql0dnz6n5hpuw8cptlt00khd0nn4ja8eadsfq2xrqw4",FM_SC:A,DR_SC:D,KG_SC:I,Staking_SC:"erd1qqqqqqqqqqqqqpgqsc5hnewwpep8qq0d7kjjzrquapuucrygah0s85zres",Manager_SC:"erd1qqqqqqqqqqqqqpgqluclyhfsa2uw7q9cjwd8knk989hg57u8ah0slq2nlr",P2P_SC:"erd1qqqqqqqqqqqqqpgqfja7ukpngrun78ueq583l0vd6aj4ekhrah0sa9wyrv"}}static init({apiUrl:t=C,apiKey:e="",chain:i=x.MAINNET}={}){if(null==W.instance||null==W.instance){if(i==x.DEVNET)return W.instance=new W(t??"https://devnet-api.xoxno.com",e,i),W.instance;W.instance=new W(t,e,i)}return W.instance}static getInstance(){if(null==W.instance||null==W.instance)throw new Error("XOXNOClient is not initialized");return W.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??{}},o=`${"string"==typeof t&&t.startsWith("/")?`${this.apiUrl}${t}`:t}${e.params?"?"+Object.keys(e.params).map((t=>`${t}=${encodeURIComponent(e.params[t])}`)).join("&"):""}`,r=new AbortController;setTimeout((()=>r.abort()),i);const n=await fetch(o,{...e,...e?.next&&e.next.revalidate?{}:{cache:"no-store"},signal:r.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 O=async(t,e)=>{if(t.top&&t.top>100)throw new Error("Top cannot be greater than 100");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,includeCount:t.includeCount||!1,orderBy:t.orderBy,select:t.select,top:t.top||35,skip:t.skip||0},o=await e.fetchWithTimeout("/activity/query",{params:{filter:JSON.stringify(a)},next:{tags:["getActivity"]}});return{...o,getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)},empty:0===o.resources.length}},P=t=>/^[A-Z0-9]{3,10}-[a-z0-9]{6}$/.test(t),N=t=>/^[A-Za-z0-9]{3,10}-[A-Za-z0-9]{6}-[A-Za-z0-9]{2,7}(?:-\d+(?:-[A-Za-z0-9]+)?)?$/.test(t);class M{api;constructor(){this.api=W.getInstance()}getCollectionProfile=async t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/profile`,{next:{tags:["getCollectionProfile"]}})};getDailyTrending=async()=>await this.api.fetchWithTimeout("/nfts/getDailyTrending",{next:{tags:["getDailyTrending"]}});getCollectionFloorPrice=async(t,e="EGLD")=>{if(!P(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(!P(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/attributes`,{next:{tags:["getCollectionAttributes"]}})};getNFTs=async t=>{if(t?.collections?.forEach((t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>100)throw new Error("Top cannot be greater than 100");const e=[];t.priceRange&&e.push({...t.priceRange,field:t.auctionType==l.Auctions?"saleInfo.currentBidShort":"saleInfo.minBidShort"}),t.rankRange&&e.push({...t.rankRange,field:"metadata.rarity.rank"});const i={name:t.name,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==l.Auctions?["NftBid","SftAll"]:t.auctionType==l.FixedPrice?["Nft","SftOnePerPayment"]:t.auctionType==l.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"]}}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};getSearchNFTs=async t=>{if(t?.collections?.forEach((t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>100)throw new Error("Top cannot be greater than 100");const e=[];t.priceRange&&e.push({...t.priceRange,field:t.auctionType==l.Auctions?"saleInfo.currentBidShort":"saleInfo.minBidShort"}),t.rankRange&&e.push({...t.rankRange,field:"metadata.rarity.rank"});const i={name:t.name,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==l.Auctions?["NftBid","SftAll"]:t.auctionType==l.FixedPrice?["Nft","SftOnePerPayment"]:t.auctionType==l.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/search/query",{params:{filter:JSON.stringify(i)},next:{tags:["getCollectionNFTs"]}}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};suggestCollections=async t=>{if(t.top&&t.top>100)throw new Error("Top cannot be greater than 100");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"]}})};collectionListingsAnalytics=async t=>await this.api.fetchWithTimeout(`/collection/${t}/listings`,{next:{tags:["collection/${ticker}/listings"]}});getTradingActivity=async t=>await O(t,this.api);getCollections=async t=>{if(t?.top&&t.top>100)throw new Error("Top cannot be greater than 100");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"]}});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>100)throw new Error("Top cannot be greater than 100");const e={skip:t?.skip||0,top:t?.top||25,select:t?.onlySelectFields||[],filters:{collection:t?.collections||[],withAttributes:t?.withAttributes,isActive:t?.onlyActive,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"]}});return{...i,getNextPagePayload:{...t,skip:(t?.top||25)+i.lastSkip}}};getCollectionVolume=async(t,e,i,a)=>{if(!P(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"]}})};getMarketplaceVolume=async(t,e,i)=>await this.api.fetchWithTimeout(`/analytics/volume?startTime=${t}&endTime=${e}&bin=${i}`,{next:{tags:["getMarketplaceVolume"]}});getCollectionOwners=async t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/holders`,{next:{tags:["getCollectionOwners"]}})};getExportOwners=async t=>{if(!P(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>100)throw new Error("Top cannot be greater than 100");return{...await this.api.fetchWithTimeout("/collection/stats/query",{params:{filter:JSON.stringify(t)},next:{tags:["collectionStatistics"]}}),getNextPagePayload:{...t,skip:t.skip+t.top}}};getCollectionStats=async t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/stats`,{next:{tags:["collectionStatistics"]}})};getAwaitEmpty=async t=>new Promise((e=>{setTimeout((()=>{e(!0)}),t)}));getCollectionMintInfo=async({ticker:t,extra:e})=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/drop-info`,{next:{tags:[`/collection/${t}/drop-info`]},...e})};getCollectionRanks=async({ticker:t,extra:e})=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/ranks`,{next:{tags:[`/collection/${t}/ranks`]},...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`]},...i});getCollectionGraphData=async(t,e,i,a)=>{if(!P(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`]}})};getPinnedCollections=async()=>await this.api.fetchWithTimeout("/collection/pinned",{next:{tags:["/collection/pinned"]}});getSearchDrops=async t=>{if(t?.collections?.forEach((t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>100)throw new Error("Top cannot be greater than 100");const e=[];t.timeRange&&e.push({...t.timeRange,field:"startTime"});const i={name:t.name,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/search",{params:{filter:JSON.stringify(i)},next:{tags:["/collection/drops/search"]}}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};getDrops=async t=>{if(t?.collections?.forEach((t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>100)throw new Error("Top cannot be greater than 100");const e=[];t.timeRange&&e.push({...t.timeRange,field:"startTime"});const i={name:t.name,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"]}}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};getCollectionStakingSummary=async({collection:t,extra:e})=>{if(!P(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(!P(t))throw new Error("Invalid collection ticker: "+t)})),await this.api.fetchWithTimeout("/collection/floor-price",{params:{collection:t.join(",")}}))}const b=t=>{let e=t.toString(16);return e.length%2!=0&&(e="0"+e),e},L=t=>t.includes("erd1");class V{api;constructor(){this.api=W.getInstance()}getNFTByIdentifier=async(t,e)=>{if(!N(t))throw new Error("Invalid identifier: "+t);return await this.api.fetchWithTimeout(`/nft/${t}`,{...e})};getNFTsOffers=async(t,e=0,i=25)=>{if(!N(t))throw new Error("Invalid identifier: "+t);return await this.api.fetchWithTimeout(`/nft/${t}/offers?skip=${e}&top=${i}`,{next:{tags:["getNFTsOffers"]}})};getNFTByCollectionAndNonce=async(t,e)=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);const i=await this.api.fetchWithTimeout(`/${((t,e)=>[t,b(e)].join("-"))(t,e)}`);return i};getNFTByCollectionAndNonceHex=async(t,e)=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);return e.length%2!=0&&(e="0"+e),await this.api.fetchWithTimeout(`/${[t,e].join("-")}`)};getTradingActivity=async t=>await O(t,this.api)}class F{api;collection;constructor(){this.api=W.getInstance(),this.collection=new M}getUserProfile=async t=>{if(!L(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(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/network-account`)};getUserTokenInventory=async t=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/token-inventory`)};getUserSummaryInventory=async(t,e=!0)=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/inventory-summary?activeAuction=${e}`)};getUserNFTs=async t=>await this.collection.getNFTs(t);getUserOffers=async t=>{if(!L(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>100)throw new Error("Top cannot be greater than 100");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"]}})};getTradingActivity=async t=>await O(t,this.api);getUserCreatorProfile=async t=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/profile`)};getCreatorListings=async t=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/listing`)};getUserStakingSummary=async t=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/summary`)};getUserStakingAailable=async t=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/available-pools`)};getUserCreatorInfo=async t=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/details`)};getUserCollectionStaking=async(t,e)=>{if(!L(t))throw new Error("Invalid address");if(!P(e))throw new Error("Invalid collection ticker: "+e);return await this.api.fetchWithTimeout(`/user/${t}/staking/collection/${e}`)};getUserPoolStaking=async(t,e,i)=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}/nfts?status=${i}`)};getOwnedPoolsByAddress=async t=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/owned-pools`)};getUserAnalyticsSummary=async t=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/analytics/volume`)};getUserFavoriteNFTs=async(t,e,i)=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/favorite/nfts`,{params:{top:e,skip:i}})};getUserFavoriteCollectionTickers=async t=>{if(!L(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 100");return await this.api.fetchWithTimeout("/user/stats",{params:{top:t,skip:e,orderBy:i??"totalVolume"},next:{tags:["/user/stats"]}})};getStakingCreatorInfo=async t=>await this.api.fetchWithTimeout(`/user/${t}/staking/creator`,{next:{tags:[`/user/${t}/staking/creator`]}});getUsersDrop=async({top:t,skip:e,address:i})=>{if(t&&t>35)throw new Error("Top cannot be greater than 100");if(i&&!L(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"]}})};getUserOwnerCollections=async t=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/owned-collections`)};getRoyaltiesSharesCreator=async t=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/launchpad/${t}/shareholders/royalties`)};getMintSharesCreator=async(t,e)=>{if(!L(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/launchpad/${t}/shareholders/collection/${e}`)}}class ${api;constructor(){this.api=W.getInstance()}getPoolDetails=async t=>await this.api.fetchWithTimeout(`/pool/${t}/profile`)}class R{api;constructor(){this.api=W.getInstance()}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={};return e&&(i={identifier:e.join(",")}),t&&(i={...i,category:t.join(",")}),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"]}});getAnalyticsOverview=async()=>await this.api.fetchWithTimeout("/analytics/overview",{next:{tags:["/analytics/overview"]}});suggestResults=async t=>{if(t.top&&t.top>100)throw new Error("Top cannot be greater than 100");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"]}})};getExploreStaking=async()=>await this.api.fetchWithTimeout("/collection/staking/explore",{next:{tags:["/collection/staking/explore"]}})}module.exports=E})();
@@ -0,0 +1,8 @@
1
+ export * from './types';
2
+ export * from './collection';
3
+ export * from './nft';
4
+ export * from './users';
5
+ export * from './staking';
6
+ export * from './utils/api';
7
+ export * from './common';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ var t,e,i,a,o,r,n,s,c,l,d,g,h,u,p,f,y,m,T,w,S,k,q,v={d:(t,e)=>{for(var i in e)v.o(e,i)&&!v.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},E={};v.d(E,{$C:()=>d,Yo:()=>m,LU:()=>l,sW:()=>x,X$:()=>M,JA:()=>u,he:()=>h,cO:()=>s,t7:()=>r,iQ:()=>g,MD:()=>B,Gq:()=>a,h4:()=>e,wT:()=>c,JM:()=>n,Vx:()=>T,O8:()=>t,s0:()=>$,o:()=>p,p4:()=>k,AQ:()=>f,J1:()=>w,g6:()=>i,cB:()=>y,Gt:()=>F,iE:()=>S,I_:()=>o,ZU:()=>q,Us:()=>b,GW:()=>W}),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"}(o||(o={})),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"}(r||(r={})),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"}(c||(c={})),function(t){t.FixedPrice="FixedPrice",t.Auctions="Auctions",t.All="All",t.AllListed="AllListed"}(l||(l={})),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.Staked="staked",t.Unbounding="unstaked",t.Available="available"}(S||(S={})),function(t){t.Received="received",t.Placed="placed"}(k||(k={})),function(t){t.NonFungibleESDT="NonFungibleESDT"}(q||(q={}));const A="https://api.xoxno.com",C="erd1qqqqqqqqqqqqqpgq705fxpfrjne0tl3ece0rrspykq88mynn4kxs2cg43s",D="erd1qqqqqqqqqqqqqpgqd9rvv2n378e27jcts8vfwynpx0gfl5ufz6hqhfy0u0",I="erd1qqqqqqqqqqqqqpgq8xwzu82v8ex3h4ayl5lsvxqxnhecpwyvwe0sf2qj4e";var x;!function(t){t.MAINNET="1",t.DEVNET="D"}(x||(x={}));class W{static instance;apiUrl;apiKey;chain;config;constructor(t=A,e="",i){this.apiUrl=t,this.apiKey=e,this.chain=i,this.config=i==x.MAINNET?{mediaUrl:"https://media.xoxno.com",gatewayUrl:"https://gateway.xoxno.com",XO_SC:"erd1qqqqqqqqqqqqqpgq6wegs2xkypfpync8mn2sa5cmpqjlvrhwz5nqgepyg8",FM_SC:C,DR_SC:D,KG_SC:I,Staking_SC:"erd1qqqqqqqqqqqqqpgqvpkd3g3uwludduv3797j54qt6c888wa59w2shntt6z",Manager_SC:"erd1qqqqqqqqqqqqqpgqg9fa0dmpn8fu3fnleeqn5zt8rl8mdqjkys5s2gtas7",P2P_SC:"erd1qqqqqqqqqqqqqpgq47y8hnct68v6asjv6gxem6h9rumn9frzah0skhxxt6"}:{mediaUrl:"https://devnet-media.xoxno.com",gatewayUrl:"https://devnet-gateway.xoxno.com",XO_SC:"erd1qqqqqqqqqqqqqpgql0dnz6n5hpuw8cptlt00khd0nn4ja8eadsfq2xrqw4",FM_SC:C,DR_SC:D,KG_SC:I,Staking_SC:"erd1qqqqqqqqqqqqqpgqsc5hnewwpep8qq0d7kjjzrquapuucrygah0s85zres",Manager_SC:"erd1qqqqqqqqqqqqqpgqluclyhfsa2uw7q9cjwd8knk989hg57u8ah0slq2nlr",P2P_SC:"erd1qqqqqqqqqqqqqpgqfja7ukpngrun78ueq583l0vd6aj4ekhrah0sa9wyrv"}}static init({apiUrl:t=A,apiKey:e="",chain:i=x.MAINNET}={}){if(null==W.instance||null==W.instance){if(i==x.DEVNET)return W.instance=new W(t??"https://devnet-api.xoxno.com",e,i),W.instance;W.instance=new W(t,e,i)}return W.instance}static getInstance(){if(null==W.instance||null==W.instance)throw new Error("XOXNOClient is not initialized");return W.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??{}},o=`${"string"==typeof t&&t.startsWith("/")?`${this.apiUrl}${t}`:t}${e.params?"?"+Object.keys(e.params).map((t=>`${t}=${encodeURIComponent(e.params[t])}`)).join("&"):""}`,r=new AbortController;setTimeout((()=>r.abort()),i);const n=await fetch(o,{...e,...e?.next&&e.next.revalidate?{}:{cache:"no-store"},signal:r.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 O=async(t,e)=>{if(t.top&&t.top>100)throw new Error("Top cannot be greater than 100");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,includeCount:t.includeCount||!1,orderBy:t.orderBy,select:t.select,top:t.top||35,skip:t.skip||0},o=await e.fetchWithTimeout("/activity/query",{params:{filter:JSON.stringify(a)},next:{tags:["getActivity"]}});return{...o,getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)},empty:0===o.resources.length}},P=t=>/^[A-Z0-9]{3,10}-[a-z0-9]{6}$/.test(t),N=t=>/^[A-Za-z0-9]{3,10}-[A-Za-z0-9]{6}-[A-Za-z0-9]{2,7}(?:-\d+(?:-[A-Za-z0-9]+)?)?$/.test(t);class M{api;constructor(){this.api=W.getInstance()}getCollectionProfile=async t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/profile`,{next:{tags:["getCollectionProfile"]}})};getDailyTrending=async()=>await this.api.fetchWithTimeout("/nfts/getDailyTrending",{next:{tags:["getDailyTrending"]}});getCollectionFloorPrice=async(t,e="EGLD")=>{if(!P(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(!P(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/attributes`,{next:{tags:["getCollectionAttributes"]}})};getNFTs=async t=>{if(t?.collections?.forEach((t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>100)throw new Error("Top cannot be greater than 100");const e=[];t.priceRange&&e.push({...t.priceRange,field:t.auctionType==l.Auctions?"saleInfo.currentBidShort":"saleInfo.minBidShort"}),t.rankRange&&e.push({...t.rankRange,field:"metadata.rarity.rank"});const i={name:t.name,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==l.Auctions?["NftBid","SftAll"]:t.auctionType==l.FixedPrice?["Nft","SftOnePerPayment"]:t.auctionType==l.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"]}}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};getSearchNFTs=async t=>{if(t?.collections?.forEach((t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>100)throw new Error("Top cannot be greater than 100");const e=[];t.priceRange&&e.push({...t.priceRange,field:t.auctionType==l.Auctions?"saleInfo.currentBidShort":"saleInfo.minBidShort"}),t.rankRange&&e.push({...t.rankRange,field:"metadata.rarity.rank"});const i={name:t.name,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==l.Auctions?["NftBid","SftAll"]:t.auctionType==l.FixedPrice?["Nft","SftOnePerPayment"]:t.auctionType==l.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/search/query",{params:{filter:JSON.stringify(i)},next:{tags:["getCollectionNFTs"]}}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};suggestCollections=async t=>{if(t.top&&t.top>100)throw new Error("Top cannot be greater than 100");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"]}})};collectionListingsAnalytics=async t=>await this.api.fetchWithTimeout(`/collection/${t}/listings`,{next:{tags:["collection/${ticker}/listings"]}});getTradingActivity=async t=>await O(t,this.api);getCollections=async t=>{if(t?.top&&t.top>100)throw new Error("Top cannot be greater than 100");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"]}});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>100)throw new Error("Top cannot be greater than 100");const e={skip:t?.skip||0,top:t?.top||25,select:t?.onlySelectFields||[],filters:{collection:t?.collections||[],withAttributes:t?.withAttributes,isActive:t?.onlyActive,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"]}});return{...i,getNextPagePayload:{...t,skip:(t?.top||25)+i.lastSkip}}};getCollectionVolume=async(t,e,i,a)=>{if(!P(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"]}})};getMarketplaceVolume=async(t,e,i)=>await this.api.fetchWithTimeout(`/analytics/volume?startTime=${t}&endTime=${e}&bin=${i}`,{next:{tags:["getMarketplaceVolume"]}});getCollectionOwners=async t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/holders`,{next:{tags:["getCollectionOwners"]}})};getExportOwners=async t=>{if(!P(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>100)throw new Error("Top cannot be greater than 100");return{...await this.api.fetchWithTimeout("/collection/stats/query",{params:{filter:JSON.stringify(t)},next:{tags:["collectionStatistics"]}}),getNextPagePayload:{...t,skip:t.skip+t.top}}};getCollectionStats=async t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/stats`,{next:{tags:["collectionStatistics"]}})};getAwaitEmpty=async t=>new Promise((e=>{setTimeout((()=>{e(!0)}),t)}));getCollectionMintInfo=async({ticker:t,extra:e})=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/drop-info`,{next:{tags:[`/collection/${t}/drop-info`]},...e})};getCollectionRanks=async({ticker:t,extra:e})=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);return await this.api.fetchWithTimeout(`/collection/${t}/ranks`,{next:{tags:[`/collection/${t}/ranks`]},...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`]},...i});getCollectionGraphData=async(t,e,i,a)=>{if(!P(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`]}})};getPinnedCollections=async()=>await this.api.fetchWithTimeout("/collection/pinned",{next:{tags:["/collection/pinned"]}});getSearchDrops=async t=>{if(t?.collections?.forEach((t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>100)throw new Error("Top cannot be greater than 100");const e=[];t.timeRange&&e.push({...t.timeRange,field:"startTime"});const i={name:t.name,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/search",{params:{filter:JSON.stringify(i)},next:{tags:["/collection/drops/search"]}}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};getDrops=async t=>{if(t?.collections?.forEach((t=>{if(!P(t))throw new Error("Invalid collection ticker: "+t)})),t.top&&t.top>100)throw new Error("Top cannot be greater than 100");const e=[];t.timeRange&&e.push({...t.timeRange,field:"startTime"});const i={name:t.name,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"]}}),getNextPagePayload:{...t,skip:(t.skip??0)+(t.top??35)}}};getCollectionStakingSummary=async({collection:t,extra:e})=>{if(!P(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(!P(t))throw new Error("Invalid collection ticker: "+t)})),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},V=t=>t.includes("erd1");class ${api;constructor(){this.api=W.getInstance()}getNFTByIdentifier=async(t,e)=>{if(!N(t))throw new Error("Invalid identifier: "+t);return await this.api.fetchWithTimeout(`/nft/${t}`,{...e})};getNFTsOffers=async(t,e=0,i=25)=>{if(!N(t))throw new Error("Invalid identifier: "+t);return await this.api.fetchWithTimeout(`/nft/${t}/offers?skip=${e}&top=${i}`,{next:{tags:["getNFTsOffers"]}})};getNFTByCollectionAndNonce=async(t,e)=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);const i=await this.api.fetchWithTimeout(`/${((t,e)=>[t,L(e)].join("-"))(t,e)}`);return i};getNFTByCollectionAndNonceHex=async(t,e)=>{if(!P(t))throw new Error("Invalid collection ticker: "+t);return e.length%2!=0&&(e="0"+e),await this.api.fetchWithTimeout(`/${[t,e].join("-")}`)};getTradingActivity=async t=>await O(t,this.api)}class b{api;collection;constructor(){this.api=W.getInstance(),this.collection=new M}getUserProfile=async t=>{if(!V(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(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/network-account`)};getUserTokenInventory=async t=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/token-inventory`)};getUserSummaryInventory=async(t,e=!0)=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/inventory-summary?activeAuction=${e}`)};getUserNFTs=async t=>await this.collection.getNFTs(t);getUserOffers=async t=>{if(!V(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>100)throw new Error("Top cannot be greater than 100");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"]}})};getTradingActivity=async t=>await O(t,this.api);getUserCreatorProfile=async t=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/profile`)};getCreatorListings=async t=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/listing`)};getUserStakingSummary=async t=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/summary`)};getUserStakingAailable=async t=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/available-pools`)};getUserCreatorInfo=async t=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/creator/details`)};getUserCollectionStaking=async(t,e)=>{if(!V(t))throw new Error("Invalid address");if(!P(e))throw new Error("Invalid collection ticker: "+e);return await this.api.fetchWithTimeout(`/user/${t}/staking/collection/${e}`)};getUserPoolStaking=async(t,e,i)=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/pool/${e}/nfts?status=${i}`)};getOwnedPoolsByAddress=async t=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/owned-pools`)};getUserAnalyticsSummary=async t=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/analytics/volume`)};getUserFavoriteNFTs=async(t,e,i)=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/favorite/nfts`,{params:{top:e,skip:i}})};getUserFavoriteCollectionTickers=async t=>{if(!V(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 100");return await this.api.fetchWithTimeout("/user/stats",{params:{top:t,skip:e,orderBy:i??"totalVolume"},next:{tags:["/user/stats"]}})};getStakingCreatorInfo=async t=>await this.api.fetchWithTimeout(`/user/${t}/staking/creator`,{next:{tags:[`/user/${t}/staking/creator`]}});getUsersDrop=async({top:t,skip:e,address:i})=>{if(t&&t>35)throw new Error("Top cannot be greater than 100");if(i&&!V(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"]}})};getUserOwnerCollections=async t=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/user/${t}/staking/owned-collections`)};getRoyaltiesSharesCreator=async t=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/launchpad/${t}/shareholders/royalties`)};getMintSharesCreator=async(t,e)=>{if(!V(t))throw new Error("Invalid address");return await this.api.fetchWithTimeout(`/launchpad/${t}/shareholders/collection/${e}`)}}class F{api;constructor(){this.api=W.getInstance()}getPoolDetails=async t=>await this.api.fetchWithTimeout(`/pool/${t}/profile`)}class B{api;constructor(){this.api=W.getInstance()}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={};return e&&(i={identifier:e.join(",")}),t&&(i={...i,category:t.join(",")}),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"]}});getAnalyticsOverview=async()=>await this.api.fetchWithTimeout("/analytics/overview",{next:{tags:["/analytics/overview"]}});suggestResults=async t=>{if(t.top&&t.top>100)throw new Error("Top cannot be greater than 100");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"]}})};getExploreStaking=async()=>await this.api.fetchWithTimeout("/collection/staking/explore",{next:{tags:["/collection/staking/explore"]}})}var R=E.$C,U=E.Yo,H=E.LU,_=E.sW,j=E.X$,G=E.JA,J=E.he,z=E.cO,X=E.t7,K=E.iQ,Y=E.MD,Z=E.Gq,Q=E.h4,tt=E.wT,et=E.JM,it=E.Vx,at=E.O8,ot=E.s0,rt=E.o,nt=E.p4,st=E.AQ,ct=E.J1,lt=E.g6,dt=E.cB,gt=E.Gt,ht=E.iE,ut=E.I_,pt=E.ZU,ft=E.Us,yt=E.GW;export{R as AssetCategory,U as AuctionType,H as AuctionTypes,_ as Chain,j as CollectionModule,G as CollectionStatsOrderBy,J as CollectionStatsSelectFields,z as CollectionsFieldsToSelect,X as CollectionsOrderBy,K as CollectionsSummaryFilter,Y as CommonModule,Z as DropsOderBy,Q as FieldsToSelect,tt as GlobalOfferFieldsToSelect,et as GlobalOfferOrderBy,it as IssuingType,at as Marketplace,ot as NFTModule,rt as NftActivityType,nt as OfferType,st as OrderByTradingActivity,ct as PoolType,lt as SearchOrderBy,dt as SelectFieldsTradingActivity,gt as StakingModule,ht as StakingStatus,ut as SuggestOrderBy,pt as Type,ft as UserModule,yt as XOXNOClient};
@@ -0,0 +1,256 @@
1
+ import { GlobalOffer } from '../types/collection';
2
+ import { NftData } from '..';
3
+ import { AcceptGlobalOffer, Auction, ChangeListing, NewListingArgs, Payment, SendCustomOffer, SendGlobalOffer, WithSenderAndNonce } from '../types/interactions';
4
+ import { IPlainTransactionObject } from '@multiversx/sdk-core/out/interface';
5
+ export declare class SCInteraction {
6
+ private xo;
7
+ private call;
8
+ private api;
9
+ private config;
10
+ private factory;
11
+ private constructor();
12
+ static init(): Promise<SCInteraction>;
13
+ private getResult;
14
+ /**
15
+ * Gets the percentage of each transaction that will be paid to the marketplace.
16
+ *
17
+ * @returns The percentage of each transaction that will be paid to the marketplace.
18
+ */
19
+ getMarketplaceFees: () => Promise<number>;
20
+ /**
21
+ * Retrieves the list of accepted payment tokens.
22
+ * @returns {string[]} A list of accepted payment tokens.
23
+ */
24
+ getAcceptedPaymentTokens: () => Promise<string[]>;
25
+ /**
26
+ * This function returns a list of IDs of global offers.
27
+ * @returns {number[]} a list of IDs of global offers.
28
+ */
29
+ getGlobalOfferIDs: () => Promise<number[]>;
30
+ /**
31
+ * Gets the balance of a user in a token of a specific pool.
32
+ * @param address The address of the user.
33
+ * @param token The token address.
34
+ * @param nonce The nonce of the pool.
35
+ * @returns {number} The balance of the user in the token of the pool.
36
+ */
37
+ getUserPoolBalance(address: string, token: string, nonce: number): Promise<number>;
38
+ private isOfferActive;
39
+ /**
40
+ * Returns the global offer data for the offer with the given id.
41
+ *
42
+ * @param global_offer_id The id of the global offer for which to return the data.
43
+ *
44
+ * @returns An object containing the global offer data for the offer with the given id. If the global offer id is invalid, the return value will be null.
45
+ */
46
+ getGlobalOfferData: (global_offer_id: number) => Promise<GlobalOffer>;
47
+ /**
48
+ * Returns the auction struct for the given id.
49
+ *
50
+ * @param auctionID The id of the auction for which to return the data.
51
+ *
52
+ * @returns {Auction} An object containing the auction data for the given id. If the auction id is invalid, the return value will be null.
53
+ */
54
+ getAuctionInfo: (auctionID: number) => Promise<Auction | null>;
55
+ /** Gets the number of listings.
56
+ * @returns {number} The number of listings.
57
+ * */
58
+ getListingsCount(): Promise<number>;
59
+ /** Gets the number of custom offers.
60
+ * @returns {number} The number of custom offers.
61
+ * */
62
+ getOffersCount(): Promise<number>;
63
+ /** Gets the number of global offers.
64
+ * @returns {number} The number of global offers.
65
+ * */
66
+ getGlobalOffersCount(): Promise<number>;
67
+ /** Gets the number of collections listed.
68
+ * @returns {number} The number of collections listed.
69
+ * */
70
+ getCollectionsCount(): Promise<number>;
71
+ /**
72
+ * Checks whether a collection is listed with at least 1 NFT.
73
+ *
74
+ * @param collection name of the collection
75
+ * @return true if the collection is listed, false otherwise
76
+ */
77
+ isCollectionListed(collection: string): Promise<boolean>;
78
+ /** Gets the on sale NFT count of the collection.
79
+ *
80
+ * @param collection The collection identifier for which one wants to get the on sale NFT count.
81
+ *
82
+ * @returns {number} The on sale NFT count of the collection.
83
+ * */
84
+ getCollectionNFTsOnSaleCount(collection: string): Promise<number>;
85
+ /** Gets the active unique auction IDs of collection.
86
+ *
87
+ * @param collection The collection identifier for which one wants to get the active unique auction IDs.
88
+ *
89
+ * @returns {number[]} The active unique auction IDs of collection.
90
+ * */
91
+ getAuctionIDsForCollection(collection: string): Promise<number[]>;
92
+ /**
93
+ * Withdraw auctions from the smart contract.
94
+ *
95
+ * @param auctionIDs The IDs of the auctions to withdraw from
96
+ * @returns {IPlainTransactionObject} The interaction object of the smart contract
97
+ */
98
+ withdrawAuctions({ auctionIDs, sender, market, signature, }: {
99
+ auctionIDs: number[];
100
+ sender: WithSenderAndNonce;
101
+ signature?: string;
102
+ market?: string;
103
+ }): IPlainTransactionObject;
104
+ /**
105
+ * Withdraw global offer from the smart contract.
106
+ *
107
+ * @param auctionIDs The IDs of the global offer to withdraw
108
+ * @returns {IPlainTransactionObject} The interaction object of the smart contract
109
+ */
110
+ withdrawGlobalOffer(offerID: number, senderNonce: WithSenderAndNonce): IPlainTransactionObject;
111
+ /**
112
+ * Accept a global offer
113
+ *
114
+ * @param offerID The offer ID
115
+ * @returns {IPlainTransactionObject} The interaction object of the smart contract
116
+ */
117
+ acceptGlobalOffer({ signature, offer_id, auction_ids_opt, market, nfts, address, nonce, }: AcceptGlobalOffer & WithSenderAndNonce): IPlainTransactionObject;
118
+ /**
119
+ * Send a global offer
120
+ * @param payment_token The token used for payment
121
+ * @param payment_nonce The nonce of the payment token
122
+ * @param price The price of the offer
123
+ * @param collection The collection of the NFT
124
+ * @param attributes The attributes of the NFT
125
+ * @param depositAmount The deposit amount
126
+ * @returns {IPlainTransactionObject} The interaction object of the smart contract
127
+ * */
128
+ sendGlobalOffer({ payment_token, payment_nonce, price, collection, quantity, attributes, depositAmount, address, nonce, }: SendGlobalOffer & WithSenderAndNonce): IPlainTransactionObject;
129
+ /**
130
+ * Send a custom offer
131
+ * @param payment_token The token used for payment
132
+ * @param payment_nonce The nonce of the payment token
133
+ * @param price The price of the offer
134
+ * @param deadline The deadline of the offer
135
+ * @param nft The NFT to be sold
136
+ * @param depositAmount The deposit amount
137
+ * @returns {IPlainTransactionObject} The interaction object of the smart contract
138
+ * */
139
+ sendCustomOffer({ payment_token, payment_nonce, price, deadline, nft, depositAmount, address, nonce, }: SendCustomOffer & WithSenderAndNonce): IPlainTransactionObject;
140
+ /**
141
+ * Withdraws a custom offer
142
+ *
143
+ * @param offerID The offer ID
144
+ * @returns {IPlainTransactionObject} The interaction object of the smart contract
145
+ */
146
+ withdrawCustomOffer(offerID: number, senderNonce: WithSenderAndNonce, market: string): IPlainTransactionObject;
147
+ /**
148
+ * Decline a custom offer
149
+ *
150
+ * @param offerID The offer ID
151
+ * @returns {IPlainTransactionObject} The interaction object of the smart contract
152
+ */
153
+ declineCustomOffer(offerID: number, sender: WithSenderAndNonce, nft: NftData, market: string): IPlainTransactionObject;
154
+ /**
155
+ * Accept a custom offer
156
+ *
157
+ * @param offerID The offer ID
158
+ * @returns {IPlainTransactionObject} The interaction object of the smart contract
159
+ */
160
+ acceptCustomOffer(offerID: number, sender: WithSenderAndNonce, nft: NftData, market: string): IPlainTransactionObject;
161
+ /**
162
+ * @public
163
+ * @function endAuction
164
+ * @param {number} auctionID - The unique identifier of the auction.
165
+ * @returns {IPlainTransactionObject} The resulting interaction with the specified chainID and gas limit.
166
+ *
167
+ * This function allows ending an auction by its auctionID. It takes the following parameter:
168
+ * - auctionID (number): The unique identifier of the auction.
169
+ *
170
+ * The function calls the `endAuction` method on the smart contract with the provided auctionID.
171
+ * Finally, it returns the resulting interaction with the specified chainID and gas limit.
172
+ */
173
+ endAuction(auctionID: number, sender: WithSenderAndNonce, market?: string): IPlainTransactionObject;
174
+ /**
175
+ * Bid on an auction
176
+ *
177
+ * @param auctionID The auction ID
178
+ * @param collection The NFT Collection
179
+ * @param nonce The NFT nonce
180
+ * @param payment The payment object
181
+ * @returns {IPlainTransactionObject} The interaction object of the smart contract
182
+ */
183
+ bidOnAuctionId(auctionID: number, collection: string, nonce: number, payment: Payment, sender: WithSenderAndNonce): IPlainTransactionObject;
184
+ /**
185
+ * Bulk buy auctions
186
+ *
187
+ * @param auctionIDs The auction IDs
188
+ * @param payment The payment object
189
+ * @returns {IPlainTransactionObject} The interaction object of the smart contract
190
+ */
191
+ bulkBuy(auctionIDs: number[], payment: Payment, sender: WithSenderAndNonce): IPlainTransactionObject;
192
+ /**
193
+ * @public
194
+ * @async
195
+ * @function buyAuctionById
196
+ * @param {Object} options - An object containing the necessary parameters to buy an auction.
197
+ * @param {number} options.auctionID - The unique identifier of the auction.
198
+ * @param {string} [options.collection] - The collection the auctioned token belongs to (optional).
199
+ * @param {number} [options.nonce] - The nonce of the auctioned token (optional).
200
+ * @param {number} [options.quantity=1] - The quantity of tokens to buy (default is 1).
201
+ * @param {string} [options.token='EGLD'] - The payment token (default is 'EGLD').
202
+ * @param {number} [options.paymentAmount] - The payment amount for the auction (optional).
203
+ * @param {boolean} [options.withCheck=true] - Whether to check the auction information (default is true).
204
+ * @param {boolean} [options.isBigUintPayment=false] - Whether the payment amount is a big integer (default is false).
205
+ * @returns {Promise<IPlainTransactionObject>} The resulting interaction with the specified chainID and gas limit.
206
+ *
207
+ * This function allows a user to buy an auction by its auctionID. It takes an object with the following properties:
208
+ * - auctionID (number): The unique identifier of the auction.
209
+ * - collection (string, optional): The collection the auctioned token belongs to.
210
+ * - nonce (number, optional): The nonce of the auctioned token.
211
+ * - quantity (number, optional): The quantity of tokens to buy (default is 1).
212
+ * - token (string, optional): The payment token (default is 'EGLD').
213
+ * - paymentAmount (number, optional): The payment amount for the auction.
214
+ * - withCheck (boolean, optional): Whether to check the auction information (default is true).
215
+ * - isBigUintPayment (boolean, optional): Whether the payment amount is a big integer (default is false).
216
+ *
217
+ * The function first checks if the auction exists and if its type is NFT or SftOnePerPayment. If not, an error is thrown.
218
+ * Then, it calculates the payment amount and calls the `buy` method on the smart contract with the provided parameters.
219
+ * Finally, the function returns the resulting interaction with the specified chainID and gas limit.
220
+ */
221
+ buyAuctionById({ auctionID, collection, nonce, paymentAmount, quantity, token, withCheck, isBigUintPayment, isBid, decimals, market, sender, }: {
222
+ auctionID: number;
223
+ collection?: string;
224
+ nonce?: number;
225
+ quantity?: number;
226
+ token?: string;
227
+ paymentAmount?: string;
228
+ withCheck?: boolean;
229
+ isBigUintPayment?: boolean;
230
+ isBid?: boolean;
231
+ market?: string;
232
+ decimals?: number;
233
+ sender: WithSenderAndNonce;
234
+ }): Promise<IPlainTransactionObject>;
235
+ /**
236
+ * @docutype
237
+ * @public
238
+ * @async
239
+ * @function changeListing
240
+ * @param {ChangeListing[]} listings - An array of objects containing the information needed to change a listing.
241
+ * @returns {IPlainTransactionObject} The resulting interaction with the specified chainID and gas limit.
242
+ *
243
+ * This function takes an array of `ChangeListing` objects and constructs `Struct` instances using the provided
244
+ * information. Each `ChangeListing` object should have the following properties:
245
+ * - paymentToken (string): The identifier of the payment token type.
246
+ * - price (BigInt): The new price for the listing.
247
+ * - auctionID (number): The unique identifier of the auction.
248
+ * - deadline (number): The deadline (in Unix time) for the listing.
249
+ *
250
+ * The function then calls the `changeListing` method on the smart contract and returns the resulting interaction
251
+ * with the specified chainID and gas limit.
252
+ */
253
+ changeListing(listings: ChangeListing[], sender: WithSenderAndNonce, marketplace: string): Promise<IPlainTransactionObject>;
254
+ listNFTs(listings: NewListingArgs[], sender: WithSenderAndNonce): Promise<IPlainTransactionObject>;
255
+ }
256
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interactions/index.ts"],"names":[],"mappings":"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"}