@0xsequence/marketplace-sdk 1.1.1 → 1.2.1
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 +54 -3
- package/dist/{BellIcon-ByhygxBO.js → BellIcon.js} +4 -4
- package/dist/BellIcon.js.map +1 -0
- package/dist/{CartIcon-Bt3rQYGk.js → CartIcon.js} +7 -7
- package/dist/CartIcon.js.map +1 -0
- package/dist/CollectibleCard.d.ts +8 -0
- package/dist/{_internal-DkS2VUn5.js → _internal.js} +2 -2
- package/dist/_internal.js.map +1 -0
- package/dist/{abi-fa-o9gH3.js → abi.js} +2 -2
- package/dist/abi.js.map +1 -0
- package/dist/{alien_swap-DoY6XfMA.js → alien_swap.js} +1 -1
- package/dist/alien_swap.js.map +1 -0
- package/dist/{api-BoO0V5aJ.js → api.js} +13 -64
- package/dist/api.js.map +1 -0
- package/dist/{aqua-xyz-BBDxnG14.js → aqua-xyz.js} +1 -1
- package/dist/aqua-xyz.js.map +1 -0
- package/dist/{aura-DGx2zwvF.js → aura.js} +1 -1
- package/dist/aura.js.map +1 -0
- package/dist/{blur-D8GKrRrq.js → blur.js} +1 -1
- package/dist/blur.js.map +1 -0
- package/dist/{builder-api-BFuZNOaN.js → builder-api.js} +3 -3
- package/dist/builder-api.js.map +1 -0
- package/dist/{builder.gen-B9wR2nvF.js → builder.gen.js} +3 -6
- package/dist/builder.gen.js.map +1 -0
- package/dist/{coinbase-DOry4PXY.js → coinbase.js} +1 -1
- package/dist/coinbase.js.map +1 -0
- package/dist/{collectibles-C_H8jMGH.js → collectibles.js} +9 -48
- package/dist/collectibles.js.map +1 -0
- package/dist/{collections-CKummc-R.js → collections.js} +79 -8
- package/dist/collections.js.map +1 -0
- package/dist/{components-CosnX7F9.js → components.js} +12 -14
- package/dist/components.js.map +1 -0
- package/dist/{contracts-BP_0vX48.js → contracts.js} +4 -4
- package/dist/contracts.js.map +1 -0
- package/dist/{create-config-ZOB7i4ZJ.d.ts → create-config.d.ts} +47 -60
- package/dist/{create-config-CIfejoCk.js → create-config.js} +10 -13
- package/dist/create-config.js.map +1 -0
- package/dist/{element-ciybd_VF.js → element.js} +1 -1
- package/dist/element.js.map +1 -0
- package/dist/{filters-V-V8Dn8f.d.ts → filters.d.ts} +7 -7
- package/dist/{foundation-Bq4lRz4x.js → foundation.js} +1 -1
- package/dist/foundation.js.map +1 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +16 -16
- package/dist/{index-DUXfvhxs.d.ts → index10.d.ts} +14 -29
- package/dist/{index-CxA34wP1.d.ts → index11.d.ts} +101 -23
- package/dist/{index-BtWMBHeP.d.ts → index12.d.ts} +11 -9
- package/dist/{index-DmudgrsN.d.ts → index13.d.ts} +16 -16
- package/dist/{index-U-zp70of.d.ts → index14.d.ts} +9 -13
- package/dist/{index-Stm5u0I0.d.ts → index16.d.ts} +7 -10
- package/dist/{index-BZIJTQT0.d.ts → index17.d.ts} +9 -9
- package/dist/{index-CnEbXm_t.d.ts → index19.d.ts} +50 -12
- package/dist/{index-C-745li7.d.ts → index2.d.ts} +2 -2
- package/dist/{index-BOiHR01C.d.ts → index21.d.ts} +9 -9
- package/dist/{index-Bsx6XsC2.d.ts → index23.d.ts} +100 -59
- package/dist/{index-CPzvNmq9.d.ts → index24.d.ts} +36 -36
- package/dist/{index-DFEnA6Wa.d.ts → index25.d.ts} +18 -18
- package/dist/{index-DqXd1EeB.d.ts → index26.d.ts} +14 -7
- package/dist/{index-NlPMNcqh.d.ts → index27.d.ts} +102 -114
- package/dist/{index-DWt6yrIG.d.ts → index28.d.ts} +8 -8
- package/dist/{index-C4MUKshG.d.ts → index29.d.ts} +3 -3
- package/dist/{index-BeRV-7AX.d.ts → index3.d.ts} +2 -2
- package/dist/{index-Bxzjy0d1.d.ts → index4.d.ts} +2 -2
- package/dist/{index-DwKr18CI.d.ts → index5.d.ts} +2 -2
- package/dist/{index-D9LPlmbC.d.ts → index6.d.ts} +2 -2
- package/dist/{index-CS65jqOq.d.ts → index7.d.ts} +19 -3
- package/dist/index8.d.ts +18 -0
- package/dist/{index-CxpFwGvR.d.ts → index9.d.ts} +4 -4
- package/dist/{inventory-Dd7TazvZ.js → inventory.js} +11 -15
- package/dist/inventory.js.map +1 -0
- package/dist/{listCollectiblesPaginated-Cy2_qEZA.d.ts → listCollectiblesPaginated.d.ts} +24 -29
- package/dist/{listCollections-BB9FxKj2.d.ts → listCollections.d.ts} +170 -100
- package/dist/{looks-rare-6H--x3AM.js → looks-rare.js} +1 -1
- package/dist/looks-rare.js.map +1 -0
- package/dist/{lowestListing-Cbsi6M1K.d.ts → lowestListing.d.ts} +28 -28
- package/dist/{magic-eden-BoxEQ1Li.js → magic-eden.js} +1 -1
- package/dist/magic-eden.js.map +1 -0
- package/dist/{manifold-DycKsljb.js → manifold.js} +1 -1
- package/dist/manifold.js.map +1 -0
- package/dist/{market-C3HV-awQ.js → market.js} +7 -9
- package/dist/market.js.map +1 -0
- package/dist/{marketCurrencies-Bpw1bIO0.d.ts → marketCurrencies.d.ts} +19 -9
- package/dist/{marketCurrencies-sKrTX0og.js → marketCurrencies.js} +10 -7
- package/dist/marketCurrencies.js.map +1 -0
- package/dist/{marketplace-logos-D4dS1Foy.js → marketplace-logos.js} +23 -23
- package/dist/marketplace-logos.js.map +1 -0
- package/dist/{marketplace.gen-ksUafDqS.js → marketplace.gen.js} +25 -9
- package/dist/marketplace.gen.js.map +1 -0
- package/dist/{marketplace-NQB-sEQL.js → marketplace.js} +2 -2
- package/dist/marketplace.js.map +1 -0
- package/dist/{marketplaceConfig-UHQMM9fq.js → marketplaceConfig.js} +3 -3
- package/dist/marketplaceConfig.js.map +1 -0
- package/dist/{mintify-Dyqyo8jQ.js → mintify.js} +1 -1
- package/dist/mintify.js.map +1 -0
- package/dist/{network-DtmiMhcg.js → network.js} +3 -3
- package/dist/network.js.map +1 -0
- package/dist/{networkconfigToWagmiChain-DbUf6HiO.js → networkconfigToWagmiChain.js} +4 -3
- package/dist/networkconfigToWagmiChain.js.map +1 -0
- package/dist/{nftx-2LbFjj9Q.js → nftx.js} +1 -1
- package/dist/nftx.js.map +1 -0
- package/dist/{okx-CBEWJNsR.js → okx.js} +1 -1
- package/dist/okx.js.map +1 -0
- package/dist/{open-sea-Dxntz_PA.js → open-sea.js} +1 -1
- package/dist/open-sea.js.map +1 -0
- package/dist/{orders-DnFfZAXV.js → orders.js} +10 -10
- package/dist/orders.js.map +1 -0
- package/dist/{primary-sale-1u4QlPdA.js → primary-sale.js} +2 -2
- package/dist/primary-sale.js.map +1 -0
- package/dist/{primary-sales-Dmsi6bqj.js → primary-sales.js} +41 -3
- package/dist/primary-sales.js.map +1 -0
- package/dist/{query-BWbCsXLY.d.ts → query.d.ts} +2 -2
- package/dist/{rarible-CS0SupHr.js → rarible.js} +1 -1
- package/dist/rarible.js.map +1 -0
- package/dist/react/_internal/api/index.d.ts +2 -2
- package/dist/react/_internal/api/index.js +7 -7
- package/dist/react/_internal/databeat/index.d.ts +1 -1
- package/dist/react/_internal/databeat/index.js +37 -38
- package/dist/react/_internal/index.d.ts +2 -2
- package/dist/react/_internal/index.js +11 -11
- package/dist/react/_internal/wagmi/index.d.ts +1 -1
- package/dist/react/_internal/wagmi/index.js +5 -5
- package/dist/react/hooks/config/index.d.ts +8 -8
- package/dist/react/hooks/config/index.js +37 -38
- package/dist/react/hooks/contracts/index.d.ts +6 -6
- package/dist/react/hooks/contracts/index.js +15 -15
- package/dist/react/hooks/data/collectibles/index.d.ts +4 -10
- package/dist/react/hooks/data/collectibles/index.js +37 -38
- package/dist/react/hooks/data/collections/index.d.ts +11 -11
- package/dist/react/hooks/data/collections/index.js +38 -39
- package/dist/react/hooks/data/index.d.ts +37 -37
- package/dist/react/hooks/data/index.js +38 -39
- package/dist/react/hooks/data/inventory/index.d.ts +36 -36
- package/dist/react/hooks/data/inventory/index.js +37 -38
- package/dist/react/hooks/data/market/index.d.ts +5 -11
- package/dist/react/hooks/data/market/index.js +37 -38
- package/dist/react/hooks/data/orders/index.d.ts +4 -10
- package/dist/react/hooks/data/orders/index.js +37 -38
- package/dist/react/hooks/data/primary-sales/index.d.ts +37 -37
- package/dist/react/hooks/data/primary-sales/index.js +38 -39
- package/dist/react/hooks/data/tokens/index.d.ts +4 -4
- package/dist/react/hooks/data/tokens/index.js +37 -38
- package/dist/react/hooks/index.d.ts +37 -37
- package/dist/react/hooks/index.js +38 -39
- package/dist/react/hooks/transactions/index.d.ts +2 -2
- package/dist/react/hooks/transactions/index.js +37 -38
- package/dist/react/hooks/ui/index.d.ts +4 -4
- package/dist/react/hooks/ui/index.js +37 -38
- package/dist/react/hooks/utils/index.d.ts +36 -36
- package/dist/react/hooks/utils/index.js +37 -38
- package/dist/react/index.d.ts +37 -37
- package/dist/react/index.js +38 -39
- package/dist/react/queries/collectibles/index.d.ts +4 -10
- package/dist/react/queries/collectibles/index.js +20 -21
- package/dist/react/queries/collections/index.d.ts +11 -11
- package/dist/react/queries/collections/index.js +19 -19
- package/dist/react/queries/index.d.ts +24 -24
- package/dist/react/queries/index.js +30 -31
- package/dist/react/queries/inventory/index.d.ts +2 -2
- package/dist/react/queries/inventory/index.js +20 -20
- package/dist/react/queries/market/index.d.ts +5 -5
- package/dist/react/queries/market/index.js +20 -20
- package/dist/react/queries/orders/index.d.ts +4 -10
- package/dist/react/queries/orders/index.js +11 -11
- package/dist/react/queries/primary-sales/index.d.ts +4 -4
- package/dist/react/queries/primary-sales/index.js +12 -12
- package/dist/react/queries/tokens/index.d.ts +4 -4
- package/dist/react/queries/tokens/index.js +11 -12
- package/dist/react/queries/utils/index.d.ts +3 -3
- package/dist/react/queries/utils/index.js +20 -20
- package/dist/react/ssr/index.d.ts +7 -7
- package/dist/react/ssr/index.js +13 -16
- 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 +20 -20
- 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 +37 -38
- package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +4 -4
- package/dist/react/ui/components/marketplace-collectible-card/index.js +37 -38
- 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 +11 -11
- 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 +14 -14
- package/dist/react/ui/index.d.ts +4 -4
- package/dist/react/ui/index.js +37 -38
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +37 -38
- package/dist/react/utils/index.d.ts +1 -1
- package/dist/react/utils/index.js +7 -7
- package/dist/{react-DE852KeT.js → react.js} +720 -926
- package/dist/react.js.map +1 -0
- package/dist/{sequence-paCCener.js → sequence.js} +1 -1
- package/dist/sequence.js.map +1 -0
- package/dist/{src-Dz2CfBL0.js → src.js} +2 -2
- package/dist/src.js.map +1 -0
- package/dist/styles/index.css +1 -1
- package/dist/{sudo-swap-9rH2EgfT.js → sudo-swap.js} +1 -1
- package/dist/sudo-swap.js.map +1 -0
- package/dist/{super-rare-DHIuWtRw.js → super-rare.js} +1 -1
- package/dist/super-rare.js.map +1 -0
- package/dist/{token-Cv7l2ZaL.js → token.js} +2 -2
- package/dist/token.js.map +1 -0
- package/dist/{tokenBalances-ibDerNmM.js → tokenBalances.js} +4 -11
- package/dist/tokenBalances.js.map +1 -0
- package/dist/{tokenSupplies-Bfe8RHzI.d.ts → tokenSupplies.d.ts} +19 -30
- package/dist/{tokens-cGxMadd8.js → tokens.js} +47 -22
- package/dist/tokens.js.map +1 -0
- package/dist/{transaction-DZUW5RHu.js → transaction.js} +2 -2
- package/dist/transaction.js.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +3 -3
- package/dist/{types-D2TJ1dwv.d.ts → types.d.ts} +3 -3
- package/dist/{types-B_-cnkcP.js → types.js} +2 -2
- package/dist/types.js.map +1 -0
- package/dist/utils/abi/index.d.ts +4 -4
- package/dist/utils/abi/index.js +4 -4
- package/dist/utils/abi/marketplace/index.d.ts +1 -1
- package/dist/utils/abi/marketplace/index.js +1 -1
- package/dist/utils/abi/primary-sale/index.d.ts +1 -1
- package/dist/utils/abi/primary-sale/index.js +1 -1
- package/dist/utils/abi/token/index.d.ts +1 -1
- package/dist/utils/abi/token/index.js +1 -1
- package/dist/utils/index.d.ts +7 -7
- package/dist/utils/index.js +13 -13
- package/dist/{utils-BfpDVibN.js → utils.js} +42 -4
- package/dist/utils.js.map +1 -0
- package/dist/{utils-BCgNhBFR.js → utils2.js} +11 -5
- package/dist/utils2.js.map +1 -0
- package/dist/{utils-BqxcalL2.js → utils3.js} +3 -3
- package/dist/utils3.js.map +1 -0
- package/dist/{waitForTransactionReceipt-DieAnV52.js → waitForTransactionReceipt.js} +3 -3
- package/dist/waitForTransactionReceipt.js.map +1 -0
- package/dist/{x2y2-45WDooeh.js → x2y2.js} +1 -1
- package/dist/x2y2.js.map +1 -0
- package/dist/{zora-CbeBoLvQ.js → zora.js} +1 -1
- package/dist/zora.js.map +1 -0
- package/package.json +42 -42
- 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/_internal/wagmi/get-connectors.ts +12 -1
- 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__/ERC1155ShopModal.test.tsx +152 -141
- package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +1 -0
- package/src/react/ui/modals/BuyModal/components/ERC1155ShopModal.tsx +44 -60
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC1155SalePaymentParams.test.tsx +381 -0
- package/src/react/ui/modals/BuyModal/hooks/useERC1155SalePaymentParams.ts +257 -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/TransferModal/_views/enterWalletAddress/index.tsx +1 -1
- package/src/react/ui/modals/TransferModal/index.tsx +24 -2
- 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 +2 -2
- 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/tsdown.config.ts +1 -0
- 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/_internal-DkS2VUn5.js.map +0 -1
- package/dist/abi-fa-o9gH3.js.map +0 -1
- package/dist/alien_swap-DoY6XfMA.js.map +0 -1
- package/dist/api-BoO0V5aJ.js.map +0 -1
- package/dist/aqua-xyz-BBDxnG14.js.map +0 -1
- package/dist/aura-DGx2zwvF.js.map +0 -1
- package/dist/blur-D8GKrRrq.js.map +0 -1
- package/dist/builder-api-BFuZNOaN.js.map +0 -1
- package/dist/builder.gen-B9wR2nvF.js.map +0 -1
- package/dist/coinbase-DOry4PXY.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/contracts-BP_0vX48.js.map +0 -1
- package/dist/create-config-CIfejoCk.js.map +0 -1
- package/dist/element-ciybd_VF.js.map +0 -1
- package/dist/foundation-Bq4lRz4x.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/looks-rare-6H--x3AM.js.map +0 -1
- package/dist/magic-eden-BoxEQ1Li.js.map +0 -1
- package/dist/manifold-DycKsljb.js.map +0 -1
- package/dist/market-C3HV-awQ.js.map +0 -1
- package/dist/marketCurrencies-sKrTX0og.js.map +0 -1
- package/dist/marketplace-NQB-sEQL.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/mintify-Dyqyo8jQ.js.map +0 -1
- package/dist/network-DtmiMhcg.js.map +0 -1
- package/dist/networkconfigToWagmiChain-DbUf6HiO.js.map +0 -1
- package/dist/nftx-2LbFjj9Q.js.map +0 -1
- package/dist/okx-CBEWJNsR.js.map +0 -1
- package/dist/open-sea-Dxntz_PA.js.map +0 -1
- package/dist/orders-DnFfZAXV.js.map +0 -1
- package/dist/primary-sale-1u4QlPdA.js.map +0 -1
- package/dist/primary-sales-Dmsi6bqj.js.map +0 -1
- package/dist/rarible-CS0SupHr.js.map +0 -1
- package/dist/react-DE852KeT.js.map +0 -1
- package/dist/sequence-paCCener.js.map +0 -1
- package/dist/src-Dz2CfBL0.js.map +0 -1
- package/dist/sudo-swap-9rH2EgfT.js.map +0 -1
- package/dist/super-rare-DHIuWtRw.js.map +0 -1
- package/dist/token-Cv7l2ZaL.js.map +0 -1
- package/dist/tokenBalances-ibDerNmM.js.map +0 -1
- package/dist/tokens-cGxMadd8.js.map +0 -1
- package/dist/transaction-DZUW5RHu.js.map +0 -1
- package/dist/types-B_-cnkcP.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/dist/waitForTransactionReceipt-DieAnV52.js.map +0 -1
- package/dist/x2y2-45WDooeh.js.map +0 -1
- package/dist/zora-CbeBoLvQ.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/BuyModal/hooks/__tests__/useERC1155Checkout.test.tsx +0 -395
- package/src/react/ui/modals/BuyModal/hooks/useERC1155Checkout.ts +0 -103
- package/src/react/ui/modals/_internal/constants/opensea-currencies.ts +0 -481
- /package/dist/{index-6wsMChsg.d.ts → index15.d.ts} +0 -0
- /package/dist/{index-CZUtOTjh.d.ts → index18.d.ts} +0 -0
- /package/dist/{index-DW3njUfb.d.ts → index20.d.ts} +0 -0
- /package/dist/{index-DewGsFz5.d.ts → index22.d.ts} +0 -0
- /package/dist/{queries-KOcILNJO.js → queries.js} +0 -0
- /package/dist/{wagmi-Bseovd6Q.js → wagmi.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FilterCondition } from "./builder.gen
|
|
3
|
-
import { BuilderAPI } from "./builder-api
|
|
4
|
-
import { networkToWagmiChain } from "./networkconfigToWagmiChain
|
|
5
|
-
import "./transaction
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { CollectibleCardAction } from "./types
|
|
10
|
-
import { MAIN_MODULE_ABI } from "./abi
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import "./marketplace-logos
|
|
1
|
+
import { n as SEQUENCE_MARKET_V1_ADDRESS, r as SEQUENCE_MARKET_V2_ADDRESS, t as DEFAULT_MARKETPLACE_FEE_PERCENTAGE } from "./src.js";
|
|
2
|
+
import { t as FilterCondition } from "./builder.gen.js";
|
|
3
|
+
import { t as BuilderAPI } from "./builder-api.js";
|
|
4
|
+
import { t as networkToWagmiChain } from "./networkconfigToWagmiChain.js";
|
|
5
|
+
import "./transaction.js";
|
|
6
|
+
import { n as getWagmiChainsAndTransports, t as createWagmiConfig } from "./create-config.js";
|
|
7
|
+
import { A as PropertyType, I as TransactionCrypto, M as SortOrder, N as SourceKind, P as StepType, S as OrderbookKind, U as WalletKind, b as OrderSide, i as CollectibleStatus, k as ProjectStatus, m as MarketplaceKind, o as CollectionStatus, s as ContractType, x as OrderStatus } from "./marketplace.gen.js";
|
|
8
|
+
import { n as getPresentableChainName, t as getNetwork } from "./network.js";
|
|
9
|
+
import { t as CollectibleCardAction } from "./types.js";
|
|
10
|
+
import { t as MAIN_MODULE_ABI } from "./abi.js";
|
|
11
|
+
import { n as SequenceMarketplaceV1_ABI, r as EIP2981_ABI, t as SequenceMarketplaceV2_ABI } from "./marketplace.js";
|
|
12
|
+
import { i as ERC721_SALE_ABI_V0, n as ERC1155_SALES_CONTRACT_ABI_V0, r as ERC721_SALE_ABI_V1, t as ERC1155_SALES_CONTRACT_ABI_V1 } from "./primary-sale.js";
|
|
13
|
+
import { i as ERC20_ABI, n as ERC1155_ABI, r as ERC721_ABI, t as SEQUENCE_1155_ITEMS_ABI } from "./token.js";
|
|
14
|
+
import { a as formatPriceWithFee, c as cn, d as truncateMiddle, i as formatPrice, l as compareAddress, n as calculatePriceDifferencePercentage, o as validateOpenseaOfferDecimals, r as calculateTotalOfferCost, s as getMarketplaceDetails, t as calculateEarningsAfterFees, u as truncateEnd } from "./utils.js";
|
|
15
|
+
import "./marketplace-logos.js";
|
|
16
16
|
|
|
17
|
-
export { BuilderAPI, CollectibleCardAction, CollectibleStatus, CollectionStatus, ContractType, DEFAULT_MARKETPLACE_FEE_PERCENTAGE, EIP2981_ABI, ERC1155_ABI, ERC1155_SALES_CONTRACT_ABI_V0, ERC1155_SALES_CONTRACT_ABI_V1, ERC20_ABI, ERC721_ABI, ERC721_SALE_ABI_V0, ERC721_SALE_ABI_V1, FilterCondition, MAIN_MODULE_ABI, MarketplaceKind, OrderSide, OrderStatus, OrderbookKind, ProjectStatus, PropertyType, SEQUENCE_1155_ITEMS_ABI, SEQUENCE_MARKET_V1_ADDRESS, SEQUENCE_MARKET_V2_ADDRESS, SequenceMarketplaceV1_ABI, SequenceMarketplaceV2_ABI, SortOrder, SourceKind, StepType, TransactionCrypto, WalletKind, calculateEarningsAfterFees, calculatePriceDifferencePercentage, cn, compareAddress, createWagmiConfig, formatPrice, formatPriceWithFee, getMarketplaceDetails, getNetwork, getPresentableChainName, getWagmiChainsAndTransports, networkToWagmiChain, truncateEnd, truncateMiddle };
|
|
17
|
+
export { BuilderAPI, CollectibleCardAction, CollectibleStatus, CollectionStatus, ContractType, DEFAULT_MARKETPLACE_FEE_PERCENTAGE, EIP2981_ABI, ERC1155_ABI, ERC1155_SALES_CONTRACT_ABI_V0, ERC1155_SALES_CONTRACT_ABI_V1, ERC20_ABI, ERC721_ABI, ERC721_SALE_ABI_V0, ERC721_SALE_ABI_V1, FilterCondition, MAIN_MODULE_ABI, MarketplaceKind, OrderSide, OrderStatus, OrderbookKind, ProjectStatus, PropertyType, SEQUENCE_1155_ITEMS_ABI, SEQUENCE_MARKET_V1_ADDRESS, SEQUENCE_MARKET_V2_ADDRESS, SequenceMarketplaceV1_ABI, SequenceMarketplaceV2_ABI, SortOrder, SourceKind, StepType, TransactionCrypto, WalletKind, calculateEarningsAfterFees, calculatePriceDifferencePercentage, calculateTotalOfferCost, cn, compareAddress, createWagmiConfig, formatPrice, formatPriceWithFee, getMarketplaceDetails, getNetwork, getPresentableChainName, getWagmiChainsAndTransports, networkToWagmiChain, truncateEnd, truncateMiddle, validateOpenseaOfferDecimals };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
1
|
+
import { Cr as ListCollectiblesReturn, _r as ListCollectibleActivitiesReturn, w as Optional } from "./create-config.js";
|
|
2
|
+
import { E as UseBalanceOfCollectibleArgs, f as ListCollectibleActivitiesQueryOptions, g as CountOfCollectablesQueryOptions, n as ListCollectiblesPaginatedQueryOptions, p as fetchListCollectibleActivities, r as fetchListCollectiblesPaginated, s as ListCollectiblesQueryOptions, x as CollectibleQueryOptions } from "./listCollectiblesPaginated.js";
|
|
3
|
+
import * as _tanstack_react_query146 from "@tanstack/react-query";
|
|
4
|
+
import * as _0xsequence_indexer13 from "@0xsequence/indexer";
|
|
5
|
+
import * as _0xsequence_metadata58 from "@0xsequence/metadata";
|
|
6
6
|
|
|
7
7
|
//#region src/react/hooks/data/collectibles/useBalanceOfCollectible.d.ts
|
|
8
8
|
|
|
@@ -26,7 +26,7 @@ import * as _0xsequence_metadata134 from "@0xsequence/metadata";
|
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
declare function useBalanceOfCollectible(args: UseBalanceOfCollectibleArgs):
|
|
29
|
+
declare function useBalanceOfCollectible(args: UseBalanceOfCollectibleArgs): _tanstack_react_query146.UseQueryResult<_0xsequence_indexer13.TokenBalance, Error>;
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/react/hooks/data/collectibles/useCollectible.d.ts
|
|
32
32
|
type UseCollectibleParams = Optional<CollectibleQueryOptions, 'config'>;
|
|
@@ -68,7 +68,7 @@ type UseCollectibleParams = Optional<CollectibleQueryOptions, 'config'>;
|
|
|
68
68
|
* })
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
|
-
declare function useCollectible(params: UseCollectibleParams):
|
|
71
|
+
declare function useCollectible(params: UseCollectibleParams): _tanstack_react_query146.UseQueryResult<_0xsequence_metadata58.TokenMetadata, Error>;
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region src/react/hooks/data/collectibles/useCountOfCollectables.d.ts
|
|
74
74
|
type UseCountOfCollectablesParams = Optional<CountOfCollectablesQueryOptions, 'config'>;
|
|
@@ -108,7 +108,7 @@ type UseCountOfCollectablesParams = Optional<CountOfCollectablesQueryOptions, 'c
|
|
|
108
108
|
* })
|
|
109
109
|
* ```
|
|
110
110
|
*/
|
|
111
|
-
declare function useCountOfCollectables(params: UseCountOfCollectablesParams):
|
|
111
|
+
declare function useCountOfCollectables(params: UseCountOfCollectablesParams): _tanstack_react_query146.UseQueryResult<number, Error>;
|
|
112
112
|
//#endregion
|
|
113
113
|
//#region src/react/hooks/data/collectibles/useListCollectibleActivities.d.ts
|
|
114
114
|
type UseListCollectibleActivitiesParams = Optional<ListCollectibleActivitiesQueryOptions, 'config'>;
|
|
@@ -163,7 +163,7 @@ type UseListCollectibleActivitiesParams = Optional<ListCollectibleActivitiesQuer
|
|
|
163
163
|
* })
|
|
164
164
|
* ```
|
|
165
165
|
*/
|
|
166
|
-
declare function useListCollectibleActivities(params: UseListCollectibleActivitiesParams):
|
|
166
|
+
declare function useListCollectibleActivities(params: UseListCollectibleActivitiesParams): _tanstack_react_query146.UseQueryResult<ListCollectibleActivitiesReturn, Error>;
|
|
167
167
|
type UseListCollectibleActivitiesArgs = UseListCollectibleActivitiesParams;
|
|
168
168
|
type UseListCollectibleActivitiesReturn = Awaited<ReturnType<typeof fetchListCollectibleActivities>>;
|
|
169
169
|
//#endregion
|
|
@@ -173,14 +173,13 @@ type UseListCollectiblesParams = Optional<ListCollectiblesQueryOptions, 'config'
|
|
|
173
173
|
* Hook to fetch a list of collectibles with infinite pagination support
|
|
174
174
|
*
|
|
175
175
|
* Fetches collectibles from the marketplace with support for filtering, pagination,
|
|
176
|
-
* and special handling for shop marketplace types
|
|
176
|
+
* and special handling for shop marketplace types.
|
|
177
177
|
*
|
|
178
178
|
* @param params - Configuration parameters
|
|
179
179
|
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
180
180
|
* @param params.collectionAddress - The collection contract address
|
|
181
181
|
* @param params.side - Order side (listing or bid)
|
|
182
182
|
* @param params.filter - Optional filtering parameters
|
|
183
|
-
* @param params.isLaos721 - Whether the collection is a LAOS721 contract
|
|
184
183
|
* @param params.marketplaceType - Type of marketplace (shop, etc.)
|
|
185
184
|
* @param params.query - Optional React Query configuration
|
|
186
185
|
*
|
|
@@ -210,22 +209,8 @@ type UseListCollectiblesParams = Optional<ListCollectiblesQueryOptions, 'config'
|
|
|
210
209
|
* }
|
|
211
210
|
* })
|
|
212
211
|
* ```
|
|
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
212
|
*/
|
|
228
|
-
declare function useListCollectibles(params: UseListCollectiblesParams):
|
|
213
|
+
declare function useListCollectibles(params: UseListCollectiblesParams): _tanstack_react_query146.UseInfiniteQueryResult<_tanstack_react_query146.InfiniteData<ListCollectiblesReturn, unknown>, Error>;
|
|
229
214
|
type UseListCollectiblesArgs = UseListCollectiblesParams;
|
|
230
215
|
//#endregion
|
|
231
216
|
//#region src/react/hooks/data/collectibles/useListCollectiblesPaginated.d.ts
|
|
@@ -290,9 +275,9 @@ type UseListCollectiblesPaginatedParams = Optional<ListCollectiblesPaginatedQuer
|
|
|
290
275
|
* const hasMorePages = data?.page?.more;
|
|
291
276
|
* ```
|
|
292
277
|
*/
|
|
293
|
-
declare function useListCollectiblesPaginated(params: UseListCollectiblesPaginatedParams):
|
|
278
|
+
declare function useListCollectiblesPaginated(params: UseListCollectiblesPaginatedParams): _tanstack_react_query146.UseQueryResult<ListCollectiblesReturn, Error>;
|
|
294
279
|
type UseListCollectiblesPaginatedArgs = UseListCollectiblesPaginatedParams;
|
|
295
280
|
type UseListCollectiblesPaginatedReturn = Awaited<ReturnType<typeof fetchListCollectiblesPaginated>>;
|
|
296
281
|
//#endregion
|
|
297
|
-
export {
|
|
298
|
-
//# sourceMappingURL=
|
|
282
|
+
export { UseListCollectiblesArgs as a, UseListCollectibleActivitiesArgs as c, useListCollectibleActivities as d, UseCountOfCollectablesParams as f, useBalanceOfCollectible as g, useCollectible as h, useListCollectiblesPaginated as i, UseListCollectibleActivitiesParams as l, UseCollectibleParams as m, UseListCollectiblesPaginatedParams as n, UseListCollectiblesParams as o, useCountOfCollectables as p, UseListCollectiblesPaginatedReturn as r, useListCollectibles as s, UseListCollectiblesPaginatedArgs as t, UseListCollectibleActivitiesReturn as u };
|
|
283
|
+
//# sourceMappingURL=index10.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CardType, Collection, CollectionFilterSettings,
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
1
|
+
import { G as SdkConfig, K as CardType, Lt as ContractType, Mt as Collection, a as CollectionFilterSettings, ii as OrderbookKind, kr as ListCollectionActivitiesReturn, qt as Currency, w as Optional } from "./create-config.js";
|
|
2
|
+
import { C as CollectionActiveOffersCurrenciesQueryOptions, N as CollectionQueryOptions, O as CollectionActiveListingsCurrenciesQueryOptions, _ as CollectionBalanceDetailsQueryOptions, c as ListCollectionActivitiesQueryOptions, f as CollectionDetailsQueryOptions, l as fetchListCollectionActivities, n as ListCollectionsQueryOptions, v as CollectionBalanceFilter, x as fetchCollectionBalanceDetails } from "./listCollections.js";
|
|
3
|
+
import * as _tanstack_react_query79 from "@tanstack/react-query";
|
|
4
|
+
import * as _0xsequence_indexer11 from "@0xsequence/indexer";
|
|
5
|
+
import * as _0xsequence_metadata4 from "@0xsequence/metadata";
|
|
6
|
+
import * as viem0 from "viem";
|
|
7
7
|
|
|
8
8
|
//#region src/react/hooks/data/collections/useCollection.d.ts
|
|
9
9
|
type UseCollectionParams = Optional<CollectionQueryOptions, 'config'>;
|
|
@@ -42,7 +42,85 @@ type UseCollectionParams = Optional<CollectionQueryOptions, 'config'>;
|
|
|
42
42
|
* })
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
|
-
declare function useCollection(params: UseCollectionParams):
|
|
45
|
+
declare function useCollection(params: UseCollectionParams): _tanstack_react_query79.UseQueryResult<_0xsequence_metadata4.ContractInfo, Error>;
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/react/hooks/data/collections/useCollectionActiveListingsCurrencies.d.ts
|
|
48
|
+
type UseCollectionActiveListingsCurrenciesParams = Optional<CollectionActiveListingsCurrenciesQueryOptions, 'config'>;
|
|
49
|
+
/**
|
|
50
|
+
* Hook to fetch the active listings currencies for a collection
|
|
51
|
+
*
|
|
52
|
+
* Retrieves all currencies that are currently being used in active listings
|
|
53
|
+
* for a specific collection from the marketplace.
|
|
54
|
+
*
|
|
55
|
+
* @param params - Configuration parameters
|
|
56
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
57
|
+
* @param params.collectionAddress - The collection contract address
|
|
58
|
+
* @param params.query - Optional React Query configuration
|
|
59
|
+
*
|
|
60
|
+
* @returns Query result containing the array of currencies used in active listings
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* Basic usage:
|
|
64
|
+
* ```typescript
|
|
65
|
+
* const { data, isLoading } = useCollectionActiveListingsCurrencies({
|
|
66
|
+
* chainId: 137,
|
|
67
|
+
* collectionAddress: '0x...'
|
|
68
|
+
* })
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* With custom query options:
|
|
73
|
+
* ```typescript
|
|
74
|
+
* const { data, isLoading } = useCollectionActiveListingsCurrencies({
|
|
75
|
+
* chainId: 1,
|
|
76
|
+
* collectionAddress: '0x...',
|
|
77
|
+
* query: {
|
|
78
|
+
* refetchInterval: 30000,
|
|
79
|
+
* enabled: hasCollectionAddress
|
|
80
|
+
* }
|
|
81
|
+
* })
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
declare function useCollectionActiveListingsCurrencies(params: UseCollectionActiveListingsCurrenciesParams): _tanstack_react_query79.UseQueryResult<Currency[], Error>;
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/react/hooks/data/collections/useCollectionActiveOffersCurrencies.d.ts
|
|
87
|
+
type UseCollectionActiveOffersCurrenciesParams = Optional<CollectionActiveOffersCurrenciesQueryOptions, 'config'>;
|
|
88
|
+
/**
|
|
89
|
+
* Hook to fetch the active offers currencies for a collection
|
|
90
|
+
*
|
|
91
|
+
* Retrieves all currencies that are currently being used in active offers
|
|
92
|
+
* for a specific collection from the marketplace.
|
|
93
|
+
*
|
|
94
|
+
* @param params - Configuration parameters
|
|
95
|
+
* @param params.chainId - The chain ID (must be number, e.g., 1 for Ethereum, 137 for Polygon)
|
|
96
|
+
* @param params.collectionAddress - The collection contract address
|
|
97
|
+
* @param params.query - Optional React Query configuration
|
|
98
|
+
*
|
|
99
|
+
* @returns Query result containing the array of currencies used in active offers
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* Basic usage:
|
|
103
|
+
* ```typescript
|
|
104
|
+
* const { data, isLoading } = useCollectionActiveOffersCurrencies({
|
|
105
|
+
* chainId: 137,
|
|
106
|
+
* collectionAddress: '0x...'
|
|
107
|
+
* })
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* With custom query options:
|
|
112
|
+
* ```typescript
|
|
113
|
+
* const { data, isLoading } = useCollectionActiveOffersCurrencies({
|
|
114
|
+
* chainId: 1,
|
|
115
|
+
* collectionAddress: '0x...',
|
|
116
|
+
* query: {
|
|
117
|
+
* refetchInterval: 30000,
|
|
118
|
+
* enabled: hasCollectionAddress
|
|
119
|
+
* }
|
|
120
|
+
* })
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
declare function useCollectionActiveOffersCurrencies(params: UseCollectionActiveOffersCurrenciesParams): _tanstack_react_query79.UseQueryResult<Currency[], Error>;
|
|
46
124
|
//#endregion
|
|
47
125
|
//#region src/react/hooks/data/collections/useCollectionBalanceDetails.d.ts
|
|
48
126
|
type UseCollectionBalanceDetailsParams = Optional<CollectionBalanceDetailsQueryOptions, 'config'>;
|
|
@@ -97,7 +175,7 @@ type UseCollectionBalanceDetailsParams = Optional<CollectionBalanceDetailsQueryO
|
|
|
97
175
|
* })
|
|
98
176
|
* ```
|
|
99
177
|
*/
|
|
100
|
-
declare function useCollectionBalanceDetails(params: UseCollectionBalanceDetailsParams):
|
|
178
|
+
declare function useCollectionBalanceDetails(params: UseCollectionBalanceDetailsParams): _tanstack_react_query79.UseQueryResult<_0xsequence_indexer11.GetTokenBalancesDetailsReturn, Error>;
|
|
101
179
|
type UseCollectionBalanceDetailsArgs = {
|
|
102
180
|
chainId: number;
|
|
103
181
|
filter: CollectionBalanceFilter;
|
|
@@ -144,7 +222,7 @@ type UseCollectionDetailsParams = Optional<CollectionDetailsQueryOptions, 'confi
|
|
|
144
222
|
* })
|
|
145
223
|
* ```
|
|
146
224
|
*/
|
|
147
|
-
declare function useCollectionDetails(params: UseCollectionDetailsParams):
|
|
225
|
+
declare function useCollectionDetails(params: UseCollectionDetailsParams): _tanstack_react_query79.UseQueryResult<Collection, Error>;
|
|
148
226
|
//#endregion
|
|
149
227
|
//#region src/react/hooks/data/collections/useCollectionDetailsPolling.d.ts
|
|
150
228
|
type UseCollectionDetailsPolling = {
|
|
@@ -154,11 +232,11 @@ type UseCollectionDetailsPolling = {
|
|
|
154
232
|
enabled?: boolean;
|
|
155
233
|
};
|
|
156
234
|
};
|
|
157
|
-
declare const collectionDetailsPollingOptions: (args: UseCollectionDetailsPolling, config: SdkConfig) =>
|
|
235
|
+
declare const collectionDetailsPollingOptions: (args: UseCollectionDetailsPolling, config: SdkConfig) => _tanstack_react_query79.OmitKeyof<_tanstack_react_query79.UseQueryOptions<Collection, Error, Collection, readonly ["collections", "detail", {
|
|
158
236
|
chainId: string;
|
|
159
237
|
contractAddress: string | undefined;
|
|
160
238
|
}]>, "queryFn"> & {
|
|
161
|
-
queryFn?:
|
|
239
|
+
queryFn?: _tanstack_react_query79.QueryFunction<Collection, readonly ["collections", "detail", {
|
|
162
240
|
chainId: string;
|
|
163
241
|
contractAddress: string | undefined;
|
|
164
242
|
}], never> | undefined;
|
|
@@ -171,7 +249,7 @@ declare const collectionDetailsPollingOptions: (args: UseCollectionDetailsPollin
|
|
|
171
249
|
[dataTagErrorSymbol]: Error;
|
|
172
250
|
};
|
|
173
251
|
};
|
|
174
|
-
declare const useCollectionDetailsPolling: (args: UseCollectionDetailsPolling) =>
|
|
252
|
+
declare const useCollectionDetailsPolling: (args: UseCollectionDetailsPolling) => _tanstack_react_query79.UseQueryResult<Collection, Error>;
|
|
175
253
|
//#endregion
|
|
176
254
|
//#region src/react/hooks/data/collections/useListCollectionActivities.d.ts
|
|
177
255
|
type UseListCollectionActivitiesParams = Optional<ListCollectionActivitiesQueryOptions, 'config'>;
|
|
@@ -222,7 +300,7 @@ type UseListCollectionActivitiesParams = Optional<ListCollectionActivitiesQueryO
|
|
|
222
300
|
* })
|
|
223
301
|
* ```
|
|
224
302
|
*/
|
|
225
|
-
declare function useListCollectionActivities(params: UseListCollectionActivitiesParams):
|
|
303
|
+
declare function useListCollectionActivities(params: UseListCollectionActivitiesParams): _tanstack_react_query79.UseQueryResult<ListCollectionActivitiesReturn, Error>;
|
|
226
304
|
type UseListCollectionActivitiesArgs = UseListCollectionActivitiesParams;
|
|
227
305
|
type UseListCollectionActivitiesReturn = Awaited<ReturnType<typeof fetchListCollectionActivities>>;
|
|
228
306
|
//#endregion
|
|
@@ -267,7 +345,7 @@ type UseListCollectionsParams = Optional<ListCollectionsQueryOptions, 'config' |
|
|
|
267
345
|
* });
|
|
268
346
|
* ```
|
|
269
347
|
*/
|
|
270
|
-
declare function useListCollections(params?: UseListCollectionsParams):
|
|
348
|
+
declare function useListCollections(params?: UseListCollectionsParams): _tanstack_react_query79.UseQueryResult<({
|
|
271
349
|
chainId: number;
|
|
272
350
|
address: string;
|
|
273
351
|
source: string;
|
|
@@ -278,17 +356,17 @@ declare function useListCollections(params?: UseListCollectionsParams): _tanstac
|
|
|
278
356
|
logoURI: string;
|
|
279
357
|
deployed: boolean;
|
|
280
358
|
bytecodeHash: string;
|
|
281
|
-
extensions:
|
|
359
|
+
extensions: _0xsequence_metadata4.ContractInfoExtensions;
|
|
282
360
|
updatedAt: string;
|
|
283
361
|
queuedAt?: string;
|
|
284
|
-
status:
|
|
362
|
+
status: _0xsequence_metadata4.ResourceStatus;
|
|
285
363
|
cardType: CardType;
|
|
286
364
|
contractType: ContractType;
|
|
287
365
|
feePercentage: number;
|
|
288
366
|
destinationMarketplace: OrderbookKind;
|
|
289
367
|
currencyOptions: Array<string>;
|
|
290
368
|
bannerUrl: string;
|
|
291
|
-
itemsAddress:
|
|
369
|
+
itemsAddress: viem0.Address;
|
|
292
370
|
filterSettings?: CollectionFilterSettings;
|
|
293
371
|
sortOrder?: number;
|
|
294
372
|
private: boolean;
|
|
@@ -303,18 +381,18 @@ declare function useListCollections(params?: UseListCollectionsParams): _tanstac
|
|
|
303
381
|
logoURI: string;
|
|
304
382
|
deployed: boolean;
|
|
305
383
|
bytecodeHash: string;
|
|
306
|
-
extensions:
|
|
384
|
+
extensions: _0xsequence_metadata4.ContractInfoExtensions;
|
|
307
385
|
updatedAt: string;
|
|
308
386
|
queuedAt?: string;
|
|
309
|
-
status:
|
|
387
|
+
status: _0xsequence_metadata4.ResourceStatus;
|
|
310
388
|
cardType: CardType;
|
|
311
|
-
saleAddress:
|
|
389
|
+
saleAddress: viem0.Address;
|
|
312
390
|
bannerUrl: string;
|
|
313
|
-
itemsAddress:
|
|
391
|
+
itemsAddress: viem0.Address;
|
|
314
392
|
filterSettings?: CollectionFilterSettings;
|
|
315
393
|
sortOrder?: number;
|
|
316
394
|
private: boolean;
|
|
317
395
|
})[], Error>;
|
|
318
396
|
//#endregion
|
|
319
|
-
export { UseCollectionBalanceDetailsArgs, UseCollectionBalanceDetailsParams,
|
|
320
|
-
//# sourceMappingURL=
|
|
397
|
+
export { UseCollectionActiveListingsCurrenciesParams as _, UseListCollectionActivitiesReturn as a, useCollection as b, useCollectionDetailsPolling as c, UseCollectionBalanceDetailsArgs as d, UseCollectionBalanceDetailsParams as f, useCollectionActiveOffersCurrencies as g, UseCollectionActiveOffersCurrenciesParams as h, UseListCollectionActivitiesParams as i, UseCollectionDetailsParams as l, useCollectionBalanceDetails as m, useListCollections as n, useListCollectionActivities as o, UseCollectionBalanceDetailsReturn as p, UseListCollectionActivitiesArgs as r, collectionDetailsPollingOptions as s, UseListCollectionsParams as t, useCollectionDetails as u, useCollectionActiveListingsCurrencies as v, UseCollectionParams as y };
|
|
398
|
+
//# sourceMappingURL=index11.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { MarketCollectibleCardProps } from "./types
|
|
4
|
-
import * as
|
|
1
|
+
import { Cr as ListCollectiblesReturn, Dt as CollectibleOrder, Jt as CurrencyStatus, Lt as ContractType, bi as PropertyFilter, ii as OrderbookKind, li as PriceFilter, q as CollectibleCardAction, qt as Currency, w as Optional } from "./create-config.js";
|
|
2
|
+
import { n as MarketCurrenciesQueryOptions, o as CurrencyQueryOptions } from "./marketCurrencies.js";
|
|
3
|
+
import { r as MarketCollectibleCardProps } from "./types.js";
|
|
4
|
+
import * as _tanstack_react_query159 from "@tanstack/react-query";
|
|
5
5
|
import { Address } from "viem";
|
|
6
6
|
|
|
7
7
|
//#region src/react/hooks/data/market/useCurrency.d.ts
|
|
@@ -40,7 +40,7 @@ type UseCurrencyParams = Optional<CurrencyQueryOptions, 'config'>;
|
|
|
40
40
|
* })
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
|
-
declare function useCurrency(params: UseCurrencyParams):
|
|
43
|
+
declare function useCurrency(params: UseCurrencyParams): _tanstack_react_query159.UseQueryResult<Currency | undefined, Error>;
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/react/hooks/data/market/useListMarketCardData.d.ts
|
|
46
46
|
interface UseListMarketCardDataProps {
|
|
@@ -78,7 +78,7 @@ declare function useListMarketCardData({
|
|
|
78
78
|
error: Error | null;
|
|
79
79
|
hasNextPage: boolean;
|
|
80
80
|
isFetchingNextPage: boolean;
|
|
81
|
-
fetchNextPage: (options?:
|
|
81
|
+
fetchNextPage: (options?: _tanstack_react_query159.FetchNextPageOptions) => Promise<_tanstack_react_query159.InfiniteQueryObserverResult<_tanstack_react_query159.InfiniteData<ListCollectiblesReturn, unknown>, Error>>;
|
|
82
82
|
allCollectibles: CollectibleOrder[];
|
|
83
83
|
};
|
|
84
84
|
//#endregion
|
|
@@ -115,7 +115,7 @@ type UseMarketCurrenciesParams = Optional<MarketCurrenciesQueryOptions, 'config'
|
|
|
115
115
|
* })
|
|
116
116
|
* ```
|
|
117
117
|
*/
|
|
118
|
-
declare function useMarketCurrencies(params: UseMarketCurrenciesParams):
|
|
118
|
+
declare function useMarketCurrencies(params: UseMarketCurrenciesParams): _tanstack_react_query159.UseQueryResult<{
|
|
119
119
|
contractAddress: string;
|
|
120
120
|
chainId: number;
|
|
121
121
|
status: CurrencyStatus;
|
|
@@ -126,10 +126,12 @@ declare function useMarketCurrencies(params: UseMarketCurrenciesParams): _tansta
|
|
|
126
126
|
exchangeRate: number;
|
|
127
127
|
defaultChainCurrency: boolean;
|
|
128
128
|
nativeCurrency: boolean;
|
|
129
|
+
openseaListing: boolean;
|
|
130
|
+
openseaOffer: boolean;
|
|
129
131
|
createdAt: string;
|
|
130
132
|
updatedAt: string;
|
|
131
133
|
deletedAt?: string;
|
|
132
134
|
}[], Error>;
|
|
133
135
|
//#endregion
|
|
134
|
-
export {
|
|
135
|
-
//# sourceMappingURL=
|
|
136
|
+
export { useCurrency as a, UseCurrencyParams as i, useMarketCurrencies as n, useListMarketCardData as r, UseMarketCurrenciesParams as t };
|
|
137
|
+
//# sourceMappingURL=index12.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
1
|
+
import { $r as Order, Dt as CollectibleOrder, Ur as ListOrdersWithCollectiblesReturn, w as Optional, xr as ListCollectibleOffersReturn, yr as ListCollectibleListingsReturn } from "./create-config.js";
|
|
2
|
+
import { B as CountOffersForCollectibleQueryOptions, E as HighestOfferQueryOptions, G as CountListingsForCollectibleQueryOptions, I as FloorOrderQueryOptions, S as fetchListItemsOrdersForCollection, X as CountItemsOrdersForCollectionQueryOptions, _ as ListItemsOrdersForCollectionPaginatedQueryOptions, f as ListListingsForCollectibleQueryOptions, j as GetCountOfFilteredOrdersQueryOptions, n as LowestListingQueryOptions, p as fetchListListingsForCollectible, s as ListOffersForCollectibleQueryOptions, v as fetchListItemsOrdersForCollectionPaginated, x as ListItemsOrdersForCollectionQueryOptions } from "./lowestListing.js";
|
|
3
|
+
import * as _tanstack_react_query315 from "@tanstack/react-query";
|
|
4
4
|
|
|
5
5
|
//#region src/react/hooks/data/orders/useCountItemsOrdersForCollection.d.ts
|
|
6
6
|
type UseCountItemsOrdersForCollectionParams = Optional<CountItemsOrdersForCollectionQueryOptions, 'config'>;
|
|
@@ -55,7 +55,7 @@ type UseCountItemsOrdersForCollectionParams = Optional<CountItemsOrdersForCollec
|
|
|
55
55
|
* return <div>Showing {orders?.pages[0]?.listings.length ?? 0} of {totalCount} orders</div>
|
|
56
56
|
* ```
|
|
57
57
|
*/
|
|
58
|
-
declare function useCountItemsOrdersForCollection(params: UseCountItemsOrdersForCollectionParams):
|
|
58
|
+
declare function useCountItemsOrdersForCollection(params: UseCountItemsOrdersForCollectionParams): _tanstack_react_query315.UseQueryResult<number, Error>;
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region src/react/hooks/data/orders/useCountListingsForCollectible.d.ts
|
|
61
61
|
type UseCountListingsForCollectibleParams = Optional<CountListingsForCollectibleQueryOptions, 'config'>;
|
|
@@ -95,7 +95,7 @@ type UseCountListingsForCollectibleParams = Optional<CountListingsForCollectible
|
|
|
95
95
|
* })
|
|
96
96
|
* ```
|
|
97
97
|
*/
|
|
98
|
-
declare function useCountListingsForCollectible(params: UseCountListingsForCollectibleParams):
|
|
98
|
+
declare function useCountListingsForCollectible(params: UseCountListingsForCollectibleParams): _tanstack_react_query315.UseQueryResult<number, Error>;
|
|
99
99
|
//#endregion
|
|
100
100
|
//#region src/react/hooks/data/orders/useCountOffersForCollectible.d.ts
|
|
101
101
|
type UseCountOffersForCollectibleParams = Optional<CountOffersForCollectibleQueryOptions, 'config'>;
|
|
@@ -135,7 +135,7 @@ type UseCountOffersForCollectibleParams = Optional<CountOffersForCollectibleQuer
|
|
|
135
135
|
* })
|
|
136
136
|
* ```
|
|
137
137
|
*/
|
|
138
|
-
declare function useCountOffersForCollectible(params: UseCountOffersForCollectibleParams):
|
|
138
|
+
declare function useCountOffersForCollectible(params: UseCountOffersForCollectibleParams): _tanstack_react_query315.UseQueryResult<number, Error>;
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region src/react/hooks/data/orders/useFloorOrder.d.ts
|
|
141
141
|
type UseFloorOrderParams = Optional<FloorOrderQueryOptions, 'config'>;
|
|
@@ -178,11 +178,11 @@ type UseFloorOrderParams = Optional<FloorOrderQueryOptions, 'config'>;
|
|
|
178
178
|
* })
|
|
179
179
|
* ```
|
|
180
180
|
*/
|
|
181
|
-
declare function useFloorOrder(params: UseFloorOrderParams):
|
|
181
|
+
declare function useFloorOrder(params: UseFloorOrderParams): _tanstack_react_query315.UseQueryResult<CollectibleOrder, Error>;
|
|
182
182
|
//#endregion
|
|
183
183
|
//#region src/react/hooks/data/orders/useGetCountOfFilteredOrders.d.ts
|
|
184
184
|
type UseGetCountOfFilteredOrdersParams = Optional<GetCountOfFilteredOrdersQueryOptions, 'config'>;
|
|
185
|
-
declare function useGetCountOfFilteredOrders(params: UseGetCountOfFilteredOrdersParams):
|
|
185
|
+
declare function useGetCountOfFilteredOrders(params: UseGetCountOfFilteredOrdersParams): _tanstack_react_query315.UseQueryResult<number, Error>;
|
|
186
186
|
//#endregion
|
|
187
187
|
//#region src/react/hooks/data/orders/useHighestOffer.d.ts
|
|
188
188
|
type UseHighestOfferParams = Optional<HighestOfferQueryOptions, 'config'>;
|
|
@@ -224,7 +224,7 @@ type UseHighestOfferParams = Optional<HighestOfferQueryOptions, 'config'>;
|
|
|
224
224
|
* })
|
|
225
225
|
* ```
|
|
226
226
|
*/
|
|
227
|
-
declare function useHighestOffer(params: UseHighestOfferParams):
|
|
227
|
+
declare function useHighestOffer(params: UseHighestOfferParams): _tanstack_react_query315.UseQueryResult<Order | null, Error>;
|
|
228
228
|
//#endregion
|
|
229
229
|
//#region src/react/hooks/data/orders/useListItemsOrdersForCollection.d.ts
|
|
230
230
|
type UseListItemsOrdersForCollectionParams = Optional<ListItemsOrdersForCollectionQueryOptions, 'config'>;
|
|
@@ -275,7 +275,7 @@ type UseListItemsOrdersForCollectionParams = Optional<ListItemsOrdersForCollecti
|
|
|
275
275
|
* const allListings = data?.pages.flatMap(page => page.listings) ?? []
|
|
276
276
|
* ```
|
|
277
277
|
*/
|
|
278
|
-
declare function useListItemsOrdersForCollection(params: UseListItemsOrdersForCollectionParams):
|
|
278
|
+
declare function useListItemsOrdersForCollection(params: UseListItemsOrdersForCollectionParams): _tanstack_react_query315.UseInfiniteQueryResult<_tanstack_react_query315.InfiniteData<ListOrdersWithCollectiblesReturn, unknown>, Error>;
|
|
279
279
|
type UseListItemsOrdersForCollectionArgs = UseListItemsOrdersForCollectionParams;
|
|
280
280
|
type UseListItemsOrdersForCollectionReturn = Awaited<ReturnType<typeof fetchListItemsOrdersForCollection>>;
|
|
281
281
|
//#endregion
|
|
@@ -342,7 +342,7 @@ type UseListItemsOrdersForCollectionPaginatedParams = Optional<ListItemsOrdersFo
|
|
|
342
342
|
* const hasMorePages = data?.page?.more;
|
|
343
343
|
* ```
|
|
344
344
|
*/
|
|
345
|
-
declare function useListItemsOrdersForCollectionPaginated(params: UseListItemsOrdersForCollectionPaginatedParams):
|
|
345
|
+
declare function useListItemsOrdersForCollectionPaginated(params: UseListItemsOrdersForCollectionPaginatedParams): _tanstack_react_query315.UseQueryResult<ListOrdersWithCollectiblesReturn, Error>;
|
|
346
346
|
type UseListItemsOrdersForCollectionPaginatedArgs = UseListItemsOrdersForCollectionPaginatedParams;
|
|
347
347
|
type UseListItemsOrdersForCollectionPaginatedReturn = Awaited<ReturnType<typeof fetchListItemsOrdersForCollectionPaginated>>;
|
|
348
348
|
//#endregion
|
|
@@ -402,7 +402,7 @@ type UseListListingsForCollectibleParams = Optional<ListListingsForCollectibleQu
|
|
|
402
402
|
* })
|
|
403
403
|
* ```
|
|
404
404
|
*/
|
|
405
|
-
declare function useListListingsForCollectible(params: UseListListingsForCollectibleParams):
|
|
405
|
+
declare function useListListingsForCollectible(params: UseListListingsForCollectibleParams): _tanstack_react_query315.UseQueryResult<ListCollectibleListingsReturn, Error>;
|
|
406
406
|
type UseListListingsForCollectibleArgs = UseListListingsForCollectibleParams;
|
|
407
407
|
type UseListListingsForCollectibleReturn = Awaited<ReturnType<typeof fetchListListingsForCollectible>>;
|
|
408
408
|
//#endregion
|
|
@@ -446,7 +446,7 @@ type UseListOffersForCollectibleParams = Optional<ListOffersForCollectibleQueryO
|
|
|
446
446
|
* })
|
|
447
447
|
* ```
|
|
448
448
|
*/
|
|
449
|
-
declare function useListOffersForCollectible(params: UseListOffersForCollectibleParams):
|
|
449
|
+
declare function useListOffersForCollectible(params: UseListOffersForCollectibleParams): _tanstack_react_query315.UseQueryResult<ListCollectibleOffersReturn, Error>;
|
|
450
450
|
type UseListOffersForCollectibleArgs = UseListOffersForCollectibleParams;
|
|
451
451
|
//#endregion
|
|
452
452
|
//#region src/react/hooks/data/orders/useLowestListing.d.ts
|
|
@@ -489,7 +489,7 @@ type UseLowestListingParams = Optional<LowestListingQueryOptions, 'config'>;
|
|
|
489
489
|
* })
|
|
490
490
|
* ```
|
|
491
491
|
*/
|
|
492
|
-
declare function useLowestListing(params: UseLowestListingParams):
|
|
492
|
+
declare function useLowestListing(params: UseLowestListingParams): _tanstack_react_query315.UseQueryResult<Order | null | undefined, Error>;
|
|
493
493
|
//#endregion
|
|
494
|
-
export {
|
|
495
|
-
//# sourceMappingURL=
|
|
494
|
+
export { useFloorOrder as C, useCountListingsForCollectible as D, UseCountListingsForCollectibleParams as E, UseCountItemsOrdersForCollectionParams as O, UseFloorOrderParams as S, useCountOffersForCollectible as T, useListItemsOrdersForCollection as _, useListOffersForCollectible as a, UseGetCountOfFilteredOrdersParams as b, UseListListingsForCollectibleReturn as c, UseListItemsOrdersForCollectionPaginatedParams as d, UseListItemsOrdersForCollectionPaginatedReturn as f, UseListItemsOrdersForCollectionReturn as g, UseListItemsOrdersForCollectionParams as h, UseListOffersForCollectibleParams as i, useCountItemsOrdersForCollection as k, useListListingsForCollectible as l, UseListItemsOrdersForCollectionArgs as m, useLowestListing as n, UseListListingsForCollectibleArgs as o, useListItemsOrdersForCollectionPaginated as p, UseListOffersForCollectibleArgs as r, UseListListingsForCollectibleParams as s, UseLowestListingParams as t, UseListItemsOrdersForCollectionPaginatedArgs as u, UseHighestOfferParams as v, UseCountOffersForCollectibleParams as w, useGetCountOfFilteredOrders as x, useHighestOffer as y };
|
|
495
|
+
//# sourceMappingURL=index13.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SdkConfig } from "./create-config
|
|
2
|
-
import * as
|
|
1
|
+
import { G as SdkConfig } from "./create-config.js";
|
|
2
|
+
import * as _tanstack_react_query5 from "@tanstack/react-query";
|
|
3
3
|
import { UseQueryParameters } from "wagmi/query";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _0xsequence_indexer0 from "@0xsequence/indexer";
|
|
5
5
|
import { Address } from "viem";
|
|
6
6
|
|
|
7
7
|
//#region src/react/queries/collectibles/tokenBalances.d.ts
|
|
@@ -9,7 +9,6 @@ type UseTokenBalancesArgs = {
|
|
|
9
9
|
collectionAddress: Address;
|
|
10
10
|
userAddress: Address | undefined;
|
|
11
11
|
chainId: number;
|
|
12
|
-
isLaos721?: boolean;
|
|
13
12
|
includeMetadata?: boolean;
|
|
14
13
|
query?: UseQueryParameters;
|
|
15
14
|
};
|
|
@@ -22,7 +21,7 @@ type UseTokenBalancesArgs = {
|
|
|
22
21
|
*/
|
|
23
22
|
declare function fetchTokenBalances(args: Omit<UseTokenBalancesArgs, 'userAddress'> & {
|
|
24
23
|
userAddress: Address;
|
|
25
|
-
}, config: SdkConfig): Promise<
|
|
24
|
+
}, config: SdkConfig): Promise<_0xsequence_indexer0.TokenBalance[]>;
|
|
26
25
|
declare function getTokenBalancesQueryKey(args: UseTokenBalancesArgs): readonly ["collectable", "collectable", "details", "userBalances", {
|
|
27
26
|
chainId: number;
|
|
28
27
|
accountAddress: `0x${string}` | undefined;
|
|
@@ -32,7 +31,6 @@ declare function getTokenBalancesQueryKey(args: UseTokenBalancesArgs): readonly
|
|
|
32
31
|
verifiedOnly: boolean;
|
|
33
32
|
includeContracts: `0x${string}`[];
|
|
34
33
|
} | undefined;
|
|
35
|
-
isLaos721: boolean | undefined;
|
|
36
34
|
}];
|
|
37
35
|
/**
|
|
38
36
|
* Creates a tanstack query options object for the token balances query
|
|
@@ -41,7 +39,7 @@ declare function getTokenBalancesQueryKey(args: UseTokenBalancesArgs): readonly
|
|
|
41
39
|
* @param config - SDK configuration
|
|
42
40
|
* @returns Query options configuration
|
|
43
41
|
*/
|
|
44
|
-
declare function tokenBalancesOptions(args: UseTokenBalancesArgs, config: SdkConfig):
|
|
42
|
+
declare function tokenBalancesOptions(args: UseTokenBalancesArgs, config: SdkConfig): _tanstack_react_query5.UseQueryOptions<_0xsequence_indexer0.TokenBalance[], Error, _0xsequence_indexer0.TokenBalance[], readonly ["collectable", "collectable", "details", "userBalances", {
|
|
45
43
|
chainId: number;
|
|
46
44
|
accountAddress: `0x${string}` | undefined;
|
|
47
45
|
contractAddress: `0x${string}`;
|
|
@@ -50,9 +48,8 @@ declare function tokenBalancesOptions(args: UseTokenBalancesArgs, config: SdkCon
|
|
|
50
48
|
verifiedOnly: boolean;
|
|
51
49
|
includeContracts: `0x${string}`[];
|
|
52
50
|
} | undefined;
|
|
53
|
-
isLaos721: boolean | undefined;
|
|
54
51
|
}]> & {
|
|
55
|
-
initialData?:
|
|
52
|
+
initialData?: _0xsequence_indexer0.TokenBalance[] | _tanstack_react_query5.InitialDataFunction<_0xsequence_indexer0.TokenBalance[]> | undefined;
|
|
56
53
|
} & {
|
|
57
54
|
queryKey: readonly ["collectable", "collectable", "details", "userBalances", {
|
|
58
55
|
chainId: number;
|
|
@@ -63,12 +60,11 @@ declare function tokenBalancesOptions(args: UseTokenBalancesArgs, config: SdkCon
|
|
|
63
60
|
verifiedOnly: boolean;
|
|
64
61
|
includeContracts: `0x${string}`[];
|
|
65
62
|
} | undefined;
|
|
66
|
-
isLaos721: boolean | undefined;
|
|
67
63
|
}] & {
|
|
68
|
-
[dataTagSymbol]:
|
|
64
|
+
[dataTagSymbol]: _0xsequence_indexer0.TokenBalance[];
|
|
69
65
|
[dataTagErrorSymbol]: Error;
|
|
70
66
|
};
|
|
71
67
|
};
|
|
72
68
|
//#endregion
|
|
73
|
-
export {
|
|
74
|
-
//# sourceMappingURL=
|
|
69
|
+
export { tokenBalancesOptions as i, fetchTokenBalances as n, getTokenBalancesQueryKey as r, UseTokenBalancesArgs as t };
|
|
70
|
+
//# sourceMappingURL=index14.d.ts.map
|