@0xsequence/marketplace-sdk 1.1.1 → 1.2.0
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/CHANGELOG.md +34 -3
- package/dist/{BellIcon-ByhygxBO.js → BellIcon-DMKEumAz.js} +2 -2
- package/dist/BellIcon-DMKEumAz.js.map +1 -0
- package/dist/{CartIcon-Bt3rQYGk.js → CartIcon-UyB4NYKt.js} +3 -3
- package/dist/CartIcon-UyB4NYKt.js.map +1 -0
- package/dist/CollectibleCard-z05qWzKE.d.ts +8 -0
- package/dist/_internal-DkS2VUn5.js.map +1 -1
- package/dist/abi-fa-o9gH3.js.map +1 -1
- package/dist/{alien_swap-DoY6XfMA.js → alien_swap-Cq8LuElo.js} +1 -1
- package/dist/{alien_swap-DoY6XfMA.js.map → alien_swap-Cq8LuElo.js.map} +1 -1
- package/dist/{api-BoO0V5aJ.js → api-GwTR0dBA.js} +8 -49
- package/dist/api-GwTR0dBA.js.map +1 -0
- package/dist/{aqua-xyz-BBDxnG14.js → aqua-xyz-0yye_c-Z.js} +1 -1
- package/dist/{aqua-xyz-BBDxnG14.js.map → aqua-xyz-0yye_c-Z.js.map} +1 -1
- package/dist/{aura-DGx2zwvF.js → aura-TaxFvTFQ.js} +1 -1
- package/dist/{aura-DGx2zwvF.js.map → aura-TaxFvTFQ.js.map} +1 -1
- package/dist/{blur-D8GKrRrq.js → blur-BupOTobO.js} +1 -1
- package/dist/{blur-D8GKrRrq.js.map → blur-BupOTobO.js.map} +1 -1
- package/dist/{builder-api-BFuZNOaN.js → builder-api-m4JAA6ee.js} +3 -3
- package/dist/builder-api-m4JAA6ee.js.map +1 -0
- package/dist/{builder.gen-B9wR2nvF.js → builder.gen--XD71cNL.js} +2 -2
- package/dist/builder.gen--XD71cNL.js.map +1 -0
- package/dist/{coinbase-DOry4PXY.js → coinbase-DTgZ4wDT.js} +1 -1
- package/dist/{coinbase-DOry4PXY.js.map → coinbase-DTgZ4wDT.js.map} +1 -1
- package/dist/{collectibles-C_H8jMGH.js → collectibles-CZ6i8sXK.js} +15 -49
- package/dist/collectibles-CZ6i8sXK.js.map +1 -0
- package/dist/{collections-CKummc-R.js → collections-5NcU-7ZR.js} +92 -10
- package/dist/collections-5NcU-7ZR.js.map +1 -0
- package/dist/{components-CosnX7F9.js → components-CY8kx2kb.js} +13 -9
- package/dist/components-CY8kx2kb.js.map +1 -0
- package/dist/{contracts-BP_0vX48.js → contracts-DRJHF89h.js} +4 -3
- package/dist/{contracts-BP_0vX48.js.map → contracts-DRJHF89h.js.map} +1 -1
- package/dist/{create-config-CIfejoCk.js → create-config-BxyfYCEk.js} +6 -5
- package/dist/create-config-BxyfYCEk.js.map +1 -0
- package/dist/{create-config-ZOB7i4ZJ.d.ts → create-config-CFBeD8CB.d.ts} +47 -60
- package/dist/{element-ciybd_VF.js → element-D4dDznlu.js} +1 -1
- package/dist/{element-ciybd_VF.js.map → element-D4dDznlu.js.map} +1 -1
- package/dist/{filters-V-V8Dn8f.d.ts → filters-B5niI_fX.d.ts} +7 -7
- package/dist/{foundation-Bq4lRz4x.js → foundation-GHZOKAzN.js} +1 -1
- package/dist/{foundation-Bq4lRz4x.js.map → foundation-GHZOKAzN.js.map} +1 -1
- package/dist/{index-BeRV-7AX.d.ts → index-8scPf0CS.d.ts} +2 -2
- package/dist/index-9qsplZ8r.d.ts +18 -0
- package/dist/{index-BZIJTQT0.d.ts → index-BIuYTMc2.d.ts} +10 -9
- package/dist/{index-C4MUKshG.d.ts → index-BNrz99xy.d.ts} +3 -3
- package/dist/{index-Bsx6XsC2.d.ts → index-BYQOPS8e.d.ts} +116 -62
- package/dist/{index-DUXfvhxs.d.ts → index-BkZ7SPLc.d.ts} +19 -29
- package/dist/{index-NlPMNcqh.d.ts → index-BnUku_aF.d.ts} +109 -114
- package/dist/{index-Stm5u0I0.d.ts → index-BtDAHMW_.d.ts} +9 -12
- package/dist/{index-BOiHR01C.d.ts → index-C-c_M_sE.d.ts} +10 -9
- package/dist/{index-DWt6yrIG.d.ts → index-CNIiC8Z_.d.ts} +11 -8
- package/dist/{index-DmudgrsN.d.ts → index-CbERNN3s.d.ts} +26 -16
- package/dist/{index-CxpFwGvR.d.ts → index-CsfxsN0t.d.ts} +4 -4
- package/dist/{index-CxA34wP1.d.ts → index-DASjaiJL.d.ts} +105 -19
- package/dist/{index-Bxzjy0d1.d.ts → index-DD7Vc4cE.d.ts} +2 -2
- package/dist/{index-DqXd1EeB.d.ts → index-DIc8OqWV.d.ts} +7 -6
- package/dist/{index-CnEbXm_t.d.ts → index-DVI_vggD.d.ts} +53 -12
- package/dist/{index-CPzvNmq9.d.ts → index-DqxQeYT2.d.ts} +39 -36
- package/dist/{index-CS65jqOq.d.ts → index-Dsf9FRtr.d.ts} +19 -3
- package/dist/{index-DFEnA6Wa.d.ts → index-DxAReMEO.d.ts} +34 -34
- package/dist/{index-U-zp70of.d.ts → index-UXRoZmd_.d.ts} +8 -12
- package/dist/{index-DwKr18CI.d.ts → index-isFvc5gd.d.ts} +2 -2
- package/dist/{index-BtWMBHeP.d.ts → index-j3nuJWyJ.d.ts} +13 -9
- package/dist/{index-C-745li7.d.ts → index-nVb7o0hc.d.ts} +2 -2
- package/dist/{index-D9LPlmbC.d.ts → index-pbE88Tt7.d.ts} +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.js +9 -9
- package/dist/{inventory-Dd7TazvZ.js → inventory--t6Zu55O.js} +21 -18
- package/dist/inventory--t6Zu55O.js.map +1 -0
- package/dist/{listCollectiblesPaginated-Cy2_qEZA.d.ts → listCollectiblesPaginated-BlE5mSzh.d.ts} +32 -32
- package/dist/{listCollections-BB9FxKj2.d.ts → listCollections-DWyqFSQ3.d.ts} +143 -66
- package/dist/{looks-rare-6H--x3AM.js → looks-rare-2HBhMpOf.js} +1 -1
- package/dist/{looks-rare-6H--x3AM.js.map → looks-rare-2HBhMpOf.js.map} +1 -1
- package/dist/{lowestListing-Cbsi6M1K.d.ts → lowestListing-DsunDO1c.d.ts} +38 -28
- package/dist/{magic-eden-BoxEQ1Li.js → magic-eden-BYdTp-uk.js} +1 -1
- package/dist/{magic-eden-BoxEQ1Li.js.map → magic-eden-BYdTp-uk.js.map} +1 -1
- package/dist/{manifold-DycKsljb.js → manifold-yE0x6ZmO.js} +1 -1
- package/dist/{manifold-DycKsljb.js.map → manifold-yE0x6ZmO.js.map} +1 -1
- package/dist/{market-C3HV-awQ.js → market-DuBpFsDg.js} +27 -17
- package/dist/market-DuBpFsDg.js.map +1 -0
- package/dist/{marketCurrencies-Bpw1bIO0.d.ts → marketCurrencies-BgwmbGFk.d.ts} +20 -9
- package/dist/{marketCurrencies-sKrTX0og.js → marketCurrencies-Bolonndy.js} +13 -7
- package/dist/marketCurrencies-Bolonndy.js.map +1 -0
- package/dist/marketplace-NQB-sEQL.js.map +1 -1
- package/dist/{marketplace-logos-D4dS1Foy.js → marketplace-logos-Cz9RrtQo.js} +21 -21
- package/dist/marketplace-logos-Cz9RrtQo.js.map +1 -0
- package/dist/{marketplace.gen-ksUafDqS.js → marketplace.gen-906FrJQJ.js} +24 -5
- package/dist/marketplace.gen-906FrJQJ.js.map +1 -0
- package/dist/{marketplaceConfig-UHQMM9fq.js → marketplaceConfig-Bqjo7NYO.js} +8 -4
- package/dist/marketplaceConfig-Bqjo7NYO.js.map +1 -0
- package/dist/{mintify-Dyqyo8jQ.js → mintify-BXQx3mZB.js} +1 -1
- package/dist/{mintify-Dyqyo8jQ.js.map → mintify-BXQx3mZB.js.map} +1 -1
- package/dist/{network-DtmiMhcg.js → network-DwdZ_5-7.js} +2 -2
- package/dist/network-DwdZ_5-7.js.map +1 -0
- package/dist/{networkconfigToWagmiChain-DbUf6HiO.js → networkconfigToWagmiChain-Ct-hGq8M.js} +4 -3
- package/dist/networkconfigToWagmiChain-Ct-hGq8M.js.map +1 -0
- package/dist/{nftx-2LbFjj9Q.js → nftx-B929_3Ce.js} +1 -1
- package/dist/{nftx-2LbFjj9Q.js.map → nftx-B929_3Ce.js.map} +1 -1
- package/dist/{okx-CBEWJNsR.js → okx-sZ0-Udny.js} +1 -1
- package/dist/{okx-CBEWJNsR.js.map → okx-sZ0-Udny.js.map} +1 -1
- package/dist/{open-sea-Dxntz_PA.js → open-sea-DO9PhTrz.js} +1 -1
- package/dist/{open-sea-Dxntz_PA.js.map → open-sea-DO9PhTrz.js.map} +1 -1
- package/dist/{orders-DnFfZAXV.js → orders-DH76ym2e.js} +16 -9
- package/dist/orders-DH76ym2e.js.map +1 -0
- package/dist/primary-sale-1u4QlPdA.js.map +1 -1
- package/dist/{primary-sales-Dmsi6bqj.js → primary-sales-CECrqatg.js} +49 -7
- package/dist/primary-sales-CECrqatg.js.map +1 -0
- package/dist/{query-BWbCsXLY.d.ts → query-brXxOcH0.d.ts} +1 -1
- package/dist/{rarible-CS0SupHr.js → rarible-Ccb2hs7y.js} +1 -1
- package/dist/{rarible-CS0SupHr.js.map → rarible-Ccb2hs7y.js.map} +1 -1
- package/dist/react/_internal/api/index.d.ts +2 -2
- package/dist/react/_internal/api/index.js +6 -6
- package/dist/react/_internal/databeat/index.d.ts +1 -1
- package/dist/react/_internal/databeat/index.js +28 -29
- package/dist/react/_internal/index.d.ts +2 -2
- package/dist/react/_internal/index.js +8 -8
- package/dist/react/_internal/wagmi/index.d.ts +1 -1
- package/dist/react/_internal/wagmi/index.js +3 -3
- package/dist/react/hooks/config/index.d.ts +8 -8
- package/dist/react/hooks/config/index.js +28 -29
- package/dist/react/hooks/contracts/index.d.ts +6 -6
- package/dist/react/hooks/contracts/index.js +8 -8
- package/dist/react/hooks/data/collectibles/index.d.ts +10 -10
- package/dist/react/hooks/data/collectibles/index.js +28 -29
- package/dist/react/hooks/data/collections/index.d.ts +11 -11
- package/dist/react/hooks/data/collections/index.js +29 -30
- package/dist/react/hooks/data/index.d.ts +37 -37
- package/dist/react/hooks/data/index.js +29 -30
- package/dist/react/hooks/data/inventory/index.d.ts +36 -36
- package/dist/react/hooks/data/inventory/index.js +28 -29
- package/dist/react/hooks/data/market/index.d.ts +11 -11
- package/dist/react/hooks/data/market/index.js +28 -29
- package/dist/react/hooks/data/orders/index.d.ts +10 -10
- package/dist/react/hooks/data/orders/index.js +28 -29
- package/dist/react/hooks/data/primary-sales/index.d.ts +37 -37
- package/dist/react/hooks/data/primary-sales/index.js +29 -30
- package/dist/react/hooks/data/tokens/index.d.ts +4 -4
- package/dist/react/hooks/data/tokens/index.js +28 -29
- package/dist/react/hooks/index.d.ts +37 -37
- package/dist/react/hooks/index.js +29 -30
- package/dist/react/hooks/transactions/index.d.ts +2 -2
- package/dist/react/hooks/transactions/index.js +28 -29
- package/dist/react/hooks/ui/index.d.ts +4 -4
- package/dist/react/hooks/ui/index.js +28 -29
- package/dist/react/hooks/utils/index.d.ts +36 -36
- package/dist/react/hooks/utils/index.js +28 -29
- package/dist/react/index.d.ts +37 -37
- package/dist/react/index.js +29 -30
- package/dist/react/queries/collectibles/index.d.ts +10 -10
- package/dist/react/queries/collectibles/index.js +12 -13
- package/dist/react/queries/collections/index.d.ts +11 -11
- package/dist/react/queries/collections/index.js +11 -11
- package/dist/react/queries/index.d.ts +24 -24
- package/dist/react/queries/index.js +22 -23
- package/dist/react/queries/inventory/index.d.ts +2 -2
- package/dist/react/queries/inventory/index.js +12 -12
- package/dist/react/queries/market/index.d.ts +5 -5
- package/dist/react/queries/market/index.js +12 -12
- package/dist/react/queries/orders/index.d.ts +10 -10
- package/dist/react/queries/orders/index.js +8 -8
- package/dist/react/queries/primary-sales/index.d.ts +4 -4
- package/dist/react/queries/primary-sales/index.js +9 -9
- package/dist/react/queries/tokens/index.d.ts +4 -4
- package/dist/react/queries/tokens/index.js +8 -9
- package/dist/react/queries/utils/index.d.ts +3 -3
- package/dist/react/queries/utils/index.js +12 -12
- package/dist/react/ssr/index.d.ts +7 -7
- package/dist/react/ssr/index.js +8 -8
- package/dist/react/ssr/index.js.map +1 -1
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/components/index.d.ts +2 -2
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/components/index.js +12 -12
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/index.d.ts +7 -10
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/index.js +28 -29
- package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +4 -4
- package/dist/react/ui/components/marketplace-collectible-card/index.js +28 -29
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +2 -2
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.js +8 -8
- package/dist/react/ui/components/marketplace-logos/index.d.ts +21 -21
- package/dist/react/ui/components/marketplace-logos/index.js +1 -1
- package/dist/react/ui/icons/index.js +8 -8
- package/dist/react/ui/index.d.ts +4 -4
- package/dist/react/ui/index.js +28 -29
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +28 -29
- package/dist/react/utils/index.d.ts +1 -1
- package/dist/react/utils/index.js +6 -6
- package/dist/{react-DE852KeT.js → react-CBsgOdVP.js} +608 -735
- package/dist/react-CBsgOdVP.js.map +1 -0
- package/dist/{sequence-paCCener.js → sequence-CRdb1yEs.js} +1 -1
- package/dist/{sequence-paCCener.js.map → sequence-CRdb1yEs.js.map} +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/{sudo-swap-9rH2EgfT.js → sudo-swap-BIklG2gq.js} +1 -1
- package/dist/{sudo-swap-9rH2EgfT.js.map → sudo-swap-BIklG2gq.js.map} +1 -1
- package/dist/{super-rare-DHIuWtRw.js → super-rare-h8645_5E.js} +1 -1
- package/dist/{super-rare-DHIuWtRw.js.map → super-rare-h8645_5E.js.map} +1 -1
- package/dist/token-Cv7l2ZaL.js.map +1 -1
- package/dist/{tokenBalances-ibDerNmM.js → tokenBalances-CouzNX4j.js} +6 -12
- package/dist/tokenBalances-CouzNX4j.js.map +1 -0
- package/dist/{tokenSupplies-Bfe8RHzI.d.ts → tokenSupplies-C3zJll0M.d.ts} +32 -39
- package/dist/{tokens-cGxMadd8.js → tokens-BvIRUCGG.js} +58 -27
- package/dist/tokens-BvIRUCGG.js.map +1 -0
- package/dist/transaction-DZUW5RHu.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +2 -2
- package/dist/types-B_-cnkcP.js.map +1 -1
- package/dist/{types-D2TJ1dwv.d.ts → types-CMDwfhfR.d.ts} +5 -5
- package/dist/utils/abi/index.d.ts +4 -4
- package/dist/utils/abi/marketplace/index.d.ts +1 -1
- package/dist/utils/abi/primary-sale/index.d.ts +1 -1
- package/dist/utils/abi/token/index.d.ts +1 -1
- package/dist/utils/index.d.ts +7 -7
- package/dist/utils/index.js +7 -7
- package/dist/{utils-BfpDVibN.js → utils-9ToOvt-c.js} +50 -7
- package/dist/utils-9ToOvt-c.js.map +1 -0
- package/dist/{utils-BqxcalL2.js → utils-B6di6O-C.js} +2 -2
- package/dist/utils-B6di6O-C.js.map +1 -0
- package/dist/{utils-BCgNhBFR.js → utils-BCYTEOvy.js} +17 -7
- package/dist/utils-BCYTEOvy.js.map +1 -0
- package/dist/{waitForTransactionReceipt-DieAnV52.js → waitForTransactionReceipt-CbSeUSXe.js} +5 -4
- package/dist/{waitForTransactionReceipt-DieAnV52.js.map → waitForTransactionReceipt-CbSeUSXe.js.map} +1 -1
- package/dist/{x2y2-45WDooeh.js → x2y2-OvF__ugj.js} +1 -1
- package/dist/{x2y2-45WDooeh.js.map → x2y2-OvF__ugj.js.map} +1 -1
- package/dist/{zora-CbeBoLvQ.js → zora-DzCeu-eE.js} +1 -1
- package/dist/{zora-CbeBoLvQ.js.map → zora-DzCeu-eE.js.map} +1 -1
- package/package.json +38 -38
- package/src/react/_internal/api/__mocks__/marketplace.msw.ts +13 -0
- package/src/react/_internal/api/index.ts +0 -1
- package/src/react/_internal/api/marketplace.gen.ts +70 -26
- package/src/react/_internal/api/query-keys.ts +9 -0
- package/src/react/hooks/data/collectibles/useBalanceOfCollectible.tsx +0 -9
- package/src/react/hooks/data/collectibles/useListCollectibles.tsx +1 -16
- package/src/react/hooks/data/collectibles/useTokenBalances.tsx +0 -9
- package/src/react/hooks/data/collections/index.ts +2 -0
- package/src/react/hooks/data/collections/useCollectionActiveListingsCurrencies.test.tsx +112 -0
- package/src/react/hooks/data/collections/useCollectionActiveListingsCurrencies.tsx +74 -0
- package/src/react/hooks/data/collections/useCollectionActiveOffersCurrencies.test.tsx +110 -0
- package/src/react/hooks/data/collections/useCollectionActiveOffersCurrencies.tsx +74 -0
- package/src/react/hooks/data/inventory/useInventory.tsx +1 -10
- package/src/react/hooks/data/market/useMarketCurrencies.test.tsx +31 -2
- package/src/react/hooks/data/primary-sales/index.ts +1 -0
- package/src/react/hooks/data/primary-sales/usePrimarySaleItem.tsx +71 -0
- package/src/react/hooks/data/tokens/useListBalances.tsx +1 -10
- package/src/react/hooks/data/tokens/useTokenSupplies.ts +1 -13
- package/src/react/hooks/transactions/useGenerateOfferTransaction.test.tsx +2 -0
- package/src/react/hooks/transactions/useProcessStep.test.tsx +8 -6
- package/src/react/hooks/transactions/useProcessStep.ts +8 -6
- package/src/react/hooks/utils/useComparePrices.test.tsx +1 -1
- package/src/react/providers/modal-provider.tsx +2 -1
- package/src/react/queries/collectibles/balanceOfCollectible.ts +1 -15
- package/src/react/queries/collectibles/listCollectibles.ts +1 -54
- package/src/react/queries/collectibles/tokenBalances.ts +1 -15
- package/src/react/queries/collections/activeListingsCurrencies.ts +84 -0
- package/src/react/queries/collections/activeOffersCurrencies.ts +84 -0
- package/src/react/queries/collections/index.ts +2 -0
- package/src/react/queries/inventory/inventory.ts +2 -9
- package/src/react/queries/market/marketCurrencies.ts +8 -1
- package/src/react/queries/primary-sales/index.ts +1 -0
- package/src/react/queries/primary-sales/primarySaleItem.ts +80 -0
- package/src/react/queries/tokens/listBalances.ts +1 -21
- package/src/react/queries/tokens/tokenSupplies.ts +2 -31
- package/src/react/queries/utils/comparePrices.ts +13 -1
- package/src/react/ui/components/_internals/action-button/ActionButton.stories.tsx +2 -0
- package/src/react/ui/components/marketplace-collectible-card/components/footer/Footer.tsx +4 -18
- package/src/react/ui/components/marketplace-collectible-card/variants/MarketCard.tsx +2 -2
- package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +0 -2
- package/src/react/ui/modals/BuyModal/__tests__/BuyModalRouter.test.tsx +3 -0
- package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +1 -0
- package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +0 -23
- package/src/react/ui/modals/MakeOfferModal/Modal.tsx +22 -2
- package/src/react/ui/modals/MakeOfferModal/__tests__/Modal.test.tsx +2 -0
- package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +2 -0
- package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +2 -0
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +15 -12
- package/src/react/ui/modals/_internal/components/floorPriceText/__tests__/FloorPriceText.test.tsx +2 -0
- package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/priceInput/index.tsx +148 -11
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/utils.test.ts +2 -0
- package/src/styles/styles.ts +1 -1
- package/src/utils/networkconfigToWagmiChain.ts +7 -0
- package/src/utils/price.ts +58 -0
- package/test/const.ts +2 -0
- package/test/server-setup.ts +0 -2
- package/.changeset/honest-peas-arrive.md +0 -5
- package/.changeset/real-tips-stick.md +0 -8
- package/.changeset/tall-pandas-wear.md +0 -8
- package/dist/BellIcon-ByhygxBO.js.map +0 -1
- package/dist/CartIcon-Bt3rQYGk.js.map +0 -1
- package/dist/CollectibleCard-CVpdgXA8.d.ts +0 -8
- package/dist/api-BoO0V5aJ.js.map +0 -1
- package/dist/builder-api-BFuZNOaN.js.map +0 -1
- package/dist/builder.gen-B9wR2nvF.js.map +0 -1
- package/dist/collectibles-C_H8jMGH.js.map +0 -1
- package/dist/collections-CKummc-R.js.map +0 -1
- package/dist/components-CosnX7F9.js.map +0 -1
- package/dist/create-config-CIfejoCk.js.map +0 -1
- package/dist/index-DNNUeZEq.d.ts +0 -18
- package/dist/inventory-Dd7TazvZ.js.map +0 -1
- package/dist/listBalances-BxpxBCvn.js +0 -57
- package/dist/listBalances-BxpxBCvn.js.map +0 -1
- package/dist/market-C3HV-awQ.js.map +0 -1
- package/dist/marketCurrencies-sKrTX0og.js.map +0 -1
- package/dist/marketplace-logos-D4dS1Foy.js.map +0 -1
- package/dist/marketplace.gen-ksUafDqS.js.map +0 -1
- package/dist/marketplaceConfig-UHQMM9fq.js.map +0 -1
- package/dist/network-DtmiMhcg.js.map +0 -1
- package/dist/networkconfigToWagmiChain-DbUf6HiO.js.map +0 -1
- package/dist/orders-DnFfZAXV.js.map +0 -1
- package/dist/primary-sales-Dmsi6bqj.js.map +0 -1
- package/dist/react-DE852KeT.js.map +0 -1
- package/dist/tokenBalances-ibDerNmM.js.map +0 -1
- package/dist/tokens-cGxMadd8.js.map +0 -1
- package/dist/utils-BCgNhBFR.js.map +0 -1
- package/dist/utils-BfpDVibN.js.map +0 -1
- package/dist/utils-BqxcalL2.js.map +0 -1
- package/src/react/_internal/api/__mocks__/laos.msw.ts +0 -387
- package/src/react/_internal/api/__tests__/laos-api.test.ts +0 -756
- package/src/react/_internal/api/laos-api.ts +0 -106
- package/src/react/hooks/data/collectibles/useBalanceOfCollectible.laos.test.tsx +0 -367
- package/src/react/queries/collectibles/__tests__/balanceOfCollectible.laos.test.ts +0 -123
- package/src/react/queries/collectibles/__tests__/tokenBalances.laos.test.ts +0 -123
- package/src/react/queries/inventory/__tests__/inventory.laos.test.ts +0 -499
- package/src/react/ui/modals/_internal/constants/opensea-currencies.ts +0 -481
- /package/dist/{index-6wsMChsg.d.ts → index-CCggO_hw.d.ts} +0 -0
- /package/dist/{index-CZUtOTjh.d.ts → index-CKefEBrI.d.ts} +0 -0
- /package/dist/{index-DW3njUfb.d.ts → index-DgsCqh_P.d.ts} +0 -0
- /package/dist/{index-DewGsFz5.d.ts → index-xpO4AQyS.d.ts} +0 -0
- /package/dist/{queries-KOcILNJO.js → queries-CyajGg_O.js} +0 -0
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
import { CheckoutOptionsItem, CheckoutOptionsMarketplaceReturn, CheckoutOptionsSalesContractReturn, CollectiblePrimarySaleItem, ContractType, GetCountOfPrimarySaleItemsReturn, ListPrimarySaleItemsReturn, MarketplaceKind, MarketplaceSdkContext, Optional, PrimarySaleItem, QueryArg, SdkConfig, TokenMetadata
|
|
2
|
-
import { CollectiblesResponse, UseInventoryArgs } from "./index-
|
|
3
|
-
import { CheckoutOptionsQueryOptions, CheckoutOptionsSalesContractQueryOptions, fetchCheckoutOptions, fetchCheckoutOptionsSalesContract } from "./index-
|
|
4
|
-
import { ListPrimarySaleItemsQueryOptions, UseCountOfPrimarySaleItemsArgs } from "./index-
|
|
5
|
-
import { ComparePricesQueryOptions, ComparePricesReturn, ConvertPriceToUSDQueryOptions, ConvertPriceToUSDReturn } from "./index-
|
|
1
|
+
import { CheckoutOptionsItem, CheckoutOptionsMarketplaceReturn, CheckoutOptionsSalesContractReturn, CollectiblePrimarySaleItem, ContractType, GetCountOfPrimarySaleItemsReturn, ListPrimarySaleItemsReturn, MarketplaceKind, MarketplaceSdkContext$2 as MarketplaceSdkContext, Optional, PrimarySaleItem, QueryArg, SdkConfig, TokenMetadata } from "./create-config-CFBeD8CB.js";
|
|
2
|
+
import { CollectiblesResponse, UseInventoryArgs } from "./index-BtDAHMW_.js";
|
|
3
|
+
import { CheckoutOptionsQueryOptions, CheckoutOptionsSalesContractQueryOptions, fetchCheckoutOptions$1 as fetchCheckoutOptions, fetchCheckoutOptionsSalesContract$1 as fetchCheckoutOptionsSalesContract } from "./index-BIuYTMc2.js";
|
|
4
|
+
import { ListPrimarySaleItemsQueryOptions, PrimarySaleItemQueryOptions, UseCountOfPrimarySaleItemsArgs } from "./index-DVI_vggD.js";
|
|
5
|
+
import { ComparePricesQueryOptions, ComparePricesReturn, ConvertPriceToUSDQueryOptions, ConvertPriceToUSDReturn } from "./index-C-c_M_sE.js";
|
|
6
6
|
import * as react0 from "react";
|
|
7
|
-
import * as
|
|
7
|
+
import * as _tanstack_react_query272 from "@tanstack/react-query";
|
|
8
|
+
import * as _tanstack_react_query273 from "@tanstack/react-query";
|
|
9
|
+
import * as _tanstack_react_query274 from "@tanstack/react-query";
|
|
10
|
+
import * as _tanstack_react_query28 from "@tanstack/react-query";
|
|
11
|
+
import * as _tanstack_react_query216 from "@tanstack/react-query";
|
|
12
|
+
import * as _tanstack_react_query217 from "@tanstack/react-query";
|
|
13
|
+
import * as _tanstack_react_query218 from "@tanstack/react-query";
|
|
14
|
+
import * as _tanstack_react_query219 from "@tanstack/react-query";
|
|
15
|
+
import * as _tanstack_react_query220 from "@tanstack/react-query";
|
|
16
|
+
import * as _tanstack_react_query275 from "@tanstack/react-query";
|
|
17
|
+
import * as _tanstack_react_query277 from "@tanstack/react-query";
|
|
8
18
|
import { skipToken } from "@tanstack/react-query";
|
|
9
|
-
import * as
|
|
10
|
-
import { TokenMetadata } from "@0xsequence/metadata";
|
|
11
|
-
import * as
|
|
19
|
+
import * as _0xsequence_indexer12 from "@0xsequence/indexer";
|
|
20
|
+
import { TokenMetadata as TokenMetadata$1 } from "@0xsequence/metadata";
|
|
21
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
12
22
|
import * as viem59 from "viem";
|
|
23
|
+
import * as viem0 from "viem";
|
|
24
|
+
import * as viem11 from "viem";
|
|
25
|
+
import * as viem12 from "viem";
|
|
13
26
|
import { Address, Hex } from "viem";
|
|
14
27
|
|
|
15
28
|
//#region src/react/hooks/data/primary-sales/useCountOfPrimarySaleItems.d.ts
|
|
16
|
-
declare function useCountOfPrimarySaleItems(args: UseCountOfPrimarySaleItemsArgs):
|
|
29
|
+
declare function useCountOfPrimarySaleItems(args: UseCountOfPrimarySaleItemsArgs): _tanstack_react_query272.UseQueryResult<number, Error>;
|
|
17
30
|
//#endregion
|
|
18
31
|
//#region src/react/hooks/data/primary-sales/useErc721SalesData.d.ts
|
|
19
32
|
interface UseErc721CollectionDataProps {
|
|
@@ -74,7 +87,7 @@ type UseGetCountParams = Optional<ListPrimarySaleItemsQueryOptions, 'config'>;
|
|
|
74
87
|
* })
|
|
75
88
|
* ```
|
|
76
89
|
*/
|
|
77
|
-
declare function useGetCountOfPrimarySaleItems(params: UseGetCountParams):
|
|
90
|
+
declare function useGetCountOfPrimarySaleItems(params: UseGetCountParams): _tanstack_react_query273.UseQueryResult<GetCountOfPrimarySaleItemsReturn, Error>;
|
|
78
91
|
//#endregion
|
|
79
92
|
//#region src/react/hooks/data/primary-sales/useList721ShopCardData.d.ts
|
|
80
93
|
interface UseList721ShopCardDataProps {
|
|
@@ -103,7 +116,7 @@ declare function useList721ShopCardData({
|
|
|
103
116
|
chainId: number;
|
|
104
117
|
collectionAddress: `0x${string}`;
|
|
105
118
|
collectionType: ContractType.ERC721;
|
|
106
|
-
tokenMetadata: TokenMetadata
|
|
119
|
+
tokenMetadata: TokenMetadata;
|
|
107
120
|
cardLoading: boolean;
|
|
108
121
|
salesContractAddress: `0x${string}`;
|
|
109
122
|
salePrice: {
|
|
@@ -121,7 +134,7 @@ declare function useList721ShopCardData({
|
|
|
121
134
|
chainId: number;
|
|
122
135
|
collectionAddress: `0x${string}`;
|
|
123
136
|
collectionType: ContractType.ERC721;
|
|
124
|
-
tokenMetadata: TokenMetadata;
|
|
137
|
+
tokenMetadata: TokenMetadata$1;
|
|
125
138
|
cardLoading: boolean;
|
|
126
139
|
salesContractAddress: `0x${string}`;
|
|
127
140
|
salePrice: {
|
|
@@ -152,13 +165,13 @@ declare function useList721ShopCardData({
|
|
|
152
165
|
merkleRoot: `0x${string}`;
|
|
153
166
|
} | undefined;
|
|
154
167
|
isLoading: boolean;
|
|
155
|
-
tokenSuppliesData:
|
|
168
|
+
tokenSuppliesData: _tanstack_react_query274.InfiniteData<_0xsequence_indexer12.GetTokenSuppliesReturn, unknown> | undefined;
|
|
156
169
|
};
|
|
157
170
|
//#endregion
|
|
158
171
|
//#region src/react/hooks/data/primary-sales/useList1155ShopCardData.d.ts
|
|
159
172
|
interface UseList1155ShopCardDataProps {
|
|
160
173
|
primarySaleItemsWithMetadata: Array<{
|
|
161
|
-
metadata: TokenMetadata
|
|
174
|
+
metadata: TokenMetadata;
|
|
162
175
|
primarySaleItem: PrimarySaleItem;
|
|
163
176
|
}>;
|
|
164
177
|
chainId: number;
|
|
@@ -178,7 +191,7 @@ declare function useList1155ShopCardData({
|
|
|
178
191
|
chainId: number;
|
|
179
192
|
collectionAddress: `0x${string}`;
|
|
180
193
|
collectionType: ContractType.ERC1155;
|
|
181
|
-
tokenMetadata: TokenMetadata
|
|
194
|
+
tokenMetadata: TokenMetadata;
|
|
182
195
|
cardLoading: boolean;
|
|
183
196
|
salesContractAddress: `0x${string}`;
|
|
184
197
|
salePrice: {
|
|
@@ -199,7 +212,7 @@ declare function useList1155ShopCardData({
|
|
|
199
212
|
};
|
|
200
213
|
//#endregion
|
|
201
214
|
//#region src/react/hooks/data/inventory/useInventory.d.ts
|
|
202
|
-
declare function useInventory(args: UseInventoryArgs):
|
|
215
|
+
declare function useInventory(args: UseInventoryArgs): _tanstack_react_query28.UseQueryResult<CollectiblesResponse, Error>;
|
|
203
216
|
//#endregion
|
|
204
217
|
//#region src/types/waas-types.d.ts
|
|
205
218
|
type FeeOption = {
|
|
@@ -357,7 +370,7 @@ type UseCheckoutOptionsParams = Optional<CheckoutOptionsQueryOptions, 'config' |
|
|
|
357
370
|
* })
|
|
358
371
|
* ```
|
|
359
372
|
*/
|
|
360
|
-
declare function useCheckoutOptions(params: UseCheckoutOptionsParams):
|
|
373
|
+
declare function useCheckoutOptions(params: UseCheckoutOptionsParams): _tanstack_react_query216.UseQueryResult<CheckoutOptionsMarketplaceReturn, Error>;
|
|
361
374
|
type UseCheckoutOptionsArgs = {
|
|
362
375
|
chainId: number;
|
|
363
376
|
orders: Array<{
|
|
@@ -415,7 +428,7 @@ type UseCheckoutOptionsSalesContractParams = Optional<CheckoutOptionsSalesContra
|
|
|
415
428
|
* )
|
|
416
429
|
* ```
|
|
417
430
|
*/
|
|
418
|
-
declare function useCheckoutOptionsSalesContract(params: UseCheckoutOptionsSalesContractParams | typeof skipToken):
|
|
431
|
+
declare function useCheckoutOptionsSalesContract(params: UseCheckoutOptionsSalesContractParams | typeof skipToken): _tanstack_react_query217.UseQueryResult<CheckoutOptionsSalesContractReturn, Error>;
|
|
419
432
|
type UseCheckoutOptionsSalesContractArgs = {
|
|
420
433
|
chainId: number;
|
|
421
434
|
contractAddress: string;
|
|
@@ -475,7 +488,7 @@ type UseComparePricesParams = Optional<ComparePricesQueryOptions, 'config'>;
|
|
|
475
488
|
* })
|
|
476
489
|
* ```
|
|
477
490
|
*/
|
|
478
|
-
declare function useComparePrices(params: UseComparePricesParams):
|
|
491
|
+
declare function useComparePrices(params: UseComparePricesParams): _tanstack_react_query218.UseQueryResult<ComparePricesReturn, Error>;
|
|
479
492
|
type UseComparePricesArgs = {
|
|
480
493
|
chainId: number;
|
|
481
494
|
priceAmountRaw: string;
|
|
@@ -538,7 +551,7 @@ type UseConvertPriceToUSDParams = Optional<ConvertPriceToUSDQueryOptions, 'confi
|
|
|
538
551
|
* })
|
|
539
552
|
* ```
|
|
540
553
|
*/
|
|
541
|
-
declare function useConvertPriceToUSD(params: UseConvertPriceToUSDParams):
|
|
554
|
+
declare function useConvertPriceToUSD(params: UseConvertPriceToUSDParams): _tanstack_react_query219.UseQueryResult<ConvertPriceToUSDReturn, Error>;
|
|
542
555
|
type UseConvertPriceToUSDArgs = {
|
|
543
556
|
chainId: number;
|
|
544
557
|
currencyAddress: Address;
|
|
@@ -569,13 +582,13 @@ declare const useEnsureCorrectChain: () => {
|
|
|
569
582
|
} | undefined | undefined;
|
|
570
583
|
blockTime?: number | undefined | undefined;
|
|
571
584
|
contracts?: {
|
|
572
|
-
[x: string]:
|
|
573
|
-
[sourceId: number]:
|
|
585
|
+
[x: string]: viem0.ChainContract | {
|
|
586
|
+
[sourceId: number]: viem0.ChainContract | undefined;
|
|
574
587
|
} | undefined;
|
|
575
|
-
ensRegistry?:
|
|
576
|
-
ensUniversalResolver?:
|
|
577
|
-
multicall3?:
|
|
578
|
-
erc6492Verifier?:
|
|
588
|
+
ensRegistry?: viem0.ChainContract | undefined;
|
|
589
|
+
ensUniversalResolver?: viem0.ChainContract | undefined;
|
|
590
|
+
multicall3?: viem0.ChainContract | undefined;
|
|
591
|
+
erc6492Verifier?: viem0.ChainContract | undefined;
|
|
579
592
|
} | undefined;
|
|
580
593
|
ensTlds?: readonly string[] | undefined;
|
|
581
594
|
id: number;
|
|
@@ -599,9 +612,9 @@ declare const useEnsureCorrectChain: () => {
|
|
|
599
612
|
sourceId?: number | undefined | undefined;
|
|
600
613
|
testnet?: boolean | undefined | undefined;
|
|
601
614
|
custom?: Record<string, unknown> | undefined;
|
|
602
|
-
fees?:
|
|
603
|
-
formatters?:
|
|
604
|
-
serializers?:
|
|
615
|
+
fees?: viem0.ChainFees<viem0.ChainFormatters | undefined> | undefined;
|
|
616
|
+
formatters?: viem0.ChainFormatters | undefined;
|
|
617
|
+
serializers?: viem0.ChainSerializers<viem0.ChainFormatters | undefined, viem0.TransactionSerializable> | undefined;
|
|
605
618
|
}>;
|
|
606
619
|
currentChainId: number | undefined;
|
|
607
620
|
};
|
|
@@ -644,7 +657,7 @@ declare const useEnsureCorrectChain: () => {
|
|
|
644
657
|
* ```
|
|
645
658
|
*/
|
|
646
659
|
declare const useGetReceiptFromHash: () => {
|
|
647
|
-
waitForReceipt: (transactionHash: Hex) => Promise<
|
|
660
|
+
waitForReceipt: (transactionHash: Hex) => Promise<viem11.TransactionReceipt>;
|
|
648
661
|
};
|
|
649
662
|
//#endregion
|
|
650
663
|
//#region src/react/hooks/utils/useRoyalty.d.ts
|
|
@@ -702,7 +715,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
702
715
|
percentage: bigint;
|
|
703
716
|
recipient: Address;
|
|
704
717
|
} | null;
|
|
705
|
-
error:
|
|
718
|
+
error: viem12.ReadContractErrorType;
|
|
706
719
|
isError: true;
|
|
707
720
|
isPending: false;
|
|
708
721
|
isLoading: false;
|
|
@@ -714,7 +727,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
714
727
|
dataUpdatedAt: number;
|
|
715
728
|
errorUpdatedAt: number;
|
|
716
729
|
failureCount: number;
|
|
717
|
-
failureReason:
|
|
730
|
+
failureReason: viem12.ReadContractErrorType | null;
|
|
718
731
|
errorUpdateCount: number;
|
|
719
732
|
isFetched: boolean;
|
|
720
733
|
isFetchedAfterMount: boolean;
|
|
@@ -724,10 +737,10 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
724
737
|
isRefetching: boolean;
|
|
725
738
|
isStale: boolean;
|
|
726
739
|
isEnabled: boolean;
|
|
727
|
-
refetch: (options?:
|
|
728
|
-
fetchStatus:
|
|
740
|
+
refetch: (options?: _tanstack_react_query220.RefetchOptions) => Promise<_tanstack_react_query220.QueryObserverResult<readonly [`0x${string}`, bigint], viem12.ReadContractErrorType>>;
|
|
741
|
+
fetchStatus: _tanstack_react_query220.FetchStatus;
|
|
729
742
|
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
730
|
-
queryKey:
|
|
743
|
+
queryKey: _tanstack_react_query220.QueryKey;
|
|
731
744
|
} | {
|
|
732
745
|
data: {
|
|
733
746
|
percentage: bigint;
|
|
@@ -745,7 +758,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
745
758
|
dataUpdatedAt: number;
|
|
746
759
|
errorUpdatedAt: number;
|
|
747
760
|
failureCount: number;
|
|
748
|
-
failureReason:
|
|
761
|
+
failureReason: viem12.ReadContractErrorType | null;
|
|
749
762
|
errorUpdateCount: number;
|
|
750
763
|
isFetched: boolean;
|
|
751
764
|
isFetchedAfterMount: boolean;
|
|
@@ -755,16 +768,16 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
755
768
|
isRefetching: boolean;
|
|
756
769
|
isStale: boolean;
|
|
757
770
|
isEnabled: boolean;
|
|
758
|
-
refetch: (options?:
|
|
759
|
-
fetchStatus:
|
|
771
|
+
refetch: (options?: _tanstack_react_query220.RefetchOptions) => Promise<_tanstack_react_query220.QueryObserverResult<readonly [`0x${string}`, bigint], viem12.ReadContractErrorType>>;
|
|
772
|
+
fetchStatus: _tanstack_react_query220.FetchStatus;
|
|
760
773
|
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
761
|
-
queryKey:
|
|
774
|
+
queryKey: _tanstack_react_query220.QueryKey;
|
|
762
775
|
} | {
|
|
763
776
|
data: {
|
|
764
777
|
percentage: bigint;
|
|
765
778
|
recipient: Address;
|
|
766
779
|
} | null;
|
|
767
|
-
error:
|
|
780
|
+
error: viem12.ReadContractErrorType;
|
|
768
781
|
isError: true;
|
|
769
782
|
isPending: false;
|
|
770
783
|
isLoading: false;
|
|
@@ -776,7 +789,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
776
789
|
dataUpdatedAt: number;
|
|
777
790
|
errorUpdatedAt: number;
|
|
778
791
|
failureCount: number;
|
|
779
|
-
failureReason:
|
|
792
|
+
failureReason: viem12.ReadContractErrorType | null;
|
|
780
793
|
errorUpdateCount: number;
|
|
781
794
|
isFetched: boolean;
|
|
782
795
|
isFetchedAfterMount: boolean;
|
|
@@ -786,10 +799,10 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
786
799
|
isRefetching: boolean;
|
|
787
800
|
isStale: boolean;
|
|
788
801
|
isEnabled: boolean;
|
|
789
|
-
refetch: (options?:
|
|
790
|
-
fetchStatus:
|
|
802
|
+
refetch: (options?: _tanstack_react_query220.RefetchOptions) => Promise<_tanstack_react_query220.QueryObserverResult<readonly [`0x${string}`, bigint], viem12.ReadContractErrorType>>;
|
|
803
|
+
fetchStatus: _tanstack_react_query220.FetchStatus;
|
|
791
804
|
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
792
|
-
queryKey:
|
|
805
|
+
queryKey: _tanstack_react_query220.QueryKey;
|
|
793
806
|
} | {
|
|
794
807
|
data: {
|
|
795
808
|
percentage: bigint;
|
|
@@ -807,7 +820,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
807
820
|
dataUpdatedAt: number;
|
|
808
821
|
errorUpdatedAt: number;
|
|
809
822
|
failureCount: number;
|
|
810
|
-
failureReason:
|
|
823
|
+
failureReason: viem12.ReadContractErrorType | null;
|
|
811
824
|
errorUpdateCount: number;
|
|
812
825
|
isFetched: boolean;
|
|
813
826
|
isFetchedAfterMount: boolean;
|
|
@@ -817,10 +830,10 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
817
830
|
isRefetching: boolean;
|
|
818
831
|
isStale: boolean;
|
|
819
832
|
isEnabled: boolean;
|
|
820
|
-
refetch: (options?:
|
|
821
|
-
fetchStatus:
|
|
833
|
+
refetch: (options?: _tanstack_react_query220.RefetchOptions) => Promise<_tanstack_react_query220.QueryObserverResult<readonly [`0x${string}`, bigint], viem12.ReadContractErrorType>>;
|
|
834
|
+
fetchStatus: _tanstack_react_query220.FetchStatus;
|
|
822
835
|
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
823
|
-
queryKey:
|
|
836
|
+
queryKey: _tanstack_react_query220.QueryKey;
|
|
824
837
|
} | {
|
|
825
838
|
data: {
|
|
826
839
|
percentage: bigint;
|
|
@@ -837,7 +850,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
837
850
|
dataUpdatedAt: number;
|
|
838
851
|
errorUpdatedAt: number;
|
|
839
852
|
failureCount: number;
|
|
840
|
-
failureReason:
|
|
853
|
+
failureReason: viem12.ReadContractErrorType | null;
|
|
841
854
|
errorUpdateCount: number;
|
|
842
855
|
isFetched: boolean;
|
|
843
856
|
isFetchedAfterMount: boolean;
|
|
@@ -848,10 +861,10 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
848
861
|
isRefetching: boolean;
|
|
849
862
|
isStale: boolean;
|
|
850
863
|
isEnabled: boolean;
|
|
851
|
-
refetch: (options?:
|
|
852
|
-
fetchStatus:
|
|
864
|
+
refetch: (options?: _tanstack_react_query220.RefetchOptions) => Promise<_tanstack_react_query220.QueryObserverResult<readonly [`0x${string}`, bigint], viem12.ReadContractErrorType>>;
|
|
865
|
+
fetchStatus: _tanstack_react_query220.FetchStatus;
|
|
853
866
|
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
854
|
-
queryKey:
|
|
867
|
+
queryKey: _tanstack_react_query220.QueryKey;
|
|
855
868
|
} | {
|
|
856
869
|
data: {
|
|
857
870
|
percentage: bigint;
|
|
@@ -869,7 +882,7 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
869
882
|
dataUpdatedAt: number;
|
|
870
883
|
errorUpdatedAt: number;
|
|
871
884
|
failureCount: number;
|
|
872
|
-
failureReason:
|
|
885
|
+
failureReason: viem12.ReadContractErrorType | null;
|
|
873
886
|
errorUpdateCount: number;
|
|
874
887
|
isFetched: boolean;
|
|
875
888
|
isFetchedAfterMount: boolean;
|
|
@@ -879,10 +892,10 @@ declare function useRoyalty(args: UseRoyaltyArgs): {
|
|
|
879
892
|
isRefetching: boolean;
|
|
880
893
|
isStale: boolean;
|
|
881
894
|
isEnabled: boolean;
|
|
882
|
-
refetch: (options?:
|
|
883
|
-
fetchStatus:
|
|
895
|
+
refetch: (options?: _tanstack_react_query220.RefetchOptions) => Promise<_tanstack_react_query220.QueryObserverResult<readonly [`0x${string}`, bigint], viem12.ReadContractErrorType>>;
|
|
896
|
+
fetchStatus: _tanstack_react_query220.FetchStatus;
|
|
884
897
|
promise: Promise<readonly [`0x${string}`, bigint]>;
|
|
885
|
-
queryKey:
|
|
898
|
+
queryKey: _tanstack_react_query220.QueryKey;
|
|
886
899
|
};
|
|
887
900
|
//#endregion
|
|
888
901
|
//#region src/react/providers/index.d.ts
|
|
@@ -896,12 +909,12 @@ declare function MarketplaceProvider({
|
|
|
896
909
|
config,
|
|
897
910
|
children,
|
|
898
911
|
openConnectModal
|
|
899
|
-
}: MarketplaceSdkProviderProps):
|
|
912
|
+
}: MarketplaceSdkProviderProps): react_jsx_runtime1.JSX.Element;
|
|
900
913
|
declare function MarketplaceQueryClientProvider({
|
|
901
914
|
children
|
|
902
915
|
}: {
|
|
903
916
|
children: React.ReactNode;
|
|
904
|
-
}):
|
|
917
|
+
}): react_jsx_runtime1.JSX.Element;
|
|
905
918
|
//#endregion
|
|
906
919
|
//#region src/react/hooks/data/primary-sales/useListPrimarySaleItems.d.ts
|
|
907
920
|
type UseListPrimarySaleItemsParams = Optional<ListPrimarySaleItemsQueryOptions, 'config'>;
|
|
@@ -943,7 +956,48 @@ type UseListPrimarySaleItemsParams = Optional<ListPrimarySaleItemsQueryOptions,
|
|
|
943
956
|
* })
|
|
944
957
|
* ```
|
|
945
958
|
*/
|
|
946
|
-
declare function useListPrimarySaleItems(params: UseListPrimarySaleItemsParams):
|
|
959
|
+
declare function useListPrimarySaleItems(params: UseListPrimarySaleItemsParams): _tanstack_react_query275.UseInfiniteQueryResult<_tanstack_react_query275.InfiniteData<ListPrimarySaleItemsReturn, unknown>, Error>;
|
|
960
|
+
//#endregion
|
|
961
|
+
//#region src/react/hooks/data/primary-sales/usePrimarySaleItem.d.ts
|
|
962
|
+
type UsePrimarySaleItemParams = Optional<PrimarySaleItemQueryOptions, 'config'>;
|
|
963
|
+
/**
|
|
964
|
+
* Hook to fetch a single primary sale item
|
|
965
|
+
*
|
|
966
|
+
* Retrieves details for a specific primary sale item from a primary sale contract.
|
|
967
|
+
*
|
|
968
|
+
* @param params - Configuration parameters
|
|
969
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
970
|
+
* @param params.primarySaleContractAddress - The primary sale contract address
|
|
971
|
+
* @param params.tokenId - The token ID of the primary sale item
|
|
972
|
+
* @param params.query - Optional React Query configuration
|
|
973
|
+
*
|
|
974
|
+
* @returns Query result containing the primary sale item data
|
|
975
|
+
*
|
|
976
|
+
* @example
|
|
977
|
+
* Basic usage:
|
|
978
|
+
* ```typescript
|
|
979
|
+
* const { data: item, isLoading } = usePrimarySaleItem({
|
|
980
|
+
* chainId: 137,
|
|
981
|
+
* primarySaleContractAddress: '0x...',
|
|
982
|
+
* tokenId: '1',
|
|
983
|
+
* })
|
|
984
|
+
* ```
|
|
985
|
+
*
|
|
986
|
+
* @example
|
|
987
|
+
* With custom query options:
|
|
988
|
+
* ```typescript
|
|
989
|
+
* const { data } = usePrimarySaleItem({
|
|
990
|
+
* chainId: 1,
|
|
991
|
+
* primarySaleContractAddress: '0x...',
|
|
992
|
+
* tokenId: '42',
|
|
993
|
+
* query: {
|
|
994
|
+
* enabled: Boolean(primarySaleContractAddress && tokenId),
|
|
995
|
+
* staleTime: 30_000
|
|
996
|
+
* }
|
|
997
|
+
* })
|
|
998
|
+
* ```
|
|
999
|
+
*/
|
|
1000
|
+
declare function usePrimarySaleItem(params: UsePrimarySaleItemParams): _tanstack_react_query277.UseQueryResult<CollectiblePrimarySaleItem, Error>;
|
|
947
1001
|
//#endregion
|
|
948
|
-
export { MarketplaceProvider, MarketplaceQueryClientProvider, MarketplaceSdkContext$1
|
|
949
|
-
//# sourceMappingURL=index-
|
|
1002
|
+
export { MarketplaceProvider as MarketplaceProvider$1, MarketplaceQueryClientProvider as MarketplaceQueryClientProvider$1, MarketplaceSdkContext$1, MarketplaceSdkProviderProps, UseCheckoutOptionsArgs, UseCheckoutOptionsParams, UseCheckoutOptionsReturn, UseCheckoutOptionsSalesContractArgs, UseCheckoutOptionsSalesContractParams, UseCheckoutOptionsSalesContractReturn, UseComparePricesArgs, UseComparePricesParams, UseComparePricesReturn, UseConvertPriceToUSDArgs, UseConvertPriceToUSDParams, UseConvertPriceToUSDReturn, UseGetCountParams, UseListPrimarySaleItemsParams, UsePrimarySaleItemParams, UseRoyaltyArgs, useAutoSelectFeeOption as useAutoSelectFeeOption$1, useCheckoutOptions as useCheckoutOptions$1, useCheckoutOptionsSalesContract as useCheckoutOptionsSalesContract$1, useComparePrices as useComparePrices$1, useConvertPriceToUSD as useConvertPriceToUSD$1, useCountOfPrimarySaleItems as useCountOfPrimarySaleItems$1, useEnsureCorrectChain as useEnsureCorrectChain$1, useErc721SaleDetails as useErc721SaleDetails$1, useGetCountOfPrimarySaleItems as useGetCountOfPrimarySaleItems$1, useGetReceiptFromHash as useGetReceiptFromHash$1, useInventory as useInventory$1, useList1155ShopCardData as useList1155ShopCardData$1, useList721ShopCardData as useList721ShopCardData$1, useListPrimarySaleItems as useListPrimarySaleItems$1, usePrimarySaleItem as usePrimarySaleItem$1, useRoyalty as useRoyalty$1 };
|
|
1003
|
+
//# sourceMappingURL=index-BYQOPS8e.d.ts.map
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { ListCollectibleActivitiesReturn, ListCollectiblesReturn, Optional } from "./create-config-
|
|
2
|
-
import { CollectibleQueryOptions, CountOfCollectablesQueryOptions, ListCollectibleActivitiesQueryOptions, ListCollectiblesPaginatedQueryOptions, ListCollectiblesQueryOptions, UseBalanceOfCollectibleArgs, fetchListCollectibleActivities, fetchListCollectiblesPaginated } from "./listCollectiblesPaginated-
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
1
|
+
import { ListCollectibleActivitiesReturn, ListCollectiblesReturn, Optional } from "./create-config-CFBeD8CB.js";
|
|
2
|
+
import { CollectibleQueryOptions, CountOfCollectablesQueryOptions, ListCollectibleActivitiesQueryOptions, ListCollectiblesPaginatedQueryOptions, ListCollectiblesQueryOptions, UseBalanceOfCollectibleArgs, fetchListCollectibleActivities$1 as fetchListCollectibleActivities, fetchListCollectiblesPaginated$1 as fetchListCollectiblesPaginated } from "./listCollectiblesPaginated-BlE5mSzh.js";
|
|
3
|
+
import * as _tanstack_react_query266 from "@tanstack/react-query";
|
|
4
|
+
import * as _tanstack_react_query267 from "@tanstack/react-query";
|
|
5
|
+
import * as _tanstack_react_query268 from "@tanstack/react-query";
|
|
6
|
+
import * as _tanstack_react_query269 from "@tanstack/react-query";
|
|
7
|
+
import * as _tanstack_react_query270 from "@tanstack/react-query";
|
|
8
|
+
import * as _tanstack_react_query307 from "@tanstack/react-query";
|
|
9
|
+
import * as _0xsequence_indexer11 from "@0xsequence/indexer";
|
|
10
|
+
import * as _0xsequence_metadata129 from "@0xsequence/metadata";
|
|
6
11
|
|
|
7
12
|
//#region src/react/hooks/data/collectibles/useBalanceOfCollectible.d.ts
|
|
8
13
|
|
|
@@ -26,7 +31,7 @@ import * as _0xsequence_metadata134 from "@0xsequence/metadata";
|
|
|
26
31
|
* });
|
|
27
32
|
* ```
|
|
28
33
|
*/
|
|
29
|
-
declare function useBalanceOfCollectible(args: UseBalanceOfCollectibleArgs):
|
|
34
|
+
declare function useBalanceOfCollectible(args: UseBalanceOfCollectibleArgs): _tanstack_react_query266.UseQueryResult<_0xsequence_indexer11.TokenBalance, Error>;
|
|
30
35
|
//#endregion
|
|
31
36
|
//#region src/react/hooks/data/collectibles/useCollectible.d.ts
|
|
32
37
|
type UseCollectibleParams = Optional<CollectibleQueryOptions, 'config'>;
|
|
@@ -68,7 +73,7 @@ type UseCollectibleParams = Optional<CollectibleQueryOptions, 'config'>;
|
|
|
68
73
|
* })
|
|
69
74
|
* ```
|
|
70
75
|
*/
|
|
71
|
-
declare function useCollectible(params: UseCollectibleParams):
|
|
76
|
+
declare function useCollectible(params: UseCollectibleParams): _tanstack_react_query267.UseQueryResult<_0xsequence_metadata129.TokenMetadata, Error>;
|
|
72
77
|
//#endregion
|
|
73
78
|
//#region src/react/hooks/data/collectibles/useCountOfCollectables.d.ts
|
|
74
79
|
type UseCountOfCollectablesParams = Optional<CountOfCollectablesQueryOptions, 'config'>;
|
|
@@ -108,7 +113,7 @@ type UseCountOfCollectablesParams = Optional<CountOfCollectablesQueryOptions, 'c
|
|
|
108
113
|
* })
|
|
109
114
|
* ```
|
|
110
115
|
*/
|
|
111
|
-
declare function useCountOfCollectables(params: UseCountOfCollectablesParams):
|
|
116
|
+
declare function useCountOfCollectables(params: UseCountOfCollectablesParams): _tanstack_react_query268.UseQueryResult<number, Error>;
|
|
112
117
|
//#endregion
|
|
113
118
|
//#region src/react/hooks/data/collectibles/useListCollectibleActivities.d.ts
|
|
114
119
|
type UseListCollectibleActivitiesParams = Optional<ListCollectibleActivitiesQueryOptions, 'config'>;
|
|
@@ -163,7 +168,7 @@ type UseListCollectibleActivitiesParams = Optional<ListCollectibleActivitiesQuer
|
|
|
163
168
|
* })
|
|
164
169
|
* ```
|
|
165
170
|
*/
|
|
166
|
-
declare function useListCollectibleActivities(params: UseListCollectibleActivitiesParams):
|
|
171
|
+
declare function useListCollectibleActivities(params: UseListCollectibleActivitiesParams): _tanstack_react_query269.UseQueryResult<ListCollectibleActivitiesReturn, Error>;
|
|
167
172
|
type UseListCollectibleActivitiesArgs = UseListCollectibleActivitiesParams;
|
|
168
173
|
type UseListCollectibleActivitiesReturn = Awaited<ReturnType<typeof fetchListCollectibleActivities>>;
|
|
169
174
|
//#endregion
|
|
@@ -173,14 +178,13 @@ type UseListCollectiblesParams = Optional<ListCollectiblesQueryOptions, 'config'
|
|
|
173
178
|
* Hook to fetch a list of collectibles with infinite pagination support
|
|
174
179
|
*
|
|
175
180
|
* Fetches collectibles from the marketplace with support for filtering, pagination,
|
|
176
|
-
* and special handling for shop marketplace types
|
|
181
|
+
* and special handling for shop marketplace types.
|
|
177
182
|
*
|
|
178
183
|
* @param params - Configuration parameters
|
|
179
184
|
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
180
185
|
* @param params.collectionAddress - The collection contract address
|
|
181
186
|
* @param params.side - Order side (listing or bid)
|
|
182
187
|
* @param params.filter - Optional filtering parameters
|
|
183
|
-
* @param params.isLaos721 - Whether the collection is a LAOS721 contract
|
|
184
188
|
* @param params.marketplaceType - Type of marketplace (shop, etc.)
|
|
185
189
|
* @param params.query - Optional React Query configuration
|
|
186
190
|
*
|
|
@@ -210,22 +214,8 @@ type UseListCollectiblesParams = Optional<ListCollectiblesQueryOptions, 'config'
|
|
|
210
214
|
* }
|
|
211
215
|
* })
|
|
212
216
|
* ```
|
|
213
|
-
*
|
|
214
|
-
* @example
|
|
215
|
-
* For LAOS721 collections:
|
|
216
|
-
* ```typescript
|
|
217
|
-
* const { data } = useListCollectibles({
|
|
218
|
-
* chainId: 137,
|
|
219
|
-
* collectionAddress: '0x...',
|
|
220
|
-
* side: OrderSide.listing,
|
|
221
|
-
* isLaos721: true,
|
|
222
|
-
* filter: {
|
|
223
|
-
* inAccounts: ['0x...']
|
|
224
|
-
* }
|
|
225
|
-
* })
|
|
226
|
-
* ```
|
|
227
217
|
*/
|
|
228
|
-
declare function useListCollectibles(params: UseListCollectiblesParams):
|
|
218
|
+
declare function useListCollectibles(params: UseListCollectiblesParams): _tanstack_react_query270.UseInfiniteQueryResult<_tanstack_react_query270.InfiniteData<ListCollectiblesReturn, unknown>, Error>;
|
|
229
219
|
type UseListCollectiblesArgs = UseListCollectiblesParams;
|
|
230
220
|
//#endregion
|
|
231
221
|
//#region src/react/hooks/data/collectibles/useListCollectiblesPaginated.d.ts
|
|
@@ -290,9 +280,9 @@ type UseListCollectiblesPaginatedParams = Optional<ListCollectiblesPaginatedQuer
|
|
|
290
280
|
* const hasMorePages = data?.page?.more;
|
|
291
281
|
* ```
|
|
292
282
|
*/
|
|
293
|
-
declare function useListCollectiblesPaginated(params: UseListCollectiblesPaginatedParams):
|
|
283
|
+
declare function useListCollectiblesPaginated(params: UseListCollectiblesPaginatedParams): _tanstack_react_query307.UseQueryResult<ListCollectiblesReturn, Error>;
|
|
294
284
|
type UseListCollectiblesPaginatedArgs = UseListCollectiblesPaginatedParams;
|
|
295
285
|
type UseListCollectiblesPaginatedReturn = Awaited<ReturnType<typeof fetchListCollectiblesPaginated>>;
|
|
296
286
|
//#endregion
|
|
297
|
-
export { UseCollectibleParams, UseCountOfCollectablesParams, UseListCollectibleActivitiesArgs, UseListCollectibleActivitiesParams, UseListCollectibleActivitiesReturn, UseListCollectiblesArgs, UseListCollectiblesPaginatedArgs, UseListCollectiblesPaginatedParams, UseListCollectiblesPaginatedReturn, UseListCollectiblesParams, useBalanceOfCollectible, useCollectible, useCountOfCollectables, useListCollectibleActivities, useListCollectibles, useListCollectiblesPaginated };
|
|
298
|
-
//# sourceMappingURL=index-
|
|
287
|
+
export { UseCollectibleParams, UseCountOfCollectablesParams, UseListCollectibleActivitiesArgs, UseListCollectibleActivitiesParams, UseListCollectibleActivitiesReturn, UseListCollectiblesArgs, UseListCollectiblesPaginatedArgs, UseListCollectiblesPaginatedParams, UseListCollectiblesPaginatedReturn, UseListCollectiblesParams, useBalanceOfCollectible as useBalanceOfCollectible$1, useCollectible as useCollectible$1, useCountOfCollectables as useCountOfCollectables$1, useListCollectibleActivities as useListCollectibleActivities$1, useListCollectibles as useListCollectibles$1, useListCollectiblesPaginated as useListCollectiblesPaginated$1 };
|
|
288
|
+
//# sourceMappingURL=index-BkZ7SPLc.d.ts.map
|