@0xsequence/marketplace-sdk 0.8.12 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +91 -23
- package/dist/{CartIcon-Bll1rbxv.js → CalendarIcon-DbQ7Vxcw.js} +38 -38
- package/dist/CalendarIcon-DbQ7Vxcw.js.map +1 -0
- package/dist/{types-BIJOaL4j.d.ts → CollectibleCard-C8Ae64Ab.d.ts} +7 -4
- package/dist/{_internal-69NEWNUE.js → _internal-BgWcRIak.js} +2 -14
- package/dist/_internal-BgWcRIak.js.map +1 -0
- package/dist/{api-1KFxYh7o.js → api-DTIan01C.js} +73 -64
- package/dist/api-DTIan01C.js.map +1 -0
- package/dist/{builder-api-BQvzykoU.js → builder-api-BFuZNOaN.js} +2 -2
- package/dist/{builder-api-BQvzykoU.js.map → builder-api-BFuZNOaN.js.map} +1 -1
- package/dist/{builder-api-DoK3907S.d.ts → builder-api-C_zj5mr3.d.ts} +2 -2
- package/dist/{builder.gen-CxP9NT1p.js → builder.gen-B9wR2nvF.js} +1 -1
- package/dist/builder.gen-B9wR2nvF.js.map +1 -0
- package/dist/{index-Cl7PQOGu.d.ts → index-21LE7OhL.d.ts} +24 -24
- package/dist/{index-1bezgsFq.d.ts → index-BL9RUSEK.d.ts} +929 -255
- package/dist/index-BQsgAvtX.d.ts +2938 -0
- package/dist/{index-DafWjEb4.d.ts → index-BUVWziLP.d.ts} +9 -14
- package/dist/{index-BIMIpDiI.d.ts → index-ByznONYE.d.ts} +98 -99
- package/dist/{index-BjIwVzc4.d.ts → index-CLy8y5hm.d.ts} +238 -238
- package/dist/{index-CN8puQQJ.d.ts → index-COt10OgI.d.ts} +4 -4
- package/dist/index-DPNWNa7t.d.ts +414 -0
- package/dist/{index-BEYefG1G.d.ts → index-DaE5ZNHb.d.ts} +2 -2
- package/dist/{index-BfH21xmk.d.ts → index-DsfCs3-x.d.ts} +46 -41
- package/dist/{index-4-kfOFdx.d.ts → index-dUb6wb4Y.d.ts} +5 -5
- package/dist/index.css +14 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +7 -7
- package/dist/marketplace-logos-CSeGcPW4.js.map +1 -1
- package/dist/{marketplace.gen-Dqk8vRmD.js → marketplace.gen-BSDIX7NZ.js} +12 -3
- package/dist/marketplace.gen-BSDIX7NZ.js.map +1 -0
- package/dist/{marketplaceConfig-D2MYFqll.js → marketplaceConfig-C6X1SUik.js} +2 -2
- package/dist/marketplaceConfig-C6X1SUik.js.map +1 -0
- package/dist/{sdk-config-DJzxVPld.d.ts → new-marketplace-types-Bfis0U4J.d.ts} +65 -54
- package/dist/options-B4QN7Xou.js +0 -0
- package/dist/{primary-sale-Cw95phYC.js → primary-sale-C55ALnfQ.js} +279 -279
- package/dist/primary-sale-C55ALnfQ.js.map +1 -0
- package/dist/{queries-DPvwtnO7.js → queries-CUU65uYZ.js} +247 -134
- package/dist/queries-CUU65uYZ.js.map +1 -0
- package/dist/react/_internal/api/index.d.ts +4 -4
- package/dist/react/_internal/api/index.js +5 -5
- package/dist/react/_internal/databeat/index.d.ts +3 -3
- package/dist/react/_internal/databeat/index.js +15 -15
- package/dist/react/_internal/index.d.ts +7 -7
- package/dist/react/_internal/index.js +7 -7
- package/dist/react/_internal/wagmi/index.d.ts +3 -3
- package/dist/react/_internal/wagmi/index.js +2 -2
- package/dist/react/hooks/index.d.ts +15 -14
- package/dist/react/hooks/index.js +16 -16
- package/dist/react/hooks/options/index.d.ts +4 -5
- package/dist/react/hooks/options/index.js +9 -9
- package/dist/react/index.d.ts +15 -37
- package/dist/react/index.js +16 -16
- package/dist/react/queries/index.d.ts +8 -8
- package/dist/react/queries/index.js +12 -12
- package/dist/react/ssr/index.d.ts +6 -6
- package/dist/react/ssr/index.js +7 -7
- package/dist/react/ssr/index.js.map +1 -1
- package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +8 -9
- package/dist/react/ui/components/marketplace-collectible-card/index.js +15 -15
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +7 -7
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.js +7 -7
- package/dist/react/ui/components/marketplace-logos/index.d.ts +21 -21
- package/dist/react/ui/icons/index.js +6 -6
- package/dist/react/ui/index.d.ts +8 -9
- package/dist/react/ui/index.js +15 -15
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +5 -5
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +15 -15
- package/dist/{react-BG7o4PId.js → react-DAIicQPT.js} +7422 -6835
- package/dist/react-DAIicQPT.js.map +1 -0
- package/dist/{token-CO5llIla.js → token-Da4TdyUk.js} +1540 -761
- package/dist/token-Da4TdyUk.js.map +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +2 -2
- package/dist/types-DwWE6xOF.js.map +1 -1
- package/dist/utils/abi/index.d.ts +3 -3
- package/dist/utils/abi/index.js +3 -3
- 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 +2 -2
- package/dist/utils/abi/token/index.js +2 -2
- package/dist/utils/index.d.ts +6 -6
- package/dist/utils/index.js +6 -6
- package/dist/{utils-Cat9_pef.js → utils-BPYfgDSL.js} +2 -2
- package/dist/{utils-Cat9_pef.js.map → utils-BPYfgDSL.js.map} +1 -1
- package/dist/{utils-BFdxaToy.js → utils-CW2NA5KG.js} +87 -87
- package/dist/utils-CW2NA5KG.js.map +1 -0
- package/dist/{wagmi-DRctYEk6.js → wagmi-CDzEQbfk.js} +19 -12
- package/dist/wagmi-CDzEQbfk.js.map +1 -0
- package/eslint/use-client.js +0 -6
- package/package.json +30 -31
- package/src/index.ts +1 -1
- package/src/react/_internal/api/__mocks__/builder.msw.ts +5 -3
- package/src/react/_internal/api/__mocks__/indexer.msw.ts +8 -8
- package/src/react/_internal/api/__mocks__/marketplace.msw.ts +4 -6
- package/src/react/_internal/api/__mocks__/metadata.msw.ts +1 -1
- package/src/react/_internal/api/builder.gen.ts +6 -6
- package/src/react/_internal/api/get-query-client.ts +2 -2
- package/src/react/_internal/api/index.ts +2 -2
- package/src/react/_internal/api/marketplace.gen.ts +42 -4
- package/src/react/_internal/api/query-keys.ts +13 -6
- package/src/react/_internal/api/services.ts +28 -31
- package/src/react/_internal/index.ts +1 -1
- package/src/react/_internal/types.ts +10 -23
- package/src/react/_internal/utils.ts +1 -2
- package/src/react/_internal/wagmi/create-config.ts +20 -11
- package/src/react/_internal/wagmi/get-connectors.ts +9 -7
- package/src/react/_internal/wallet/__tests__/wallet.test.ts +1 -1
- package/src/react/_internal/wallet/wallet.ts +18 -18
- package/src/react/hooks/__tests__/__snapshots__/useListCollections.test.tsx.snap +20 -0
- package/src/react/hooks/__tests__/__snapshots__/useMarketplaceConfig.test.tsx.snap +12 -2
- package/src/react/hooks/__tests__/useAutoSelectFeeOption.test.tsx +1 -1
- package/src/react/hooks/__tests__/useBalanceOfCollectible.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCancelOrder.test.tsx +4 -4
- package/src/react/hooks/__tests__/useCancelTransactionSteps.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCollectible.test.tsx +14 -16
- package/src/react/hooks/__tests__/useCollection.test.tsx +4 -4
- package/src/react/hooks/__tests__/useCollectionBalanceDetails.test.tsx +1 -27
- package/src/react/hooks/__tests__/useCollectionDetails.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCollectionDetailsPolling.test.tsx +1 -1
- package/src/react/hooks/__tests__/useComparePrices.test.tsx +7 -6
- package/src/react/hooks/__tests__/useConvertPriceToUSD.test.tsx +1 -1
- package/src/react/hooks/__tests__/useCountListingsForCollectible.test.tsx +2 -2
- package/src/react/hooks/__tests__/useCountOfCollectables.test.tsx +5 -5
- package/src/react/hooks/__tests__/useCountOffersForCollectible.test.tsx +2 -2
- package/src/react/hooks/__tests__/useCurrency.test.tsx +5 -3
- package/src/react/hooks/__tests__/useFilters.test.tsx +1 -1
- package/src/react/hooks/__tests__/useFloorOrder.test.tsx +4 -4
- package/src/react/hooks/__tests__/useGenerateCancelTransaction.test.tsx +3 -3
- package/src/react/hooks/__tests__/useGenerateListingTransaction.test.tsx +1 -1
- package/src/react/hooks/__tests__/useGenerateOfferTransaction.test.tsx +1 -1
- package/src/react/hooks/__tests__/useGenerateSellTransaction.test.tsx +1 -1
- package/src/react/hooks/__tests__/useGetTokenSuppliesMap.test.tsx +104 -0
- package/src/react/hooks/__tests__/useHighestOffer.test.tsx +4 -4
- package/src/react/hooks/__tests__/useInventory.test.tsx +1 -1
- package/src/react/hooks/__tests__/useListCollectibleActivities.test.tsx +11 -13
- package/src/react/hooks/__tests__/useListCollectibles.test.tsx +5 -5
- package/src/react/hooks/__tests__/useListCollectiblesPaginated.test.tsx +10 -15
- package/src/react/hooks/__tests__/useListCollectionActivities.test.tsx +13 -15
- package/src/react/hooks/__tests__/useListCollections.test.tsx +3 -3
- package/src/react/hooks/__tests__/useListListingsForCollectible.test.tsx +3 -2
- package/src/react/hooks/__tests__/useListMarketCardData.test.tsx +301 -0
- package/src/react/hooks/__tests__/useListOffersForCollectible.test.tsx +1 -1
- package/src/react/hooks/__tests__/useListTokenMetadata.test.tsx +111 -0
- package/src/react/hooks/__tests__/useLowestListing.test.tsx +1 -1
- package/src/react/hooks/__tests__/useMarketCurrencies.test.tsx +1 -1
- package/src/react/hooks/__tests__/useRoyalty.test.tsx +0 -23
- package/src/react/hooks/index.ts +27 -24
- package/src/react/hooks/options/index.ts +0 -1
- package/src/react/hooks/useAutoSelectFeeOption.tsx +1 -1
- package/src/react/hooks/useBalanceOfCollectible.tsx +1 -1
- package/src/react/hooks/useCancelTransactionSteps.tsx +2 -2
- package/src/react/hooks/useCheckoutOptionsSalesContract.tsx +1 -1
- package/src/react/hooks/useCollectible.tsx +64 -49
- package/src/react/hooks/useCollection.tsx +60 -11
- package/src/react/hooks/useCollectionBalanceDetails.tsx +20 -27
- package/src/react/hooks/useCollectionDetails.ts +69 -0
- package/src/react/hooks/useCollectionDetailsPolling.tsx +10 -2
- package/src/react/hooks/useComparePrices.tsx +18 -21
- package/src/react/hooks/useConvertPriceToUSD.tsx +20 -37
- package/src/react/hooks/useCountListingsForCollectible.tsx +64 -53
- package/src/react/hooks/useCountOfCollectables.tsx +60 -69
- package/src/react/hooks/useCountOfPrimarySaleItems.tsx +13 -0
- package/src/react/hooks/useCountOffersForCollectible.tsx +64 -53
- package/src/react/hooks/useCurrency.tsx +56 -64
- package/src/react/hooks/useFilterState.tsx +1 -2
- package/src/react/hooks/useFloorOrder.tsx +65 -40
- package/src/react/hooks/useGenerateCancelTransaction.tsx +5 -10
- package/src/react/hooks/useGenerateListingTransaction.tsx +1 -1
- package/src/react/hooks/useGenerateOfferTransaction.tsx +1 -1
- package/src/react/hooks/useGenerateSellTransaction.tsx +5 -10
- package/src/react/hooks/useGetReceiptFromHash.tsx +32 -3
- package/src/react/hooks/{useGetTokenSuppliesMap.ts → useGetTokenRanges.tsx} +15 -17
- package/src/react/hooks/useGetTokenSuppliesMap.tsx +73 -0
- package/src/react/hooks/useHighestOffer.tsx +68 -4
- package/src/react/hooks/useInventory.tsx +1 -1
- package/src/react/hooks/useList1155ShopCardData.tsx +55 -82
- package/src/react/hooks/useList721ShopCardData.tsx +93 -63
- package/src/react/hooks/useListBalances.tsx +1 -1
- package/src/react/hooks/useListCollectibleActivities.tsx +89 -50
- package/src/react/hooks/useListCollectibles.tsx +81 -16
- package/src/react/hooks/useListCollectiblesPaginated.tsx +96 -66
- package/src/react/hooks/useListCollectionActivities.tsx +84 -50
- package/src/react/hooks/useListCollections.tsx +72 -18
- package/src/react/hooks/useListListingsForCollectible.tsx +90 -50
- package/src/react/hooks/useListMarketCardData.tsx +1 -1
- package/src/react/hooks/useListOffersForCollectible.tsx +9 -14
- package/src/react/hooks/useListPrimarySaleItems.ts +72 -12
- package/src/react/hooks/useListShopCardData.tsx +70 -0
- package/src/react/hooks/useListTokenMetadata.tsx +73 -0
- package/src/react/hooks/useLowestListing.tsx +68 -4
- package/src/react/hooks/useMarketCurrencies.tsx +62 -5
- package/src/react/hooks/useRoyalty.tsx +57 -13
- package/src/react/hooks/useShopCollectibleSaleData.tsx +349 -0
- package/src/react/hooks/useTransferTokens.tsx +1 -1
- package/src/react/hooks/util/optimisticCancelUpdates.ts +5 -7
- package/src/react/index.ts +5 -3
- package/src/react/queries/balanceOfCollectible.ts +1 -1
- package/src/react/queries/collectible.ts +66 -0
- package/src/react/queries/collection.ts +55 -0
- package/src/react/queries/collectionDetails.ts +64 -0
- package/src/react/queries/countListingsForCollectible.ts +73 -0
- package/src/react/queries/countOfCollectables.ts +83 -0
- package/src/react/queries/countOfPrimarySaleItems.ts +48 -0
- package/src/react/queries/countOffersForCollectible.ts +73 -0
- package/src/react/queries/currency.ts +83 -0
- package/src/react/queries/floorOrder.ts +63 -0
- package/src/react/queries/getTokenSuppliesMap.ts +77 -0
- package/src/react/queries/highestOffer.ts +46 -40
- package/src/react/queries/index.ts +7 -4
- package/src/react/queries/inventory.ts +4 -4
- package/src/react/queries/listBalances.ts +1 -1
- package/src/react/queries/listCollectibleActivities.ts +97 -0
- package/src/react/queries/listCollectibles.ts +67 -50
- package/src/react/queries/listCollectiblesPaginated.ts +87 -0
- package/src/react/queries/listCollectionActivities.ts +95 -0
- package/src/react/queries/listCollections.ts +47 -8
- package/src/react/queries/listListingsForCollectible.ts +82 -0
- package/src/react/queries/listTokenMetadata.ts +47 -23
- package/src/react/queries/lowestListing.ts +46 -31
- package/src/react/queries/marketCurrencies.ts +42 -29
- package/src/react/queries/marketplaceConfig.ts +3 -3
- package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +12 -2
- package/src/react/ssr/create-ssr-client.ts +1 -1
- package/src/react/types/query.ts +34 -0
- package/src/react/ui/components/ModelViewer.tsx +1 -1
- package/src/react/ui/components/_internals/action-button/__tests__/useActionButtonLogic.test.tsx +14 -8
- package/src/react/ui/components/_internals/action-button/hooks/useActionButtonLogic.ts +12 -15
- package/src/react/ui/components/_internals/action-button/store.ts +46 -18
- package/src/react/ui/components/marketplace-collectible-card/CollectibleCard.tsx +1 -1
- package/src/react/ui/components/marketplace-collectible-card/Footer.tsx +1 -1
- package/src/react/ui/components/marketplace-collectible-card/components/BaseCard.tsx +3 -0
- package/src/react/ui/components/marketplace-collectible-card/index.ts +1 -1
- package/src/react/ui/components/marketplace-collectible-card/types.ts +7 -4
- package/src/react/ui/components/marketplace-collectible-card/variants/MarketCard.tsx +3 -2
- package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +2 -5
- package/src/react/ui/components/marketplace-logos/marketplace-logos.tsx +1 -1
- package/src/react/ui/components/media/Media.tsx +5 -1
- package/src/react/ui/index.ts +8 -10
- package/src/react/ui/modals/BuyModal/__tests__/ERC1155ShopModal.test.tsx +94 -87
- package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +4 -4
- package/src/react/ui/modals/BuyModal/__tests__/store.test.ts +1 -1
- package/src/react/ui/modals/BuyModal/components/ERC1155QuantityModal.tsx +3 -4
- package/src/react/ui/modals/BuyModal/components/ERC1155ShopModal.tsx +1 -1
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useCheckoutOptions.test.tsx +1 -1
- package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +1 -1
- package/src/react/ui/modals/BuyModal/hooks/useERC721SalePaymentParams.ts +1 -1
- package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +3 -3
- package/src/react/ui/modals/CreateListingModal/Modal.tsx +1 -1
- package/src/react/ui/modals/CreateListingModal/__tests__/Modal.test.tsx +2 -2
- package/src/react/ui/modals/CreateListingModal/hooks/useCreateListing.tsx +0 -1
- package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +2 -2
- package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +7 -6
- package/src/react/ui/modals/CreateListingModal/index.tsx +1 -1
- package/src/react/ui/modals/MakeOfferModal/Modal.tsx +2 -2
- package/src/react/ui/modals/MakeOfferModal/__tests__/Modal.test.tsx +1 -1
- package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +1 -1
- package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +0 -1
- package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +7 -7
- package/src/react/ui/modals/MakeOfferModal/index.tsx +1 -1
- package/src/react/ui/modals/SellModal/Modal.tsx +3 -3
- package/src/react/ui/modals/SellModal/__tests__/Modal.test.tsx +6 -4
- package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +1 -1
- package/src/react/ui/modals/SellModal/hooks/useSell.tsx +0 -1
- package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +6 -6
- package/src/react/ui/modals/SuccessfulPurchaseModal/__tests__/Modal.test.tsx +1 -1
- package/src/react/ui/modals/TransferModal/_store.ts +1 -7
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TokenQuantityInput.tsx +2 -3
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +2 -2
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.test.tsx +1 -1
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +2 -4
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +1 -1
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +0 -1
- package/src/react/ui/modals/_internal/components/floorPriceText/index.tsx +4 -4
- package/src/react/ui/modals/_internal/components/quantityInput/QuantityInputBase.tsx +166 -0
- package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +12 -141
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +1 -1
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/_components/BalanceIndicator.tsx +1 -2
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +0 -1
- package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +1 -1
- package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/TransactionStatusModal.test.tsx +1 -1
- package/src/react/ui/modals/_internal/components/transactionStatusModal/hooks/useTransactionStatus.ts +0 -1
- package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +1 -1
- package/src/react/ui/modals/_internal/components/waasFeeOptionsSelect/WaasFeeOptionsSelect.tsx +1 -1
- package/src/react/ui/modals/modal-provider.tsx +2 -3
- package/src/types/api-types.ts +36 -36
- package/src/types/buyModalErrors.ts +1 -1
- package/src/types/index.ts +5 -5
- package/src/types/new-marketplace-types.ts +1 -1
- package/src/types/sdk-config.ts +2 -1
- package/src/types/types.ts +1 -0
- package/src/types/waas-types.ts +1 -1
- package/src/utils/abi/index.ts +1 -1
- package/src/utils/abi/primary-sale/index.ts +1 -1
- package/src/utils/abi/token/index.ts +2 -1
- package/src/utils/decode/erc20.ts +1 -1
- package/src/utils/index.ts +3 -3
- package/test/const.ts +3 -1
- package/test/mocks/wallet.ts +1 -1
- package/test/test-utils.tsx +3 -4
- package/.changeset/fluffy-jokes-lay.md +0 -5
- package/.changeset/wise-bugs-boil.md +0 -8
- package/dist/CartIcon-Bll1rbxv.js.map +0 -1
- package/dist/CollectibleCard-CLQTl0_6.d.ts +0 -8
- package/dist/_internal-69NEWNUE.js.map +0 -1
- package/dist/api-1KFxYh7o.js.map +0 -1
- package/dist/builder.gen-CxP9NT1p.js.map +0 -1
- package/dist/index-BHiSG-Yi.d.ts +0 -312
- package/dist/index-BQW0PUkQ.d.ts +0 -3973
- package/dist/marketplace.gen-Dqk8vRmD.js.map +0 -1
- package/dist/marketplaceConfig-D2MYFqll.js.map +0 -1
- package/dist/options-DCi6_23w.js +0 -34
- package/dist/options-DCi6_23w.js.map +0 -1
- package/dist/primary-sale-Cw95phYC.js.map +0 -1
- package/dist/queries-DPvwtnO7.js.map +0 -1
- package/dist/react-BG7o4PId.js.map +0 -1
- package/dist/token-CO5llIla.js.map +0 -1
- package/dist/useCollection-C-mclKU0.d.ts +0 -66
- package/dist/utils-BFdxaToy.js.map +0 -1
- package/dist/wagmi-DRctYEk6.js.map +0 -1
- package/src/react/_internal/api/zod-schema.ts +0 -678
- package/src/react/hooks/options/collectionOptions.ts +0 -41
- package/src/react/hooks/useCheckoutOptions.tsx +0 -66
- package/src/react/hooks/useCollectionDetails.tsx +0 -50
- package/src/react/hooks/useListTokenMetadata.ts +0 -19
- package/src/react/queries/getTokenSupplies.ts +0 -38
- package/tsconfig.tsbuildinfo +0 -1
- /package/dist/{index-ij9f8GAA.d.ts → index-DvpBZgor.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token-CO5llIla.js","names":[],"sources":["../src/utils/abi/token/ERC1155.ts","../src/utils/abi/token/ERC20.ts","../src/utils/abi/token/ERC721.ts"],"sourcesContent":["export const ERC1155_ABI = [\n\t{\n\t\tanonymous: false,\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_owner',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_operator',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: false,\n\t\t\t\tinternalType: 'bool',\n\t\t\t\tname: '_approved',\n\t\t\t\ttype: 'bool',\n\t\t\t},\n\t\t],\n\t\tname: 'ApprovalForAll',\n\t\ttype: 'event',\n\t},\n\t{\n\t\tanonymous: false,\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_operator',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_from',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_to',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: false,\n\t\t\t\tinternalType: 'uint256[]',\n\t\t\t\tname: '_ids',\n\t\t\t\ttype: 'uint256[]',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: false,\n\t\t\t\tinternalType: 'uint256[]',\n\t\t\t\tname: '_amounts',\n\t\t\t\ttype: 'uint256[]',\n\t\t\t},\n\t\t],\n\t\tname: 'TransferBatch',\n\t\ttype: 'event',\n\t},\n\t{\n\t\tanonymous: false,\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_operator',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_from',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_to',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: false,\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: '_id',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: false,\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: '_amount',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tname: 'TransferSingle',\n\t\ttype: 'event',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_owner',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: '_id',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tname: 'balanceOf',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: '',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'address[]',\n\t\t\t\tname: '_owners',\n\t\t\t\ttype: 'address[]',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'uint256[]',\n\t\t\t\tname: '_ids',\n\t\t\t\ttype: 'uint256[]',\n\t\t\t},\n\t\t],\n\t\tname: 'balanceOfBatch',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'uint256[]',\n\t\t\t\tname: '',\n\t\t\t\ttype: 'uint256[]',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: '_id',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tname: 'getIDBinIndex',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: 'bin',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: 'index',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'pure',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: '_binValues',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: '_index',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tname: 'getValueInBin',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: '',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'pure',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_owner',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_operator',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t],\n\t\tname: 'isApprovedForAll',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'bool',\n\t\t\t\tname: 'isOperator',\n\t\t\t\ttype: 'bool',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_from',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_to',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'uint256[]',\n\t\t\t\tname: '_ids',\n\t\t\t\ttype: 'uint256[]',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'uint256[]',\n\t\t\t\tname: '_amounts',\n\t\t\t\ttype: 'uint256[]',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'bytes',\n\t\t\t\tname: '_data',\n\t\t\t\ttype: 'bytes',\n\t\t\t},\n\t\t],\n\t\tname: 'safeBatchTransferFrom',\n\t\toutputs: [],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_from',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_to',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: '_id',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: '_amount',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'bytes',\n\t\t\t\tname: '_data',\n\t\t\t\ttype: 'bytes',\n\t\t\t},\n\t\t],\n\t\tname: 'safeTransferFrom',\n\t\toutputs: [],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: '_operator',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'bool',\n\t\t\t\tname: '_approved',\n\t\t\t\ttype: 'bool',\n\t\t\t},\n\t\t],\n\t\tname: 'setApprovalForAll',\n\t\toutputs: [],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'bytes4',\n\t\t\t\tname: '_interfaceID',\n\t\t\t\ttype: 'bytes4',\n\t\t\t},\n\t\t],\n\t\tname: 'supportsInterface',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'bool',\n\t\t\t\tname: '',\n\t\t\t\ttype: 'bool',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'pure',\n\t\ttype: 'function',\n\t},\n] as const;\n","export const ERC20_ABI = [\n\t{\n\t\tanonymous: false,\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'owner',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'spender',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: false,\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: 'value',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tname: 'Approval',\n\t\ttype: 'event',\n\t},\n\t{\n\t\tanonymous: false,\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'from',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'to',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: false,\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: 'value',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tname: 'Transfer',\n\t\ttype: 'event',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'owner',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'spender',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t],\n\t\tname: 'allowance',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: '',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'spender',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: 'value',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tname: 'approve',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'bool',\n\t\t\t\tname: '',\n\t\t\t\ttype: 'bool',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'who',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t],\n\t\tname: 'balanceOf',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: '',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [],\n\t\tname: 'totalSupply',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: '',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'to',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: 'value',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tname: 'transfer',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'bool',\n\t\t\t\tname: '',\n\t\t\t\ttype: 'bool',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'from',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'to',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: 'value',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t],\n\t\tname: 'transferFrom',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'bool',\n\t\t\t\tname: '',\n\t\t\t\ttype: 'bool',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n] as const;\n","export const ERC721_ABI = [\n\t{ inputs: [], stateMutability: 'nonpayable', type: 'constructor' },\n\t{ inputs: [], name: 'AlreadyInitialized', type: 'error' },\n\t{ inputs: [], name: 'InvalidMintRequest', type: 'error' },\n\t{ inputs: [], name: 'InvalidSequenceConfig', type: 'error' },\n\t{ inputs: [], name: 'NotAuthorized', type: 'error' },\n\t{ inputs: [], name: 'SequenceIsSealed', type: 'error' },\n\t{ inputs: [], name: 'SequenceSupplyExhausted', type: 'error' },\n\t{\n\t\tanonymous: false,\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'owner',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'spender',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{ indexed: true, internalType: 'uint256', name: 'id', type: 'uint256' },\n\t\t],\n\t\tname: 'Approval',\n\t\ttype: 'event',\n\t},\n\t{\n\t\tanonymous: false,\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'owner',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'operator',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{ indexed: false, internalType: 'bool', name: 'approved', type: 'bool' },\n\t\t],\n\t\tname: 'ApprovalForAll',\n\t\ttype: 'event',\n\t},\n\t{\n\t\tanonymous: false,\n\t\tinputs: [\n\t\t\t{ indexed: false, internalType: 'string', name: 'topic', type: 'string' },\n\t\t\t{\n\t\t\t\tindexed: false,\n\t\t\t\tinternalType: 'string',\n\t\t\t\tname: 'message',\n\t\t\t\ttype: 'string',\n\t\t\t},\n\t\t],\n\t\tname: 'Broadcast',\n\t\ttype: 'event',\n\t},\n\t{\n\t\tanonymous: false,\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'previousOwner',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'address',\n\t\t\t\tname: 'newOwner',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t],\n\t\tname: 'OwnershipTransferred',\n\t\ttype: 'event',\n\t},\n\t{\n\t\tanonymous: false,\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'uint256',\n\t\t\t\tname: 'tokenId',\n\t\t\t\ttype: 'uint256',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'uint16',\n\t\t\t\tname: 'sequenceId',\n\t\t\t\ttype: 'uint16',\n\t\t\t},\n\t\t\t{ indexed: false, internalType: 'uint80', name: 'data', type: 'uint80' },\n\t\t],\n\t\tname: 'RecordCreated',\n\t\ttype: 'event',\n\t},\n\t{\n\t\tanonymous: false,\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tindexed: true,\n\t\t\t\tinternalType: 'uint16',\n\t\t\t\tname: 'sequenceId',\n\t\t\t\ttype: 'uint16',\n\t\t\t},\n\t\t\t{\n\t\t\t\tcomponents: [\n\t\t\t\t\t{\n\t\t\t\t\t\tinternalType: 'uint64',\n\t\t\t\t\t\tname: 'sealedBeforeTimestamp',\n\t\t\t\t\t\ttype: 'uint64',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tinternalType: 'uint64',\n\t\t\t\t\t\tname: 'sealedAfterTimestamp',\n\t\t\t\t\t\ttype: 'uint64',\n\t\t\t\t\t},\n\t\t\t\t\t{ internalType: 'uint64', name: 'maxSupply', type: 'uint64' },\n\t\t\t\t\t{ internalType: 'uint64', name: 'minted', type: 'uint64' },\n\t\t\t\t\t{ internalType: 'contract IEngine', name: 'engine', type: 'address' },\n\t\t\t\t\t{ internalType: 'uint64', name: 'dropNodeId', type: 'uint64' },\n\t\t\t\t],\n\t\t\t\tindexed: false,\n\t\t\t\tinternalType: 'struct SequenceData',\n\t\t\t\tname: 'sequenceData',\n\t\t\t\ttype: 'tuple',\n\t\t\t},\n\t\t\t{\n\t\t\t\tindexed: false,\n\t\t\t\tinternalType: 'bytes',\n\t\t\t\tname: 'engineData',\n\t\t\t\ttype: 'bytes',\n\t\t\t},\n\t\t],\n\t\tname: 'SequenceConfigured',\n\t\ttype: 'event',\n\t},\n\t{\n\t\tanonymous: false,\n\t\tinputs: [\n\t\t\t{ indexed: true, internalType: 'address', name: 'from', type: 'address' },\n\t\t\t{ indexed: true, internalType: 'address', name: 'to', type: 'address' },\n\t\t\t{ indexed: true, internalType: 'uint256', name: 'id', type: 'uint256' },\n\t\t],\n\t\tname: 'Transfer',\n\t\ttype: 'event',\n\t},\n\t{\n\t\tinputs: [],\n\t\tname: 'accessControl',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tinternalType: 'contract INodeRegistry',\n\t\t\t\tname: 'nodeRegistry',\n\t\t\t\ttype: 'address',\n\t\t\t},\n\t\t\t{ internalType: 'uint64', name: 'controlNodeId', type: 'uint64' },\n\t\t],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{ internalType: 'address', name: 'spender', type: 'address' },\n\t\t\t{ internalType: 'uint256', name: 'id', type: 'uint256' },\n\t\t],\n\t\tname: 'approve',\n\t\toutputs: [],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [{ internalType: 'address', name: 'owner', type: 'address' }],\n\t\tname: 'balanceOf',\n\t\toutputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{ internalType: 'string', name: 'topic', type: 'string' },\n\t\t\t{ internalType: 'string', name: 'message', type: 'string' },\n\t\t],\n\t\tname: 'broadcast',\n\t\toutputs: [],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{\n\t\t\t\tcomponents: [\n\t\t\t\t\t{\n\t\t\t\t\t\tinternalType: 'uint64',\n\t\t\t\t\t\tname: 'sealedBeforeTimestamp',\n\t\t\t\t\t\ttype: 'uint64',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tinternalType: 'uint64',\n\t\t\t\t\t\tname: 'sealedAfterTimestamp',\n\t\t\t\t\t\ttype: 'uint64',\n\t\t\t\t\t},\n\t\t\t\t\t{ internalType: 'uint64', name: 'maxSupply', type: 'uint64' },\n\t\t\t\t\t{ internalType: 'uint64', name: 'minted', type: 'uint64' },\n\t\t\t\t\t{ internalType: 'contract IEngine', name: 'engine', type: 'address' },\n\t\t\t\t\t{ internalType: 'uint64', name: 'dropNodeId', type: 'uint64' },\n\t\t\t\t],\n\t\t\t\tinternalType: 'struct SequenceData',\n\t\t\t\tname: '_sequence',\n\t\t\t\ttype: 'tuple',\n\t\t\t},\n\t\t\t{ internalType: 'bytes', name: '_engineData', type: 'bytes' },\n\t\t],\n\t\tname: 'configureSequence',\n\t\toutputs: [],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [],\n\t\tname: 'contractURI',\n\t\toutputs: [{ internalType: 'string', name: 'value', type: 'string' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [],\n\t\tname: 'controlNode',\n\t\toutputs: [{ internalType: 'uint64', name: 'nodeId', type: 'uint64' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n\t\tname: 'getApproved',\n\t\toutputs: [{ internalType: 'address', name: '', type: 'address' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [{ internalType: 'uint16', name: 'sequenceId', type: 'uint16' }],\n\t\tname: 'getSequenceData',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tcomponents: [\n\t\t\t\t\t{\n\t\t\t\t\t\tinternalType: 'uint64',\n\t\t\t\t\t\tname: 'sealedBeforeTimestamp',\n\t\t\t\t\t\ttype: 'uint64',\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tinternalType: 'uint64',\n\t\t\t\t\t\tname: 'sealedAfterTimestamp',\n\t\t\t\t\t\ttype: 'uint64',\n\t\t\t\t\t},\n\t\t\t\t\t{ internalType: 'uint64', name: 'maxSupply', type: 'uint64' },\n\t\t\t\t\t{ internalType: 'uint64', name: 'minted', type: 'uint64' },\n\t\t\t\t\t{ internalType: 'contract IEngine', name: 'engine', type: 'address' },\n\t\t\t\t\t{ internalType: 'uint64', name: 'dropNodeId', type: 'uint64' },\n\t\t\t\t],\n\t\t\t\tinternalType: 'struct SequenceData',\n\t\t\t\tname: 'sequence',\n\t\t\t\ttype: 'tuple',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }],\n\t\tname: 'getTokenData',\n\t\toutputs: [\n\t\t\t{\n\t\t\t\tcomponents: [\n\t\t\t\t\t{ internalType: 'address', name: 'owner', type: 'address' },\n\t\t\t\t\t{ internalType: 'uint16', name: 'sequenceId', type: 'uint16' },\n\t\t\t\t\t{ internalType: 'uint80', name: 'data', type: 'uint80' },\n\t\t\t\t],\n\t\t\t\tinternalType: 'struct TokenData',\n\t\t\t\tname: '',\n\t\t\t\ttype: 'tuple',\n\t\t\t},\n\t\t],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{ internalType: 'address', name: '_owner', type: 'address' },\n\t\t\t{\n\t\t\t\tcomponents: [\n\t\t\t\t\t{\n\t\t\t\t\t\tinternalType: 'contract INodeRegistry',\n\t\t\t\t\t\tname: 'nodeRegistry',\n\t\t\t\t\t\ttype: 'address',\n\t\t\t\t\t},\n\t\t\t\t\t{ internalType: 'uint64', name: 'controlNodeId', type: 'uint64' },\n\t\t\t\t],\n\t\t\t\tinternalType: 'struct AccessControlData',\n\t\t\t\tname: '_accessControl',\n\t\t\t\ttype: 'tuple',\n\t\t\t},\n\t\t\t{ internalType: 'string', name: '_metadata', type: 'string' },\n\t\t\t{\n\t\t\t\tcomponents: [\n\t\t\t\t\t{ internalType: 'string', name: 'name', type: 'string' },\n\t\t\t\t\t{ internalType: 'string', name: 'symbol', type: 'string' },\n\t\t\t\t\t{ internalType: 'string', name: 'contractURI', type: 'string' },\n\t\t\t\t],\n\t\t\t\tinternalType: 'struct ImmutableCollectionData',\n\t\t\t\tname: '_data',\n\t\t\t\ttype: 'tuple',\n\t\t\t},\n\t\t],\n\t\tname: 'init',\n\t\toutputs: [],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{ internalType: 'address', name: '', type: 'address' },\n\t\t\t{ internalType: 'address', name: '', type: 'address' },\n\t\t],\n\t\tname: 'isApprovedForAll',\n\t\toutputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [{ internalType: 'address', name: 'subject', type: 'address' }],\n\t\tname: 'isAuthorized',\n\t\toutputs: [{ internalType: 'bool', name: 'authorized', type: 'bool' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{ internalType: 'address', name: 'to', type: 'address' },\n\t\t\t{ internalType: 'uint16', name: 'sequenceId', type: 'uint16' },\n\t\t],\n\t\tname: 'mintRecord',\n\t\toutputs: [{ internalType: 'uint256', name: 'tokenId', type: 'uint256' }],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{ internalType: 'address', name: 'to', type: 'address' },\n\t\t\t{ internalType: 'uint16', name: 'sequenceId', type: 'uint16' },\n\t\t\t{ internalType: 'uint80', name: 'tokenData', type: 'uint80' },\n\t\t],\n\t\tname: 'mintRecord',\n\t\toutputs: [{ internalType: 'uint256', name: 'tokenId', type: 'uint256' }],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [],\n\t\tname: 'name',\n\t\toutputs: [{ internalType: 'string', name: 'value', type: 'string' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [],\n\t\tname: 'nodeRegistry',\n\t\toutputs: [\n\t\t\t{ internalType: 'contract INodeRegistry', name: '', type: 'address' },\n\t\t],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [],\n\t\tname: 'owner',\n\t\toutputs: [{ internalType: 'address', name: '', type: 'address' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }],\n\t\tname: 'ownerOf',\n\t\toutputs: [{ internalType: 'address', name: 'owner', type: 'address' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{ internalType: 'uint256', name: 'tokenId', type: 'uint256' },\n\t\t\t{ internalType: 'uint256', name: 'salePrice', type: 'uint256' },\n\t\t],\n\t\tname: 'royaltyInfo',\n\t\toutputs: [\n\t\t\t{ internalType: 'address', name: 'receiver', type: 'address' },\n\t\t\t{ internalType: 'uint256', name: 'royaltyAmount', type: 'uint256' },\n\t\t],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{ internalType: 'address', name: 'from', type: 'address' },\n\t\t\t{ internalType: 'address', name: 'to', type: 'address' },\n\t\t\t{ internalType: 'uint256', name: 'id', type: 'uint256' },\n\t\t],\n\t\tname: 'safeTransferFrom',\n\t\toutputs: [],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{ internalType: 'address', name: 'from', type: 'address' },\n\t\t\t{ internalType: 'address', name: 'to', type: 'address' },\n\t\t\t{ internalType: 'uint256', name: 'id', type: 'uint256' },\n\t\t\t{ internalType: 'bytes', name: 'data', type: 'bytes' },\n\t\t],\n\t\tname: 'safeTransferFrom',\n\t\toutputs: [],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [],\n\t\tname: 'sequenceCount',\n\t\toutputs: [{ internalType: 'uint16', name: '', type: 'uint16' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{ internalType: 'address', name: 'operator', type: 'address' },\n\t\t\t{ internalType: 'bool', name: 'approved', type: 'bool' },\n\t\t],\n\t\tname: 'setApprovalForAll',\n\t\toutputs: [],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [{ internalType: 'address', name: '_owner', type: 'address' }],\n\t\tname: 'setOwner',\n\t\toutputs: [],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],\n\t\tname: 'supportsInterface',\n\t\toutputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [],\n\t\tname: 'symbol',\n\t\toutputs: [{ internalType: 'string', name: 'value', type: 'string' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [{ internalType: 'uint256', name: 'tokenId', type: 'uint256' }],\n\t\tname: 'tokenMintData',\n\t\toutputs: [{ internalType: 'uint80', name: 'data', type: 'uint80' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [{ internalType: 'uint256', name: 'tokenId', type: 'uint256' }],\n\t\tname: 'tokenSequenceId',\n\t\toutputs: [{ internalType: 'uint16', name: 'sequenceId', type: 'uint16' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [{ internalType: 'uint256', name: 'tokenId', type: 'uint256' }],\n\t\tname: 'tokenURI',\n\t\toutputs: [{ internalType: 'string', name: 'uri', type: 'string' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [],\n\t\tname: 'totalSupply',\n\t\toutputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n\t\tstateMutability: 'view',\n\t\ttype: 'function',\n\t},\n\t{\n\t\tinputs: [\n\t\t\t{ internalType: 'address', name: 'from', type: 'address' },\n\t\t\t{ internalType: 'address', name: 'to', type: 'address' },\n\t\t\t{ internalType: 'uint256', name: 'id', type: 'uint256' },\n\t\t],\n\t\tname: 'transferFrom',\n\t\toutputs: [],\n\t\tstateMutability: 'nonpayable',\n\t\ttype: 'function',\n\t},\n] as const;\n"],"mappings":";AAAA,MAAa,cAAc;CAC1B;EACC,WAAW;EACX,QAAQ;GACP;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;EACD;EACD,MAAM;EACN,MAAM;CACN;CACD;EACC,WAAW;EACX,QAAQ;GACP;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;EACD;EACD,MAAM;EACN,MAAM;CACN;CACD;EACC,WAAW;EACX,QAAQ;GACP;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;EACD;EACD,MAAM;EACN,MAAM;CACN;CACD;EACC,QAAQ,CACP;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,GACD;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,MAAM;EACN,SAAS,CACR;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ,CACP;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,GACD;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,MAAM;EACN,SAAS,CACR;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ,CACP;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,MAAM;EACN,SAAS,CACR;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,GACD;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ,CACP;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,GACD;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,MAAM;EACN,SAAS,CACR;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ,CACP;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,GACD;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,MAAM;EACN,SAAS,CACR;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ;GACP;IACC,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,cAAc;IACd,MAAM;IACN,MAAM;GACN;EACD;EACD,MAAM;EACN,SAAS,CAAE;EACX,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ;GACP;IACC,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,cAAc;IACd,MAAM;IACN,MAAM;GACN;EACD;EACD,MAAM;EACN,SAAS,CAAE;EACX,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ,CACP;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,GACD;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,MAAM;EACN,SAAS,CAAE;EACX,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ,CACP;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,MAAM;EACN,SAAS,CACR;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,iBAAiB;EACjB,MAAM;CACN;AACD;;;;ACnUD,MAAa,YAAY;CACxB;EACC,WAAW;EACX,QAAQ;GACP;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;EACD;EACD,MAAM;EACN,MAAM;CACN;CACD;EACC,WAAW;EACX,QAAQ;GACP;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;GACD;IACC,SAAS;IACT,cAAc;IACd,MAAM;IACN,MAAM;GACN;EACD;EACD,MAAM;EACN,MAAM;CACN;CACD;EACC,QAAQ,CACP;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,GACD;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,MAAM;EACN,SAAS,CACR;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ,CACP;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,GACD;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,MAAM;EACN,SAAS,CACR;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ,CACP;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,MAAM;EACN,SAAS,CACR;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ,CAAE;EACV,MAAM;EACN,SAAS,CACR;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ,CACP;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,GACD;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,MAAM;EACN,SAAS,CACR;GACC,cAAc;GACd,MAAM;GACN,MAAM;EACN,CACD;EACD,iBAAiB;EACjB,MAA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;GAAW,MAAM;GAAW,MAAM;EAAW,CAAC;EACvE,MAAM;EACN,SAAS,CAAC;GAAE,cAAc;GAAU,MAAM;GAAc,MAAM;EAAU,CAAC;EACzE,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ,CAAC;GAAE,cAAc;GAAW,MAAM;GAAW,MAAM;EAAW,CAAC;EACvE,MAAM;EACN,SAAS,CAAC;GAAE,cAAc;GAAU,MAAM;GAAO,MAAM;EAAU,CAAC;EAClE,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ,CAAE;EACV,MAAM;EACN,SAAS,CAAC;GAAE,cAAc;GAAW,MAAM;GAAI,MAAM;EAAW,CAAC;EACjE,iBAAiB;EACjB,MAAM;CACN;CACD;EACC,QAAQ;GACP;IAAE,cAAc;IAAW,MAAM;IAAQ,MAAM;GAAW;GAC1D;IAAE,cAAc;IAAW,MAAM;IAAM,MAAM;GAAW;GACxD;IAAE,cAAc;IAAW,MAAM;IAAM,MAAM;GAAW;EACxD;EACD,MAAM;EACN,SAAS,CAAE;EACX,iBAAiB;EACjB,MAAM;CACN;AACD"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { SdkConfig } from "./sdk-config-DJzxVPld.js";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import * as _tanstack_react_query10 from "@tanstack/react-query";
|
|
4
|
-
import * as _tanstack_react_query53 from "@tanstack/react-query";
|
|
5
|
-
import * as _0xsequence_metadata7 from "@0xsequence/metadata";
|
|
6
|
-
import * as _0xsequence_metadata52 from "@0xsequence/metadata";
|
|
7
|
-
|
|
8
|
-
//#region src/react/hooks/options/collectionOptions.d.ts
|
|
9
|
-
declare const UseCollectionSchema: z.ZodObject<{
|
|
10
|
-
chainId: z.ZodNumber;
|
|
11
|
-
collectionAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
12
|
-
query: z.ZodOptional<z.ZodObject<{
|
|
13
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
enabled?: boolean | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
enabled?: boolean | undefined;
|
|
18
|
-
}>>;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
chainId: number;
|
|
21
|
-
collectionAddress: `0x${string}`;
|
|
22
|
-
query?: {
|
|
23
|
-
enabled?: boolean | undefined;
|
|
24
|
-
} | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
chainId: number;
|
|
27
|
-
collectionAddress: string;
|
|
28
|
-
query?: {
|
|
29
|
-
enabled?: boolean | undefined;
|
|
30
|
-
} | undefined;
|
|
31
|
-
}>;
|
|
32
|
-
declare const fetchCollection: (args: UseCollectionArgs, config: SdkConfig) => Promise<_0xsequence_metadata7.ContractInfo>;
|
|
33
|
-
declare const collectionOptions: (args: UseCollectionArgs, config: SdkConfig) => _tanstack_react_query10.OmitKeyof<_tanstack_react_query10.UseQueryOptions<_0xsequence_metadata7.ContractInfo, Error, _0xsequence_metadata7.ContractInfo, (SdkConfig | {
|
|
34
|
-
chainId: number;
|
|
35
|
-
collectionAddress: string;
|
|
36
|
-
query?: {
|
|
37
|
-
enabled?: boolean | undefined;
|
|
38
|
-
} | undefined;
|
|
39
|
-
} | "collections" | "detail")[]>, "queryFn"> & {
|
|
40
|
-
queryFn?: _tanstack_react_query10.QueryFunction<_0xsequence_metadata7.ContractInfo, (SdkConfig | {
|
|
41
|
-
chainId: number;
|
|
42
|
-
collectionAddress: string;
|
|
43
|
-
query?: {
|
|
44
|
-
enabled?: boolean | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
} | "collections" | "detail")[], never> | undefined;
|
|
47
|
-
} & {
|
|
48
|
-
queryKey: (SdkConfig | {
|
|
49
|
-
chainId: number;
|
|
50
|
-
collectionAddress: string;
|
|
51
|
-
query?: {
|
|
52
|
-
enabled?: boolean | undefined;
|
|
53
|
-
} | undefined;
|
|
54
|
-
} | "collections" | "detail")[] & {
|
|
55
|
-
[dataTagSymbol]: _0xsequence_metadata7.ContractInfo;
|
|
56
|
-
[dataTagErrorSymbol]: Error;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region src/react/hooks/useCollection.d.ts
|
|
61
|
-
type UseCollectionArgs = z.input<typeof UseCollectionSchema>;
|
|
62
|
-
type UseCollectionReturn = Awaited<ReturnType<typeof fetchCollection>>;
|
|
63
|
-
declare const useCollection: (args: UseCollectionArgs) => _tanstack_react_query53.UseQueryResult<_0xsequence_metadata52.ContractInfo, Error>;
|
|
64
|
-
//#endregion
|
|
65
|
-
export { UseCollectionArgs, UseCollectionReturn, collectionOptions, fetchCollection, useCollection };
|
|
66
|
-
//# sourceMappingURL=useCollection-C-mclKU0.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-BFdxaToy.js","names":["address: string","text: string | undefined","truncateAt: number","chainId: number","amount: bigint","decimals: number","fees: number[]","feePercentage: number","MARKETPLACES: Record<string, Marketplace>","KIND_TO_MARKETPLACE: Partial<\n\tRecord<MarketplaceKind, keyof typeof MARKETPLACES>\n>","url: string","network: NetworkConfig"],"sources":["../src/utils/address.ts","../src/utils/network.ts","../src/utils/price.ts","../src/utils/getMarketplaceDetails.ts","../src/utils/networkconfigToWagmiChain.ts","../src/utils/cn.ts"],"sourcesContent":["export const truncateMiddle = (\n\taddress: string,\n\tminPrefix = 20,\n\tminSuffix = 3,\n): string => {\n\tif (minPrefix + minSuffix >= 40) {\n\t\treturn address;\n\t}\n\treturn `${address.substring(0, 2 + minPrefix)}…${address.substring(address.length - minSuffix)}`;\n};\n\nexport const truncateEnd = (text: string | undefined, truncateAt: number) => {\n\tif (!text) return '';\n\n\tlet finalText = text;\n\n\tif (text.length >= truncateAt) {\n\t\tfinalText = `${text.slice(0, truncateAt)}...`;\n\t}\n\n\treturn finalText;\n};\n\nexport const compareAddress = (a = '', b = '') => {\n\treturn a.toLowerCase() === b.toLowerCase();\n};\n","import { networks } from '@0xsequence/network';\n\nexport const getPresentableChainName = (chainId: number) => {\n\treturn networks[chainId as keyof typeof networks]?.title ?? 'Unknown Network';\n};\n","import * as dn from 'dnum';\nimport { formatUnits } from 'viem';\n\ntype CalculatePriceDifferencePercentageArgs = {\n\tinputPriceRaw: bigint;\n\tbasePriceRaw: bigint;\n\tdecimals: number;\n};\n\n/**\n * Calculates the percentage difference between two prices\n * @param args - Object containing input price, base price, and decimals\n * @returns The percentage difference as a string with 2 decimal places\n * @example\n * ```ts\n * const diff = calculatePriceDifferencePercentage({\n * inputPriceRaw: 1000000n,\n * basePriceRaw: 900000n,\n * decimals: 6\n * }); // Returns \"11.11\"\n * ```\n */\nexport const calculatePriceDifferencePercentage = ({\n\tinputPriceRaw,\n\tbasePriceRaw,\n\tdecimals,\n}: CalculatePriceDifferencePercentageArgs) => {\n\tconst inputPrice = Number(formatUnits(inputPriceRaw, decimals));\n\tconst basePrice = Number(formatUnits(basePriceRaw, decimals));\n\tconst difference = inputPrice - basePrice;\n\tconst percentageDifference = (difference / basePrice) * 100;\n\n\treturn percentageDifference.toFixed(2);\n};\n\n/**\n * Formats a raw price amount with the specified number of decimal places\n * @param amount - The raw price amount as a bigint\n * @param decimals - Number of decimal places to format to\n * @returns Formatted price string with proper decimal and thousands separators\n * @example\n * ```ts\n * const formatted = formatPrice(1000000n, 6); // Returns \"1.000000\"\n * ```\n */\nexport const formatPrice = (amount: bigint, decimals: number): string => {\n\tconst formattedUnits = Number(formatUnits(amount, decimals));\n\treturn formattedUnits.toLocaleString('en-US', {\n\t\tminimumFractionDigits: 0,\n\t\tmaximumFractionDigits: decimals,\n\t});\n};\n\n/**\n * Calculates the final earnings amount after applying multiple fee percentages\n * @param amount - The raw amount as a bigint (e.g., from a blockchain transaction)\n * @param decimals - The number of decimal places for the currency (e.g., 18 for ETH, 6 for USDC)\n * @param fees - Array of fee percentages to apply (e.g., [2.5, 1.0] for 2.5% and 1% fees)\n * @returns Formatted string representing the final earnings after all fees are applied\n * @throws Will return '0' if there's an error in calculation\n * @example\n * ```ts\n * const earnings = calculateEarningsAfterFees(\n * 1000000000000000000n, // 1 ETH\n * 18, // ETH decimals\n * [2.5, 1.0] // 2.5% and 1% fees\n * ); // Returns \"0.96525\" (1 ETH after 2.5% and 1% fees)\n * ```\n */\nexport const calculateEarningsAfterFees = (\n\tamount: bigint,\n\tdecimals: number,\n\tfees: number[],\n): string => {\n\ttry {\n\t\tconst decimalAmount = Number(formatUnits(amount, decimals));\n\t\tlet earnings = dn.from(decimalAmount.toString(), decimals);\n\n\t\tfor (const fee of fees) {\n\t\t\tif (fee > 0) {\n\t\t\t\tconst feeMultiplier = dn.from((1 - fee / 100).toString(), decimals);\n\t\t\t\tearnings = dn.multiply(earnings, feeMultiplier);\n\t\t\t}\n\t\t}\n\n\t\treturn dn.format(earnings, {\n\t\t\tdigits: decimals,\n\t\t\ttrailingZeros: false,\n\t\t\tlocale: 'en-US',\n\t\t});\n\t} catch (error) {\n\t\tconsole.error('Error calculating earnings after fees:', error);\n\t\treturn '0';\n\t}\n};\n\n/**\n * Formats a price amount with fee applied\n * @param amount - The raw price amount as a bigint\n * @param decimals - Number of decimal places for the currency\n * @param feePercentage - Fee percentage to apply (e.g., 3.5 for 3.5%)\n * @returns Formatted price string with fee applied and proper decimal/thousands separators\n * @example\n * ```ts\n * const priceWithFee = formatPriceWithFee(1000000n, 6, 3.5); // Returns \"1.035\"\n * ```\n */\nexport const formatPriceWithFee = (\n\tamount: bigint,\n\tdecimals: number,\n\tfeePercentage: number,\n): string => {\n\ttry {\n\t\tconst decimalAmount = Number(formatUnits(amount, decimals));\n\t\tconst price = dn.from(decimalAmount.toString(), decimals);\n\t\tconst feeMultiplier = dn.from(\n\t\t\t(1 + feePercentage / 100).toString(),\n\t\t\tdecimals,\n\t\t);\n\t\tconst totalPrice = dn.multiply(price, feeMultiplier);\n\n\t\treturn dn.format(totalPrice, {\n\t\t\tdigits: decimals,\n\t\t\ttrailingZeros: false,\n\t\t\tlocale: 'en-US',\n\t\t});\n\t} catch (error) {\n\t\tconsole.error('Error formatting price with fee:', error);\n\t\treturn '0';\n\t}\n};\n","import type { Image } from '@0xsequence/design-system';\nimport type { ComponentType } from 'react';\nimport {\n\tAlienSwapLogo,\n\tBlurLogo,\n\tLooksRareLogo,\n\tMagicEdenLogo,\n\tMintifyLogo,\n\tOpenSeaLogo,\n\tSequenceLogo,\n\tX2y2Logo,\n} from '../react/ui/components/marketplace-logos';\nimport { MarketplaceKind } from '../types';\n\ninterface Marketplace {\n\tlogo: ComponentType<React.ComponentProps<typeof Image>>;\n\tdisplayName: string;\n}\n\nconst MARKETPLACES: Record<string, Marketplace> = {\n\tsequence: {\n\t\tlogo: SequenceLogo,\n\t\tdisplayName: 'Sequence',\n\t},\n\topensea: {\n\t\tlogo: OpenSeaLogo,\n\t\tdisplayName: 'OpenSea',\n\t},\n\tmagiceden: {\n\t\tlogo: MagicEdenLogo,\n\t\tdisplayName: 'Magic Eden',\n\t},\n\tmintify: {\n\t\tlogo: MintifyLogo,\n\t\tdisplayName: 'Mintify',\n\t},\n\tlooksrare: {\n\t\tlogo: LooksRareLogo,\n\t\tdisplayName: 'Looks Rare',\n\t},\n\tx2y2: {\n\t\tlogo: X2y2Logo,\n\t\tdisplayName: 'X2Y2',\n\t},\n\tblur: {\n\t\tlogo: BlurLogo,\n\t\tdisplayName: 'Blur',\n\t},\n\talienswap: {\n\t\tlogo: AlienSwapLogo,\n\t\tdisplayName: 'AlienSwap',\n\t},\n} as const;\n\nconst KIND_TO_MARKETPLACE: Partial<\n\tRecord<MarketplaceKind, keyof typeof MARKETPLACES>\n> = {\n\t[MarketplaceKind.sequence_marketplace_v1]: 'sequence',\n\t[MarketplaceKind.sequence_marketplace_v2]: 'sequence',\n\t[MarketplaceKind.opensea]: 'opensea',\n\t[MarketplaceKind.mintify]: 'mintify',\n\t[MarketplaceKind.looks_rare]: 'looksrare',\n\t[MarketplaceKind.x2y2]: 'x2y2',\n\t[MarketplaceKind.blur]: 'blur',\n\t[MarketplaceKind.magic_eden]: 'magiceden',\n};\n\ntype MarketplaceDetailsProp = {\n\toriginName: string;\n\tkind: MarketplaceKind;\n};\n\n// TODO: add support for more marketplaces and improve detection of marketplace\nexport function getMarketplaceDetails({\n\toriginName,\n\tkind,\n}: MarketplaceDetailsProp) {\n\tif (\n\t\tkind === MarketplaceKind.sequence_marketplace_v1 ||\n\t\tkind === MarketplaceKind.sequence_marketplace_v2\n\t) {\n\t\treturn MARKETPLACES.sequence;\n\t}\n\n\tlet name = originName.toLowerCase();\n\n\ttry {\n\t\t//Check if the name can be parsed as a url\n\t\tnew URL(name);\n\t\t// if it can we are naively trying to extract the root domain\n\t\tname = getRootDomain(name) || name;\n\t} catch {}\n\n\tname = name.replace(/ /g, '');\n\n\tconst details = MARKETPLACES[name];\n\n\tif (details) {\n\t\treturn details;\n\t}\n\n\tif (KIND_TO_MARKETPLACE[kind]) {\n\t\treturn MARKETPLACES[KIND_TO_MARKETPLACE[kind]];\n\t}\n}\n\nfunction getRootDomain(url: string) {\n\tconst domain = url.replace(/^(https?:\\/\\/)?(www\\.)?/, '');\n\tconst parts = domain.split('.');\n\treturn parts[parts.length - 2] || parts[0];\n}\n","import type { NetworkConfig } from '@0xsequence/network';\nimport type { Chain } from 'viem';\n\nexport const networkToWagmiChain = (network: NetworkConfig): Chain => ({\n\t...network,\n\tid: Number(network.chainId),\n\tname: network.name,\n\tnativeCurrency: { ...network.nativeToken },\n\trpcUrls: {\n\t\tdefault: {\n\t\t\thttp: [network.rpcUrl],\n\t\t},\n\t\tpublic: {\n\t\t\thttp: [network.rpcUrl],\n\t\t},\n\t},\n});\n","import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n\treturn twMerge(clsx(inputs));\n}\n"],"mappings":";;;;;;;;;AAAA,MAAa,iBAAiB,CAC7BA,SACA,YAAY,IACZ,YAAY,MACA;AACZ,KAAI,YA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C,SAAS,gBAAgB,2BACzB,SAAS,gBAAgB,wBAEzB,QAAO,aAAa;CAGrB,IAAI,OAAO,WAAW,aAAa;AAEnC,KAAI;AAEH,MAAI,IAAI;AAER,SAAO,cAAc,KAAK,IAAI;CAC9B,QAAO,CAAE;AAEV,QAAO,KAAK,QAAQ,MAAM,GAAG;CAE7B,MAAM,UAAU,aAAa;AAE7B,KAAI,QACH,QAAO;AAGR,KAAI,oBAAoB,MACvB,QAAO,aAAa,oBAAoB;AAEzC;AAED,SAAS,cAAcC,KAAa;CACnC,MAAM,SAAS,IAAI,QAAQ,2BAA2B,GAAG;CACzD,MAAM,QAAQ,OAAO,MAAM,IAAI;AAC/B,QAAO,MAAM,MAAM,SAAS,MAAM,MAAM;AACxC;;;;AC3GD,MAAa,sBAAsB,CAACC,aAAmC;CACtE,GAAG;CACH,IAAI,OAAO,QAAQ,QAAQ;CAC3B,MAAM,QAAQ;CACd,gBAAgB,EAAE,GAAG,QAAQ,YAAa;CAC1C,SAAS;EACR,SAAS,EACR,MAAM,CAAC,QAAQ,MAAO,EACtB;EACD,QAAQ,EACP,MAAM,CAAC,QAAQ,MAAO,EACtB;CACD;AACD;;;;ACbD,SAAgB,GAAG,GAAG,QAAsB;AAC3C,QAAO,QAAQ,KAAK,OAAO,CAAC;AAC5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wagmi-DRctYEk6.js","names":["marketplaceConfig: MarketplaceConfig","sdkConfig: SdkConfig","config: SdkConfig","wallets: Wallet[]","url: string | undefined","name: string","env: Env","marketplaceConfig: MarketplaceConfig","sdkConfig: SdkConfig","ssr?: boolean","marketConfig: MarketplaceConfig","chains: [Chain, ...Chain[]]","projectAccessKey: string","nodeGatewayEnv: Env"],"sources":["../src/react/_internal/consts.ts","../src/react/_internal/wagmi/get-connectors.ts","../src/react/_internal/wagmi/create-config.ts"],"sourcesContent":["export const DEFAULT_NETWORK = 137;\n","import {\n\ttype SequenceOptions,\n\ttype Wallet,\n\tapple,\n\tappleWaas,\n\tcoinbaseWallet,\n\tecosystemWallet,\n\temail,\n\temailWaas,\n\tfacebook,\n\tgetConnectWallets,\n\tgoogle,\n\tgoogleWaas,\n\tsequence,\n\ttwitch,\n\twalletConnect,\n} from '@0xsequence/connect';\nimport React, { type FunctionComponent } from 'react';\nimport type { CreateConnectorFn } from 'wagmi';\nimport type { Env, SdkConfig } from '../../../types';\nimport type { MarketplaceConfig } from '../../../types/new-marketplace-types';\nimport { MissingConfigError } from '../../../utils/_internal/error/transaction';\nimport { MarketplaceWalletType } from '../api/builder.gen';\nimport { DEFAULT_NETWORK } from '../consts';\n\nexport function getConnectors({\n\tmarketplaceConfig,\n\tsdkConfig,\n\twalletType,\n}: {\n\tmarketplaceConfig: MarketplaceConfig;\n\tsdkConfig: SdkConfig;\n\twalletType: MarketplaceWalletType;\n}): CreateConnectorFn[] {\n\tconst connectors = commonConnectors(marketplaceConfig, sdkConfig);\n\n\tif (walletType === MarketplaceWalletType.UNIVERSAL) {\n\t\tconnectors.push(...getUniversalWalletConfigs(sdkConfig, marketplaceConfig));\n\t} else if (walletType === MarketplaceWalletType.EMBEDDED) {\n\t\tconnectors.push(...getWaasConnectors(sdkConfig, marketplaceConfig));\n\t} else if (walletType === MarketplaceWalletType.ECOSYSTEM) {\n\t\tconnectors.push(getEcosystemConnector(marketplaceConfig, sdkConfig));\n\t} else {\n\t\tthrow new Error('Invalid wallet type');\n\t}\n\n\treturn getConnectWallets(sdkConfig.projectAccessKey, connectors);\n}\n\nfunction commonConnectors(\n\tmarketplaceConfig: MarketplaceConfig,\n\tsdkConfig: SdkConfig,\n) {\n\tconst wallets = [];\n\tconst { title: appName } = marketplaceConfig.settings;\n\tconst walletOptions = marketplaceConfig.settings.walletOptions;\n\tconst walletConnectProjectId = sdkConfig.walletConnectProjectId;\n\n\tif (walletOptions.connectors.includes('coinbase')) {\n\t\twallets.push(\n\t\t\tcoinbaseWallet({\n\t\t\t\tappName,\n\t\t\t}),\n\t\t);\n\t}\n\n\tif (\n\t\twalletConnectProjectId &&\n\t\twalletOptions.connectors.includes('walletconnect')\n\t) {\n\t\twallets.push(\n\t\t\twalletConnect({\n\t\t\t\tprojectId: walletConnectProjectId,\n\t\t\t}),\n\t\t);\n\t}\n\n\treturn wallets;\n}\n\nfunction getUniversalWalletConfigs(\n\tconfig: SdkConfig,\n\tmarketplaceConfig: MarketplaceConfig,\n): Wallet[] {\n\tconst sequenceWalletEnv =\n\t\tconfig._internal?.overrides?.api?.sequenceWallet?.env || 'production';\n\tconst projectAccessKey =\n\t\tconfig._internal?.overrides?.api?.sequenceWallet?.accessKey ||\n\t\tconfig.projectAccessKey;\n\n\tconst sequenceWalletOptions = {\n\t\twalletAppURL: getSequenceWalletURL(sequenceWalletEnv),\n\t\tdefaultNetwork: DEFAULT_NETWORK,\n\t\tconnect: {\n\t\t\tprojectAccessKey,\n\t\t\tapp: marketplaceConfig.settings.title,\n\t\t\tsettings: {\n\t\t\t\t// TODO: make a separate config for this?\n\t\t\t\tbannerUrl: marketplaceConfig.market.ogImage,\n\t\t\t},\n\t\t},\n\t} satisfies SequenceOptions;\n\n\treturn [\n\t\tsequence(sequenceWalletOptions),\n\t\temail(sequenceWalletOptions),\n\t\tfacebook(sequenceWalletOptions),\n\t\tgoogle(sequenceWalletOptions),\n\t\tapple(sequenceWalletOptions),\n\t\ttwitch(sequenceWalletOptions),\n\t] as const;\n}\n\nexport function getWaasConnectors(\n\tconfig: SdkConfig,\n\tmarketplaceConfig: MarketplaceConfig,\n): Wallet[] {\n\tconst { projectAccessKey } = config;\n\n\tconst waasConfigKey =\n\t\tmarketplaceConfig.settings.walletOptions.embedded?.tenantKey;\n\n\tif (!waasConfigKey)\n\t\tthrow new MissingConfigError(\n\t\t\t'Embedded wallet config is missing, please check your access key',\n\t\t);\n\n\tconst waasOptions = marketplaceConfig.settings.walletOptions.oidcIssuers;\n\tconst googleClientId = waasOptions.google;\n\tconst appleClientId = waasOptions.apple;\n\tconst appleRedirectURI =\n\t\ttypeof window !== 'undefined'\n\t\t\t? `${window.location.origin}${window.location.pathname}`\n\t\t\t: undefined;\n\n\tconst wallets: Wallet[] = [];\n\n\tif (marketplaceConfig.settings.walletOptions.embedded?.emailEnabled) {\n\t\twallets.push(\n\t\t\temailWaas({\n\t\t\t\tprojectAccessKey,\n\t\t\t\twaasConfigKey,\n\t\t\t}),\n\t\t);\n\t}\n\n\tif (googleClientId) {\n\t\twallets.push(\n\t\t\tgoogleWaas({\n\t\t\t\tprojectAccessKey,\n\t\t\t\tgoogleClientId,\n\t\t\t\twaasConfigKey,\n\t\t\t\tnetwork: DEFAULT_NETWORK,\n\t\t\t}),\n\t\t);\n\t}\n\n\tif (appleClientId) {\n\t\twallets.push(\n\t\t\tappleWaas({\n\t\t\t\tprojectAccessKey,\n\t\t\t\tappleClientId,\n\t\t\t\tappleRedirectURI,\n\t\t\t\twaasConfigKey,\n\t\t\t\tnetwork: DEFAULT_NETWORK,\n\t\t\t}),\n\t\t);\n\t}\n\n\treturn wallets;\n}\n\nexport function getEcosystemConnector(\n\tmarketplaceConfig: MarketplaceConfig,\n\tsdkConfig: SdkConfig,\n): Wallet {\n\tconst ecosystemOptions = marketplaceConfig.settings.walletOptions.ecosystem;\n\tif (!ecosystemOptions) throw new MissingConfigError('ecosystem');\n\tconst { walletAppName, walletUrl, logoDarkUrl, logoLightUrl } =\n\t\tecosystemOptions;\n\n\treturn ecosystemWallet({\n\t\tprojectAccessKey: sdkConfig.projectAccessKey,\n\t\twalletUrl,\n\t\tname: walletAppName,\n\t\tdefaultNetwork: DEFAULT_NETWORK,\n\t\tlogoDark: getEcosystemLogo(logoDarkUrl, walletAppName),\n\t\tlogoLight: getEcosystemLogo(logoLightUrl, walletAppName),\n\t});\n}\n\nfunction getEcosystemLogo(\n\turl: string | undefined,\n\tname: string,\n): FunctionComponent {\n\tif (!url) return () => null;\n\tconst Logo = () =>\n\t\tReact.createElement('img', { src: url, alt: name, width: 32, height: 32 });\n\tLogo.displayName = 'EcosystemLogo';\n\treturn Logo;\n}\n\nfunction getSequenceWalletURL(env: Env) {\n\tswitch (env) {\n\t\tcase 'development':\n\t\t\treturn 'https://dev.sequence.app';\n\t\tcase 'next':\n\t\t\treturn 'https://next.sequence.app';\n\t\t// biome-ignore lint/complexity/noUselessSwitchCase: Production case kept for readability alongside other environments\n\t\tcase 'production':\n\t\tdefault:\n\t\t\treturn 'https://sequence.app';\n\t}\n}\n","import { getDefaultChains } from '@0xsequence/connect';\nimport { allNetworks, findNetworkConfig } from '@0xsequence/network';\nimport type { Chain, Transport } from 'viem';\nimport { http, cookieStorage, createConfig, createStorage } from 'wagmi';\nimport type { Env, SdkConfig } from '../../../types';\nimport type { MarketplaceConfig } from '../../../types/new-marketplace-types';\nimport { DEFAULT_NETWORK } from '../consts';\nimport { getConnectors } from './get-connectors';\n\nexport const createWagmiConfig = (\n\tmarketplaceConfig: MarketplaceConfig,\n\tsdkConfig: SdkConfig,\n\tssr?: boolean,\n) => {\n\tconst chains = getChainConfigs(marketplaceConfig);\n\tconst nodeGatewayEnv =\n\t\tsdkConfig._internal?.overrides?.api?.nodeGateway?.env ?? 'production';\n\tconst projectAccessKey =\n\t\tsdkConfig._internal?.overrides?.api?.nodeGateway?.accessKey ??\n\t\tsdkConfig.projectAccessKey;\n\n\tconst transports = getTransportConfigs(\n\t\tchains,\n\t\tprojectAccessKey,\n\t\tnodeGatewayEnv,\n\t);\n\n\tconst walletType = marketplaceConfig.settings.walletOptions.walletType;\n\n\tconst connectors = getConnectors({\n\t\tmarketplaceConfig,\n\t\tsdkConfig,\n\t\twalletType,\n\t});\n\n\tconst multiInjectedProviderDiscovery =\n\t\tmarketplaceConfig.settings.walletOptions.includeEIP6963Wallets;\n\n\treturn createConfig({\n\t\tconnectors,\n\t\tchains,\n\t\tssr,\n\t\tmultiInjectedProviderDiscovery,\n\t\tstorage: ssr\n\t\t\t? createStorage({\n\t\t\t\t\tstorage: cookieStorage,\n\t\t\t\t})\n\t\t\t: undefined,\n\t\ttransports,\n\t});\n};\n\nfunction getAllCollections(marketConfig: MarketplaceConfig) {\n\treturn [...marketConfig.market.collections, ...marketConfig.shop.collections];\n}\n\nfunction getChainConfigs(marketConfig: MarketplaceConfig): [Chain, ...Chain[]] {\n\tconst supportedChainIds = new Set(\n\t\tgetAllCollections(marketConfig).map((c) => c.chainId),\n\t);\n\n\tif (supportedChainIds.size === 0) {\n\t\tsupportedChainIds.add(DEFAULT_NETWORK);\n\t}\n\n\tconst chains = getDefaultChains([...supportedChainIds]);\n\n\treturn chains;\n}\n\nfunction getTransportConfigs(\n\tchains: [Chain, ...Chain[]],\n\tprojectAccessKey: string,\n\tnodeGatewayEnv: Env,\n): Record<number, Transport> {\n\treturn chains.reduce(\n\t\t(acc, chain) => {\n\t\t\tconst network = findNetworkConfig(allNetworks, chain.id);\n\t\t\tif (network) {\n\t\t\t\tlet rpcUrl = network.rpcUrl;\n\t\t\t\tif (nodeGatewayEnv === 'development') {\n\t\t\t\t\trpcUrl = rpcUrl.replace('nodes.', 'dev-nodes.');\n\t\t\t\t}\n\t\t\t\tif (!network.rpcUrl.endsWith(projectAccessKey))\n\t\t\t\t\trpcUrl = `${rpcUrl}/${projectAccessKey}`;\n\t\t\t\tacc[chain.id] = http(rpcUrl);\n\t\t\t}\n\t\t\treturn acc;\n\t\t},\n\t\t{} as Record<number, Transport>,\n\t);\n}\n"],"mappings":";;;;;;;;AAAA,MAAa,kBAAkB;;;;ACyB/B,SAAgB,cAAc,EAC7B,mBACA,WACA,YAKA,EAAuB;CACvB,MAAM,aAAa,iBAAiB,mBAAmB,UAAU;AAEjE,KAAI,eAAe,sBAAsB,UACxC,YAAW,KAAK,GAAG,0BAA0B,WAAW,kBAAkB,CAAC;UACjE,eAAe,sBAAsB,SAC/C,YAAW,KAAK,GAAG,kBAAkB,WAAW,kBAAkB,CAAC;UACzD,eAAe,sBAAsB,UAC/C,YAAW,KAAK,sBAAsB,mBAAmB,UAAU,CAAC;KAEpE,OAAM,IAAI,MAA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