diff --git a/.github/workflows/pnpm-broken-links.yaml b/.github/workflows/pnpm-broken-links.yaml new file mode 100644 index 00000000..a624322c --- /dev/null +++ b/.github/workflows/pnpm-broken-links.yaml @@ -0,0 +1,28 @@ +name: Test Broken Links + +on: + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v2 + with: + version: 8 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Run tests + run: pnpm test \ No newline at end of file diff --git a/sdk/marketplace-sdk/getting-started.mdx b/sdk/marketplace-sdk/getting-started.mdx index 8cb591df..df7195ea 100644 --- a/sdk/marketplace-sdk/getting-started.mdx +++ b/sdk/marketplace-sdk/getting-started.mdx @@ -13,11 +13,11 @@ Otherwise, we will walk you through the process of installing Marketplace SDK, i Marketplace SDK is modular, allowing you to install only the necessary packages. To get started, install the `@0xsequence/marketplace-sdk` core package, as well as install other dependencies necessary dependencies. ```bash -npm install @0xsequence/kit @0xsequence/kit-checkout @0xsequence/kit-wallet @0xsequence/marketplace-sdk @0xsequence/design-system@^1 @0xsequence/network wagmi ethers@^6 viem 0xsequence @tanstack/react-query @tanstack/react-query-devtools @legendapp/state framer-motion@^8.5.2 pino-pretty +npm install @0xsequence/connect @0xsequence/checkout @0xsequence/wallet-widget @0xsequence/marketplace-sdk @0xsequence/design-system @0xsequence/network @0xsequence/indexer @0xsequence/metadata wagmi ethers@^6 viem 0xsequence @tanstack/react-query @tanstack/react-query-devtools @legendapp/state framer-motion pino-pretty # or -pnpm add @0xsequence/kit @0xsequence/kit-checkout @0xsequence/kit-wallet @0xsequence/marketplace-sdk @0xsequence/design-system@^1 @0xsequence/network wagmi ethers@^6 viem 0xsequence @tanstack/react-query @tanstack/react-query-devtools @legendapp/state framer-motion@^8.5.2 pino-pretty +pnpm add @0xsequence/connect @0xsequence/checkout @0xsequence/wallet-widget @0xsequence/marketplace-sdk @0xsequence/design-system @0xsequence/network @0xsequence/indexer @0xsequence/metadata wagmi ethers@^6 viem 0xsequence @tanstack/react-query @tanstack/react-query-devtools @legendapp/state framer-motion pino-pretty # or -yarn add @0xsequence/kit @0xsequence/kit-checkout @0xsequence/kit-wallet @0xsequence/marketplace-sdk @0xsequence/design-system@^1 @0xsequence/network wagmi ethers@^6 viem 0xsequence @tanstack/react-query @tanstack/react-query-devtools @legendapp/state framer-motion@^8.5.2 pino-pretty +yarn add @0xsequence/connect @0xsequence/checkout @0xsequence/wallet-widget @0xsequence/marketplace-sdk @0xsequence/design-system @0xsequence/network @0xsequence/indexer @0xsequence/metadata wagmi ethers@^6 viem 0xsequence @tanstack/react-query @tanstack/react-query-devtools @legendapp/state framer-motion pino-pretty ``` # Setting Up your Dapp @@ -272,7 +272,7 @@ return ( -Congratulations! Now you’re ready to explore the available hooks in our Marketplace SDK. Interested? Check out the [Marketplace SDK hooks](/sdk/marketplace-sdk/hooks/overview) documentation to learn more. +Congratulations! Now you’re ready to explore the available hooks in our Marketplace SDK. Interested? Check out the [Marketplace SDK hooks](/sdk/marketplace-sdk/overview#marketplace-sdk-hooks) documentation to learn more. diff --git a/sdk/marketplace-sdk/hooks/marketplace-data-hooks.mdx b/sdk/marketplace-sdk/hooks/marketplace-data-hooks.mdx index a1f9eb7d..f59d583e 100644 --- a/sdk/marketplace-sdk/hooks/marketplace-data-hooks.mdx +++ b/sdk/marketplace-sdk/hooks/marketplace-data-hooks.mdx @@ -298,8 +298,8 @@ import { OrderSide } from '@0xsequence/marketplace-sdk'; import { useCountOfCollectables } from '@0xsequence/marketplace-sdk/react'; const countOfCollectables = useCountOfCollectables({ - chainId: String(chainId), - collectionAddress: collectionId, + chainId, + collectionAddress, side: OrderSide.listing, filter: { searchText: text, diff --git a/sdk/marketplace-sdk/hooks/overview.mdx b/sdk/marketplace-sdk/hooks/overview.mdx deleted file mode 100644 index 9adeb7bc..00000000 --- a/sdk/marketplace-sdk/hooks/overview.mdx +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: "Marketplace SDK Hooks" -description: Marketplace SDK provides a collection of optimized hooks to seamlessly and efficiently integrate marketplace functionality into your applications. These hooks enable smooth and secure user experience management. -sidebarTitle: Overview ---- - -It includes hooks for both retrieving marketplace data and performing actions such as buying, selling, creating, and accepting offers. - -Refer to the documentation to learn how to use them and maximize your integration. - - - - Collection of GET hooks for retrieving key Marketplace data. Useful for fetching and managing Marketplace information in your UI - - - Manage listings, offers, and purchases by integrating Marketplace Actions. - - \ No newline at end of file diff --git a/sdk/marketplace-sdk/overview.mdx b/sdk/marketplace-sdk/overview.mdx index ae3ef71e..a31acc08 100644 --- a/sdk/marketplace-sdk/overview.mdx +++ b/sdk/marketplace-sdk/overview.mdx @@ -6,15 +6,23 @@ sidebarTitle: Overview Why use the Marketplace SDK? It provides a seamless way to integrate Sequence's marketplace with minimal effort. Leverage its powerful hooks to retrieve marketplace data and execute essential actions such as listings, purchases, offers, and offer acceptance. +# Getting Started + Learn about the prerequisites and setup required to work with the Marketplace SDK. - - - Explore how to integrate your marketplace using our available hooks. -## Next Steps +# Marketplace SDK Hooks + +Marketplace SDK provides a collection of optimized hooks to seamlessly and efficiently integrate marketplace functionality into your applications. These hooks enable smooth and secure user experience management. -Ready to integrate Marketplace SDK into your application? Check out our [Quickstart guide](/sdk/marketplace-sdk/getting-started). \ No newline at end of file + + + Collection of GET hooks for retrieving key Marketplace data. Useful for fetching and managing Marketplace information in your UI + + + Manage listings, offers, and purchases by integrating Marketplace Actions. + + \ No newline at end of file diff --git a/sdk/unity/monetization/secondary-sales/building-a-marketplace.mdx b/sdk/unity/monetization/secondary-sales/building-a-marketplace.mdx index 62a1875a..d1e266fa 100644 --- a/sdk/unity/monetization/secondary-sales/building-a-marketplace.mdx +++ b/sdk/unity/monetization/secondary-sales/building-a-marketplace.mdx @@ -4,7 +4,7 @@ title: Building a Marketplace This doc will walk you through how we'd recommend using the Sequence SDK to build an on-chain collectibles marketplace for secondary sales. -Before starting, don't forget to [configure your marketplace in the Builder](/solutions/marketplaces/orderbook/overview). +Before starting, don't forget to [configure your marketplace in the Builder](/solutions/marketplaces/white-label-marketplace/guide#launch-a-marketplace). ## 1. Read Listings diff --git a/solutions/marketplaces/custom-marketplace/overview.mdx b/solutions/marketplaces/custom-marketplace/overview.mdx index c2729ce5..d875c15e 100644 --- a/solutions/marketplaces/custom-marketplace/overview.mdx +++ b/solutions/marketplaces/custom-marketplace/overview.mdx @@ -16,7 +16,7 @@ The officially maintained contract address is `0xfdb42A198a932C8D3B506Ffa5e855bC ### Getting started - + A starter Marketplace boilerplate, powered by Sequence. diff --git a/solutions/marketplaces/white-label-marketplace.mdx b/solutions/marketplaces/white-label-marketplace.mdx deleted file mode 100644 index b673ff70..00000000 --- a/solutions/marketplaces/white-label-marketplace.mdx +++ /dev/null @@ -1,181 +0,0 @@ ---- - -title: "Launch your White-label Marketplace" -description: Sequence Builder offers game builders a white-label marketplace that can be easily customized and integrated into their game experience without any coding experience needed. ---- - - - - -Sequence Builder provides game builders with a white-label marketplace that can be launched in seconds. With Builder, you can customize your marketplace and integrate it directly into your game experience, all with no-coding experience necessary. Watch a [video to get started](/solutions/marketplaces/white-label-marketplace/video-walkthrough#watch-a-marketplace-be-launched-in-minutes), or, follow [several steps to launch a marketplace](/solutions/marketplaces/white-label-marketplace/guide). - -## Try it out - - -Get started quickly at [Sequence Builder](https://sequence.build/) to launch your marketplace. - - -##### Why would I want my own Marketplace for my web3 game? - -Builder gives you full control over everything in your marketplace, from enforcing royalties (with ERC-2981) to -choosing the best trading mechanism for your community, setting fees, and more. -You can also aggregate listings from major platforms like OpenSea or LooksRare, providing you with the benefit of existing liquidity without relinquishing control of the gaming experience. - -## Watch a Marketplace be Launched in Minutes - - @@ -49,7 +49,7 @@ Earn more revenue, create sustainable economic models, allow users to pay with n Fully audited, open source, and available on all chains Sequence supports. The Sequence Market Protocol is a fully scalable and efficient marketplace protocol utilized by organizations such as Ubisoft. - + Instead of starting from scratch, use our starter marketplace as a template to build your own custom marketplace.