@0xsequence/marketplace-sdk 0.9.0 → 1.0.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/.storybook/ConnectionStatus.tsx +289 -0
- package/.storybook/main.ts +82 -0
- package/.storybook/preview.tsx +106 -0
- package/.storybook/vitest.setup.ts +6 -0
- package/CHANGELOG.md +135 -8
- package/compile-tailwind.js +54 -0
- package/dist/{CalendarIcon-DbQ7Vxcw.js → BellIcon-Cb9YEUzJ.js} +27 -27
- package/dist/BellIcon-Cb9YEUzJ.js.map +1 -0
- package/dist/CollectibleCard-CYyWzk6u.d.ts +8 -0
- package/dist/{_internal-BgWcRIak.js → _internal-DslqcNC1.js} +1 -1
- package/dist/{_internal-BgWcRIak.js.map → _internal-DslqcNC1.js.map} +1 -1
- package/dist/{alien_swap-B_76IMma.js → alien_swap-DJ98gZQp.js} +1 -1
- package/dist/{alien_swap-B_76IMma.js.map → alien_swap-DJ98gZQp.js.map} +1 -1
- package/dist/{api-DTIan01C.js → api-BmEQfSQa.js} +17 -14
- package/dist/api-BmEQfSQa.js.map +1 -0
- package/dist/{aqua-xyz-CMN_TFY5.js → aqua-xyz-n1PcCCZ0.js} +1 -1
- package/dist/{aqua-xyz-CMN_TFY5.js.map → aqua-xyz-n1PcCCZ0.js.map} +1 -1
- package/dist/{aura-Cye_TuHj.js → aura-Bevk_YkS.js} +1 -1
- package/dist/{aura-Cye_TuHj.js.map → aura-Bevk_YkS.js.map} +1 -1
- package/dist/{blur-DWDMyMpK.js → blur-B5sHErx5.js} +1 -1
- package/dist/{blur-DWDMyMpK.js.map → blur-B5sHErx5.js.map} +1 -1
- package/dist/builder-api-BFuZNOaN.js.map +1 -1
- package/dist/builder.gen-B9wR2nvF.js.map +1 -1
- package/dist/{coinbase-ByA_XRB0.js → coinbase-D30W-lxA.js} +1 -1
- package/dist/{coinbase-ByA_XRB0.js.map → coinbase-D30W-lxA.js.map} +1 -1
- package/dist/contracts-DPHFT2TA.js +97 -0
- package/dist/contracts-DPHFT2TA.js.map +1 -0
- package/dist/{wagmi-CDzEQbfk.js → create-config-6uynwTeb.js} +20 -10
- package/dist/create-config-6uynwTeb.js.map +1 -0
- package/dist/{new-marketplace-types-Bfis0U4J.d.ts → create-config-lLSrnkbb.d.ts} +554 -166
- package/dist/{element-b77CyXIZ.js → element-C2NJexro.js} +1 -1
- package/dist/{element-b77CyXIZ.js.map → element-C2NJexro.js.map} +1 -1
- package/dist/filters-B8XS4tFH.d.ts +31 -0
- package/dist/{foundation-DbOrKP9Y.js → foundation-QgY1lvUj.js} +1 -1
- package/dist/{foundation-DbOrKP9Y.js.map → foundation-QgY1lvUj.js.map} +1 -1
- package/dist/index-BGJXqdg6.d.ts +131 -0
- package/dist/index-BuY_NKSX.d.ts +222 -0
- package/dist/{index-21LE7OhL.d.ts → index-ByW08-Z7.d.ts} +6 -3
- package/dist/index-C7xKVIr4.d.ts +447 -0
- package/dist/index-CIkpYltz.d.ts +61 -0
- package/dist/index-CQnGIGb5.d.ts +346 -0
- package/dist/{index-DaE5ZNHb.d.ts → index-CY5UEX4h.d.ts} +5 -5
- package/dist/{index-DXMfTZ1F.d.ts → index-ChSKFOMx.d.ts} +1 -1
- package/dist/{index-D5v5iluA.d.ts → index-CtF7EE2z.d.ts} +1 -1
- package/dist/index-D2HohSwO.d.ts +293 -0
- package/dist/index-D71J5Ghd.d.ts +813 -0
- package/dist/{index-ByznONYE.d.ts → index-DNU9xoGK.d.ts} +28 -64
- package/dist/index-DX0Vm8HY.d.ts +2541 -0
- package/dist/index-DonXiSg2.d.ts +902 -0
- package/dist/index-Dpyp7fQz.d.ts +298 -0
- package/dist/index-PSPpUxCE.d.ts +18 -0
- package/dist/{index-BL9RUSEK.d.ts → index-QxxS6f9r.d.ts} +1 -1
- package/dist/index-ThUIs-Sy.d.ts +306 -0
- package/dist/index.d.ts +8 -10
- package/dist/index.js +12 -9
- package/dist/listCollectiblesPaginated--AgXjajA.d.ts +166 -0
- package/dist/listCollections-Bbzbz7qW.d.ts +624 -0
- package/dist/{looks-rare-C1VqNcSM.js → looks-rare-CMVPny4v.js} +1 -1
- package/dist/{looks-rare-C1VqNcSM.js.map → looks-rare-CMVPny4v.js.map} +1 -1
- package/dist/lowestListing-BQHfQpfg.d.ts +144 -0
- package/dist/{magic-eden-ea_AGCZr.js → magic-eden-IrWp2ZXk.js} +1 -1
- package/dist/{magic-eden-ea_AGCZr.js.map → magic-eden-IrWp2ZXk.js.map} +1 -1
- package/dist/{manifold-8y8J2sjT.js → manifold-DeOE-p2G.js} +1 -1
- package/dist/{manifold-8y8J2sjT.js.map → manifold-DeOE-p2G.js.map} +1 -1
- package/dist/marketCurrencies-CmOMCCOr.d.ts +122 -0
- package/dist/{marketplace-nwnZv9Cb.js → marketplace-B5Z8G03R.js} +1 -1
- package/dist/{marketplace-nwnZv9Cb.js.map → marketplace-B5Z8G03R.js.map} +1 -1
- package/dist/{marketplace-logos-CSeGcPW4.js → marketplace-logos-D8t86gsW.js} +21 -21
- package/dist/{marketplace-logos-CSeGcPW4.js.map → marketplace-logos-D8t86gsW.js.map} +1 -1
- package/dist/{marketplace.gen-BSDIX7NZ.js → marketplace.gen-JzNYpM0U.js} +3 -3
- package/dist/marketplace.gen-JzNYpM0U.js.map +1 -0
- package/dist/{marketplaceConfig-C6X1SUik.js → marketplaceConfig-sNh-MA5M.js} +15 -4
- package/dist/marketplaceConfig-sNh-MA5M.js.map +1 -0
- package/dist/{mintify-LA68TzWg.js → mintify-DG3GrljJ.js} +1 -1
- package/dist/{mintify-LA68TzWg.js.map → mintify-DG3GrljJ.js.map} +1 -1
- package/dist/network-DnBEe1Ur.js +15 -0
- package/dist/network-DnBEe1Ur.js.map +1 -0
- package/dist/{nftx-D3Tc8nzd.js → nftx-B3LH-ZYM.js} +1 -1
- package/dist/{nftx-D3Tc8nzd.js.map → nftx-B3LH-ZYM.js.map} +1 -1
- package/dist/{okx-hbqg6oIJ.js → okx-CRFLrT3Z.js} +1 -1
- package/dist/{okx-hbqg6oIJ.js.map → okx-CRFLrT3Z.js.map} +1 -1
- package/dist/{open-sea-BccuK8-t.js → open-sea-cOpfl366.js} +1 -1
- package/dist/{open-sea-BccuK8-t.js.map → open-sea-cOpfl366.js.map} +1 -1
- package/dist/primary-sale-CLjXRrDj.js +3048 -0
- package/dist/primary-sale-CLjXRrDj.js.map +1 -0
- package/dist/queries-BYT4GJw3.js +1478 -0
- package/dist/queries-BYT4GJw3.js.map +1 -0
- package/dist/query-BTe7Wkrs.d.ts +31 -0
- package/dist/{rarible-BgTwwj9g.js → rarible-guwUx4cn.js} +1 -1
- package/dist/{rarible-BgTwwj9g.js.map → rarible-guwUx4cn.js.map} +1 -1
- package/dist/react/_internal/api/index.d.ts +2 -4
- package/dist/react/_internal/api/index.js +5 -4
- package/dist/react/_internal/databeat/index.d.ts +2 -73
- package/dist/react/_internal/databeat/index.js +21 -18
- package/dist/react/_internal/index.d.ts +2 -7
- package/dist/react/_internal/index.js +8 -6
- package/dist/react/_internal/wagmi/index.d.ts +2 -4
- package/dist/react/_internal/wagmi/index.js +4 -3
- package/dist/react/hooks/config/index.d.ts +9 -0
- package/dist/react/hooks/config/index.js +26 -0
- package/dist/react/hooks/contracts/index.d.ts +7 -0
- package/dist/react/hooks/contracts/index.js +16 -0
- package/dist/react/hooks/data/collectibles/index.d.ts +5 -0
- package/dist/react/hooks/data/collectibles/index.js +26 -0
- package/dist/react/hooks/data/collections/index.d.ts +11 -0
- package/dist/react/hooks/data/collections/index.js +26 -0
- package/dist/react/hooks/data/index.d.ts +29 -0
- package/dist/react/hooks/data/index.js +26 -0
- package/dist/react/hooks/data/inventory/index.d.ts +29 -0
- package/dist/react/hooks/data/inventory/index.js +26 -0
- package/dist/react/hooks/data/market/index.d.ts +12 -0
- package/dist/react/hooks/data/market/index.js +26 -0
- package/dist/react/hooks/data/orders/index.d.ts +11 -0
- package/dist/react/hooks/data/orders/index.js +26 -0
- package/dist/react/hooks/data/primary-sales/index.d.ts +29 -0
- package/dist/react/hooks/data/primary-sales/index.js +26 -0
- package/dist/react/hooks/data/tokens/index.d.ts +5 -0
- package/dist/react/hooks/data/tokens/index.js +26 -0
- package/dist/react/hooks/index.d.ts +29 -18
- package/dist/react/hooks/index.js +22 -19
- package/dist/react/hooks/transactions/index.d.ts +3 -0
- package/dist/react/hooks/transactions/index.js +26 -0
- package/dist/react/hooks/ui/index.d.ts +5 -0
- package/dist/react/hooks/ui/index.js +26 -0
- package/dist/react/hooks/utils/index.d.ts +29 -0
- package/dist/react/hooks/utils/index.js +26 -0
- package/dist/react/index.d.ts +29 -18
- package/dist/react/index.js +22 -19
- package/dist/react/queries/index.d.ts +16 -8
- package/dist/react/queries/index.js +17 -15
- package/dist/react/ssr/index.d.ts +7 -9
- package/dist/react/ssr/index.js +8 -6
- package/dist/react/ssr/index.js.map +1 -1
- package/dist/react/ui/components/marketplace-collectible-card/index.d.ts +4 -8
- package/dist/react/ui/components/marketplace-collectible-card/index.js +21 -18
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.d.ts +2 -7
- package/dist/react/ui/components/marketplace-collectible-card/utils/index.js +8 -6
- 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 +11 -9
- package/dist/react/ui/index.d.ts +4 -8
- package/dist/react/ui/index.js +21 -18
- package/dist/react/ui/modals/_internal/components/actionModal/index.d.ts +1 -25
- package/dist/react/ui/modals/_internal/components/actionModal/index.js +22 -19
- package/dist/react/utils/index.d.ts +19 -0
- package/dist/react/utils/index.js +9 -0
- package/dist/{react-BbHBl6gg.css → react-CbqXKOpt.css} +1 -1
- package/dist/{react-BbHBl6gg.css.map → react-CbqXKOpt.css.map} +1 -1
- package/dist/{react-DAIicQPT.js → react-Ceq8mamy.js} +11203 -7647
- package/dist/react-Ceq8mamy.js.map +1 -0
- package/dist/{sequence-Do3kzb4J.js → sequence-Dt2Xo7Fa.js} +1 -1
- package/dist/{sequence-Do3kzb4J.js.map → sequence-Dt2Xo7Fa.js.map} +1 -1
- package/dist/{index.css → styles/index.css} +679 -127
- package/dist/{sudo-swap-B6vPKxBz.js → sudo-swap-CGoARONs.js} +1 -1
- package/dist/{sudo-swap-B6vPKxBz.js.map → sudo-swap-CGoARONs.js.map} +1 -1
- package/dist/{super-rare-eCm1SE6O.js → super-rare-NeQtZjcn.js} +1 -1
- package/dist/{super-rare-eCm1SE6O.js.map → super-rare-NeQtZjcn.js.map} +1 -1
- package/dist/{token-Da4TdyUk.js → token-D9gZVqbX.js} +1 -1
- package/dist/{token-Da4TdyUk.js.map → token-D9gZVqbX.js.map} +1 -1
- package/dist/tokenSupplies-DXtkRYNO.d.ts +147 -0
- package/dist/{transaction-CcVViHEL.js → transaction-CC2KxNF6.js} +2 -17
- package/dist/transaction-CC2KxNF6.js.map +1 -0
- package/dist/types/index.d.ts +2 -3
- package/dist/types/index.js +2 -2
- package/dist/{CollectibleCard-C8Ae64Ab.d.ts → types-BlCa0TVE.d.ts} +9 -11
- package/dist/{types-DwWE6xOF.js → types-G2PWxiJR.js} +1 -1
- package/dist/{types-DwWE6xOF.js.map → types-G2PWxiJR.js.map} +1 -1
- 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 +2 -2
- package/dist/utils/abi/primary-sale/index.js +2 -2
- 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 -8
- package/dist/utils/index.js +11 -9
- package/dist/{utils-CW2NA5KG.js → utils-CKJd-CRf.js} +4 -11
- package/dist/utils-CKJd-CRf.js.map +1 -0
- package/dist/{utils-BPYfgDSL.js → utils-wquIhK6T.js} +5 -6
- package/dist/utils-wquIhK6T.js.map +1 -0
- package/dist/waitForTransactionReceipt-DZxAuR9N.js +27 -0
- package/dist/waitForTransactionReceipt-DZxAuR9N.js.map +1 -0
- package/dist/{x2y2-DD17tT91.js → x2y2-CQdg24VP.js} +1 -1
- package/dist/{x2y2-DD17tT91.js.map → x2y2-CQdg24VP.js.map} +1 -1
- package/dist/{zora-BpSG9UzS.js → zora-DdEydy4L.js} +1 -1
- package/dist/{zora-BpSG9UzS.js.map → zora-DdEydy4L.js.map} +1 -1
- package/eslint.config.mjs +4 -0
- package/package.json +55 -39
- package/postcss.config.mjs +73 -0
- package/public/mockServiceWorker.js +344 -0
- package/src/index.ts +1 -0
- package/src/react/_internal/api/__mocks__/builder.msw.ts +6 -0
- package/src/react/_internal/api/__mocks__/indexer.msw.ts +16 -0
- package/src/react/_internal/api/__mocks__/laos.msw.ts +387 -0
- package/src/react/_internal/api/__mocks__/marketplace.msw.ts +2 -0
- package/src/react/_internal/api/__mocks__/metadata.msw.ts +12 -1
- package/src/react/_internal/api/__tests__/laos-api.test.ts +756 -0
- package/src/react/_internal/api/builder.gen.ts +11 -7
- package/src/react/_internal/api/laos-api.ts +3 -0
- package/src/react/_internal/api/marketplace.gen.ts +5 -3
- package/src/react/_internal/api/query-keys.ts +12 -4
- package/src/react/_internal/api/services.ts +2 -14
- package/src/react/_internal/databeat/index.ts +15 -14
- package/src/react/_internal/databeat/types.ts +23 -0
- package/src/react/_internal/databeat/utils.ts +26 -0
- package/src/react/_internal/query-meta.ts +3 -0
- package/src/react/_internal/utils.ts +6 -4
- package/src/react/_internal/wagmi/create-config.ts +29 -14
- package/src/react/_internal/wagmi/get-connectors.ts +1 -1
- package/src/react/hooks/{__tests__ → config}/__snapshots__/useMarketplaceConfig.test.tsx.snap +6 -0
- package/src/react/hooks/config/index.ts +3 -0
- package/src/react/hooks/{useConfig.tsx → config/useConfig.tsx} +2 -2
- package/src/react/hooks/config/useConnectorMetadata.tsx +16 -0
- package/src/react/hooks/{__tests__ → config}/useMarketplaceConfig.test.tsx +1 -1
- package/src/react/hooks/{useMarketplaceConfig.tsx → config/useMarketplaceConfig.tsx} +2 -2
- package/src/react/hooks/contracts/index.ts +1 -0
- package/src/react/hooks/contracts/useSalesContractABI.ts +174 -0
- package/src/react/hooks/data/collectibles/index.ts +6 -0
- package/src/react/hooks/data/collectibles/useBalanceOfCollectible.laos.test.tsx +367 -0
- package/src/react/hooks/{__tests__ → data/collectibles}/useBalanceOfCollectible.test.tsx +2 -2
- package/src/react/hooks/{useBalanceOfCollectible.tsx → data/collectibles/useBalanceOfCollectible.tsx} +4 -4
- package/src/react/hooks/{__tests__ → data/collectibles}/useCollectible.test.tsx +3 -3
- package/src/react/hooks/{useCollectible.tsx → data/collectibles/useCollectible.tsx} +3 -3
- package/src/react/hooks/{__tests__ → data/collectibles}/useCountOfCollectables.test.tsx +4 -4
- package/src/react/hooks/{useCountOfCollectables.tsx → data/collectibles/useCountOfCollectables.tsx} +3 -3
- package/src/react/hooks/{__tests__ → data/collectibles}/useListCollectibleActivities.test.tsx +3 -3
- package/src/react/hooks/{useListCollectibleActivities.tsx → data/collectibles/useListCollectibleActivities.tsx} +3 -3
- package/src/react/hooks/{__tests__ → data/collectibles}/useListCollectibles.test.tsx +5 -6
- package/src/react/hooks/{useListCollectibles.tsx → data/collectibles/useListCollectibles.tsx} +3 -3
- package/src/react/hooks/{__tests__ → data/collectibles}/useListCollectiblesPaginated.test.tsx +4 -4
- package/src/react/hooks/{useListCollectiblesPaginated.tsx → data/collectibles/useListCollectiblesPaginated.tsx} +3 -3
- package/src/react/hooks/{__tests__ → data/collections}/__snapshots__/useListCollections.test.tsx.snap +10 -0
- package/src/react/hooks/data/collections/index.ts +6 -0
- package/src/react/hooks/{__tests__ → data/collections}/useCollection.test.tsx +2 -3
- package/src/react/hooks/{useCollection.tsx → data/collections/useCollection.tsx} +3 -3
- package/src/react/hooks/{__tests__ → data/collections}/useCollectionBalanceDetails.test.tsx +19 -2
- package/src/react/hooks/data/collections/useCollectionBalanceDetails.tsx +106 -0
- package/src/react/hooks/{__tests__ → data/collections}/useCollectionDetails.test.tsx +2 -2
- package/src/react/hooks/{useCollectionDetails.ts → data/collections/useCollectionDetails.ts} +3 -3
- package/src/react/hooks/{__tests__ → data/collections}/useCollectionDetailsPolling.test.tsx +14 -6
- package/src/react/hooks/{useCollectionDetailsPolling.tsx → data/collections/useCollectionDetailsPolling.tsx} +5 -9
- package/src/react/hooks/{__tests__ → data/collections}/useListCollectionActivities.test.tsx +5 -5
- package/src/react/hooks/{useListCollectionActivities.tsx → data/collections/useListCollectionActivities.tsx} +3 -3
- package/src/react/hooks/{__tests__ → data/collections}/useListCollections.test.tsx +5 -4
- package/src/react/hooks/data/collections/useListCollections.tsx +80 -0
- package/src/react/hooks/data/index.ts +6 -0
- package/src/react/hooks/data/inventory/index.ts +1 -0
- package/src/react/hooks/{__tests__ → data/inventory}/useInventory.test.tsx +4 -4
- package/src/react/hooks/{useInventory.tsx → data/inventory/useInventory.tsx} +7 -4
- package/src/react/hooks/data/market/index.ts +3 -0
- package/src/react/hooks/{__tests__ → data/market}/useCurrency.test.tsx +4 -4
- package/src/react/hooks/{useCurrency.tsx → data/market/useCurrency.tsx} +3 -3
- package/src/react/hooks/{__tests__ → data/market}/useListMarketCardData.test.tsx +10 -14
- package/src/react/hooks/{useListMarketCardData.tsx → data/market/useListMarketCardData.tsx} +8 -7
- package/src/react/hooks/{__tests__ → data/market}/useMarketCurrencies.test.tsx +5 -5
- package/src/react/hooks/{useMarketCurrencies.tsx → data/market/useMarketCurrencies.tsx} +3 -3
- package/src/react/hooks/data/orders/index.ts +7 -0
- package/src/react/hooks/{__tests__ → data/orders}/useCountListingsForCollectible.test.tsx +2 -2
- package/src/react/hooks/{useCountListingsForCollectible.tsx → data/orders/useCountListingsForCollectible.tsx} +3 -3
- package/src/react/hooks/{__tests__ → data/orders}/useCountOffersForCollectible.test.tsx +2 -2
- package/src/react/hooks/{useCountOffersForCollectible.tsx → data/orders/useCountOffersForCollectible.tsx} +3 -3
- package/src/react/hooks/{__tests__ → data/orders}/useFloorOrder.test.tsx +3 -3
- package/src/react/hooks/{useFloorOrder.tsx → data/orders/useFloorOrder.tsx} +3 -3
- package/src/react/hooks/{__tests__ → data/orders}/useHighestOffer.test.tsx +3 -3
- package/src/react/hooks/{useHighestOffer.tsx → data/orders/useHighestOffer.tsx} +3 -3
- package/src/react/hooks/{__tests__ → data/orders}/useListListingsForCollectible.test.tsx +6 -6
- package/src/react/hooks/{useListListingsForCollectible.tsx → data/orders/useListListingsForCollectible.tsx} +3 -3
- package/src/react/hooks/{__tests__ → data/orders}/useListOffersForCollectible.test.tsx +5 -5
- package/src/react/hooks/{useListOffersForCollectible.tsx → data/orders/useListOffersForCollectible.tsx} +4 -4
- package/src/react/hooks/{__tests__ → data/orders}/useLowestListing.test.tsx +5 -5
- package/src/react/hooks/{useLowestListing.tsx → data/orders/useLowestListing.tsx} +3 -3
- package/src/react/hooks/data/primary-sales/index.ts +6 -0
- package/src/react/hooks/{useCountOfPrimarySaleItems.tsx → data/primary-sales/useCountOfPrimarySaleItems.tsx} +2 -2
- package/src/react/hooks/data/primary-sales/useErc721SalesData.tsx +184 -0
- package/src/react/hooks/data/primary-sales/useGetCountOfPrimarySaleItems.tsx +48 -0
- package/src/react/hooks/{useList1155ShopCardData.tsx → data/primary-sales/useList1155ShopCardData.tsx} +17 -8
- package/src/react/hooks/data/primary-sales/useList721ShopCardData.tsx +183 -0
- package/src/react/hooks/data/primary-sales/useListPrimarySaleItems.tsx +66 -0
- package/src/react/hooks/data/tokens/index.ts +5 -0
- package/src/react/hooks/{__tests__ → data/tokens}/useCurrencyBalance.test.tsx +9 -5
- package/src/react/hooks/data/tokens/useCurrencyBalance.tsx +137 -0
- package/src/react/hooks/data/tokens/useGetTokenRanges.test.tsx +111 -0
- package/src/react/hooks/data/tokens/useGetTokenRanges.tsx +94 -0
- package/src/react/hooks/{__tests__ → data/tokens}/useListBalances.test.tsx +2 -2
- package/src/react/hooks/{useListBalances.tsx → data/tokens/useListBalances.tsx} +5 -5
- package/src/react/hooks/data/tokens/useListTokenMetadata.test.tsx +137 -0
- package/src/react/hooks/{useListTokenMetadata.tsx → data/tokens/useListTokenMetadata.tsx} +3 -3
- package/src/react/hooks/data/tokens/useSearchTokenMetadata.test.tsx +284 -0
- package/src/react/hooks/data/tokens/useSearchTokenMetadata.tsx +186 -0
- package/src/react/hooks/data/tokens/useTokenSupplies.ts +81 -0
- package/src/react/hooks/index.ts +18 -50
- package/src/react/hooks/transactions/index.ts +9 -0
- package/src/react/hooks/{__tests__ → transactions}/useCancelOrder.test.tsx +53 -85
- package/src/react/hooks/{useCancelOrder.tsx → transactions/useCancelOrder.tsx} +4 -4
- package/src/react/hooks/{__tests__/useCancelTransactionSteps.test.tsx → transactions/useCancelTransactionSteps.test.tsx.bak} +3 -52
- package/src/react/hooks/transactions/useCancelTransactionSteps.tsx +193 -0
- package/src/react/hooks/{__tests__ → transactions}/useGenerateCancelTransaction.test.tsx +2 -2
- package/src/react/hooks/{useGenerateCancelTransaction.tsx → transactions/useGenerateCancelTransaction.tsx} +5 -5
- package/src/react/hooks/{__tests__ → transactions}/useGenerateListingTransaction.test.tsx +2 -2
- package/src/react/hooks/{useGenerateListingTransaction.tsx → transactions/useGenerateListingTransaction.tsx} +5 -5
- package/src/react/hooks/{__tests__ → transactions}/useGenerateOfferTransaction.test.tsx +7 -45
- package/src/react/hooks/{useGenerateOfferTransaction.tsx → transactions/useGenerateOfferTransaction.tsx} +7 -7
- package/src/react/hooks/{__tests__ → transactions}/useGenerateSellTransaction.test.tsx +3 -7
- package/src/react/hooks/{useGenerateSellTransaction.tsx → transactions/useGenerateSellTransaction.tsx} +4 -4
- package/src/react/hooks/transactions/useOrderSteps.tsx +189 -0
- package/src/react/hooks/transactions/useProcessStep.test.tsx +272 -0
- package/src/react/hooks/transactions/useProcessStep.ts +95 -0
- package/src/react/hooks/transactions/useTransferTokens.test.tsx +469 -0
- package/src/react/hooks/{useTransferTokens.tsx → transactions/useTransferTokens.tsx} +5 -5
- package/src/react/hooks/ui/index.ts +3 -0
- package/src/react/hooks/{useFilterState.tsx → ui/useFilterState.tsx} +1 -1
- package/src/react/hooks/{__tests__ → ui}/useFilters.test.tsx +2 -3
- package/src/react/hooks/ui/useFilters.tsx +178 -0
- package/src/react/hooks/ui/useOpenConnectModal.tsx +9 -0
- package/src/react/hooks/util/optimisticCancelUpdates.ts +1 -0
- package/src/react/hooks/utils/index.ts +9 -0
- package/src/react/hooks/{__tests__ → utils}/useAutoSelectFeeOption.test.tsx +7 -3
- package/src/react/hooks/{useAutoSelectFeeOption.tsx → utils/useAutoSelectFeeOption.tsx} +2 -2
- package/src/react/hooks/utils/useCheckoutOptions.test.tsx +162 -0
- package/src/react/hooks/utils/useCheckoutOptions.tsx +98 -0
- package/src/react/hooks/{__tests__ → utils}/useCheckoutOptionsSalesContract.test.tsx +42 -61
- package/src/react/hooks/utils/useCheckoutOptionsSalesContract.tsx +108 -0
- package/src/react/hooks/{__tests__ → utils}/useComparePrices.test.tsx +1 -1
- package/src/react/hooks/utils/useComparePrices.tsx +102 -0
- package/src/react/hooks/{__tests__ → utils}/useConvertPriceToUSD.test.tsx +4 -4
- package/src/react/hooks/utils/useConvertPriceToUSD.tsx +96 -0
- package/src/react/hooks/utils/useEnsureCorrectChain.ts +74 -0
- package/src/react/hooks/{__tests__ → utils}/useRoyalty.test.tsx +1 -1
- package/src/react/hooks/{useRoyalty.tsx → utils/useRoyalty.tsx} +3 -3
- package/src/react/hooks/utils/useSwitchChainWithModal.ts +38 -0
- package/src/react/index.ts +1 -2
- package/src/react/providers/index.tsx +110 -0
- package/src/react/providers/modal-provider.tsx +43 -0
- package/src/react/{__tests__ → providers}/provider.test.tsx +5 -4
- package/src/react/providers/shadow-root.tsx +63 -0
- package/src/react/providers/theme-provider.tsx +29 -0
- package/src/react/queries/__tests__/balanceOfCollectible.laos.test.ts +123 -0
- package/src/react/queries/__tests__/inventory.laos.test.ts +496 -0
- package/src/react/queries/balanceOfCollectible.ts +7 -4
- package/src/react/queries/checkoutOptions.ts +85 -0
- package/src/react/queries/checkoutOptionsSalesContract.ts +89 -0
- package/src/react/queries/collectionBalanceDetails.ts +92 -0
- package/src/react/queries/comparePrices.ts +108 -0
- package/src/react/queries/convertPriceToUSD.ts +92 -0
- package/src/react/{hooks/useFilters.tsx → queries/filters.ts} +51 -48
- package/src/react/queries/getTokenRanges.ts +62 -0
- package/src/react/queries/index.ts +22 -0
- package/src/react/queries/inventory.ts +6 -0
- package/src/react/queries/listBalances.ts +4 -3
- package/src/react/queries/listCollections.ts +7 -3
- package/src/react/queries/listTokenMetadata.ts +2 -2
- package/src/react/queries/marketplaceConfig.ts +11 -2
- package/src/react/queries/primarySaleItems.ts +80 -0
- package/src/react/queries/primarySaleItemsCount.ts +64 -0
- package/src/react/queries/searchTokenMetadata.ts +87 -0
- package/src/react/queries/tokenSupplies.ts +101 -0
- package/src/react/ssr/__tests__/__snapshots__/create-ssr-client.test.ts.snap +6 -0
- package/src/react/ssr/__tests__/create-ssr-client.test.ts +1 -1
- package/src/react/ui/components/_internals/action-button/ActionButton.stories.tsx +296 -0
- package/src/react/ui/components/_internals/action-button/ActionButton.tsx +66 -66
- package/src/react/ui/components/_internals/action-button/__tests__/ActionButtonBody.test.tsx +56 -18
- package/src/react/ui/components/_internals/action-button/__tests__/NonOwnerActions.test.tsx +4 -11
- package/src/react/ui/components/_internals/action-button/__tests__/OwnerActions.test.tsx +5 -12
- package/src/react/ui/components/_internals/action-button/__tests__/useActionButtonLogic.test.tsx +32 -16
- package/src/react/ui/components/_internals/action-button/components/ActionButtonBody.tsx +7 -7
- package/src/react/ui/components/_internals/action-button/components/NonOwnerActions.tsx +4 -1
- package/src/react/ui/components/_internals/action-button/components/OwnerActions.tsx +4 -4
- package/src/react/ui/components/_internals/action-button/hooks/useActionButtonLogic.ts +15 -11
- package/src/react/ui/components/_internals/action-button/store.ts +44 -34
- package/src/react/ui/components/_internals/custom-select/CustomSelect.stories.tsx +582 -0
- package/src/react/ui/components/_internals/pill/Pill.stories.tsx +83 -0
- package/src/react/ui/components/marketplace-collectible-card/Footer.tsx +11 -4
- package/src/react/ui/components/marketplace-collectible-card/components/ActionButtonWrapper.tsx +7 -4
- package/src/react/ui/components/marketplace-collectible-card/components/BaseCard.tsx +4 -3
- package/src/react/ui/components/marketplace-collectible-card/types.ts +7 -5
- package/src/react/ui/components/marketplace-collectible-card/utils/supplyStatus.ts +4 -7
- package/src/react/ui/components/marketplace-collectible-card/variants/MarketCard.tsx +1 -1
- package/src/react/ui/components/marketplace-collectible-card/variants/ShopCard.tsx +11 -4
- package/src/react/ui/components/marketplace-logos/marketplace-logos.stories.tsx +199 -0
- package/src/react/ui/components/media/Media.stories.tsx +642 -0
- package/src/react/ui/components/media/Media.tsx +24 -19
- package/src/react/ui/components/media/types.ts +6 -0
- package/src/react/ui/index.ts +1 -1
- package/src/react/ui/modals/BuyModal/__tests__/BuyModalRouter.test.tsx +25 -25
- package/src/react/ui/modals/BuyModal/__tests__/ERC1155ShopModal.test.tsx +8 -2
- package/src/react/ui/modals/BuyModal/__tests__/ERC721ShopModal.test.tsx +1 -1
- package/src/react/ui/modals/BuyModal/__tests__/Modal1155.test.tsx +7 -1
- package/src/react/ui/modals/BuyModal/__tests__/store.test.ts +9 -1
- package/src/react/ui/modals/BuyModal/components/BuyModalRouter.tsx +5 -5
- package/src/react/ui/modals/BuyModal/components/ERC1155BuyModal.tsx +8 -8
- package/src/react/ui/modals/BuyModal/components/ERC1155QuantityModal.tsx +44 -19
- package/src/react/ui/modals/BuyModal/components/ERC1155ShopModal.tsx +3 -0
- package/src/react/ui/modals/BuyModal/components/ERC721BuyModal.tsx +4 -4
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useCheckoutOptions.test.tsx +18 -30
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC1155Checkout.test.tsx +43 -27
- package/src/react/ui/modals/BuyModal/hooks/__tests__/useERC721SalePaymentParams.test.tsx +13 -2
- package/src/react/ui/modals/BuyModal/hooks/useCheckoutOptions.ts +7 -7
- package/src/react/ui/modals/BuyModal/hooks/useERC1155Checkout.ts +17 -3
- package/src/react/ui/modals/BuyModal/hooks/useERC721SalePaymentParams.ts +19 -8
- package/src/react/ui/modals/BuyModal/hooks/useLoadData.ts +5 -9
- package/src/react/ui/modals/BuyModal/hooks/usePaymentModalParams.ts +23 -15
- package/src/react/ui/modals/BuyModal/index.tsx +9 -1
- package/src/react/ui/modals/BuyModal/store.ts +28 -0
- package/src/react/ui/modals/CreateListingModal/Modal.tsx +39 -16
- package/src/react/ui/modals/CreateListingModal/__tests__/Modal.test.tsx +3 -24
- package/src/react/ui/modals/CreateListingModal/hooks/useGetTokenApproval.ts +5 -9
- package/src/react/ui/modals/CreateListingModal/hooks/useTransactionSteps.tsx +43 -83
- package/src/react/ui/modals/CreateListingModal/store.ts +3 -3
- package/src/react/ui/modals/MakeOfferModal/Modal.tsx +34 -17
- package/src/react/ui/modals/MakeOfferModal/__tests__/Modal.test.tsx +88 -62
- package/src/react/ui/modals/MakeOfferModal/hooks/useGetTokenApproval.tsx +9 -7
- package/src/react/ui/modals/MakeOfferModal/hooks/useMakeOffer.tsx +2 -2
- package/src/react/ui/modals/MakeOfferModal/hooks/useTransactionSteps.tsx +47 -84
- package/src/react/ui/modals/MakeOfferModal/store.ts +3 -3
- package/src/react/ui/modals/SellModal/Modal.tsx +18 -17
- package/src/react/ui/modals/SellModal/__tests__/Modal.test.tsx +8 -30
- package/src/react/ui/modals/SellModal/hooks/useGetTokenApproval.tsx +7 -7
- package/src/react/ui/modals/SellModal/hooks/useTransactionSteps.tsx +39 -65
- package/src/react/ui/modals/SellModal/store.ts +3 -3
- package/src/react/ui/modals/TransferModal/__tests__/__snapshots__/store.test.ts.snap +17 -0
- package/src/react/ui/modals/TransferModal/__tests__/store.test.ts +366 -0
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/__tests__/useHandleTransfer.test.tsx +412 -0
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TokenQuantityInput.tsx +51 -48
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/TransferButton.tsx +54 -44
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/_components/WalletAddressInput.tsx +9 -8
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/index.tsx +31 -35
- package/src/react/ui/modals/TransferModal/_views/enterWalletAddress/useHandleTransfer.tsx +22 -13
- package/src/react/ui/modals/TransferModal/index.tsx +36 -53
- package/src/react/ui/modals/TransferModal/messages.ts +1 -1
- package/src/react/ui/modals/TransferModal/store.ts +122 -0
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.test.tsx +116 -136
- package/src/react/ui/modals/_internal/components/actionModal/ActionModal.tsx +15 -44
- package/src/react/ui/modals/_internal/components/actionModal/index.ts +0 -1
- package/src/react/ui/modals/_internal/components/calendar/index.tsx +0 -1
- package/src/react/ui/modals/_internal/components/currencyImage/index.tsx +10 -14
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/__tests__/index.test.tsx +14 -5
- package/src/react/ui/modals/_internal/components/currencyOptionsSelect/index.tsx +24 -18
- package/src/react/ui/modals/_internal/components/expirationDateSelect/index.tsx +10 -10
- package/src/react/ui/modals/_internal/components/floorPriceText/__tests__/FloorPriceText.test.tsx +8 -8
- package/src/react/ui/modals/_internal/components/priceInput/__tests__/PriceInput.test.tsx +13 -5
- package/src/react/ui/modals/_internal/components/priceInput/index.tsx +42 -27
- package/src/react/ui/modals/_internal/components/quantityInput/__tests__/index.test.tsx +164 -65
- package/src/react/ui/modals/_internal/components/quantityInput/index.tsx +174 -20
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/__tests__/SelectWaasFeeOptions.test.tsx +341 -42
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/index.tsx +95 -101
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/store.ts +72 -14
- package/src/react/ui/modals/_internal/components/selectWaasFeeOptions/useWaasFeeOptionManager.tsx +30 -14
- package/src/react/ui/modals/_internal/components/tokenPreview/index.tsx +2 -2
- package/src/react/ui/modals/_internal/components/transactionDetails/index.tsx +2 -2
- package/src/react/ui/modals/_internal/components/transactionPreview/index.tsx +88 -89
- package/src/react/ui/modals/_internal/components/transactionStatusModal/__tests__/TransactionStatusModal.test.tsx +36 -10
- package/src/react/ui/modals/_internal/components/transactionStatusModal/hooks/useTransactionStatus.ts +25 -26
- package/src/react/ui/modals/_internal/components/transactionStatusModal/index.tsx +35 -21
- package/src/react/ui/modals/_internal/components/transactionStatusModal/store.ts +91 -62
- package/src/react/ui/modals/_internal/components/waasFeeOptionsSelect/WaasFeeOptionsSelect.tsx +62 -48
- package/src/react/ui/modals/_internal/hooks/useSelectWaasFeeOptions.ts +3 -5
- package/src/react/ui/modals/_internal/types.ts +8 -2
- package/src/react/utils/index.ts +1 -0
- package/src/react/utils/waitForTransactionReceipt.ts +49 -0
- package/src/{index.css → styles/index.css} +6 -5
- package/src/styles/styles.ts +3275 -0
- package/src/types/sdk-config.ts +8 -1
- package/src/utils/_internal/error/transaction.ts +0 -10
- package/src/utils/abi/primary-sale/index.ts +4 -2
- package/src/utils/abi/primary-sale/{sequence-1155-sales-contract.ts → sequence-1155-sales-contract-v0.ts} +67 -58
- package/src/utils/abi/primary-sale/sequence-1155-sales-contract-v1.ts +546 -0
- package/src/utils/abi/primary-sale/{sequence-721-sales-contract.ts → sequence-721-sales-contract-v0.ts} +1 -1
- package/src/utils/abi/primary-sale/sequence-721-sales-contract-v1.ts +394 -0
- package/src/utils/network.ts +15 -0
- package/test/const.ts +1 -1
- package/test/globalSetup.ts +39 -11
- package/test/handlers.ts +465 -0
- package/test/index.ts +1 -0
- package/test/server-setup.ts +23 -0
- package/test/setup.ts +1 -1
- package/test/test-utils.tsx +46 -36
- package/tsconfig.json +1 -1
- package/tsdown.config.ts +12 -7
- package/vitest.shims.d.ts +2 -0
- package/vitest.storybook.config.js +33 -0
- package/dist/CalendarIcon-DbQ7Vxcw.js.map +0 -1
- package/dist/api-DTIan01C.js.map +0 -1
- package/dist/builder-api-C_zj5mr3.d.ts +0 -12
- package/dist/index-BQsgAvtX.d.ts +0 -2938
- package/dist/index-BUVWziLP.d.ts +0 -60
- package/dist/index-CLy8y5hm.d.ts +0 -1057
- package/dist/index-COt10OgI.d.ts +0 -24
- package/dist/index-DPNWNa7t.d.ts +0 -414
- package/dist/index-DsfCs3-x.d.ts +0 -122
- package/dist/index-DvpBZgor.d.ts +0 -1
- package/dist/index-dUb6wb4Y.d.ts +0 -22
- package/dist/marketplace.gen-BSDIX7NZ.js.map +0 -1
- package/dist/marketplaceConfig-C6X1SUik.js.map +0 -1
- package/dist/primary-sale-C55ALnfQ.js +0 -1264
- package/dist/primary-sale-C55ALnfQ.js.map +0 -1
- package/dist/queries-CUU65uYZ.js +0 -599
- package/dist/queries-CUU65uYZ.js.map +0 -1
- package/dist/react/hooks/options/index.d.ts +0 -4
- package/dist/react/hooks/options/index.js +0 -11
- package/dist/react-DAIicQPT.js.map +0 -1
- package/dist/transaction-CcVViHEL.js.map +0 -1
- package/dist/utils-BPYfgDSL.js.map +0 -1
- package/dist/utils-CW2NA5KG.js.map +0 -1
- package/dist/wagmi-CDzEQbfk.js.map +0 -1
- package/src/react/_internal/wallet/__tests__/wallet.test.ts +0 -416
- package/src/react/_internal/wallet/useWallet.ts +0 -52
- package/src/react/_internal/wallet/wallet.ts +0 -313
- package/src/react/hooks/__tests__/useGetTokenSuppliesMap.test.tsx +0 -104
- package/src/react/hooks/__tests__/useListTokenMetadata.test.tsx +0 -111
- package/src/react/hooks/options/index.ts +0 -1
- package/src/react/hooks/useCancelTransactionSteps.tsx +0 -249
- package/src/react/hooks/useCheckoutOptionsSalesContract.tsx +0 -67
- package/src/react/hooks/useCollectionBalanceDetails.tsx +0 -79
- package/src/react/hooks/useComparePrices.tsx +0 -96
- package/src/react/hooks/useConvertPriceToUSD.tsx +0 -82
- package/src/react/hooks/useCurrencyBalance.tsx +0 -51
- package/src/react/hooks/useERC721SaleMintedTokens.tsx +0 -67
- package/src/react/hooks/useGetTokenRanges.tsx +0 -31
- package/src/react/hooks/useGetTokenSuppliesMap.tsx +0 -73
- package/src/react/hooks/useList1155SaleSupplies.tsx +0 -62
- package/src/react/hooks/useList721ShopCardData.tsx +0 -160
- package/src/react/hooks/useListCollections.tsx +0 -80
- package/src/react/hooks/useListPrimarySaleItems.ts +0 -102
- package/src/react/hooks/useListShopCardData.tsx +0 -70
- package/src/react/hooks/useShopCollectibleSaleData.tsx +0 -349
- package/src/react/hooks/useTokenSaleDetailsBatch.tsx +0 -134
- package/src/react/provider.tsx +0 -43
- package/src/react/queries/getTokenSuppliesMap.ts +0 -77
- package/src/react/ui/modals/TransferModal/_store.ts +0 -66
- package/src/react/ui/modals/_internal/components/actionModal/store.ts +0 -57
- package/src/react/ui/modals/_internal/components/quantityInput/QuantityInputBase.tsx +0 -166
- package/src/react/ui/modals/_internal/stores/accountModal.ts +0 -3
- package/src/react/ui/modals/modal-provider.tsx +0 -25
- package/test/mocks/wallet.ts +0 -63
- /package/dist/{abi-BKyRjVcZ.js → abi-Wr_aTZFi.js} +0 -0
- /package/dist/{index-C39K_8SG.d.ts → index-q7f-WDBS.d.ts} +0 -0
- /package/dist/{options-B4QN7Xou.js → wagmi-BhP3mdhP.js} +0 -0
- /package/src/react/hooks/{useGetReceiptFromHash.tsx → utils/useGetReceiptFromHash.tsx} +0 -0
|
@@ -1,9 +1,207 @@
|
|
|
1
|
+
import { Wallet } from "@0xsequence/connect";
|
|
2
|
+
import * as wagmi0 from "wagmi";
|
|
3
|
+
import { CreateConnectorFn } from "wagmi";
|
|
4
|
+
import * as _tanstack_react_query9 from "@tanstack/react-query";
|
|
5
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
6
|
+
import { SequenceAPIClient } from "@0xsequence/api";
|
|
7
|
+
import { GetTokenBalancesReturn, GetTokenSuppliesReturn, SequenceIndexer } from "@0xsequence/indexer";
|
|
8
|
+
import { SequenceMetadata } from "@0xsequence/metadata";
|
|
9
|
+
import { Address, Chain, Hash, Transport } from "viem";
|
|
10
|
+
import { Databeat, Event } from "@databeat/tracker";
|
|
11
|
+
import "@xstate/store";
|
|
12
|
+
|
|
13
|
+
//#region src/react/_internal/api/builder.gen.d.ts
|
|
14
|
+
declare enum MarketplaceWalletType {
|
|
15
|
+
UNIVERSAL = "UNIVERSAL",
|
|
16
|
+
EMBEDDED = "EMBEDDED",
|
|
17
|
+
ECOSYSTEM = "ECOSYSTEM",
|
|
18
|
+
}
|
|
19
|
+
declare enum FilterCondition {
|
|
20
|
+
ENTIRE_KEY = "ENTIRE_KEY",
|
|
21
|
+
SPECIFIC_VALUE = "SPECIFIC_VALUE",
|
|
22
|
+
}
|
|
23
|
+
interface LookupMarketplaceArgs {
|
|
24
|
+
projectId?: number;
|
|
25
|
+
domain?: string;
|
|
26
|
+
userAddress?: string;
|
|
27
|
+
}
|
|
28
|
+
interface LookupMarketplaceReturn {
|
|
29
|
+
marketplace: Marketplace$1;
|
|
30
|
+
marketCollections: Array<MarketCollection$2>;
|
|
31
|
+
shopCollections: Array<ShopCollection$2>;
|
|
32
|
+
}
|
|
33
|
+
interface Marketplace$1 {
|
|
34
|
+
projectId: number;
|
|
35
|
+
settings: MarketplaceSettings;
|
|
36
|
+
market: MarketplacePage$1;
|
|
37
|
+
shop: MarketplacePage$1;
|
|
38
|
+
createdAt?: string;
|
|
39
|
+
updatedAt?: string;
|
|
40
|
+
}
|
|
41
|
+
interface MarketplaceSettings {
|
|
42
|
+
style: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
};
|
|
45
|
+
publisherId: string;
|
|
46
|
+
title: string;
|
|
47
|
+
socials: MarketplaceSocials$1;
|
|
48
|
+
faviconUrl: string;
|
|
49
|
+
walletOptions: MarketplaceWallet;
|
|
50
|
+
logoUrl: string;
|
|
51
|
+
fontUrl: string;
|
|
52
|
+
accessKey?: string;
|
|
53
|
+
}
|
|
54
|
+
interface MarketplacePage$1 {
|
|
55
|
+
enabled: boolean;
|
|
56
|
+
bannerUrl: string;
|
|
57
|
+
ogImage: string;
|
|
58
|
+
private: boolean;
|
|
59
|
+
}
|
|
60
|
+
interface MarketplaceSocials$1 {
|
|
61
|
+
twitter: string;
|
|
62
|
+
discord: string;
|
|
63
|
+
website: string;
|
|
64
|
+
tiktok: string;
|
|
65
|
+
instagram: string;
|
|
66
|
+
youtube: string;
|
|
67
|
+
}
|
|
68
|
+
interface MarketplaceWallet {
|
|
69
|
+
walletType: MarketplaceWalletType;
|
|
70
|
+
oidcIssuers: {
|
|
71
|
+
[key: string]: string;
|
|
72
|
+
};
|
|
73
|
+
connectors: Array<string>;
|
|
74
|
+
includeEIP6963Wallets: boolean;
|
|
75
|
+
ecosystem?: MarketplaceWalletEcosystem$1;
|
|
76
|
+
embedded?: MarketplaceWalletEmbedded$1;
|
|
77
|
+
}
|
|
78
|
+
interface MarketplaceWalletEcosystem$1 {
|
|
79
|
+
walletUrl: string;
|
|
80
|
+
walletAppName: string;
|
|
81
|
+
logoLightUrl?: string;
|
|
82
|
+
logoDarkUrl?: string;
|
|
83
|
+
}
|
|
84
|
+
interface MarketplaceWalletEmbedded$1 {
|
|
85
|
+
tenantKey: string;
|
|
86
|
+
emailEnabled: boolean;
|
|
87
|
+
providers: Array<OpenIdProvider>;
|
|
88
|
+
}
|
|
89
|
+
interface OpenIdProvider {
|
|
90
|
+
iss: string;
|
|
91
|
+
aud: Array<string>;
|
|
92
|
+
}
|
|
93
|
+
interface MarketCollection$2 {
|
|
94
|
+
id: number;
|
|
95
|
+
projectId: number;
|
|
96
|
+
chainId: number;
|
|
97
|
+
itemsAddress: string;
|
|
98
|
+
contractType: string;
|
|
99
|
+
bannerUrl: string;
|
|
100
|
+
feePercentage: number;
|
|
101
|
+
currencyOptions: Array<string>;
|
|
102
|
+
destinationMarketplace: string;
|
|
103
|
+
filterSettings?: CollectionFilterSettings$1;
|
|
104
|
+
sortOrder?: number;
|
|
105
|
+
private: boolean;
|
|
106
|
+
createdAt?: string;
|
|
107
|
+
updatedAt?: string;
|
|
108
|
+
}
|
|
109
|
+
interface CollectionFilterSettings$1 {
|
|
110
|
+
filterOrder: Array<string>;
|
|
111
|
+
exclusions: Array<MetadataFilterRule$1>;
|
|
112
|
+
}
|
|
113
|
+
interface MetadataFilterRule$1 {
|
|
114
|
+
key: string;
|
|
115
|
+
condition: FilterCondition;
|
|
116
|
+
value?: string;
|
|
117
|
+
}
|
|
118
|
+
interface ShopCollection$2 {
|
|
119
|
+
id: number;
|
|
120
|
+
projectId: number;
|
|
121
|
+
chainId: number;
|
|
122
|
+
itemsAddress: string;
|
|
123
|
+
saleAddress: string;
|
|
124
|
+
name: string;
|
|
125
|
+
bannerUrl: string;
|
|
126
|
+
tokenIds: Array<string>;
|
|
127
|
+
customTokenIds: Array<string>;
|
|
128
|
+
sortOrder?: number;
|
|
129
|
+
private: boolean;
|
|
130
|
+
createdAt?: string;
|
|
131
|
+
updatedAt?: string;
|
|
132
|
+
}
|
|
133
|
+
interface MarketplaceService {
|
|
134
|
+
/**
|
|
135
|
+
* Public Methods
|
|
136
|
+
*/
|
|
137
|
+
lookupMarketplace(args: LookupMarketplaceArgs, headers?: object, signal?: AbortSignal): Promise<LookupMarketplaceReturn>;
|
|
138
|
+
}
|
|
139
|
+
type Fetch$1 = (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
140
|
+
declare class MarketplaceService {
|
|
141
|
+
protected hostname: string;
|
|
142
|
+
protected fetch: Fetch$1;
|
|
143
|
+
protected path: string;
|
|
144
|
+
constructor(hostname: string, fetch: Fetch$1);
|
|
145
|
+
private url;
|
|
146
|
+
lookupMarketplace: (args: LookupMarketplaceArgs, headers?: object, signal?: AbortSignal) => Promise<LookupMarketplaceReturn>;
|
|
147
|
+
}
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/react/_internal/api/builder-api.d.ts
|
|
150
|
+
declare class BuilderAPI extends MarketplaceService {
|
|
151
|
+
projectAccessKey?: string | undefined;
|
|
152
|
+
jwtAuth?: string | undefined;
|
|
153
|
+
constructor(hostname: string, projectAccessKey?: string | undefined, jwtAuth?: string | undefined);
|
|
154
|
+
_fetch: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/react/_internal/api/get-query-client.d.ts
|
|
158
|
+
declare function getQueryClient(): QueryClient;
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region src/react/_internal/api/laos-api.d.ts
|
|
161
|
+
type SortOption = {
|
|
162
|
+
column: string;
|
|
163
|
+
order: 'ASC' | 'DESC';
|
|
164
|
+
};
|
|
165
|
+
type PaginationOptions = {
|
|
166
|
+
sort: SortOption[];
|
|
167
|
+
};
|
|
168
|
+
type TokenSuppliesParams = {
|
|
169
|
+
chainId: string;
|
|
170
|
+
contractAddress: string;
|
|
171
|
+
includeMetadata?: boolean;
|
|
172
|
+
page?: PaginationOptions;
|
|
173
|
+
};
|
|
174
|
+
type TokenBalancesParams = {
|
|
175
|
+
chainId: string;
|
|
176
|
+
accountAddress: string;
|
|
177
|
+
contractAddress: string;
|
|
178
|
+
includeMetadata?: boolean;
|
|
179
|
+
page?: PaginationOptions;
|
|
180
|
+
};
|
|
181
|
+
declare class LaosAPI {
|
|
182
|
+
private baseUrl;
|
|
183
|
+
constructor(baseUrl?: string);
|
|
184
|
+
getTokenSupplies({
|
|
185
|
+
chainId,
|
|
186
|
+
contractAddress,
|
|
187
|
+
includeMetadata,
|
|
188
|
+
page
|
|
189
|
+
}: TokenSuppliesParams): Promise<GetTokenSuppliesReturn>;
|
|
190
|
+
getTokenBalances({
|
|
191
|
+
chainId,
|
|
192
|
+
accountAddress,
|
|
193
|
+
contractAddress,
|
|
194
|
+
includeMetadata,
|
|
195
|
+
page
|
|
196
|
+
}: TokenBalancesParams): Promise<GetTokenBalancesReturn>;
|
|
197
|
+
}
|
|
198
|
+
//#endregion
|
|
1
199
|
//#region src/react/_internal/api/marketplace.gen.d.ts
|
|
2
200
|
declare const WebrpcHeader = "Webrpc";
|
|
3
|
-
declare const WebrpcHeaderValue = "webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-
|
|
201
|
+
declare const WebrpcHeaderValue = "webrpc@v0.25.4;gen-typescript@v0.17.0;marketplace-api@v0.0.0-cf3a5fae407a732cd5a90e4fd68184ac5591b2c1;marketplace-sdk@v0.10.0";
|
|
4
202
|
declare const WebRPCVersion = "v1";
|
|
5
203
|
declare const WebRPCSchemaVersion = "";
|
|
6
|
-
declare const WebRPCSchemaHash = "
|
|
204
|
+
declare const WebRPCSchemaHash = "cf3a5fae407a732cd5a90e4fd68184ac5591b2c1";
|
|
7
205
|
type WebrpcGenVersions = {
|
|
8
206
|
webrpcGenVersion: string;
|
|
9
207
|
codeGenName: string;
|
|
@@ -12,7 +210,7 @@ type WebrpcGenVersions = {
|
|
|
12
210
|
schemaVersion: string;
|
|
13
211
|
};
|
|
14
212
|
declare function VersionFromHeader(headers: Headers): WebrpcGenVersions;
|
|
15
|
-
interface TokenMetadata {
|
|
213
|
+
interface TokenMetadata$1 {
|
|
16
214
|
tokenId: string;
|
|
17
215
|
name: string;
|
|
18
216
|
description?: string;
|
|
@@ -217,7 +415,7 @@ declare enum PrimarySaleItemDetailType {
|
|
|
217
415
|
global = "global",
|
|
218
416
|
individual = "individual",
|
|
219
417
|
}
|
|
220
|
-
interface Page {
|
|
418
|
+
interface Page$2 {
|
|
221
419
|
page: number;
|
|
222
420
|
pageSize: number;
|
|
223
421
|
more?: boolean;
|
|
@@ -227,11 +425,11 @@ interface SortBy {
|
|
|
227
425
|
column: string;
|
|
228
426
|
order: SortOrder;
|
|
229
427
|
}
|
|
230
|
-
interface Filter {
|
|
428
|
+
interface Filter$1 {
|
|
231
429
|
text?: string;
|
|
232
|
-
properties?: Array<PropertyFilter>;
|
|
430
|
+
properties?: Array<PropertyFilter$1>;
|
|
233
431
|
}
|
|
234
|
-
interface PropertyFilter {
|
|
432
|
+
interface PropertyFilter$1 {
|
|
235
433
|
name: string;
|
|
236
434
|
type: PropertyType;
|
|
237
435
|
min?: number;
|
|
@@ -241,7 +439,7 @@ interface PropertyFilter {
|
|
|
241
439
|
interface CollectiblesFilter {
|
|
242
440
|
includeEmpty: boolean;
|
|
243
441
|
searchText?: string;
|
|
244
|
-
properties?: Array<PropertyFilter>;
|
|
442
|
+
properties?: Array<PropertyFilter$1>;
|
|
245
443
|
marketplaces?: Array<MarketplaceKind>;
|
|
246
444
|
inAccounts?: Array<string>;
|
|
247
445
|
notInAccounts?: Array<string>;
|
|
@@ -292,7 +490,7 @@ interface FeeBreakdown {
|
|
|
292
490
|
bps: number;
|
|
293
491
|
}
|
|
294
492
|
interface CollectibleOrder {
|
|
295
|
-
metadata: TokenMetadata;
|
|
493
|
+
metadata: TokenMetadata$1;
|
|
296
494
|
order?: Order;
|
|
297
495
|
listing?: Order;
|
|
298
496
|
offer?: Order;
|
|
@@ -477,18 +675,20 @@ interface PrimarySaleItem {
|
|
|
477
675
|
priceAmount: string;
|
|
478
676
|
priceAmountFormatted: string;
|
|
479
677
|
supply: string;
|
|
678
|
+
supplyCap: string;
|
|
679
|
+
unlimitedSupply: boolean;
|
|
480
680
|
createdAt: string;
|
|
481
681
|
updatedAt: string;
|
|
482
682
|
deletedAt?: string;
|
|
483
683
|
}
|
|
484
684
|
interface CollectiblePrimarySaleItem {
|
|
485
|
-
metadata: TokenMetadata;
|
|
685
|
+
metadata: TokenMetadata$1;
|
|
486
686
|
primarySaleItem: PrimarySaleItem;
|
|
487
687
|
}
|
|
488
688
|
interface PrimarySaleItemsFilter {
|
|
489
689
|
includeEmpty: boolean;
|
|
490
690
|
searchText?: string;
|
|
491
|
-
properties?: Array<PropertyFilter>;
|
|
691
|
+
properties?: Array<PropertyFilter$1>;
|
|
492
692
|
detailTypes?: Array<PrimarySaleItemDetailType>;
|
|
493
693
|
startDateAfter?: string;
|
|
494
694
|
startDateBefore?: string;
|
|
@@ -543,11 +743,11 @@ interface UpdateCollectionReturn {
|
|
|
543
743
|
interface ListCollectionsArgs {
|
|
544
744
|
chainId: string;
|
|
545
745
|
projectId: number;
|
|
546
|
-
page?: Page;
|
|
746
|
+
page?: Page$2;
|
|
547
747
|
}
|
|
548
748
|
interface ListCollectionsReturn {
|
|
549
749
|
collections: Array<Collection>;
|
|
550
|
-
page?: Page;
|
|
750
|
+
page?: Page$2;
|
|
551
751
|
}
|
|
552
752
|
interface DeleteCollectionArgs {
|
|
553
753
|
chainId: string;
|
|
@@ -619,7 +819,7 @@ interface AddCollectiblesArgs {
|
|
|
619
819
|
tokenIds: Array<string>;
|
|
620
820
|
}
|
|
621
821
|
interface AddCollectiblesReturn {}
|
|
622
|
-
interface Marketplace
|
|
822
|
+
interface Marketplace {
|
|
623
823
|
listCurrencies(args: ListCurrenciesArgs, headers?: object, signal?: AbortSignal): Promise<ListCurrenciesReturn>;
|
|
624
824
|
getCollectionDetail(args: GetCollectionDetailArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectionDetailReturn>;
|
|
625
825
|
getCollectible(args: GetCollectibleArgs, headers?: object, signal?: AbortSignal): Promise<GetCollectibleReturn>;
|
|
@@ -709,7 +909,7 @@ interface GetCollectibleArgs {
|
|
|
709
909
|
tokenId: string;
|
|
710
910
|
}
|
|
711
911
|
interface GetCollectibleReturn {
|
|
712
|
-
metadata: TokenMetadata;
|
|
912
|
+
metadata: TokenMetadata$1;
|
|
713
913
|
}
|
|
714
914
|
interface GetLowestPriceOfferForCollectibleArgs {
|
|
715
915
|
chainId: string;
|
|
@@ -752,42 +952,42 @@ interface ListListingsForCollectibleArgs {
|
|
|
752
952
|
contractAddress: string;
|
|
753
953
|
tokenId: string;
|
|
754
954
|
filter?: OrderFilter;
|
|
755
|
-
page?: Page;
|
|
955
|
+
page?: Page$2;
|
|
756
956
|
}
|
|
757
957
|
interface ListListingsForCollectibleReturn {
|
|
758
958
|
listings: Array<Order>;
|
|
759
|
-
page?: Page;
|
|
959
|
+
page?: Page$2;
|
|
760
960
|
}
|
|
761
961
|
interface ListOffersForCollectibleArgs {
|
|
762
962
|
chainId: string;
|
|
763
963
|
contractAddress: string;
|
|
764
964
|
tokenId: string;
|
|
765
965
|
filter?: OrderFilter;
|
|
766
|
-
page?: Page;
|
|
966
|
+
page?: Page$2;
|
|
767
967
|
}
|
|
768
968
|
interface ListOffersForCollectibleReturn {
|
|
769
969
|
offers: Array<Order>;
|
|
770
|
-
page?: Page;
|
|
970
|
+
page?: Page$2;
|
|
771
971
|
}
|
|
772
972
|
interface ListListingsArgs {
|
|
773
973
|
chainId: string;
|
|
774
974
|
contractAddress: string;
|
|
775
975
|
filter?: OrderFilter;
|
|
776
|
-
page?: Page;
|
|
976
|
+
page?: Page$2;
|
|
777
977
|
}
|
|
778
978
|
interface ListListingsReturn {
|
|
779
979
|
listings: Array<Order>;
|
|
780
|
-
page?: Page;
|
|
980
|
+
page?: Page$2;
|
|
781
981
|
}
|
|
782
982
|
interface ListOffersArgs {
|
|
783
983
|
chainId: string;
|
|
784
984
|
contractAddress: string;
|
|
785
985
|
filter?: OrderFilter;
|
|
786
|
-
page?: Page;
|
|
986
|
+
page?: Page$2;
|
|
787
987
|
}
|
|
788
988
|
interface ListOffersReturn {
|
|
789
989
|
offers: Array<Order>;
|
|
790
|
-
page?: Page;
|
|
990
|
+
page?: Page$2;
|
|
791
991
|
}
|
|
792
992
|
interface GetCountOfListingsForCollectibleArgs {
|
|
793
993
|
chainId: string;
|
|
@@ -848,22 +1048,22 @@ interface ListCollectibleListingsArgs {
|
|
|
848
1048
|
contractAddress: string;
|
|
849
1049
|
tokenId: string;
|
|
850
1050
|
filter?: OrderFilter;
|
|
851
|
-
page?: Page;
|
|
1051
|
+
page?: Page$2;
|
|
852
1052
|
}
|
|
853
1053
|
interface ListCollectibleListingsReturn {
|
|
854
1054
|
listings: Array<Order>;
|
|
855
|
-
page?: Page;
|
|
1055
|
+
page?: Page$2;
|
|
856
1056
|
}
|
|
857
1057
|
interface ListCollectibleOffersArgs {
|
|
858
1058
|
chainId: string;
|
|
859
1059
|
contractAddress: string;
|
|
860
1060
|
tokenId: string;
|
|
861
1061
|
filter?: OrderFilter;
|
|
862
|
-
page?: Page;
|
|
1062
|
+
page?: Page$2;
|
|
863
1063
|
}
|
|
864
1064
|
interface ListCollectibleOffersReturn {
|
|
865
1065
|
offers: Array<Order>;
|
|
866
|
-
page?: Page;
|
|
1066
|
+
page?: Page$2;
|
|
867
1067
|
}
|
|
868
1068
|
interface GenerateBuyTransactionArgs {
|
|
869
1069
|
chainId: string;
|
|
@@ -939,11 +1139,11 @@ interface ListCollectiblesArgs {
|
|
|
939
1139
|
side: OrderSide;
|
|
940
1140
|
contractAddress: string;
|
|
941
1141
|
filter?: CollectiblesFilter;
|
|
942
|
-
page?: Page;
|
|
1142
|
+
page?: Page$2;
|
|
943
1143
|
}
|
|
944
1144
|
interface ListCollectiblesReturn {
|
|
945
1145
|
collectibles: Array<CollectibleOrder>;
|
|
946
|
-
page?: Page;
|
|
1146
|
+
page?: Page$2;
|
|
947
1147
|
}
|
|
948
1148
|
interface GetCountOfAllCollectiblesArgs {
|
|
949
1149
|
chainId: string;
|
|
@@ -972,41 +1172,41 @@ interface GetFloorOrderReturn {
|
|
|
972
1172
|
interface ListCollectionActivitiesArgs {
|
|
973
1173
|
chainId: string;
|
|
974
1174
|
contractAddress: string;
|
|
975
|
-
page?: Page;
|
|
1175
|
+
page?: Page$2;
|
|
976
1176
|
}
|
|
977
1177
|
interface ListCollectionActivitiesReturn {
|
|
978
1178
|
activities: Array<Activity>;
|
|
979
|
-
page?: Page;
|
|
1179
|
+
page?: Page$2;
|
|
980
1180
|
}
|
|
981
1181
|
interface ListCollectibleActivitiesArgs {
|
|
982
1182
|
chainId: string;
|
|
983
1183
|
contractAddress: string;
|
|
984
1184
|
tokenId: string;
|
|
985
|
-
page?: Page;
|
|
1185
|
+
page?: Page$2;
|
|
986
1186
|
}
|
|
987
1187
|
interface ListCollectibleActivitiesReturn {
|
|
988
1188
|
activities: Array<Activity>;
|
|
989
|
-
page?: Page;
|
|
1189
|
+
page?: Page$2;
|
|
990
1190
|
}
|
|
991
1191
|
interface ListCollectiblesWithLowestListingArgs {
|
|
992
1192
|
chainId: string;
|
|
993
1193
|
contractAddress: string;
|
|
994
1194
|
filter?: CollectiblesFilter;
|
|
995
|
-
page?: Page;
|
|
1195
|
+
page?: Page$2;
|
|
996
1196
|
}
|
|
997
1197
|
interface ListCollectiblesWithLowestListingReturn {
|
|
998
1198
|
collectibles: Array<CollectibleOrder>;
|
|
999
|
-
page?: Page;
|
|
1199
|
+
page?: Page$2;
|
|
1000
1200
|
}
|
|
1001
1201
|
interface ListCollectiblesWithHighestOfferArgs {
|
|
1002
1202
|
chainId: string;
|
|
1003
1203
|
contractAddress: string;
|
|
1004
1204
|
filter?: CollectiblesFilter;
|
|
1005
|
-
page?: Page;
|
|
1205
|
+
page?: Page$2;
|
|
1006
1206
|
}
|
|
1007
1207
|
interface ListCollectiblesWithHighestOfferReturn {
|
|
1008
1208
|
collectibles: Array<CollectibleOrder>;
|
|
1009
|
-
page?: Page;
|
|
1209
|
+
page?: Page$2;
|
|
1010
1210
|
}
|
|
1011
1211
|
interface SyncOrderArgs {
|
|
1012
1212
|
chainId: string;
|
|
@@ -1021,11 +1221,11 @@ interface SyncOrdersReturn {}
|
|
|
1021
1221
|
interface GetOrdersArgs {
|
|
1022
1222
|
chainId: string;
|
|
1023
1223
|
input: Array<GetOrdersInput>;
|
|
1024
|
-
page?: Page;
|
|
1224
|
+
page?: Page$2;
|
|
1025
1225
|
}
|
|
1026
1226
|
interface GetOrdersReturn {
|
|
1027
1227
|
orders: Array<Order>;
|
|
1028
|
-
page?: Page;
|
|
1228
|
+
page?: Page$2;
|
|
1029
1229
|
}
|
|
1030
1230
|
interface CheckoutOptionsMarketplaceArgs {
|
|
1031
1231
|
chainId: string;
|
|
@@ -1064,11 +1264,11 @@ interface ListPrimarySaleItemsArgs {
|
|
|
1064
1264
|
chainId: string;
|
|
1065
1265
|
primarySaleContractAddress: string;
|
|
1066
1266
|
filter?: PrimarySaleItemsFilter;
|
|
1067
|
-
page?: Page;
|
|
1267
|
+
page?: Page$2;
|
|
1068
1268
|
}
|
|
1069
1269
|
interface ListPrimarySaleItemsReturn {
|
|
1070
1270
|
primarySaleItems: Array<CollectiblePrimarySaleItem>;
|
|
1071
|
-
page?: Page;
|
|
1271
|
+
page?: Page$2;
|
|
1072
1272
|
}
|
|
1073
1273
|
interface GetCountOfPrimarySaleItemsArgs {
|
|
1074
1274
|
chainId: string;
|
|
@@ -1080,9 +1280,9 @@ interface GetCountOfPrimarySaleItemsReturn {
|
|
|
1080
1280
|
}
|
|
1081
1281
|
declare class Admin implements Admin {
|
|
1082
1282
|
protected hostname: string;
|
|
1083
|
-
protected fetch: Fetch
|
|
1283
|
+
protected fetch: Fetch;
|
|
1084
1284
|
protected path: string;
|
|
1085
|
-
constructor(hostname: string, fetch: Fetch
|
|
1285
|
+
constructor(hostname: string, fetch: Fetch);
|
|
1086
1286
|
private url;
|
|
1087
1287
|
createCollection: (args: CreateCollectionArgs, headers?: object, signal?: AbortSignal) => Promise<CreateCollectionReturn>;
|
|
1088
1288
|
getCollection: (args: GetCollectionArgs, headers?: object, signal?: AbortSignal) => Promise<GetCollectionReturn>;
|
|
@@ -1099,11 +1299,11 @@ declare class Admin implements Admin {
|
|
|
1099
1299
|
deleteCurrency: (args: DeleteCurrencyArgs, headers?: object, signal?: AbortSignal) => Promise<DeleteCurrencyReturn>;
|
|
1100
1300
|
addCollectibles: (args: AddCollectiblesArgs, headers?: object, signal?: AbortSignal) => Promise<AddCollectiblesReturn>;
|
|
1101
1301
|
}
|
|
1102
|
-
declare class Marketplace
|
|
1302
|
+
declare class Marketplace implements Marketplace {
|
|
1103
1303
|
protected hostname: string;
|
|
1104
|
-
protected fetch: Fetch
|
|
1304
|
+
protected fetch: Fetch;
|
|
1105
1305
|
protected path: string;
|
|
1106
|
-
constructor(hostname: string, fetch: Fetch
|
|
1306
|
+
constructor(hostname: string, fetch: Fetch);
|
|
1107
1307
|
private url;
|
|
1108
1308
|
listCurrencies: (args: ListCurrenciesArgs, headers?: object, signal?: AbortSignal) => Promise<ListCurrenciesReturn>;
|
|
1109
1309
|
getCollectionDetail: (args: GetCollectionDetailArgs, headers?: object, signal?: AbortSignal) => Promise<GetCollectionDetailReturn>;
|
|
@@ -1281,137 +1481,211 @@ declare enum WebrpcErrorCodes {
|
|
|
1281
1481
|
declare const webrpcErrorByCode: {
|
|
1282
1482
|
[code: number]: any;
|
|
1283
1483
|
};
|
|
1284
|
-
type Fetch
|
|
1484
|
+
type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
1285
1485
|
//#endregion
|
|
1286
|
-
//#region src/react/_internal/api/
|
|
1287
|
-
declare
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
declare enum FilterCondition {
|
|
1293
|
-
ENTIRE_KEY = "ENTIRE_KEY",
|
|
1294
|
-
SPECIFIC_VALUE = "SPECIFIC_VALUE",
|
|
1295
|
-
}
|
|
1296
|
-
interface LookupMarketplaceArgs {
|
|
1297
|
-
projectId?: number;
|
|
1298
|
-
domain?: string;
|
|
1299
|
-
}
|
|
1300
|
-
interface LookupMarketplaceReturn {
|
|
1301
|
-
marketplace: Marketplace;
|
|
1302
|
-
marketCollections: Array<MarketCollection$2>;
|
|
1303
|
-
shopCollections: Array<ShopCollection$2>;
|
|
1304
|
-
}
|
|
1305
|
-
interface Marketplace {
|
|
1306
|
-
projectId: number;
|
|
1307
|
-
settings: MarketplaceSettings;
|
|
1308
|
-
market: MarketplacePage$1;
|
|
1309
|
-
shop: MarketplacePage$1;
|
|
1310
|
-
createdAt?: string;
|
|
1311
|
-
updatedAt?: string;
|
|
1312
|
-
}
|
|
1313
|
-
interface MarketplaceSettings {
|
|
1314
|
-
style: {
|
|
1315
|
-
[key: string]: any;
|
|
1316
|
-
};
|
|
1317
|
-
publisherId: string;
|
|
1318
|
-
title: string;
|
|
1319
|
-
socials: MarketplaceSocials$1;
|
|
1320
|
-
faviconUrl: string;
|
|
1321
|
-
walletOptions: MarketplaceWallet;
|
|
1322
|
-
logoUrl: string;
|
|
1323
|
-
fontUrl: string;
|
|
1324
|
-
accessKey?: string;
|
|
1325
|
-
}
|
|
1326
|
-
interface MarketplacePage$1 {
|
|
1327
|
-
enabled: boolean;
|
|
1328
|
-
bannerUrl: string;
|
|
1329
|
-
ogImage: string;
|
|
1330
|
-
private: boolean;
|
|
1331
|
-
}
|
|
1332
|
-
interface MarketplaceSocials$1 {
|
|
1333
|
-
twitter: string;
|
|
1334
|
-
discord: string;
|
|
1335
|
-
website: string;
|
|
1336
|
-
tiktok: string;
|
|
1337
|
-
instagram: string;
|
|
1338
|
-
youtube: string;
|
|
1486
|
+
//#region src/react/_internal/api/marketplace-api.d.ts
|
|
1487
|
+
declare class SequenceMarketplace extends Marketplace {
|
|
1488
|
+
projectAccessKey: string;
|
|
1489
|
+
jwtAuth?: string | undefined;
|
|
1490
|
+
constructor(hostname: string, projectAccessKey: string, jwtAuth?: string | undefined);
|
|
1491
|
+
_fetch: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
1339
1492
|
}
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1493
|
+
//#endregion
|
|
1494
|
+
//#region src/react/_internal/api/query-keys.d.ts
|
|
1495
|
+
declare class CollectableKeys {
|
|
1496
|
+
static all: readonly ["collectable"];
|
|
1497
|
+
static details: readonly ["collectable", "details"];
|
|
1498
|
+
static lists: readonly ["collectable", "list"];
|
|
1499
|
+
static floorOrders: readonly ["collectable", "floorOrders"];
|
|
1500
|
+
static userBalances: readonly ["collectable", "collectable", "details", "userBalances"];
|
|
1501
|
+
static royaltyPercentage: readonly ["collectable", "royaltyPercentage"];
|
|
1502
|
+
static highestOffers: readonly ["collectable", "collectable", "details", "highestOffers"];
|
|
1503
|
+
static lowestListings: readonly ["collectable", "collectable", "details", "lowestListings"];
|
|
1504
|
+
static offers: readonly ["collectable", "offers"];
|
|
1505
|
+
static offersCount: readonly ["collectable", "offersCount"];
|
|
1506
|
+
static listings: readonly ["collectable", "listings"];
|
|
1507
|
+
static listingsCount: readonly ["collectable", "listingsCount"];
|
|
1508
|
+
static filter: readonly ["collectable", "filter"];
|
|
1509
|
+
static counts: readonly ["collectable", "counts"];
|
|
1510
|
+
static collectibleActivities: readonly ["collectable", "collectibleActivities"];
|
|
1511
|
+
}
|
|
1512
|
+
declare class CollectionKeys {
|
|
1513
|
+
static all: readonly ["collections"];
|
|
1514
|
+
static list: readonly ["collections", "list"];
|
|
1515
|
+
static detail: readonly ["collections", "detail"];
|
|
1516
|
+
static collectionActivities: readonly ["collections", "collectionActivities"];
|
|
1517
|
+
}
|
|
1518
|
+
declare class BalanceQueries {
|
|
1519
|
+
static all: readonly ["balances"];
|
|
1520
|
+
static lists: readonly ["balances", "tokenBalances"];
|
|
1521
|
+
static collectionBalanceDetails: readonly ["balances", "collectionBalanceDetails"];
|
|
1522
|
+
}
|
|
1523
|
+
declare class CheckoutKeys {
|
|
1524
|
+
static all: readonly ["checkouts"];
|
|
1525
|
+
static options: readonly ["checkouts", "options"];
|
|
1526
|
+
static cartItems: readonly ["checkouts", "cartItems"];
|
|
1527
|
+
}
|
|
1528
|
+
declare class CurrencyKeys {
|
|
1529
|
+
static all: readonly ["currencies"];
|
|
1530
|
+
static lists: readonly ["currencies", "list"];
|
|
1531
|
+
static details: readonly ["currencies", "details"];
|
|
1532
|
+
static conversion: readonly ["currencies", "conversion"];
|
|
1533
|
+
}
|
|
1534
|
+
declare class ConfigKeys {
|
|
1535
|
+
static all: readonly ["configs"];
|
|
1536
|
+
static marketplace: readonly ["configs", "marketplace"];
|
|
1537
|
+
}
|
|
1538
|
+
declare class TokenKeys {
|
|
1539
|
+
static all: readonly ["tokens"];
|
|
1540
|
+
static metadata: readonly ["tokens", "metadata"];
|
|
1541
|
+
static supplies: readonly ["tokens", "supplies"];
|
|
1542
|
+
}
|
|
1543
|
+
declare class TokenSuppliesKeys {
|
|
1544
|
+
static all: readonly ["tokenSupplies"];
|
|
1545
|
+
static maps: readonly ["tokenSupplies", "map"];
|
|
1546
|
+
}
|
|
1547
|
+
declare const collectableKeys: typeof CollectableKeys;
|
|
1548
|
+
declare const collectionKeys: typeof CollectionKeys;
|
|
1549
|
+
declare const balanceQueries: typeof BalanceQueries;
|
|
1550
|
+
declare const checkoutKeys: typeof CheckoutKeys;
|
|
1551
|
+
declare const currencyKeys: typeof CurrencyKeys;
|
|
1552
|
+
declare const configKeys: typeof ConfigKeys;
|
|
1553
|
+
declare const tokenKeys: typeof TokenKeys;
|
|
1554
|
+
declare const tokenSuppliesKeys: typeof TokenSuppliesKeys;
|
|
1555
|
+
//#endregion
|
|
1556
|
+
//#region src/react/ui/modals/_internal/types.d.ts
|
|
1557
|
+
interface ActionButton {
|
|
1558
|
+
label: string;
|
|
1559
|
+
action: () => void;
|
|
1560
|
+
}
|
|
1561
|
+
type ModalCallbacks = {
|
|
1562
|
+
onSuccess?: ({
|
|
1563
|
+
hash,
|
|
1564
|
+
orderId
|
|
1565
|
+
}: {
|
|
1566
|
+
hash?: Hash;
|
|
1567
|
+
orderId?: string;
|
|
1568
|
+
}) => void;
|
|
1569
|
+
onError?: (error: Error) => void;
|
|
1570
|
+
onBuyAtFloorPrice?: () => void;
|
|
1571
|
+
successActionButtons?: ActionButton[];
|
|
1572
|
+
};
|
|
1573
|
+
//#endregion
|
|
1574
|
+
//#region src/react/ui/modals/BuyModal/store.d.ts
|
|
1575
|
+
type PaymentModalProps = {
|
|
1576
|
+
collectibleId: string;
|
|
1577
|
+
marketplace: MarketplaceKind;
|
|
1578
|
+
orderId: string;
|
|
1579
|
+
customCreditCardProviderCallback?: (buyStep: Step) => void;
|
|
1580
|
+
};
|
|
1581
|
+
type BuyModalBaseProps = {
|
|
1582
|
+
chainId: number;
|
|
1583
|
+
collectionAddress: Address;
|
|
1584
|
+
skipNativeBalanceCheck?: boolean;
|
|
1585
|
+
nativeTokenAddress?: Address;
|
|
1586
|
+
marketplaceType?: MarketplaceType;
|
|
1587
|
+
customCreditCardProviderCallback?: PaymentModalProps['customCreditCardProviderCallback'];
|
|
1588
|
+
successActionButtons?: ActionButton[];
|
|
1589
|
+
};
|
|
1590
|
+
type ShopBuyModalProps = BuyModalBaseProps & {
|
|
1591
|
+
marketplaceType: 'shop';
|
|
1592
|
+
salesContractAddress: Address;
|
|
1593
|
+
items: Array<Partial<CheckoutOptionsItem> & {
|
|
1594
|
+
tokenId?: string;
|
|
1595
|
+
}>;
|
|
1596
|
+
quantityDecimals: number;
|
|
1597
|
+
quantityRemaining: number;
|
|
1598
|
+
salePrice: {
|
|
1599
|
+
amount: string;
|
|
1600
|
+
currencyAddress: Address;
|
|
1344
1601
|
};
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1602
|
+
unlimitedSupply?: boolean;
|
|
1603
|
+
};
|
|
1604
|
+
type MarketplaceBuyModalProps = BuyModalBaseProps & {
|
|
1605
|
+
marketplaceType?: 'market';
|
|
1606
|
+
collectibleId: string;
|
|
1607
|
+
marketplace: MarketplaceKind;
|
|
1608
|
+
orderId: string;
|
|
1609
|
+
};
|
|
1610
|
+
type BuyModalProps = ShopBuyModalProps | MarketplaceBuyModalProps;
|
|
1611
|
+
//#endregion
|
|
1612
|
+
//#region src/react/_internal/databeat/types.d.ts
|
|
1613
|
+
declare enum EventType {
|
|
1614
|
+
BUY_ITEMS = 0,
|
|
1615
|
+
SELL_ITEMS = 1,
|
|
1616
|
+
CREATE_LISTING = 2,
|
|
1617
|
+
CREATE_OFFER = 3,
|
|
1618
|
+
CANCEL_LISTING = 4,
|
|
1619
|
+
CANCEL_OFFER = 5,
|
|
1620
|
+
TRANSACTION_FAILED = 6,
|
|
1621
|
+
BUY_MODAL_OPENED = 7,
|
|
1622
|
+
}
|
|
1623
|
+
interface PropsEvent {
|
|
1624
|
+
[key: string]: string;
|
|
1625
|
+
}
|
|
1626
|
+
interface NumsEvent {
|
|
1627
|
+
[key: string]: number;
|
|
1628
|
+
}
|
|
1629
|
+
interface Transaction extends PropsEvent {
|
|
1630
|
+
chainId: string;
|
|
1631
|
+
txnHash: string;
|
|
1355
1632
|
}
|
|
1356
|
-
interface
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1633
|
+
interface TradeItemsInfo extends PropsEvent {
|
|
1634
|
+
marketplaceKind: MarketplaceKind;
|
|
1635
|
+
userId: string;
|
|
1636
|
+
collectionAddress: string;
|
|
1637
|
+
currencyAddress: string;
|
|
1638
|
+
currencySymbol: string;
|
|
1360
1639
|
}
|
|
1361
|
-
interface
|
|
1362
|
-
|
|
1363
|
-
|
|
1640
|
+
interface TradeItemsValues extends NumsEvent {
|
|
1641
|
+
currencyValueDecimal: number;
|
|
1642
|
+
currencyValueRaw: number;
|
|
1364
1643
|
}
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1644
|
+
type BuyModalOpenedProps = Omit<BuyModalProps, 'marketplaceType' | 'customCreditCardProviderCallback' | 'chainId' | 'skipNativeBalanceCheck' | 'nativeTokenAddress' | 'successActionButtons'> & {
|
|
1645
|
+
buyAnalyticsId: string;
|
|
1646
|
+
};
|
|
1647
|
+
type BuyModalOpenedNums = {
|
|
1368
1648
|
chainId: number;
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
currencyOptions: Array<string>;
|
|
1374
|
-
destinationMarketplace: OrderbookKind;
|
|
1375
|
-
filterSettings?: CollectionFilterSettings$1;
|
|
1376
|
-
createdAt?: string;
|
|
1377
|
-
updatedAt?: string;
|
|
1649
|
+
};
|
|
1650
|
+
interface TrackBuyModalOpened {
|
|
1651
|
+
props: BuyModalOpenedProps;
|
|
1652
|
+
nums: BuyModalOpenedNums;
|
|
1378
1653
|
}
|
|
1379
|
-
interface
|
|
1380
|
-
|
|
1381
|
-
|
|
1654
|
+
interface TrackSellItems {
|
|
1655
|
+
props: TradeItemsInfo & Transaction;
|
|
1656
|
+
nums: TradeItemsValues;
|
|
1382
1657
|
}
|
|
1383
|
-
interface
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1658
|
+
interface ListOfferItemsInfo extends PropsEvent {
|
|
1659
|
+
orderbookKind: OrderbookKind;
|
|
1660
|
+
collectionAddress: string;
|
|
1661
|
+
currencyAddress: string;
|
|
1662
|
+
currencySymbol: string;
|
|
1387
1663
|
}
|
|
1388
|
-
interface
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
chainId: number;
|
|
1392
|
-
itemsAddress: string;
|
|
1393
|
-
saleAddress: string;
|
|
1394
|
-
name: string;
|
|
1395
|
-
bannerUrl: string;
|
|
1396
|
-
tokenIds: Array<string>;
|
|
1397
|
-
createdAt?: string;
|
|
1398
|
-
updatedAt?: string;
|
|
1664
|
+
interface ListOfferItemsValues extends NumsEvent {
|
|
1665
|
+
currencyValueDecimal: number;
|
|
1666
|
+
currencyValueRaw: number;
|
|
1399
1667
|
}
|
|
1400
|
-
interface
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
*/
|
|
1404
|
-
lookupMarketplace(args: LookupMarketplaceArgs, headers?: object, signal?: AbortSignal): Promise<LookupMarketplaceReturn>;
|
|
1668
|
+
interface TrackCreateListing {
|
|
1669
|
+
props: ListOfferItemsInfo & Transaction;
|
|
1670
|
+
nums: ListOfferItemsValues;
|
|
1405
1671
|
}
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
protected fetch: Fetch;
|
|
1410
|
-
protected path: string;
|
|
1411
|
-
constructor(hostname: string, fetch: Fetch);
|
|
1412
|
-
private url;
|
|
1413
|
-
lookupMarketplace: (args: LookupMarketplaceArgs, headers?: object, signal?: AbortSignal) => Promise<LookupMarketplaceReturn>;
|
|
1672
|
+
interface TrackCreateOffer {
|
|
1673
|
+
props: ListOfferItemsInfo & Transaction;
|
|
1674
|
+
nums: ListOfferItemsValues;
|
|
1414
1675
|
}
|
|
1676
|
+
interface TrackTransactionFailed extends Transaction, PropsEvent {}
|
|
1677
|
+
//#endregion
|
|
1678
|
+
//#region src/react/_internal/databeat/index.d.ts
|
|
1679
|
+
type EventTypes = keyof typeof EventType;
|
|
1680
|
+
type Event$1 = Event<EventTypes>;
|
|
1681
|
+
declare class DatabeatAnalytics extends Databeat<Extract<EventTypes, string>> {
|
|
1682
|
+
trackSellItems(args: TrackSellItems): void;
|
|
1683
|
+
trackBuyModalOpened(args: TrackBuyModalOpened): void;
|
|
1684
|
+
trackCreateListing(args: TrackCreateListing): void;
|
|
1685
|
+
trackCreateOffer(args: TrackCreateOffer): void;
|
|
1686
|
+
trackTransactionFailed(args: TrackTransactionFailed): void;
|
|
1687
|
+
}
|
|
1688
|
+
declare const useAnalytics: () => DatabeatAnalytics;
|
|
1415
1689
|
//#endregion
|
|
1416
1690
|
//#region src/types/types.d.ts
|
|
1417
1691
|
type Price = {
|
|
@@ -1440,6 +1714,8 @@ type SdkConfig = {
|
|
|
1440
1714
|
projectAccessKey: string;
|
|
1441
1715
|
projectId: string;
|
|
1442
1716
|
walletConnectProjectId?: string;
|
|
1717
|
+
shadowDom?: boolean;
|
|
1718
|
+
experimentalShadowDomCssOverride?: string;
|
|
1443
1719
|
_internal?: {
|
|
1444
1720
|
prefetchedMarketplaceSettings?: LookupMarketplaceReturn;
|
|
1445
1721
|
overrides?: {
|
|
@@ -1456,6 +1732,88 @@ type SdkConfig = {
|
|
|
1456
1732
|
};
|
|
1457
1733
|
};
|
|
1458
1734
|
};
|
|
1735
|
+
type MarketplaceSdkContext = {
|
|
1736
|
+
openConnectModal: () => void;
|
|
1737
|
+
analytics: DatabeatAnalytics;
|
|
1738
|
+
} & SdkConfig;
|
|
1739
|
+
//#endregion
|
|
1740
|
+
//#region src/react/_internal/api/services.d.ts
|
|
1741
|
+
type ChainNameOrId = string | number;
|
|
1742
|
+
declare const sequenceApiUrl: (env?: Env) => string;
|
|
1743
|
+
declare const getBuilderClient: (config: SdkConfig) => BuilderAPI;
|
|
1744
|
+
declare const getMetadataClient: (config: SdkConfig) => SequenceMetadata;
|
|
1745
|
+
declare const getIndexerClient: (chain: ChainNameOrId, config: SdkConfig) => SequenceIndexer;
|
|
1746
|
+
declare const getMarketplaceClient: (config: SdkConfig) => SequenceMarketplace;
|
|
1747
|
+
declare const getSequenceApiClient: (config: SdkConfig) => SequenceAPIClient;
|
|
1748
|
+
//#endregion
|
|
1749
|
+
//#region src/react/_internal/consts.d.ts
|
|
1750
|
+
declare const DEFAULT_NETWORK = 137;
|
|
1751
|
+
//#endregion
|
|
1752
|
+
//#region src/react/_internal/get-provider.d.ts
|
|
1753
|
+
declare const PROVIDER_ID = "sdk-provider";
|
|
1754
|
+
declare function getProviderEl(): HTMLElement | null;
|
|
1755
|
+
//#endregion
|
|
1756
|
+
//#region src/react/_internal/types.d.ts
|
|
1757
|
+
interface QueryArg {
|
|
1758
|
+
enabled?: boolean;
|
|
1759
|
+
}
|
|
1760
|
+
type CollectableId = string | number;
|
|
1761
|
+
type CollectionType = ContractType.ERC1155 | ContractType.ERC721;
|
|
1762
|
+
type TransactionStep = {
|
|
1763
|
+
exist: boolean;
|
|
1764
|
+
isExecuting: boolean;
|
|
1765
|
+
execute: () => Promise<void>;
|
|
1766
|
+
};
|
|
1767
|
+
type TransactionSteps = {
|
|
1768
|
+
approval: TransactionStep;
|
|
1769
|
+
transaction: TransactionStep;
|
|
1770
|
+
};
|
|
1771
|
+
declare enum TransactionType {
|
|
1772
|
+
BUY = "BUY",
|
|
1773
|
+
SELL = "SELL",
|
|
1774
|
+
LISTING = "LISTING",
|
|
1775
|
+
OFFER = "OFFER",
|
|
1776
|
+
TRANSFER = "TRANSFER",
|
|
1777
|
+
CANCEL = "CANCEL",
|
|
1778
|
+
}
|
|
1779
|
+
interface BuyInput {
|
|
1780
|
+
orderId: string;
|
|
1781
|
+
collectableDecimals: number;
|
|
1782
|
+
marketplace: MarketplaceKind;
|
|
1783
|
+
quantity: string;
|
|
1784
|
+
}
|
|
1785
|
+
interface SellInput {
|
|
1786
|
+
orderId: string;
|
|
1787
|
+
marketplace: MarketplaceKind;
|
|
1788
|
+
quantity?: string;
|
|
1789
|
+
}
|
|
1790
|
+
interface ListingInput {
|
|
1791
|
+
contractType: ContractType;
|
|
1792
|
+
listing: CreateReq;
|
|
1793
|
+
}
|
|
1794
|
+
interface OfferInput {
|
|
1795
|
+
contractType: ContractType;
|
|
1796
|
+
offer: CreateReq;
|
|
1797
|
+
}
|
|
1798
|
+
interface CancelInput {
|
|
1799
|
+
orderId: string;
|
|
1800
|
+
marketplace: MarketplaceKind;
|
|
1801
|
+
}
|
|
1802
|
+
type ValuesOptional<T> = { [K in keyof T]: T[K] | undefined };
|
|
1803
|
+
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
1804
|
+
//#endregion
|
|
1805
|
+
//#region src/react/_internal/wagmi/get-connectors.d.ts
|
|
1806
|
+
declare function getConnectors({
|
|
1807
|
+
marketplaceConfig,
|
|
1808
|
+
sdkConfig,
|
|
1809
|
+
walletType
|
|
1810
|
+
}: {
|
|
1811
|
+
marketplaceConfig: MarketplaceConfig;
|
|
1812
|
+
sdkConfig: SdkConfig;
|
|
1813
|
+
walletType: MarketplaceWalletType;
|
|
1814
|
+
}): CreateConnectorFn[];
|
|
1815
|
+
declare function getWaasConnectors(config: SdkConfig, marketplaceConfig: MarketplaceConfig): Wallet[];
|
|
1816
|
+
declare function getEcosystemConnector(marketplaceConfig: MarketplaceConfig, sdkConfig: SdkConfig): Wallet;
|
|
1459
1817
|
//#endregion
|
|
1460
1818
|
//#region src/types/new-marketplace-types.d.ts
|
|
1461
1819
|
interface MarketplaceConfig {
|
|
@@ -1542,5 +1900,35 @@ interface CollectionFilterSettings {
|
|
|
1542
1900
|
exclusions: Array<MetadataFilterRule>;
|
|
1543
1901
|
}
|
|
1544
1902
|
//#endregion
|
|
1545
|
-
|
|
1546
|
-
|
|
1903
|
+
//#region src/react/queries/marketplaceConfig.d.ts
|
|
1904
|
+
declare const fetchMarketplaceConfig: ({
|
|
1905
|
+
config,
|
|
1906
|
+
prefetchedMarketplaceSettings
|
|
1907
|
+
}: {
|
|
1908
|
+
config: SdkConfig;
|
|
1909
|
+
prefetchedMarketplaceSettings?: LookupMarketplaceReturn;
|
|
1910
|
+
}) => Promise<MarketplaceConfig>;
|
|
1911
|
+
declare const marketplaceConfigOptions: (config: SdkConfig) => _tanstack_react_query9.OmitKeyof<_tanstack_react_query9.UseQueryOptions<MarketplaceConfig, Error, MarketplaceConfig, ("configs" | "marketplace")[]>, "queryFn"> & {
|
|
1912
|
+
queryFn?: _tanstack_react_query9.QueryFunction<MarketplaceConfig, ("configs" | "marketplace")[], never> | undefined;
|
|
1913
|
+
} & {
|
|
1914
|
+
queryKey: ("configs" | "marketplace")[] & {
|
|
1915
|
+
[dataTagSymbol]: MarketplaceConfig;
|
|
1916
|
+
[dataTagErrorSymbol]: Error;
|
|
1917
|
+
};
|
|
1918
|
+
};
|
|
1919
|
+
//#endregion
|
|
1920
|
+
//#region src/react/_internal/wagmi/create-config.d.ts
|
|
1921
|
+
declare const createWagmiConfig: (marketplaceConfig: MarketplaceConfig, sdkConfig: SdkConfig, ssr?: boolean) => wagmi0.Config<[Chain, ...Chain[]], Record<number, Transport>, wagmi0.CreateConnectorFn[]>;
|
|
1922
|
+
declare function getWagmiChainsAndTransports({
|
|
1923
|
+
marketplaceConfig,
|
|
1924
|
+
sdkConfig
|
|
1925
|
+
}: {
|
|
1926
|
+
marketplaceConfig: MarketplaceConfig;
|
|
1927
|
+
sdkConfig: SdkConfig;
|
|
1928
|
+
}): {
|
|
1929
|
+
chains: [Chain, ...Chain[]];
|
|
1930
|
+
transports: Record<number, Transport>;
|
|
1931
|
+
};
|
|
1932
|
+
//#endregion
|
|
1933
|
+
export { Activity, ActivityAction, AddCollectiblesArgs, AddCollectiblesReturn, AdditionalFee, Admin, ApiConfig, Asset, BuilderAPI, BuyInput, BuyModalProps, CancelInput, CheckoutOptions, CheckoutOptionsItem, CheckoutOptionsMarketplaceArgs, CheckoutOptionsMarketplaceOrder, CheckoutOptionsMarketplaceReturn, CheckoutOptionsSalesContractArgs, CheckoutOptionsSalesContractReturn, CollectableId, Collectible, CollectibleCardAction, CollectibleOrder, CollectiblePrimarySaleItem, CollectibleSource, CollectibleStatus, CollectiblesFilter, Collection, CollectionConfig, CollectionFilterSettings, CollectionLastSynced, CollectionPriority, CollectionStatus, CollectionType, ContractType, CreateCollectionArgs, CreateCollectionReturn, CreateCurrenciesArgs, CreateCurrenciesReturn, CreateCurrencyArgs, CreateCurrencyReturn, CreatePrimarySaleContractArgs, CreatePrimarySaleContractReturn, CreateReq, Currency, CurrencyStatus, DEFAULT_NETWORK, DatabeatAnalytics, DeleteCollectionArgs, DeleteCollectionReturn, DeleteCurrencyArgs, DeleteCurrencyReturn, DeletePrimarySaleContractArgs, DeletePrimarySaleContractReturn, Domain, EcosystemWalletSettings, Env, Event$1 as Event, EventTypes, ExecuteArgs, ExecuteReturn, ExecuteType, FeeBreakdown, Fetch, Filter$1 as Filter, FilterCondition, GenerateBuyTransactionArgs, GenerateBuyTransactionReturn, GenerateCancelTransactionArgs, GenerateCancelTransactionReturn, GenerateListingTransactionArgs, GenerateListingTransactionReturn, GenerateOfferTransactionArgs, GenerateOfferTransactionReturn, GenerateSellTransactionArgs, GenerateSellTransactionReturn, GetCollectibleArgs, GetCollectibleHighestListingArgs, GetCollectibleHighestListingReturn, GetCollectibleHighestOfferArgs, GetCollectibleHighestOfferReturn, GetCollectibleLowestListingArgs, GetCollectibleLowestListingReturn, GetCollectibleLowestOfferArgs, GetCollectibleLowestOfferReturn, GetCollectibleReturn, GetCollectionArgs, GetCollectionDetailArgs, GetCollectionDetailReturn, GetCollectionReturn, GetCountOfAllCollectiblesArgs, GetCountOfAllCollectiblesReturn, GetCountOfFilteredCollectiblesArgs, GetCountOfFilteredCollectiblesReturn, GetCountOfListingsForCollectibleArgs, GetCountOfListingsForCollectibleReturn, GetCountOfOffersForCollectibleArgs, GetCountOfOffersForCollectibleReturn, GetCountOfPrimarySaleItemsArgs, GetCountOfPrimarySaleItemsReturn, GetFloorOrderArgs, GetFloorOrderReturn, GetHighestPriceListingForCollectibleArgs, GetHighestPriceListingForCollectibleReturn, GetHighestPriceOfferForCollectibleArgs, GetHighestPriceOfferForCollectibleReturn, GetLowestPriceListingForCollectibleArgs, GetLowestPriceListingForCollectibleReturn, GetLowestPriceOfferForCollectibleArgs, GetLowestPriceOfferForCollectibleReturn, GetOrdersArgs, GetOrdersInput, GetOrdersReturn, GetPrimarySaleItemArgs, GetPrimarySaleItemReturn, InvalidArgumentError, InvalidTierError, ItemsContract, ItemsContractStatus, LaosAPI, ListCollectibleActivitiesArgs, ListCollectibleActivitiesReturn, ListCollectibleListingsArgs, ListCollectibleListingsReturn, ListCollectibleOffersArgs, ListCollectibleOffersReturn, ListCollectiblesArgs, ListCollectiblesReturn, ListCollectiblesWithHighestOfferArgs, ListCollectiblesWithHighestOfferReturn, ListCollectiblesWithLowestListingArgs, ListCollectiblesWithLowestListingReturn, ListCollectionActivitiesArgs, ListCollectionActivitiesReturn, ListCollectionsArgs, ListCollectionsReturn, ListCurrenciesArgs, ListCurrenciesReturn, ListListingsArgs, ListListingsForCollectibleArgs, ListListingsForCollectibleReturn, ListListingsReturn, ListOffersArgs, ListOffersForCollectibleArgs, ListOffersForCollectibleReturn, ListOffersReturn, ListPrimarySaleItemsArgs, ListPrimarySaleItemsReturn, ListingInput, MarketCollection$1 as MarketCollection, MarketPage, Marketplace, MarketplaceConfig, MarketplaceKind, MarketplaceSdkContext, MarketplaceSocials, MarketplaceType, type MarketplaceWallet, MarketplaceWalletEcosystem, MarketplaceWalletEmbedded, MarketplaceWalletOptions, MarketplaceWalletWaasSettings, MetadataFilterRule, MethodNotFoundError, ModalCallbacks, NotFoundError, NotImplementedError, OfferInput, Optional, Order, OrderData, OrderFilter, OrderSide, OrderStatus, OrderbookKind, PROVIDER_ID, Page$2 as Page, PaginationOptions, PermissionDeniedError, PostRequest, Price, PrimarySaleContract, PrimarySaleContractStatus, PrimarySaleItem, PrimarySaleItemDetailType, PrimarySaleItemsFilter, Project, ProjectLimitReachedError, ProjectNotFoundError, ProjectStatus, PropertyFilter$1 as PropertyFilter, PropertyType, QueryArg, SdkConfig, SellInput, SequenceMarketplace, SessionExpiredError, ShopCollection$1 as ShopCollection, ShopPage, Signature, SortBy, SortOption, SortOrder, SourceKind, Step, StepType, SupportedMarketplacesArgs, SupportedMarketplacesReturn, SyncCollectionArgs, SyncCollectionReturn, SyncOrderArgs, SyncOrderReturn, SyncOrdersArgs, SyncOrdersReturn, TimeoutError, TokenBalancesParams, TokenMetadata$1 as TokenMetadata, TokenSuppliesParams, TransactionCrypto, TransactionNFTCheckoutProvider, TransactionOnRampProvider, TransactionSteps, TransactionSwapProvider, TransactionType, UnauthorizedError, UpdateCollectionArgs, UpdateCollectionReturn, UpdateCurrencyArgs, UpdateCurrencyReturn, UserNotFoundError, ValuesOptional, VersionFromHeader, WalletKind, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion, WebrpcBadMethodError, WebrpcBadRequestError, WebrpcBadResponseError, WebrpcBadRouteError, WebrpcClientDisconnectedError, WebrpcEndpointError, WebrpcError, WebrpcErrorCodes, WebrpcHeader, WebrpcHeaderValue, WebrpcInternalErrorError, WebrpcRequestFailedError, WebrpcServerPanicError, WebrpcStreamFinishedError, WebrpcStreamLostError, balanceQueries, checkoutKeys, collectableKeys, collectionKeys, configKeys, createWagmiConfig, currencyKeys, errors, fetchMarketplaceConfig, getBuilderClient, getConnectors, getEcosystemConnector, getIndexerClient, getMarketplaceClient, getMetadataClient, getProviderEl, getQueryClient, getSequenceApiClient, getWaasConnectors, getWagmiChainsAndTransports, marketplaceConfigOptions, sequenceApiUrl, tokenKeys, tokenSuppliesKeys, useAnalytics, webrpcErrorByCode };
|
|
1934
|
+
//# sourceMappingURL=create-config-lLSrnkbb.d.ts.map
|