@0xsequence/marketplace-sdk 1.1.0 → 1.1.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/.changeset/honest-peas-arrive.md +5 -0
- package/.changeset/real-tips-stick.md +8 -0
- package/.changeset/tall-pandas-wear.md +8 -0
- package/CHANGELOG.md +24 -2
- package/dist/{BellIcon-IpHHEy8h.js → BellIcon-ByhygxBO.js} +2 -2
- package/dist/{BellIcon-IpHHEy8h.js.map → BellIcon-ByhygxBO.js.map} +1 -1
- package/dist/{CartIcon-C8zbor8H.js → CartIcon-Bt3rQYGk.js} +3 -3
- package/dist/{CartIcon-C8zbor8H.js.map → CartIcon-Bt3rQYGk.js.map} +1 -1
- package/dist/CollectibleCard-CVpdgXA8.d.ts +8 -0
- package/dist/_internal-DkS2VUn5.js.map +1 -1
- package/dist/abi-fa-o9gH3.js +134 -0
- package/dist/abi-fa-o9gH3.js.map +1 -0
- package/dist/{alien_swap-BTJ7mSR-.js → alien_swap-DoY6XfMA.js} +1 -1
- package/dist/{alien_swap-BTJ7mSR-.js.map → alien_swap-DoY6XfMA.js.map} +1 -1
- package/dist/{api-DuLKn__v.js → api-BoO0V5aJ.js} +8 -3
- package/dist/api-BoO0V5aJ.js.map +1 -0
- package/dist/{aqua-xyz-BYJ9WSP_.js → aqua-xyz-BBDxnG14.js} +1 -1
- package/dist/{aqua-xyz-BYJ9WSP_.js.map → aqua-xyz-BBDxnG14.js.map} +1 -1
- package/dist/{aura-D7SUjgro.js → aura-DGx2zwvF.js} +1 -1
- package/dist/{aura-D7SUjgro.js.map → aura-DGx2zwvF.js.map} +1 -1
- package/dist/{blur-BcnRFCaV.js → blur-D8GKrRrq.js} +1 -1
- package/dist/{blur-BcnRFCaV.js.map → blur-D8GKrRrq.js.map} +1 -1
- package/dist/{coinbase-ChoX9Hw2.js → coinbase-DOry4PXY.js} +1 -1
- package/dist/{coinbase-ChoX9Hw2.js.map → coinbase-DOry4PXY.js.map} +1 -1
- package/dist/collectibles-C_H8jMGH.js +358 -0
- package/dist/collectibles-C_H8jMGH.js.map +1 -0
- package/dist/collections-CKummc-R.js +249 -0
- package/dist/collections-CKummc-R.js.map +1 -0
- package/dist/{components-CUv-wQr8.js → components-CosnX7F9.js} +5 -5
- package/dist/{components-CUv-wQr8.js.map → components-CosnX7F9.js.map} +1 -1
- package/dist/{contracts-D72LBOX3.js → contracts-BP_0vX48.js} +3 -3
- package/dist/{contracts-D72LBOX3.js.map → contracts-BP_0vX48.js.map} +1 -1
- package/dist/{create-config-DV_dtaLt.d.ts → create-config-ZOB7i4ZJ.d.ts} +117 -12
- package/dist/{element-Dbcv5qya.js → element-ciybd_VF.js} +1 -1
- package/dist/{element-Dbcv5qya.js.map → element-ciybd_VF.js.map} +1 -1
- package/dist/filters-V-V8Dn8f.d.ts +60 -0
- package/dist/{foundation-QPhUEUy8.js → foundation-Bq4lRz4x.js} +1 -1
- package/dist/{foundation-QPhUEUy8.js.map → foundation-Bq4lRz4x.js.map} +1 -1
- package/dist/index-BOiHR01C.d.ts +106 -0
- package/dist/index-BZIJTQT0.d.ts +121 -0
- package/dist/index-BeRV-7AX.d.ts +55 -0
- package/dist/{index-BaytncQc.d.ts → index-Bsx6XsC2.d.ts} +58 -55
- package/dist/{index-jGgfEHfQ.d.ts → index-BtWMBHeP.d.ts} +13 -9
- package/dist/{index-CT8ZorFd.d.ts → index-Bxzjy0d1.d.ts} +1 -1
- package/dist/{index-B6aSbaw2.d.ts → index-C-745li7.d.ts} +1 -1
- package/dist/{index-BoNNplSx.d.ts → index-C4MUKshG.d.ts} +2 -2
- package/dist/{index-DMBMM16q.d.ts → index-CPzvNmq9.d.ts} +35 -35
- package/dist/{index-D-UXGo5d.d.ts → index-CS65jqOq.d.ts} +2 -2
- package/dist/index-CZUtOTjh.d.ts +1 -0
- package/dist/index-CnEbXm_t.d.ts +130 -0
- package/dist/{index-CQecU53t.d.ts → index-CxA34wP1.d.ts} +32 -23
- package/dist/{index-C768pAfu.d.ts → index-CxpFwGvR.d.ts} +3 -3
- package/dist/{index-Bv5XVLjH.d.ts → index-D9LPlmbC.d.ts} +1 -1
- package/dist/{index-DJG0kiII.d.ts → index-DFEnA6Wa.d.ts} +28 -17
- package/dist/{index-B8vaT3_s.d.ts → index-DNNUeZEq.d.ts} +4 -4
- package/dist/{index-CXscCUg7.d.ts → index-DUXfvhxs.d.ts} +12 -12
- package/dist/index-DW3njUfb.d.ts +1 -0
- package/dist/{index-CMPUveNz.d.ts → index-DWt6yrIG.d.ts} +7 -7
- package/dist/index-DewGsFz5.d.ts +1 -0
- package/dist/{index-DLUjc7Bx.d.ts → index-DmudgrsN.d.ts} +191 -12
- package/dist/{index-DpeWm_vF.d.ts → index-DqXd1EeB.d.ts} +5 -5
- package/dist/{index-CM0ZTePs.d.ts → index-DwKr18CI.d.ts} +1 -1
- package/dist/{index-D6YMj82n.d.ts → index-NlPMNcqh.d.ts} +100 -100
- package/dist/index-Stm5u0I0.d.ts +53 -0
- package/dist/index-U-zp70of.d.ts +74 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +8 -8
- package/dist/inventory-Dd7TazvZ.js +72 -0
- package/dist/inventory-Dd7TazvZ.js.map +1 -0
- package/dist/listBalances-BxpxBCvn.js +57 -0
- package/dist/listBalances-BxpxBCvn.js.map +1 -0
- package/dist/listCollectiblesPaginated-Cy2_qEZA.d.ts +327 -0
- package/dist/{listCollections-dTCq00l5.d.ts → listCollections-BB9FxKj2.d.ts} +193 -111
- package/dist/{looks-rare-C7cQztTR.js → looks-rare-6H--x3AM.js} +1 -1
- package/dist/{looks-rare-C7cQztTR.js.map → looks-rare-6H--x3AM.js.map} +1 -1
- package/dist/lowestListing-Cbsi6M1K.d.ts +465 -0
- package/dist/{magic-eden-D3r7jiBG.js → magic-eden-BoxEQ1Li.js} +1 -1
- package/dist/{magic-eden-D3r7jiBG.js.map → magic-eden-BoxEQ1Li.js.map} +1 -1
- package/dist/{manifold-DsX0CBP-.js → manifold-DycKsljb.js} +1 -1
- package/dist/{manifold-DsX0CBP-.js.map → manifold-DycKsljb.js.map} +1 -1
- package/dist/market-C3HV-awQ.js +209 -0
- package/dist/market-C3HV-awQ.js.map +1 -0
- package/dist/{marketCurrencies-Bzj8X4TL.d.ts → marketCurrencies-Bpw1bIO0.d.ts} +46 -15
- package/dist/marketCurrencies-sKrTX0og.js +53 -0
- package/dist/marketCurrencies-sKrTX0og.js.map +1 -0
- package/dist/{marketplace-BYY8OloA.js → marketplace-NQB-sEQL.js} +1 -1
- package/dist/{marketplace-BYY8OloA.js.map → marketplace-NQB-sEQL.js.map} +1 -1
- package/dist/{marketplace-logos-Csv2MBwf.js → marketplace-logos-D4dS1Foy.js} +21 -21
- package/dist/{marketplace-logos-Csv2MBwf.js.map → marketplace-logos-D4dS1Foy.js.map} +1 -1
- package/dist/{marketplace.gen-w2YvbEEo.js → marketplace.gen-ksUafDqS.js} +56 -5
- package/dist/marketplace.gen-ksUafDqS.js.map +1 -0
- package/dist/{marketplaceConfig-BTy75Mbf.js → marketplaceConfig-UHQMM9fq.js} +3 -3
- package/dist/marketplaceConfig-UHQMM9fq.js.map +1 -0
- package/dist/{mintify-DiOoDmO1.js → mintify-Dyqyo8jQ.js} +1 -1
- package/dist/{mintify-DiOoDmO1.js.map → mintify-Dyqyo8jQ.js.map} +1 -1
- package/dist/{nftx-CP82jNra.js → nftx-2LbFjj9Q.js} +1 -1
- package/dist/{nftx-CP82jNra.js.map → nftx-2LbFjj9Q.js.map} +1 -1
- package/dist/{okx-p9-4xRjs.js → okx-CBEWJNsR.js} +1 -1
- package/dist/{okx-p9-4xRjs.js.map → okx-CBEWJNsR.js.map} +1 -1
- package/dist/{open-sea-D2GwAmKS.js → open-sea-Dxntz_PA.js} +1 -1
- package/dist/{open-sea-D2GwAmKS.js.map → open-sea-Dxntz_PA.js.map} +1 -1
- package/dist/orders-DnFfZAXV.js +462 -0
- package/dist/orders-DnFfZAXV.js.map +1 -0
- package/dist/{primary-sale-DOmNDq2P.js → primary-sale-1u4QlPdA.js} +1 -1
- package/dist/{primary-sale-DOmNDq2P.js.map → primary-sale-1u4QlPdA.js.map} +1 -1
- package/dist/primary-sales-Dmsi6bqj.js +114 -0
- package/dist/primary-sales-Dmsi6bqj.js.map +1 -0
- package/dist/{query-BG-MA1MB.d.ts → query-BWbCsXLY.d.ts} +1 -1
- package/dist/{rarible-DqiiW9ki.js → rarible-CS0SupHr.js} +1 -1
- package/dist/{rarible-DqiiW9ki.js.map → rarible-CS0SupHr.js.map} +1 -1
- package/dist/react/_internal/api/index.d.ts +2 -2
- package/dist/react/_internal/api/index.js +3 -3
- package/dist/react/_internal/databeat/index.d.ts +1 -1
- package/dist/react/_internal/databeat/index.js +28 -17
- package/dist/react/_internal/index.d.ts +2 -2
- package/dist/react/_internal/index.js +3 -3
- package/dist/react/_internal/wagmi/index.d.ts +1 -1
- package/dist/react/hooks/config/index.d.ts +8 -8
- package/dist/react/hooks/config/index.js +28 -17
- package/dist/react/hooks/contracts/index.d.ts +6 -6
- package/dist/react/hooks/contracts/index.js +7 -7
- package/dist/react/hooks/data/collectibles/index.d.ts +10 -4
- package/dist/react/hooks/data/collectibles/index.js +28 -17
- package/dist/react/hooks/data/collections/index.d.ts +10 -10
- package/dist/react/hooks/data/collections/index.js +28 -17
- package/dist/react/hooks/data/index.d.ts +37 -29
- package/dist/react/hooks/data/index.js +29 -18
- package/dist/react/hooks/data/inventory/index.d.ts +36 -28
- package/dist/react/hooks/data/inventory/index.js +28 -17
- package/dist/react/hooks/data/market/index.d.ts +11 -5
- package/dist/react/hooks/data/market/index.js +28 -17
- package/dist/react/hooks/data/orders/index.d.ts +11 -5
- package/dist/react/hooks/data/orders/index.js +29 -18
- package/dist/react/hooks/data/primary-sales/index.d.ts +36 -28
- package/dist/react/hooks/data/primary-sales/index.js +28 -17
- package/dist/react/hooks/data/tokens/index.d.ts +4 -4
- package/dist/react/hooks/data/tokens/index.js +28 -17
- package/dist/react/hooks/index.d.ts +37 -29
- package/dist/react/hooks/index.js +29 -18
- package/dist/react/hooks/transactions/index.d.ts +2 -2
- package/dist/react/hooks/transactions/index.js +28 -17
- package/dist/react/hooks/ui/index.d.ts +4 -4
- package/dist/react/hooks/ui/index.js +28 -17
- package/dist/react/hooks/utils/index.d.ts +36 -28
- package/dist/react/hooks/utils/index.js +28 -17
- package/dist/react/index.d.ts +37 -29
- package/dist/react/index.js +29 -18
- package/dist/react/queries/collectibles/index.d.ts +11 -0
- package/dist/react/queries/collectibles/index.js +23 -0
- package/dist/react/queries/collections/index.d.ts +11 -0
- package/dist/react/queries/collections/index.js +20 -0
- package/dist/react/queries/index.d.ts +24 -16
- package/dist/react/queries/index.js +22 -11
- package/dist/react/queries/inventory/index.d.ts +3 -0
- package/dist/react/queries/inventory/index.js +22 -0
- package/dist/react/queries/market/index.d.ts +6 -0
- package/dist/react/queries/market/index.js +22 -0
- package/dist/react/queries/orders/index.d.ts +11 -0
- package/dist/react/queries/orders/index.js +13 -0
- package/dist/react/queries/primary-sales/index.d.ts +4 -0
- package/dist/react/queries/primary-sales/index.js +13 -0
- package/dist/react/queries/tokens/index.d.ts +5 -0
- package/dist/react/queries/tokens/index.js +14 -0
- package/dist/react/queries/utils/index.d.ts +4 -0
- package/dist/react/queries/utils/index.js +22 -0
- package/dist/react/ssr/index.d.ts +7 -7
- package/dist/react/ssr/index.js +3 -3
- 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 +11 -11
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/index.d.ts +5 -5
- package/dist/react/ui/components/marketplace-collectible-card/components/footer/index.js +28 -17
- package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +4 -4
- package/dist/react/ui/components/marketplace-collectible-card/index.js +28 -17
- 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 +3 -3
- 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 +9 -9
- package/dist/react/ui/index.d.ts +4 -4
- package/dist/react/ui/index.js +28 -17
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +2 -2
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +28 -17
- package/dist/react/utils/index.d.ts +3 -3
- package/dist/react/utils/index.js +3 -3
- package/dist/{react-BLJ4DkPx.js → react-DE852KeT.js} +1365 -172
- package/dist/react-DE852KeT.js.map +1 -0
- package/dist/{sequence-Bbb-TFKg.js → sequence-paCCener.js} +1 -1
- package/dist/{sequence-Bbb-TFKg.js.map → sequence-paCCener.js.map} +1 -1
- package/dist/styles/index.css +154 -0
- package/dist/{sudo-swap-CEPIM3Js.js → sudo-swap-9rH2EgfT.js} +1 -1
- package/dist/{sudo-swap-CEPIM3Js.js.map → sudo-swap-9rH2EgfT.js.map} +1 -1
- package/dist/{super-rare-CMEn9PoO.js → super-rare-DHIuWtRw.js} +1 -1
- package/dist/{super-rare-CMEn9PoO.js.map → super-rare-DHIuWtRw.js.map} +1 -1
- package/dist/{token-CcyLz8Z8.js → token-Cv7l2ZaL.js} +1 -1
- package/dist/{token-CcyLz8Z8.js.map → token-Cv7l2ZaL.js.map} +1 -1
- package/dist/tokenBalances-ibDerNmM.js +63 -0
- package/dist/tokenBalances-ibDerNmM.js.map +1 -0
- package/dist/tokenSupplies-Bfe8RHzI.d.ts +272 -0
- package/dist/tokens-cGxMadd8.js +194 -0
- package/dist/tokens-cGxMadd8.js.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/{types-D6LkVrF0.d.ts → types-D2TJ1dwv.d.ts} +3 -2
- package/dist/utils/abi/index.d.ts +5 -5
- package/dist/utils/abi/index.js +5 -5
- 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 +8 -8
- package/dist/utils-BCgNhBFR.js +112 -0
- package/dist/utils-BCgNhBFR.js.map +1 -0
- package/dist/{utils-BZEkdqWK.js → utils-BfpDVibN.js} +3 -3
- package/dist/{utils-BZEkdqWK.js.map → utils-BfpDVibN.js.map} +1 -1
- package/dist/{utils-oVZxdK0o.js → utils-BqxcalL2.js} +2 -2
- package/dist/{utils-oVZxdK0o.js.map → utils-BqxcalL2.js.map} +1 -1
- package/dist/waitForTransactionReceipt-DieAnV52.js +25 -0
- package/dist/waitForTransactionReceipt-DieAnV52.js.map +1 -0
- package/dist/{x2y2-DNe6JgtG.js → x2y2-45WDooeh.js} +1 -1
- package/dist/{x2y2-DNe6JgtG.js.map → x2y2-45WDooeh.js.map} +1 -1
- package/dist/{zora-w0Zqxxs4.js → zora-CbeBoLvQ.js} +1 -1
- package/dist/{zora-w0Zqxxs4.js.map → zora-CbeBoLvQ.js.map} +1 -1
- package/package.json +10 -5
- package/src/react/_internal/api/__mocks__/marketplace.msw.ts +2 -0
- package/src/react/_internal/api/marketplace.gen.ts +1730 -2383
- package/src/react/_internal/api/query-keys.ts +14 -0
- package/src/react/_internal/api/services.ts +1 -1
- package/src/react/_internal/databeat/types.ts +1 -0
- package/src/react/_internal/types.ts +14 -0
- package/src/react/_internal/utils.ts +3 -0
- package/src/react/hooks/config/useMarketplaceConfig.tsx +1 -1
- package/src/react/hooks/data/collectibles/useBalanceOfCollectible.tsx +1 -1
- package/src/react/hooks/data/collectibles/useCollectible.tsx +1 -1
- package/src/react/hooks/data/collectibles/useCountOfCollectables.tsx +1 -1
- package/src/react/hooks/data/collectibles/useListCollectibleActivities.tsx +1 -1
- package/src/react/hooks/data/collectibles/useListCollectibles.tsx +1 -1
- package/src/react/hooks/data/collectibles/useListCollectiblesPaginated.tsx +1 -1
- package/src/react/hooks/data/collectibles/useTokenBalances.tsx +1 -1
- package/src/react/hooks/data/collections/useCollection.tsx +1 -1
- package/src/react/hooks/data/collections/useCollectionBalanceDetails.tsx +1 -1
- package/src/react/hooks/data/collections/useCollectionDetails.ts +1 -1
- package/src/react/hooks/data/collections/useListCollectionActivities.tsx +1 -1
- package/src/react/hooks/data/collections/useListCollections.tsx +1 -1
- package/src/react/hooks/data/inventory/useInventory.tsx +1 -1
- package/src/react/hooks/data/market/useCurrency.tsx +1 -1
- package/src/react/hooks/data/market/useListMarketCardData.tsx +7 -0
- package/src/react/hooks/data/market/useMarketCurrencies.tsx +1 -1
- package/src/react/hooks/data/orders/index.ts +4 -0
- package/src/react/hooks/data/orders/useCountItemsOrdersForCollection.tsx +90 -0
- package/src/react/hooks/data/orders/useCountListingsForCollectible.tsx +1 -1
- package/src/react/hooks/data/orders/useCountOffersForCollectible.tsx +1 -1
- package/src/react/hooks/data/orders/useFloorOrder.tsx +1 -1
- package/src/react/hooks/data/orders/useGetCountOfFilteredOrders.tsx +39 -0
- package/src/react/hooks/data/orders/useHighestOffer.tsx +1 -1
- package/src/react/hooks/data/orders/useListItemsOrdersForCollection.tsx +93 -0
- package/src/react/hooks/data/orders/useListItemsOrdersForCollectionPaginated.tsx +108 -0
- package/src/react/hooks/data/orders/useListListingsForCollectible.tsx +1 -1
- package/src/react/hooks/data/orders/useListOffersForCollectible.tsx +1 -1
- package/src/react/hooks/data/orders/useLowestListing.tsx +1 -1
- package/src/react/hooks/data/primary-sales/useGetCountOfPrimarySaleItems.tsx +2 -2
- package/src/react/hooks/data/primary-sales/useListPrimarySaleItems.tsx +1 -1
- package/src/react/hooks/data/tokens/useGetTokenRanges.tsx +2 -2
- package/src/react/hooks/data/tokens/useListBalances.tsx +2 -2
- package/src/react/hooks/data/tokens/useListTokenMetadata.tsx +1 -1
- package/src/react/hooks/data/tokens/useSearchTokenMetadata.tsx +1 -1
- package/src/react/hooks/data/tokens/useTokenSupplies.ts +1 -1
- package/src/react/hooks/transactions/useGenerateCancelTransaction.test.tsx +1 -0
- package/src/react/hooks/transactions/useGenerateListingTransaction.test.tsx +13 -0
- package/src/react/hooks/transactions/useGenerateOfferTransaction.test.tsx +1 -0
- package/src/react/hooks/transactions/useGenerateSellTransaction.test.tsx +6 -0
- package/src/react/hooks/ui/useFilterState.tsx +72 -2
- package/src/react/hooks/ui/useFilters.tsx +1 -1
- package/src/react/hooks/utils/useCheckoutOptions.tsx +2 -2
- package/src/react/hooks/utils/useCheckoutOptionsSalesContract.tsx +1 -1
- package/src/react/hooks/utils/useComparePrices.tsx +1 -1
- package/src/react/hooks/utils/useConvertPriceToUSD.tsx +1 -1
- package/src/react/providers/analytics-provider.tsx +45 -0
- package/src/react/providers/index.tsx +30 -41
- package/src/react/providers/modal-provider.tsx +13 -2
- package/src/react/queries/{__tests__ → collectibles/__tests__}/balanceOfCollectible.laos.test.ts +1 -1
- package/src/react/queries/{__tests__ → collectibles/__tests__}/tokenBalances.laos.test.ts +1 -1
- package/src/react/queries/{balanceOfCollectible.ts → collectibles/balanceOfCollectible.ts} +24 -3
- package/src/react/queries/{collectible.ts → collectibles/collectible.ts} +20 -5
- package/src/react/queries/{countOfCollectables.ts → collectibles/countOfCollectables.ts} +32 -6
- package/src/react/queries/collectibles/index.ts +7 -0
- package/src/react/queries/{listCollectibleActivities.ts → collectibles/listCollectibleActivities.ts} +29 -5
- package/src/react/queries/{listCollectibles.ts → collectibles/listCollectibles.ts} +28 -9
- package/src/react/queries/{listCollectiblesPaginated.ts → collectibles/listCollectiblesPaginated.ts} +22 -5
- package/src/react/queries/{tokenBalances.ts → collectibles/tokenBalances.ts} +21 -3
- package/src/react/queries/{collection.ts → collections/collection.ts} +19 -5
- package/src/react/queries/{collectionBalanceDetails.ts → collections/collectionBalanceDetails.ts} +19 -4
- package/src/react/queries/{collectionDetails.ts → collections/collectionDetails.ts} +21 -6
- package/src/react/queries/collections/index.ts +5 -0
- package/src/react/queries/{listCollectionActivities.ts → collections/listCollectionActivities.ts} +28 -6
- package/src/react/queries/{listCollections.ts → collections/listCollections.ts} +17 -6
- package/src/react/queries/index.ts +7 -34
- package/src/react/queries/{__tests__ → inventory/__tests__}/inventory.laos.test.ts +4 -4
- package/src/react/queries/inventory/index.ts +1 -0
- package/src/react/queries/{inventory.ts → inventory/inventory.ts} +11 -5
- package/src/react/queries/{checkoutOptions.ts → market/checkoutOptions.ts} +28 -6
- package/src/react/queries/{checkoutOptionsSalesContract.ts → market/checkoutOptionsSalesContract.ts} +24 -5
- package/src/react/queries/{currency.ts → market/currency.ts} +13 -4
- package/src/react/queries/{filters.ts → market/filters.ts} +25 -6
- package/src/react/queries/market/index.ts +6 -0
- package/src/react/queries/{marketCurrencies.ts → market/marketCurrencies.ts} +24 -5
- package/src/react/queries/{marketplaceConfig.ts → market/marketplaceConfig.ts} +5 -5
- package/src/react/queries/orders/countItemsOrdersForCollection.ts +86 -0
- package/src/react/queries/{countListingsForCollectible.ts → orders/countListingsForCollectible.ts} +23 -6
- package/src/react/queries/{countOffersForCollectible.ts → orders/countOffersForCollectible.ts} +23 -6
- package/src/react/queries/{floorOrder.ts → orders/floorOrder.ts} +15 -4
- package/src/react/queries/orders/getCountOfFilteredOrders.ts +88 -0
- package/src/react/queries/{highestOffer.ts → orders/highestOffer.ts} +16 -4
- package/src/react/queries/orders/index.ts +11 -0
- package/src/react/queries/orders/listItemsOrdersForCollection.ts +90 -0
- package/src/react/queries/orders/listItemsOrdersForCollectionPaginated.ts +90 -0
- package/src/react/queries/{listListingsForCollectible.ts → orders/listListingsForCollectible.ts} +20 -5
- package/src/react/queries/{listOffersForCollectible.ts → orders/listOffersForCollectible.ts} +20 -5
- package/src/react/queries/{lowestListing.ts → orders/lowestListing.ts} +16 -4
- package/src/react/queries/{countOfPrimarySaleItems.ts → primary-sales/countOfPrimarySaleItems.ts} +17 -3
- package/src/react/queries/primary-sales/index.ts +3 -0
- package/src/react/queries/{primarySaleItems.ts → primary-sales/primarySaleItems.ts} +18 -4
- package/src/react/queries/{primarySaleItemsCount.ts → primary-sales/primarySaleItemsCount.ts} +19 -4
- package/src/react/queries/{getTokenRanges.ts → tokens/getTokenRanges.ts} +17 -4
- package/src/react/queries/tokens/index.ts +5 -0
- package/src/react/queries/{listBalances.ts → tokens/listBalances.ts} +18 -3
- package/src/react/queries/{listTokenMetadata.ts → tokens/listTokenMetadata.ts} +18 -4
- package/src/react/queries/{searchTokenMetadata.ts → tokens/searchTokenMetadata.ts} +18 -4
- package/src/react/queries/{tokenSupplies.ts → tokens/tokenSupplies.ts} +16 -4
- package/src/react/queries/{comparePrices.ts → utils/comparePrices.ts} +16 -4
- package/src/react/queries/{convertPriceToUSD.ts → utils/convertPriceToUSD.ts} +18 -5
- package/src/react/queries/utils/index.ts +2 -0
- package/src/react/ssr/create-ssr-client.ts +1 -1
- package/src/react/ui/components/_internals/ErrorLogBox.tsx +85 -0
- package/src/react/ui/components/_internals/action-button/ActionButton.tsx +4 -0
- package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +4 -0
- package/src/react/ui/components/marketplace-collectible-card/components/ActionButtonWrapper.tsx +3 -0
- package/src/react/ui/components/marketplace-collectible-card/types.ts +1 -0
- package/src/react/ui/components/marketplace-collectible-card/variants/MarketCard.tsx +3 -0
- package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +2 -0
- package/src/react/ui/modals/BuyModal/components/ERC1155BuyModal.tsx +65 -3
- package/src/react/ui/modals/BuyModal/components/ERC721BuyModal.tsx +31 -0
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC721SalePaymentParams.test.tsx +20 -1
- package/src/react/ui/modals/BuyModal/hooks/useERC1155Checkout.ts +7 -2
- package/src/react/ui/modals/BuyModal/hooks/useERC721SalePaymentParams.ts +12 -3
- package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +11 -2
- package/src/react/ui/modals/BuyModal/store.ts +3 -0
- package/src/react/ui/modals/CreateListingModal/Modal.tsx +63 -24
- package/src/react/ui/modals/CreateListingModal/__tests__/Modal.test.tsx +4 -0
- package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +18 -12
- package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +4 -1
- package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +1 -0
- package/src/react/ui/modals/MakeOfferModal/Modal.tsx +55 -8
- package/src/react/ui/modals/MakeOfferModal/__tests__/Modal.test.tsx +10 -0
- package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +4 -1
- package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +15 -26
- package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +1 -0
- package/src/react/ui/modals/SellModal/Modal.tsx +21 -3
- package/src/react/ui/modals/SellModal/__tests__/Modal.test.tsx +2 -0
- package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +3 -1
- package/src/react/ui/modals/SellModal/hooks/useSell.tsx +13 -7
- package/src/react/ui/modals/SuccessfulPurchaseModal/__tests__/Modal.test.tsx +9 -0
- package/src/react/ui/modals/_internal/components/calendarDropdown/TimeSelector.tsx +105 -0
- package/src/react/ui/modals/_internal/components/calendarDropdown/index.tsx +45 -12
- package/src/react/ui/modals/_internal/components/calendarDropdown/overrides.css +39 -0
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +31 -10
- package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +18 -9
- package/src/react/ui/modals/_internal/components/priceInput/index.tsx +51 -1
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +58 -10
- package/src/react/ui/modals/_internal/constants/opensea-currencies.ts +481 -0
- package/src/react/utils/waitForTransactionReceipt.ts +26 -32
- package/src/styles/index.css +1 -0
- package/src/styles/styles.ts +155 -1
- package/src/types/index.ts +1 -1
- package/src/utils/abi/index.ts +1 -0
- package/src/utils/abi/mainModule.ts +158 -0
- package/dist/CollectibleCard-C2EWF0zo.d.ts +0 -8
- package/dist/api-DuLKn__v.js.map +0 -1
- package/dist/filters-zkMJaPey.d.ts +0 -31
- package/dist/index-Yobo6icm.d.ts +0 -234
- package/dist/listCollectiblesPaginated-Bq0QSOjJ.d.ts +0 -168
- package/dist/lowestListing-CB5Te-Q9.d.ts +0 -168
- package/dist/marketplace.gen-w2YvbEEo.js.map +0 -1
- package/dist/marketplaceConfig-BTy75Mbf.js.map +0 -1
- package/dist/queries-EMA5CcwY.js +0 -1399
- package/dist/queries-EMA5CcwY.js.map +0 -1
- package/dist/react-BLJ4DkPx.js.map +0 -1
- package/dist/react-F03jPjPk.css +0 -80
- package/dist/react-F03jPjPk.css.map +0 -1
- package/dist/tokenSupplies-C470zTT0.d.ts +0 -147
- package/dist/waitForTransactionReceipt-B08YZiDY.js +0 -26
- package/dist/waitForTransactionReceipt-B08YZiDY.js.map +0 -1
- /package/dist/{index-Cg5cFzs-.d.ts → index-6wsMChsg.d.ts} +0 -0
- /package/dist/{abi-DYsUABe6.js → queries-KOcILNJO.js} +0 -0
|
@@ -1,49 +1,43 @@
|
|
|
1
1
|
import type { TransactionReceipt } from '@0xsequence/indexer';
|
|
2
|
-
import {
|
|
3
|
-
type Hex,
|
|
4
|
-
TransactionReceiptNotFoundError,
|
|
5
|
-
WaitForTransactionReceiptTimeoutError,
|
|
6
|
-
} from 'viem';
|
|
2
|
+
import { type Hex, TransactionReceiptNotFoundError } from 'viem';
|
|
7
3
|
import type { SdkConfig } from '../../types';
|
|
8
4
|
import { getIndexerClient } from '../_internal/api';
|
|
9
5
|
|
|
10
|
-
const
|
|
11
|
-
const
|
|
6
|
+
const MAX_RETRIES = 3;
|
|
7
|
+
const MAX_BLOCK_WAIT = 30;
|
|
12
8
|
|
|
13
9
|
export const waitForTransactionReceipt = async ({
|
|
14
10
|
txHash,
|
|
15
11
|
chainId,
|
|
16
12
|
sdkConfig,
|
|
17
|
-
|
|
13
|
+
maxBlockWait = MAX_BLOCK_WAIT,
|
|
18
14
|
}: {
|
|
19
15
|
txHash: Hex;
|
|
20
16
|
chainId: number;
|
|
21
17
|
sdkConfig: SdkConfig;
|
|
22
|
-
|
|
18
|
+
maxBlockWait?: number;
|
|
23
19
|
}): Promise<TransactionReceipt> => {
|
|
24
20
|
const indexer = getIndexerClient(chainId, sdkConfig);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
},
|
|
21
|
+
let retries = 0;
|
|
22
|
+
|
|
23
|
+
while (retries < MAX_RETRIES) {
|
|
24
|
+
try {
|
|
25
|
+
const result = await indexer.fetchTransactionReceipt({
|
|
26
|
+
txnHash: txHash,
|
|
27
|
+
maxBlockWait,
|
|
28
|
+
});
|
|
29
|
+
return result.receipt;
|
|
30
|
+
} catch (error) {
|
|
31
|
+
retries++;
|
|
32
|
+
console.error(
|
|
33
|
+
`Failed to fetch transaction receipt (attempt ${retries}/${MAX_RETRIES}):`,
|
|
34
|
+
error,
|
|
41
35
|
);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
36
|
+
if (retries >= MAX_RETRIES) {
|
|
37
|
+
throw TransactionReceiptNotFoundError;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
throw TransactionReceiptNotFoundError;
|
|
49
43
|
};
|
package/src/styles/index.css
CHANGED
package/src/styles/styles.ts
CHANGED
|
@@ -34,7 +34,12 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
|
|
|
34
34
|
:root, :host {
|
|
35
35
|
--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
|
|
36
36
|
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
37
|
+
--color-red-100: oklch(93.6% 0.032 17.717);
|
|
38
|
+
--color-red-300: oklch(80.8% 0.114 19.571);
|
|
39
|
+
--color-red-400: oklch(70.4% 0.191 22.216);
|
|
37
40
|
--color-red-500: oklch(63.7% 0.237 25.331);
|
|
41
|
+
--color-red-900: oklch(39.6% 0.141 25.723);
|
|
42
|
+
--color-red-950: oklch(25.8% 0.092 26.042);
|
|
38
43
|
--color-green-500: oklch(72.3% 0.219 149.579);
|
|
39
44
|
--color-blue-500: oklch(62.3% 0.214 259.815);
|
|
40
45
|
--color-indigo-400: oklch(67.3% 0.182 276.935);
|
|
@@ -452,6 +457,9 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
|
|
|
452
457
|
.ml-5 {
|
|
453
458
|
margin-left: calc(var(--spacing) * 5);
|
|
454
459
|
}
|
|
460
|
+
.ml-10 {
|
|
461
|
+
margin-left: calc(var(--spacing) * 10);
|
|
462
|
+
}
|
|
455
463
|
.block {
|
|
456
464
|
display: block;
|
|
457
465
|
}
|
|
@@ -575,6 +583,9 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
|
|
|
575
583
|
.h-px {
|
|
576
584
|
height: 1px;
|
|
577
585
|
}
|
|
586
|
+
.max-h-96 {
|
|
587
|
+
max-height: calc(var(--spacing) * 96);
|
|
588
|
+
}
|
|
578
589
|
.max-h-\[240px\] {
|
|
579
590
|
max-height: 240px;
|
|
580
591
|
}
|
|
@@ -731,6 +742,9 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
|
|
|
731
742
|
.flex-shrink {
|
|
732
743
|
flex-shrink: 1;
|
|
733
744
|
}
|
|
745
|
+
.flex-shrink-0 {
|
|
746
|
+
flex-shrink: 0;
|
|
747
|
+
}
|
|
734
748
|
.shrink-0 {
|
|
735
749
|
flex-shrink: 0;
|
|
736
750
|
}
|
|
@@ -987,6 +1001,10 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
|
|
|
987
1001
|
border-style: var(--tw-border-style);
|
|
988
1002
|
border-width: 2px;
|
|
989
1003
|
}
|
|
1004
|
+
.border-t {
|
|
1005
|
+
border-top-style: var(--tw-border-style);
|
|
1006
|
+
border-top-width: 1px;
|
|
1007
|
+
}
|
|
990
1008
|
.border-b-2 {
|
|
991
1009
|
border-bottom-style: var(--tw-border-style);
|
|
992
1010
|
border-bottom-width: 2px;
|
|
@@ -1018,6 +1036,9 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
|
|
|
1018
1036
|
.border-border-normal {
|
|
1019
1037
|
border-color: var(--seq-color-border-normal);
|
|
1020
1038
|
}
|
|
1039
|
+
.border-red-900 {
|
|
1040
|
+
border-color: var(--color-red-900);
|
|
1041
|
+
}
|
|
1021
1042
|
.border-transparent {
|
|
1022
1043
|
border-color: transparent;
|
|
1023
1044
|
}
|
|
@@ -1030,6 +1051,9 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
|
|
|
1030
1051
|
.border-b-transparent {
|
|
1031
1052
|
border-bottom-color: transparent;
|
|
1032
1053
|
}
|
|
1054
|
+
.bg-\[\#2b0000\] {
|
|
1055
|
+
background-color: #2b0000;
|
|
1056
|
+
}
|
|
1033
1057
|
.bg-\[\#35a554\] {
|
|
1034
1058
|
background-color: #35a554;
|
|
1035
1059
|
}
|
|
@@ -1102,6 +1126,12 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
|
|
|
1102
1126
|
.bg-red-500 {
|
|
1103
1127
|
background-color: var(--color-red-500);
|
|
1104
1128
|
}
|
|
1129
|
+
.bg-red-900 {
|
|
1130
|
+
background-color: var(--color-red-900);
|
|
1131
|
+
}
|
|
1132
|
+
.bg-red-950 {
|
|
1133
|
+
background-color: var(--color-red-950);
|
|
1134
|
+
}
|
|
1105
1135
|
.bg-surface-neutral {
|
|
1106
1136
|
background-color: var(--color-surface-neutral);
|
|
1107
1137
|
}
|
|
@@ -1411,12 +1441,18 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
|
|
|
1411
1441
|
--tw-tracking: var(--tracking-widest);
|
|
1412
1442
|
letter-spacing: var(--tracking-widest);
|
|
1413
1443
|
}
|
|
1444
|
+
.break-words {
|
|
1445
|
+
overflow-wrap: break-word;
|
|
1446
|
+
}
|
|
1414
1447
|
.text-ellipsis {
|
|
1415
1448
|
text-overflow: ellipsis;
|
|
1416
1449
|
}
|
|
1417
1450
|
.whitespace-nowrap {
|
|
1418
1451
|
white-space: nowrap;
|
|
1419
1452
|
}
|
|
1453
|
+
.whitespace-pre-wrap {
|
|
1454
|
+
white-space: pre-wrap;
|
|
1455
|
+
}
|
|
1420
1456
|
.text-background-raised {
|
|
1421
1457
|
color: var(--seq-color-background-raised);
|
|
1422
1458
|
}
|
|
@@ -1453,6 +1489,15 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
|
|
|
1453
1489
|
.text-primary {
|
|
1454
1490
|
color: var(--seq-color-primary);
|
|
1455
1491
|
}
|
|
1492
|
+
.text-red-100 {
|
|
1493
|
+
color: var(--color-red-100);
|
|
1494
|
+
}
|
|
1495
|
+
.text-red-300 {
|
|
1496
|
+
color: var(--color-red-300);
|
|
1497
|
+
}
|
|
1498
|
+
.text-red-400 {
|
|
1499
|
+
color: var(--color-red-400);
|
|
1500
|
+
}
|
|
1456
1501
|
.text-red-500 {
|
|
1457
1502
|
color: var(--color-red-500);
|
|
1458
1503
|
}
|
|
@@ -2025,6 +2070,13 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
|
|
|
2025
2070
|
}
|
|
2026
2071
|
}
|
|
2027
2072
|
}
|
|
2073
|
+
.hover\:text-red-300 {
|
|
2074
|
+
&:hover {
|
|
2075
|
+
@media (hover: hover) {
|
|
2076
|
+
color: var(--color-red-300);
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2028
2080
|
.hover\:text-text-80 {
|
|
2029
2081
|
&:hover {
|
|
2030
2082
|
@media (hover: hover) {
|
|
@@ -2416,6 +2468,11 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
|
|
|
2416
2468
|
display: flex;
|
|
2417
2469
|
}
|
|
2418
2470
|
}
|
|
2471
|
+
.\[\&\>label\]\:w-16 {
|
|
2472
|
+
&>label {
|
|
2473
|
+
width: calc(var(--spacing) * 16);
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2419
2476
|
.\[\&\>label\]\:w-full {
|
|
2420
2477
|
&>label {
|
|
2421
2478
|
width: 100%;
|
|
@@ -3004,6 +3061,103 @@ export const styles = String.raw`/* Modified Tailwind CSS, to avoid issues with
|
|
|
3004
3061
|
.rdp-caption_before_exit {
|
|
3005
3062
|
animation: rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards;
|
|
3006
3063
|
}
|
|
3064
|
+
.rdp-root {
|
|
3065
|
+
width: 100% !important;
|
|
3066
|
+
padding: 0 !important;
|
|
3067
|
+
user-select: none;
|
|
3068
|
+
}
|
|
3069
|
+
.rdp-nav {
|
|
3070
|
+
position: absolute;
|
|
3071
|
+
width: 100%;
|
|
3072
|
+
height: fit-content !important;
|
|
3073
|
+
display: flex;
|
|
3074
|
+
align-items: center;
|
|
3075
|
+
justify-content: space-between;
|
|
3076
|
+
}
|
|
3077
|
+
.rdp-caption_label {
|
|
3078
|
+
color: var(--color-text-100) !important;
|
|
3079
|
+
}
|
|
3080
|
+
.rdp-months {
|
|
3081
|
+
width: 100%;
|
|
3082
|
+
max-width: unset !important;
|
|
3083
|
+
}
|
|
3084
|
+
.rdp-month_caption {
|
|
3085
|
+
text-align: center;
|
|
3086
|
+
width: 100%;
|
|
3087
|
+
height: 36px !important;
|
|
3088
|
+
display: block !important;
|
|
3089
|
+
font-size: 14px !important;
|
|
3090
|
+
}
|
|
3091
|
+
.rdp-month_grid {
|
|
3092
|
+
width: 100%;
|
|
3093
|
+
}
|
|
3094
|
+
.rdp-month {
|
|
3095
|
+
width: 100%;
|
|
3096
|
+
}
|
|
3097
|
+
.rdp-button_previous {
|
|
3098
|
+
background-color: var(--color-overlay-light) !important;
|
|
3099
|
+
border-radius: 50%;
|
|
3100
|
+
}
|
|
3101
|
+
.rdp-button_previous:hover {
|
|
3102
|
+
background-color: var(--color-overlay-glass) !important;
|
|
3103
|
+
}
|
|
3104
|
+
.rdp-button_previous > svg {
|
|
3105
|
+
fill: var(--color-text-100) !important;
|
|
3106
|
+
width: 16px !important;
|
|
3107
|
+
height: 16px !important;
|
|
3108
|
+
}
|
|
3109
|
+
.rdp-button_next {
|
|
3110
|
+
background-color: var(--color-overlay-light) !important;
|
|
3111
|
+
border-radius: 50%;
|
|
3112
|
+
}
|
|
3113
|
+
.rdp-button_next:hover {
|
|
3114
|
+
background-color: var(--color-overlay-glass) !important;
|
|
3115
|
+
}
|
|
3116
|
+
.rdp-button_next > svg {
|
|
3117
|
+
fill: var(--color-text-100) !important;
|
|
3118
|
+
width: 16px !important;
|
|
3119
|
+
height: 16px !important;
|
|
3120
|
+
}
|
|
3121
|
+
.rdp-weekdays {
|
|
3122
|
+
display: flex;
|
|
3123
|
+
justify-content: space-between;
|
|
3124
|
+
}
|
|
3125
|
+
.rdp-weekday {
|
|
3126
|
+
padding: 16px 0 !important;
|
|
3127
|
+
font-size: 14px !important;
|
|
3128
|
+
font-weight: var(--font-weight-medium) !important;
|
|
3129
|
+
color: var(--color-text-80) !important;
|
|
3130
|
+
}
|
|
3131
|
+
.rdp-weeks {
|
|
3132
|
+
display: flex;
|
|
3133
|
+
flex-direction: column;
|
|
3134
|
+
gap: 4px;
|
|
3135
|
+
}
|
|
3136
|
+
.rdp-week {
|
|
3137
|
+
display: flex;
|
|
3138
|
+
justify-content: space-between;
|
|
3139
|
+
}
|
|
3140
|
+
.rdp-day {
|
|
3141
|
+
width: 24px !important;
|
|
3142
|
+
height: 24px !important;
|
|
3143
|
+
}
|
|
3144
|
+
.rdp-day_button {
|
|
3145
|
+
width: 24px !important;
|
|
3146
|
+
height: 24px !important;
|
|
3147
|
+
font-size: var(--text-xs) !important;
|
|
3148
|
+
color: var(--color-text-80) !important;
|
|
3149
|
+
}
|
|
3150
|
+
.rdp-day_button:disabled {
|
|
3151
|
+
color: var(--color-text-50) !important;
|
|
3152
|
+
}
|
|
3153
|
+
.rdp-day.rdp-today {
|
|
3154
|
+
outline: 1px solid var(--color-violet-700) !important;
|
|
3155
|
+
border-radius: 50% !important;
|
|
3156
|
+
}
|
|
3157
|
+
.rdp-day.rdp-selected {
|
|
3158
|
+
background: var(--seq-color-gradient-primary) !important;
|
|
3159
|
+
border-radius: 50% !important;
|
|
3160
|
+
}
|
|
3007
3161
|
@keyframes fadeIn {
|
|
3008
3162
|
0% {
|
|
3009
3163
|
opacity: 0;
|
|
@@ -3294,4 +3448,4 @@ video::-webkit-media-controls {
|
|
|
3294
3448
|
}
|
|
3295
3449
|
}
|
|
3296
3450
|
}
|
|
3297
|
-
`;
|
|
3451
|
+
`;
|
package/src/types/index.ts
CHANGED
|
@@ -2,7 +2,7 @@ export {
|
|
|
2
2
|
FilterCondition,
|
|
3
3
|
type MarketplaceWallet,
|
|
4
4
|
} from '../react/_internal/api/builder.gen';
|
|
5
|
-
export type * from '
|
|
5
|
+
export type * from '../react/queries/market/marketplaceConfig';
|
|
6
6
|
export * from './api-types';
|
|
7
7
|
export * from './sdk-config';
|
|
8
8
|
export * from './types';
|
package/src/utils/abi/index.ts
CHANGED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
export const MAIN_MODULE_ABI = [
|
|
2
|
+
{
|
|
3
|
+
type: 'function',
|
|
4
|
+
name: 'nonce',
|
|
5
|
+
constant: true,
|
|
6
|
+
inputs: [],
|
|
7
|
+
outputs: [
|
|
8
|
+
{
|
|
9
|
+
type: 'uint256',
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
payable: false,
|
|
13
|
+
stateMutability: 'view',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
type: 'function',
|
|
17
|
+
name: 'readNonce',
|
|
18
|
+
constant: true,
|
|
19
|
+
inputs: [
|
|
20
|
+
{
|
|
21
|
+
type: 'uint256',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
outputs: [
|
|
25
|
+
{
|
|
26
|
+
type: 'uint256',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
payable: false,
|
|
30
|
+
stateMutability: 'view',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: 'function',
|
|
34
|
+
name: 'updateImplementation',
|
|
35
|
+
constant: false,
|
|
36
|
+
inputs: [
|
|
37
|
+
{
|
|
38
|
+
type: 'address',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
outputs: [],
|
|
42
|
+
payable: false,
|
|
43
|
+
stateMutability: 'nonpayable',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: 'function',
|
|
47
|
+
name: 'selfExecute',
|
|
48
|
+
constant: false,
|
|
49
|
+
inputs: [
|
|
50
|
+
{
|
|
51
|
+
components: [
|
|
52
|
+
{
|
|
53
|
+
type: 'bool',
|
|
54
|
+
name: 'delegateCall',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
type: 'bool',
|
|
58
|
+
name: 'revertOnError',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
type: 'uint256',
|
|
62
|
+
name: 'gasLimit',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
type: 'address',
|
|
66
|
+
name: 'target',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
type: 'uint256',
|
|
70
|
+
name: 'value',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
type: 'bytes',
|
|
74
|
+
name: 'data',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
type: 'tuple[]',
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
outputs: [],
|
|
81
|
+
payable: false,
|
|
82
|
+
stateMutability: 'nonpayable',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: 'function',
|
|
86
|
+
name: 'execute',
|
|
87
|
+
constant: false,
|
|
88
|
+
inputs: [
|
|
89
|
+
{
|
|
90
|
+
components: [
|
|
91
|
+
{
|
|
92
|
+
type: 'bool',
|
|
93
|
+
name: 'delegateCall',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
type: 'bool',
|
|
97
|
+
name: 'revertOnError',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: 'uint256',
|
|
101
|
+
name: 'gasLimit',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
type: 'address',
|
|
105
|
+
name: 'target',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
type: 'uint256',
|
|
109
|
+
name: 'value',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
type: 'bytes',
|
|
113
|
+
name: 'data',
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
type: 'tuple[]',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
type: 'uint256',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
type: 'bytes',
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
outputs: [],
|
|
126
|
+
payable: false,
|
|
127
|
+
stateMutability: 'nonpayable',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
type: 'function',
|
|
131
|
+
name: 'createContract',
|
|
132
|
+
inputs: [
|
|
133
|
+
{
|
|
134
|
+
type: 'bytes',
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
payable: true,
|
|
138
|
+
stateMutability: 'payable',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
type: 'function',
|
|
142
|
+
name: 'setExtraImageHash',
|
|
143
|
+
constant: false,
|
|
144
|
+
inputs: [
|
|
145
|
+
{
|
|
146
|
+
type: 'bytes32',
|
|
147
|
+
name: 'imageHash',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
type: 'uint256',
|
|
151
|
+
name: 'expiration',
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
outputs: [],
|
|
155
|
+
payable: false,
|
|
156
|
+
stateMutability: 'nonpayable',
|
|
157
|
+
},
|
|
158
|
+
];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CollectibleCardProps } from "./types-D6LkVrF0.js";
|
|
2
|
-
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/react/ui/components/marketplace-collectible-card/CollectibleCard.d.ts
|
|
5
|
-
declare function CollectibleCard(props: CollectibleCardProps): react_jsx_runtime20.JSX.Element | undefined;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { CollectibleCard };
|
|
8
|
-
//# sourceMappingURL=CollectibleCard-C2EWF0zo.d.ts.map
|
package/dist/api-DuLKn__v.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-DuLKn__v.js","names":["browserQueryClient: QueryClient | undefined","projectAccessKey: string","jwtAuth?: string","headers: Record<string, string>"],"sources":["../src/react/_internal/api/get-query-client.ts","../src/react/_internal/api/laos-api.ts","../src/react/_internal/api/marketplace-api.ts","../src/react/_internal/api/query-keys.ts","../src/react/_internal/api/services.ts"],"sourcesContent":["import {\n\tdefaultShouldDehydrateQuery,\n\tQueryClient,\n} from '@tanstack/react-query';\nimport { hashFn } from 'wagmi/query';\n\nfunction makeQueryClient() {\n\treturn new QueryClient({\n\t\tdefaultOptions: {\n\t\t\tqueries: {\n\t\t\t\tstaleTime: 60 * 1000,\n\t\t\t\tqueryKeyHashFn: hashFn,\n\t\t\t},\n\t\t\tdehydrate: {\n\t\t\t\tshouldDehydrateQuery: (query) =>\n\t\t\t\t\tdefaultShouldDehydrateQuery(query) ||\n\t\t\t\t\tquery.state.status === 'pending',\n\t\t\t},\n\t\t},\n\t});\n}\n\nlet browserQueryClient: QueryClient | undefined;\n\nexport function getQueryClient() {\n\tif (typeof globalThis.document === 'undefined') {\n\t\treturn makeQueryClient();\n\t}\n\n\tif (!browserQueryClient) browserQueryClient = makeQueryClient();\n\treturn browserQueryClient;\n}\n","import type {\n\tGetTokenBalancesReturn,\n\tGetTokenSuppliesReturn,\n} from '@0xsequence/indexer';\n\nexport type SortOption = {\n\tcolumn: string;\n\torder: 'ASC' | 'DESC';\n};\n\nexport type PaginationOptions = {\n\tsort: SortOption[];\n};\n\nexport type TokenSuppliesParams = {\n\tchainId: string;\n\tcontractAddress: string;\n\tincludeMetadata?: boolean;\n\tpage?: PaginationOptions;\n};\n\nexport type TokenBalancesParams = {\n\tchainId: string;\n\taccountAddress: string;\n\tcontractAddress: string;\n\tincludeMetadata?: boolean;\n\tpage?: PaginationOptions;\n};\n\nexport class LaosAPI {\n\tprivate baseUrl = 'https://extensions.api.laosnetwork.io';\n\n\tconstructor(baseUrl?: string) {\n\t\tif (baseUrl) {\n\t\t\tthis.baseUrl = baseUrl;\n\t\t}\n\t}\n\n\tasync getTokenSupplies({\n\t\tchainId,\n\t\tcontractAddress,\n\t\tincludeMetadata = true,\n\t\tpage = {\n\t\t\tsort: [\n\t\t\t\t{\n\t\t\t\t\tcolumn: 'CREATED_AT',\n\t\t\t\t\torder: 'DESC',\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t}: TokenSuppliesParams): Promise<GetTokenSuppliesReturn> {\n\t\tconst response = await fetch(`${this.baseUrl}/token/GetTokenSupplies`, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: {\n\t\t\t\t'Content-Type': 'application/json',\n\t\t\t},\n\t\t\tbody: JSON.stringify({\n\t\t\t\tchainId,\n\t\t\t\tcontractAddress,\n\t\t\t\tincludeMetadata,\n\t\t\t\tpage,\n\t\t\t}),\n\t\t});\n\n\t\tif (!response.ok) {\n\t\t\tthrow new Error(`Failed to get token supplies: ${response.statusText}`);\n\t\t}\n\n\t\treturn await response.json();\n\t}\n\n\tasync getTokenBalances({\n\t\tchainId,\n\t\taccountAddress,\n\t\tcontractAddress,\n\t\tincludeMetadata = true,\n\t\tpage = {\n\t\t\tsort: [\n\t\t\t\t{\n\t\t\t\t\tcolumn: 'CREATED_AT',\n\t\t\t\t\torder: 'DESC',\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t}: TokenBalancesParams): Promise<GetTokenBalancesReturn> {\n\t\tconst response = await fetch(`${this.baseUrl}/token/GetTokenBalances`, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: {\n\t\t\t\t'Content-Type': 'application/json',\n\t\t\t},\n\t\t\tbody: JSON.stringify({\n\t\t\t\tchainId,\n\t\t\t\taccountAddress,\n\t\t\t\tcontractAddress,\n\t\t\t\tincludeMetadata,\n\t\t\t\tpage,\n\t\t\t}),\n\t\t});\n\n\t\tif (!response.ok) {\n\t\t\tthrow new Error(`Failed to get token balances: ${response.statusText}`);\n\t\t}\n\n\t\treturn await response.json();\n\t}\n}\n","import { Marketplace } from './marketplace.gen';\n\nexport class SequenceMarketplace extends Marketplace {\n\tconstructor(\n\t\thostname: string,\n\t\tpublic projectAccessKey: string,\n\t\tpublic jwtAuth?: string,\n\t) {\n\t\tsuper(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);\n\t\tthis.fetch = this._fetch;\n\t}\n\n\t_fetch = (input: RequestInfo, init?: RequestInit): Promise<Response> => {\n\t\tconst headers: Record<string, string> = {};\n\n\t\tconst jwtAuth = this.jwtAuth;\n\t\tconst projectAccessKey = this.projectAccessKey;\n\n\t\tif (jwtAuth && jwtAuth.length > 0) {\n\t\t\theaders.Authorization = `BEARER ${jwtAuth}`;\n\t\t}\n\n\t\tif (projectAccessKey && projectAccessKey.length > 0) {\n\t\t\theaders['X-Access-Key'] = projectAccessKey;\n\t\t}\n\n\t\tconst requestInit = init || {};\n\t\trequestInit.headers = { ...init?.headers, ...headers };\n\n\t\treturn fetch(input, requestInit);\n\t};\n}\n","// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass CollectableKeys {\n\tstatic all = ['collectable'] as const;\n\tstatic details = [...CollectableKeys.all, 'details'] as const;\n\tstatic lists = [...CollectableKeys.all, 'list'] as const;\n\tstatic floorOrders = [...CollectableKeys.all, 'floorOrders'] as const;\n\tstatic userBalances = [\n\t\t...CollectableKeys.all,\n\t\t...CollectableKeys.details,\n\t\t'userBalances',\n\t] as const;\n\tstatic royaltyPercentage = [\n\t\t...CollectableKeys.all,\n\t\t'royaltyPercentage',\n\t] as const;\n\tstatic highestOffers = [\n\t\t...CollectableKeys.all,\n\t\t...CollectableKeys.details,\n\t\t'highestOffers',\n\t] as const;\n\tstatic lowestListings = [\n\t\t...CollectableKeys.all,\n\t\t...CollectableKeys.details,\n\t\t'lowestListings',\n\t] as const;\n\tstatic offers = [...CollectableKeys.all, 'offers'] as const;\n\tstatic offersCount = [...CollectableKeys.all, 'offersCount'] as const;\n\tstatic listings = [...CollectableKeys.all, 'listings'] as const;\n\tstatic listingsCount = [...CollectableKeys.all, 'listingsCount'] as const;\n\tstatic listPrimarySaleItems = ['listPrimarySaleItems'] as const;\n\tstatic filter = [...CollectableKeys.all, 'filter'] as const;\n\tstatic counts = [...CollectableKeys.all, 'counts'] as const;\n\tstatic collectibleActivities = [\n\t\t...CollectableKeys.all,\n\t\t'collectibleActivities',\n\t] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass CollectionKeys {\n\tstatic all = ['collections'] as const;\n\tstatic list = [...CollectionKeys.all, 'list'] as const;\n\tstatic detail = [...CollectionKeys.all, 'detail'] as const;\n\tstatic collectionActivities = [\n\t\t...CollectionKeys.all,\n\t\t'collectionActivities',\n\t] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass BalanceQueries {\n\tstatic all = ['balances'] as const;\n\tstatic lists = [...BalanceQueries.all, 'tokenBalances'] as const;\n\tstatic collectionBalanceDetails = [\n\t\t...BalanceQueries.all,\n\t\t'collectionBalanceDetails',\n\t] as const;\n\tstatic inventory = ['inventory'] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass CheckoutKeys {\n\tstatic all = ['checkouts'] as const;\n\tstatic options = [...CheckoutKeys.all, 'options'] as const;\n\tstatic cartItems = [...CheckoutKeys.all, 'cartItems'] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass CurrencyKeys {\n\tstatic all = ['currencies'] as const;\n\tstatic lists = [...CurrencyKeys.all, 'list'] as const;\n\tstatic details = [...CurrencyKeys.all, 'details'] as const;\n\tstatic conversion = [...CurrencyKeys.all, 'conversion'] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass ConfigKeys {\n\tstatic all = ['configs'] as const;\n\tstatic marketplace = [...ConfigKeys.all, 'marketplace'] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass TokenKeys {\n\tstatic all = ['tokens'] as const;\n\tstatic metadata = [...TokenKeys.all, 'metadata'] as const;\n\tstatic supplies = [...TokenKeys.all, 'supplies'] as const;\n}\n\n// biome-ignore lint/complexity/noStaticOnlyClass: static class provides better organization and type safety for query keys\nclass TokenSuppliesKeys {\n\tstatic all = ['tokenSupplies'] as const;\n\tstatic maps = [...TokenSuppliesKeys.all, 'map'] as const;\n}\nexport const collectableKeys = CollectableKeys;\nexport const collectionKeys = CollectionKeys;\nexport const balanceQueries = BalanceQueries;\nexport const checkoutKeys = CheckoutKeys;\nexport const currencyKeys = CurrencyKeys;\nexport const configKeys = ConfigKeys;\nexport const tokenKeys = TokenKeys;\nexport const tokenSuppliesKeys = TokenSuppliesKeys;\n","import { SequenceAPIClient } from '@0xsequence/api';\nimport { SequenceIndexer } from '@0xsequence/indexer';\nimport { SequenceMetadata } from '@0xsequence/metadata';\nimport { stringTemplate } from '@0xsequence/network';\nimport type { ApiConfig, Env, SdkConfig } from '../../../types/sdk-config';\nimport { getNetwork } from '../../../utils/network';\nimport { BuilderAPI } from './builder-api';\nimport { SequenceMarketplace } from './marketplace-api';\n\nconst SERVICES = {\n\t// biome-ignore lint/suspicious/noTemplateCurlyInString: template placeholder for stringTemplate function\n\tsequenceApi: 'https://${prefix}api.sequence.app',\n\t// biome-ignore lint/suspicious/noTemplateCurlyInString: template placeholder for stringTemplate function\n\tmetadata: 'https://${prefix}metadata.sequence.app',\n\t// biome-ignore lint/suspicious/noTemplateCurlyInString: template placeholder for stringTemplate function\n\tindexer: 'https://${prefix}${network}-indexer.sequence.app',\n\t// biome-ignore lint/suspicious/noTemplateCurlyInString: template placeholder for stringTemplate function\n\tmarketplaceApi: 'https://${prefix}marketplace-api.sequence.app',\n\t// biome-ignore lint/suspicious/noTemplateCurlyInString: template placeholder for stringTemplate function\n\tbuilderRpcApi: 'https://${prefix}api.sequence.build',\n};\n\ntype ChainNameOrId = string | number;\n\nconst metadataURL = (env: Env = 'production') => {\n\tconst prefix = getPrefix(env);\n\treturn stringTemplate(SERVICES.metadata, { prefix });\n};\n\nconst indexerURL = (chain: ChainNameOrId, env: Env = 'production') => {\n\tconst prefix = getPrefix(env);\n\tconst network = getNetwork(chain).name;\n\treturn stringTemplate(SERVICES.indexer, { network: network, prefix });\n};\n\nconst marketplaceApiURL = (env: Env = 'production') => {\n\tconst prefix = getPrefix(env);\n\treturn stringTemplate(SERVICES.marketplaceApi, { prefix });\n};\n\nconst builderRpcApiURL = (env: Env = 'production') => {\n\tconst prefix = getPrefix(env);\n\treturn stringTemplate(SERVICES.builderRpcApi, { prefix });\n};\n\nexport const sequenceApiUrl = (env: Env = 'production') => {\n\tconst prefix = getPrefix(env);\n\treturn stringTemplate(SERVICES.sequenceApi, { prefix });\n};\n\nexport const getBuilderClient = (config: SdkConfig) => {\n\tconst overrides = config._internal?.overrides?.api?.builder;\n\tconst url =\n\t\toverrides?.url || builderRpcApiURL(overrides?.env || 'production');\n\tconst projectAccessKey = overrides?.accessKey || config.projectAccessKey;\n\treturn new BuilderAPI(url, projectAccessKey);\n};\n\nexport const getMetadataClient = (config: SdkConfig) => {\n\tconst overrides = config._internal?.overrides?.api?.metadata;\n\tconst url = overrides?.url || metadataURL(overrides?.env || 'production');\n\tconst projectAccessKey = overrides?.accessKey || config.projectAccessKey;\n\treturn new SequenceMetadata(url, projectAccessKey);\n};\n\nexport const getIndexerClient = (chain: ChainNameOrId, config: SdkConfig) => {\n\tconst overrides = config._internal?.overrides?.api?.indexer;\n\tconst url =\n\t\toverrides?.url || indexerURL(chain, overrides?.env || 'production');\n\tconst projectAccessKey = overrides?.accessKey || config.projectAccessKey;\n\treturn new SequenceIndexer(url, projectAccessKey);\n};\n\nexport const getMarketplaceClient = (config: SdkConfig) => {\n\tconst overrides = config._internal?.overrides?.api?.marketplace;\n\tconst url =\n\t\toverrides?.url || marketplaceApiURL(overrides?.env || 'production');\n\tconst projectAccessKey = overrides?.accessKey || config.projectAccessKey;\n\treturn new SequenceMarketplace(url, projectAccessKey);\n};\n\nexport const getSequenceApiClient = (config: SdkConfig) => {\n\tconst overrides = config._internal?.overrides?.api?.sequenceApi;\n\tconst url = overrides?.url || sequenceApiUrl(overrides?.env || 'production');\n\tconst projectAccessKey = overrides?.accessKey || config.projectAccessKey;\n\treturn new SequenceAPIClient(url, projectAccessKey);\n};\n\nconst getPrefix = (env: ApiConfig['env']) => {\n\tswitch (env) {\n\t\tcase 'development':\n\t\t\treturn 'dev-';\n\t\tcase 'production':\n\t\t\treturn '';\n\t\tcase 'next':\n\t\t\treturn 'next-';\n\t}\n};\n"],"mappings":";;;;;;;;;;;AAMA,SAAS,kBAAkB;AAC1B,QAAO,IAAI,YAAY,EACtB,gBAAgB;EACf,SAAS;GACR,WAAW,KAAK;GAChB,gBAAgB;GAChB;EACD,WAAW,EACV,uBAAuB,UACtB,4BAA4B,MAAM,IAClC,MAAM,MAAM,WAAW,WACxB;EACD,EACD,CAAC;;AAGH,IAAIA;AAEJ,SAA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AAsB;CAC5E,MAAM,YAAY,OAAO,WAAW,WAAW,KAAK;CACpD,MAAM,MACL,WAAW,OAAO,WAAW,OAAO,WAAW,OAAO,aAAa;CACpE,MAAM,mBAAmB,WAAW,aAAa,OAAO;AACxD,QAAO,IAAI,gBAAgB,KAAK,iBAAiB;;AAGlD,MAAa,wBAAwB,WAAsB;CAC1D,MAAM,YAAY,OAAO,WAAW,WAAW,KAAK;CACpD,MAAM,MACL,WAAW,OAAO,kBAAkB,WAAW,OAAO,aAAa;CACpE,MAAM,mBAAmB,WAAW,aAAa,OAAO;AACxD,QAAO,IAAI,oBAAoB,KAAK,iBAAiB;;AAGtD,MAAa,wBAAwB,WAAsB;CAC1D,MAAM,YAAY,OAAO,WAAW,WAAW,KAAK;CACpD,MAAM,MAAM,WAAW,OAAO,eAAe,WAAW,OAAO,aAAa;CAC5E,MAAM,mBAAmB,WAAW,aAAa,OAAO;AACxD,QAAO,IAAI,kBAAkB,KAAK,iBAAiB;;AAGpD,MAAM,aAAa,QAA0B;AAC5C,SAAQ,KAAR;EACC,KAAK,cACJ,QAAO;EACR,KAAK,aACJ,QAAO;EACR,KAAK,OACJ,QAAO"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { SdkConfig, ValuesOptional } from "./create-config-DV_dtaLt.js";
|
|
2
|
-
import { StandardQueryOptions } from "./query-BG-MA1MB.js";
|
|
3
|
-
import * as _tanstack_react_query290 from "@tanstack/react-query";
|
|
4
|
-
import { PropertyFilter } from "@0xsequence/metadata";
|
|
5
|
-
|
|
6
|
-
//#region src/react/queries/filters.d.ts
|
|
7
|
-
interface FetchFiltersParams {
|
|
8
|
-
chainId: number;
|
|
9
|
-
collectionAddress: string;
|
|
10
|
-
showAllFilters?: boolean;
|
|
11
|
-
excludePropertyValues?: boolean;
|
|
12
|
-
config: SdkConfig;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Fetches collection filters from the Metadata API with optional marketplace filtering
|
|
16
|
-
*/
|
|
17
|
-
declare function fetchFilters(params: FetchFiltersParams): Promise<PropertyFilter[]>;
|
|
18
|
-
type FiltersQueryOptions = ValuesOptional<FetchFiltersParams> & {
|
|
19
|
-
query?: StandardQueryOptions;
|
|
20
|
-
};
|
|
21
|
-
declare function filtersQueryOptions(params: FiltersQueryOptions): _tanstack_react_query290.OmitKeyof<_tanstack_react_query290.UseQueryOptions<PropertyFilter[], Error, PropertyFilter[], (string | FiltersQueryOptions)[]>, "queryFn"> & {
|
|
22
|
-
queryFn?: _tanstack_react_query290.QueryFunction<PropertyFilter[], (string | FiltersQueryOptions)[], never> | undefined;
|
|
23
|
-
} & {
|
|
24
|
-
queryKey: (string | FiltersQueryOptions)[] & {
|
|
25
|
-
[dataTagSymbol]: PropertyFilter[];
|
|
26
|
-
[dataTagErrorSymbol]: Error;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
//#endregion
|
|
30
|
-
export { FetchFiltersParams, FiltersQueryOptions, fetchFilters, filtersQueryOptions };
|
|
31
|
-
//# sourceMappingURL=filters-zkMJaPey.d.ts.map
|