diff --git a/apps/dashboard/src/app/(app)/(dashboard)/(bridge)/routes/page.tsx b/apps/dashboard/src/app/(app)/(dashboard)/(bridge)/routes/page.tsx index d7b9d07a96a..2a06e870ee5 100644 --- a/apps/dashboard/src/app/(app)/(dashboard)/(bridge)/routes/page.tsx +++ b/apps/dashboard/src/app/(app)/(dashboard)/(bridge)/routes/page.tsx @@ -74,7 +74,7 @@ export default async function RoutesPage(props: { diff --git a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/components/server/products.ts b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/components/server/products.ts index 617e4ba7115..abcee686913 100644 --- a/apps/dashboard/src/app/(app)/(dashboard)/(chain)/components/server/products.ts +++ b/apps/dashboard/src/app/(app)/(dashboard)/(chain)/components/server/products.ts @@ -41,14 +41,14 @@ export const products = [ description: "Enable gas sponsorship for seamless transactions", icon: SmartAccountIcon, id: "account-abstraction", - link: "https://portal.thirdweb.com/connect/account-abstraction/overview", + link: "https://portal.thirdweb.com/wallets/account-abstraction/overview", name: "Account Abstraction", }, { description: "Enable payments in any token on any chain", icon: PayIcon, id: "pay", - link: "https://portal.thirdweb.com/connect/pay/overview", + link: "https://portal.thirdweb.com/payments", name: "Payments", }, { diff --git a/apps/dashboard/src/app/(app)/(dashboard)/support/page.tsx b/apps/dashboard/src/app/(app)/(dashboard)/support/page.tsx index bce10cb8765..1aca00ca8ee 100644 --- a/apps/dashboard/src/app/(app)/(dashboard)/support/page.tsx +++ b/apps/dashboard/src/app/(app)/(dashboard)/support/page.tsx @@ -36,13 +36,13 @@ const HELP_PRODUCTS = [ description: "Create and manage crypto wallets", icon: WalletIcon, title: "Wallets", - viewAllUrl: "https://portal.thirdweb.com/connect", + viewAllUrl: "https://portal.thirdweb.com/wallets", }, { description: "Enable payments on any tokens on any chain", icon: PayIcon, title: "Payments", - viewAllUrl: "https://portal.thirdweb.com/pay/troubleshoot", + viewAllUrl: "https://portal.thirdweb.com/payments/troubleshoot", }, { description: "Perform read and write transactions onchain", diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/analytics/page.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/analytics/page.tsx index 151af474dd2..aadfdf99b1d 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/analytics/page.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/analytics/page.tsx @@ -168,7 +168,7 @@ async function AsyncAppHighlightsCard(props: { return ( ); @@ -189,7 +189,7 @@ async function AsyncWalletDistributionCard(props: { ) : ( ); @@ -248,7 +248,7 @@ async function AsyncTransactionsChartCard(props: { /> ) : ( ); @@ -355,7 +355,7 @@ function AppHighlightsCard({ emptyContent: ( ), @@ -368,7 +368,7 @@ function AppHighlightsCard({ emptyContent: ( ), diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/[slug]/(active)/configuration/components/client/auth-options-form.client.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/[slug]/(active)/configuration/components/client/auth-options-form.client.tsx index 83a01b97aa5..5360b685ff6 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/[slug]/(active)/configuration/components/client/auth-options-form.client.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/[slug]/(active)/configuration/components/client/auth-options-form.client.tsx @@ -391,7 +391,7 @@ export function AuthOptionsForm({ Enter the URL for your own authentication endpoint.{" "} Learn more. diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/create/EcosystemCreatePage.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/create/EcosystemCreatePage.tsx index 72aaa2e3f6f..833f4c00396 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/create/EcosystemCreatePage.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/create/EcosystemCreatePage.tsx @@ -19,7 +19,7 @@ export async function EcosystemCreatePage(props: {
You can control which apps join your ecosystem and how their users interact with your wallet.{" "} diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/create/components/client/create-ecosystem-form.client.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/create/components/client/create-ecosystem-form.client.tsx index b7e185cc29e..347e8c09f85 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/create/components/client/create-ecosystem-form.client.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/~/ecosystem/create/components/client/create-ecosystem-form.client.tsx @@ -167,7 +167,7 @@ export function CreateEcosystemForm(props: { diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/account-abstraction/AAFooterSection.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/account-abstraction/AAFooterSection.tsx index 1b21b2dc16f..fabcc5e60b6 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/account-abstraction/AAFooterSection.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/account-abstraction/AAFooterSection.tsx @@ -23,7 +23,7 @@ export function AAFooter() { left={{ links: [ { - href: "https://portal.thirdweb.com/connect/account-abstraction/overview", + href: "https://portal.thirdweb.com/wallets/account-abstraction/overview", label: "Overview", }, { diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/account-abstraction/factories/page.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/account-abstraction/factories/page.tsx index bd948478111..dda868349d1 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/account-abstraction/factories/page.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/account-abstraction/factories/page.tsx @@ -81,7 +81,7 @@ function YourFactoriesSection(props: {

Deploy your own account factories to create smart wallets.{" "} diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/page.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/page.tsx index d7645216197..df591dcf2c2 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/page.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/page.tsx @@ -373,7 +373,7 @@ async function AsyncAppHighlightsCard(props: { return ( ); @@ -395,7 +395,7 @@ async function AsyncWalletDistributionCard(props: { ) : ( ); @@ -436,7 +436,7 @@ function AppHighlightsCard({ emptyContent: ( ), diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/universal-bridge/components/PayEmbedFTUX.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/universal-bridge/components/PayEmbedFTUX.tsx index 7f199bb6df7..416d938b741 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/universal-bridge/components/PayEmbedFTUX.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/universal-bridge/components/PayEmbedFTUX.tsx @@ -56,7 +56,7 @@ export function PayEmbedFTUX(props: { - - - + + + + + - {/* right */} -

- - -
- - ); + {/* right */} +
+ + +
+ + ); } function PlaygroundSection() { - return ( -
- - -
- ); + return ( +
+ + +
+ ); } function ReferenceSection() { - return ( -
- - - - - - - - - - - - - - - - - - - -
- ); + return ( +
+ + + + + + + + + + + + + + + + + + + +
+ ); } function LearningResourcesSection() { - return ( -
- - - - - - - - - - -
- ); + return ( +
+ + + + + + + + + + +
+ ); } function SectionTitle(props: { - title: string; - anchorId: string; - level?: number; - className?: string; + title: string; + anchorId: string; + level?: number; + className?: string; }) { - return ( - - {props.title} - - ); + return ( + + {props.title} + + ); } /*** * This component is only for the index page */ function ArticleCardIndex(props: { - title: string; - description: string; - href: string; - icon?: React.FC<{ className?: string }>; - external?: boolean; + title: string; + description: string; + href: string; + icon?: React.FC<{ className?: string }>; + external?: boolean; }) { - return ( - -
- {props.icon && } -
-

- {props.title} -

-

{props.description}

-
-
- - ); + return ( + +
+ {props.icon && } +
+

+ {props.title} +

+

{props.description}

+
+
+ + ); } diff --git a/apps/portal/src/app/pay/sidebar.tsx b/apps/portal/src/app/pay/sidebar.tsx deleted file mode 100644 index 6bb58a8c068..00000000000 --- a/apps/portal/src/app/pay/sidebar.tsx +++ /dev/null @@ -1,131 +0,0 @@ -import { - AlbumIcon, - ArrowLeftRightIcon, - BracesIcon, - CircleDollarSignIcon, - CodeIcon, - MessageCircleQuestionIcon, - PaletteIcon, - RocketIcon, - TriangleRightIcon, - WalletIcon, - WebhookIcon, - WrenchIcon, -} from "lucide-react"; -import type { SideBar } from "@/components/Layouts/DocLayout"; - -const paySlug = "/pay"; - -export const sidebar: SideBar = { - links: [ - { - href: `${paySlug}`, - icon: , - name: "Overview", - }, - { - href: "https://thirdweb.com/routes", - icon: , - name: "Supported Routes", - }, - { - href: `${paySlug}/onramp-providers`, - icon: , - name: "Onramp Providers", - }, - { - href: `${paySlug}/fees`, - icon: , - name: "Service Fees", - }, - { - href: `${paySlug}/get-started`, - icon: , - links: [ - { - href: `${paySlug}/get-started#installation`, - name: "Installation", - }, - { - href: `${paySlug}/get-started#recipes`, - name: "Recipes", - }, - ], - name: "Get Started", - }, - { - icon: , - isCollapsible: true, - links: [ - { - href: `${paySlug}/guides/cross-chain-swapping`, - name: "Cross-Chain Swapping", - }, - { - href: `${paySlug}/guides/smart-accounts`, - name: "Swap with Smart Accounts", - }, - { - href: `${paySlug}/guides/onramp-integration`, - name: "Fiat Onramp", - }, - { - href: `${paySlug}/guides/nft-checkout`, - name: "NFT Checkout", - }, - ], - name: "Tutorials", - }, - { - icon: , - isCollapsible: true, - links: [ - { - href: `${paySlug}/customization/connectbutton`, - name: "ConnectButton", - }, - { - href: `${paySlug}/customization/payembed`, - name: "PayEmbed", - }, - { - href: `${paySlug}/customization/send-transaction`, - name: "useSendTransaction", - }, - ], - name: "Customization", - }, - { - href: "https://bridge.thirdweb.com/reference", - icon: , - name: "API Reference", - }, - { - href: "/typescript/v5/buy/quote", - icon: , - links: [ - { - href: "/typescript/v5/buy/quote", - name: "TypeScript SDK", - }, - ], - name: "SDK Reference", - }, - { - href: `${paySlug}/webhooks`, - icon: , - name: "Webhooks", - }, - { - href: `${paySlug}/troubleshoot`, - icon: , - name: "Troubleshoot", - }, - { - href: `${paySlug}/faqs`, - icon: , - name: "FAQs", - }, - ], - name: "Payments", -}; diff --git a/apps/portal/src/app/pay/assets/avax-to-usd.png b/apps/portal/src/app/payments/assets/avax-to-usd.png similarity index 100% rename from apps/portal/src/app/pay/assets/avax-to-usd.png rename to apps/portal/src/app/payments/assets/avax-to-usd.png diff --git a/apps/portal/src/app/pay/assets/buy-with-crypto.png b/apps/portal/src/app/payments/assets/buy-with-crypto.png similarity index 100% rename from apps/portal/src/app/pay/assets/buy-with-crypto.png rename to apps/portal/src/app/payments/assets/buy-with-crypto.png diff --git a/apps/portal/src/app/pay/assets/bwc.png b/apps/portal/src/app/payments/assets/bwc.png similarity index 100% rename from apps/portal/src/app/pay/assets/bwc.png rename to apps/portal/src/app/payments/assets/bwc.png diff --git a/apps/portal/src/app/pay/assets/bwf.png b/apps/portal/src/app/payments/assets/bwf.png similarity index 100% rename from apps/portal/src/app/pay/assets/bwf.png rename to apps/portal/src/app/payments/assets/bwf.png diff --git a/apps/portal/src/app/pay/assets/direct-payments-flow.png b/apps/portal/src/app/payments/assets/direct-payments-flow.png similarity index 100% rename from apps/portal/src/app/pay/assets/direct-payments-flow.png rename to apps/portal/src/app/payments/assets/direct-payments-flow.png diff --git a/apps/portal/src/app/pay/assets/get-started-embed.png b/apps/portal/src/app/payments/assets/get-started-embed.png similarity index 100% rename from apps/portal/src/app/pay/assets/get-started-embed.png rename to apps/portal/src/app/payments/assets/get-started-embed.png diff --git a/apps/portal/src/app/pay/assets/get-started-send.png b/apps/portal/src/app/payments/assets/get-started-send.png similarity index 100% rename from apps/portal/src/app/pay/assets/get-started-send.png rename to apps/portal/src/app/payments/assets/get-started-send.png diff --git a/apps/portal/src/app/pay/assets/pay-api-key.png b/apps/portal/src/app/payments/assets/pay-api-key.png similarity index 100% rename from apps/portal/src/app/pay/assets/pay-api-key.png rename to apps/portal/src/app/payments/assets/pay-api-key.png diff --git a/apps/portal/src/app/pay/assets/pay-modal.png b/apps/portal/src/app/payments/assets/pay-modal.png similarity index 100% rename from apps/portal/src/app/pay/assets/pay-modal.png rename to apps/portal/src/app/payments/assets/pay-modal.png diff --git a/apps/portal/src/app/pay/assets/pay-overview.png b/apps/portal/src/app/payments/assets/pay-overview.png similarity index 100% rename from apps/portal/src/app/pay/assets/pay-overview.png rename to apps/portal/src/app/payments/assets/pay-overview.png diff --git a/apps/portal/src/app/pay/assets/pay-settings.png b/apps/portal/src/app/payments/assets/pay-settings.png similarity index 100% rename from apps/portal/src/app/pay/assets/pay-settings.png rename to apps/portal/src/app/payments/assets/pay-settings.png diff --git a/apps/portal/src/app/pay/customization/connectbutton/page.mdx b/apps/portal/src/app/payments/customization/connectbutton/page.mdx similarity index 100% rename from apps/portal/src/app/pay/customization/connectbutton/page.mdx rename to apps/portal/src/app/payments/customization/connectbutton/page.mdx diff --git a/apps/portal/src/app/pay/customization/send-transaction/page.mdx b/apps/portal/src/app/payments/customization/send-transaction/page.mdx similarity index 100% rename from apps/portal/src/app/pay/customization/send-transaction/page.mdx rename to apps/portal/src/app/payments/customization/send-transaction/page.mdx diff --git a/apps/portal/src/app/pay/faqs/page.mdx b/apps/portal/src/app/payments/faqs/page.mdx similarity index 98% rename from apps/portal/src/app/pay/faqs/page.mdx rename to apps/portal/src/app/payments/faqs/page.mdx index 9cbad4d3105..3a7d169d611 100644 --- a/apps/portal/src/app/pay/faqs/page.mdx +++ b/apps/portal/src/app/payments/faqs/page.mdx @@ -45,7 +45,7 @@ Yes, Payments is designed to be agnostic to wallet infrastructure. You can use i
-Apple Pay and Google Pay are supported through the onramp providers depending on region. Coinbase, Stripe, and Transak currently support Apple Pay. Transak supports Google Pay. [Learn more about the supported onramp providers.](/connect/pay/onramp-providers). +Apple Pay and Google Pay are supported through the onramp providers depending on region. Coinbase, Stripe, and Transak currently support Apple Pay. Transak supports Google Pay. [Learn more about the supported onramp providers.](/payments/onramp-providers).
diff --git a/apps/portal/src/app/pay/fees/assets/fee-dash.png b/apps/portal/src/app/payments/fees/assets/fee-dash.png similarity index 100% rename from apps/portal/src/app/pay/fees/assets/fee-dash.png rename to apps/portal/src/app/payments/fees/assets/fee-dash.png diff --git a/apps/portal/src/app/pay/fees/page.mdx b/apps/portal/src/app/payments/fees/page.mdx similarity index 100% rename from apps/portal/src/app/pay/fees/page.mdx rename to apps/portal/src/app/payments/fees/page.mdx diff --git a/apps/portal/src/app/pay/get-started/page.mdx b/apps/portal/src/app/payments/get-started/page.mdx similarity index 93% rename from apps/portal/src/app/pay/get-started/page.mdx rename to apps/portal/src/app/payments/get-started/page.mdx index 216aba9b6df..e0fc7b48ffe 100644 --- a/apps/portal/src/app/pay/get-started/page.mdx +++ b/apps/portal/src/app/payments/get-started/page.mdx @@ -23,13 +23,19 @@ export const metadata = createMetadata({ # Get Started -Learn how to integrate Payments into your application for cross-chain payments, bridging, swapping, and fiat onramps. This guide covers the core SDK modules and practical implementation examples. +Learn how to integrate Payments into your application for cross-chain payments, bridging, swapping, and fiat onramps. --- ## Installation + + +Log in to [the thirdweb dashboard](https://thirdweb.com/login) and create a new project. On project creation, you'll be given a **Client ID**. You'll need your Client ID to integrate Payments into your application. + + + - -Log in to [the thirdweb dashboard](https://thirdweb.com/team). Navigate to the **Settings** page and create an API key to get your **Client ID**. You'll need your Client ID to interact with the Payments. - - ```typescript @@ -293,6 +295,6 @@ try { - **[API Reference](https://bridge.thirdweb.com/reference)** - Complete REST API documentation - **[SDK Reference](/typescript/v5/buy/quote)** - TypeScript SDK function reference -- **[Webhooks](/pay/webhooks)** - Set up real-time notifications -- **[Customization Guides](/pay/customization)** - Advanced configuration options +- **[Webhooks](/payments/webhooks)** - Set up real-time notifications +- **[Customization Guides](/payments/customization)** - Advanced configuration options - **[Playground](https://playground.thirdweb.com/connect/pay)** - Interactive testing environment diff --git a/apps/portal/src/app/pay/guides/cross-chain-swapping/page.mdx b/apps/portal/src/app/payments/guides/cross-chain-swapping/page.mdx similarity index 100% rename from apps/portal/src/app/pay/guides/cross-chain-swapping/page.mdx rename to apps/portal/src/app/payments/guides/cross-chain-swapping/page.mdx diff --git a/apps/portal/src/app/pay/guides/nft-checkout/page.mdx b/apps/portal/src/app/payments/guides/nft-checkout/page.mdx similarity index 100% rename from apps/portal/src/app/pay/guides/nft-checkout/page.mdx rename to apps/portal/src/app/payments/guides/nft-checkout/page.mdx diff --git a/apps/portal/src/app/pay/guides/onramp-integration/page.mdx b/apps/portal/src/app/payments/guides/onramp-integration/page.mdx similarity index 95% rename from apps/portal/src/app/pay/guides/onramp-integration/page.mdx rename to apps/portal/src/app/payments/guides/onramp-integration/page.mdx index 7357c80238a..25a3e99a83b 100644 --- a/apps/portal/src/app/pay/guides/onramp-integration/page.mdx +++ b/apps/portal/src/app/payments/guides/onramp-integration/page.mdx @@ -193,7 +193,7 @@ import { Bridge } from "thirdweb"; ## Next Steps -- **[Onramp Providers](/pay/onramp-providers)** - Detailed provider comparison and features -- **[Webhooks](/pay/webhooks)** - Set up real-time onramp status notifications -- **[Testing](/pay/testing-pay)** - Test onramp flows in development mode +- **[Onramp Providers](/payments/onramp-providers)** - Detailed provider comparison and features +- **[Webhooks](/payments/webhooks)** - Set up real-time onramp status notifications +- **[Testing](/payments/testing-pay)** - Test onramp flows in development mode - **[Payments API](https://bridge.thirdweb.com/reference)** - Complete API reference diff --git a/apps/portal/src/app/pay/guides/smart-accounts/page.mdx b/apps/portal/src/app/payments/guides/smart-accounts/page.mdx similarity index 98% rename from apps/portal/src/app/pay/guides/smart-accounts/page.mdx rename to apps/portal/src/app/payments/guides/smart-accounts/page.mdx index a2f8c4d4f10..5ed7848a5a2 100644 --- a/apps/portal/src/app/pay/guides/smart-accounts/page.mdx +++ b/apps/portal/src/app/payments/guides/smart-accounts/page.mdx @@ -151,4 +151,4 @@ for (let i = 0; i < bridgePreparation.steps.length; i++) { - **[EIP7702 Documentation](/connect/account-abstraction/overview)** - Learn more about smart account features - **[Batching Transactions](/typescript/v5/account-abstraction/batching-transactions)** - Explore advanced batching patterns - **[Gas Sponsorship](/connect/account-abstraction/sponsoring-gas)** - Set up custom gas sponsorship rules -- **[Payments API](/pay/webhooks)** - Monitor cross-chain operations with webhooks +- **[Payments API](/payments/webhooks)** - Monitor cross-chain operations with webhooks diff --git a/apps/portal/src/app/pay/layout.tsx b/apps/portal/src/app/payments/layout.tsx similarity index 100% rename from apps/portal/src/app/pay/layout.tsx rename to apps/portal/src/app/payments/layout.tsx diff --git a/apps/portal/src/app/pay/onramp-providers/page.mdx b/apps/portal/src/app/payments/onramp-providers/page.mdx similarity index 92% rename from apps/portal/src/app/pay/onramp-providers/page.mdx rename to apps/portal/src/app/payments/onramp-providers/page.mdx index 016ce59abd5..c04e805fda7 100644 --- a/apps/portal/src/app/pay/onramp-providers/page.mdx +++ b/apps/portal/src/app/payments/onramp-providers/page.mdx @@ -12,7 +12,7 @@ export const metadata = createMetadata({ # Onramp Providers -**Onramp Providers** are services that allow users to buy crypto with fiat. You can set preferred providers for your application by using the [`preferredProvider`](/connect/pay/customization/payembed#preferred-provider) parameter in the `PayEmbed` component. +**Onramp Providers** are services that allow users to buy crypto with fiat. You can set preferred providers for your application by using the [`preferredProvider`](/payments/customization/payembed#preferred-provider) parameter in the `PayEmbed` component. Payments supports the following onramp providers: - **Coinbase** diff --git a/apps/portal/src/app/pay/page.mdx b/apps/portal/src/app/payments/page.mdx similarity index 71% rename from apps/portal/src/app/pay/page.mdx rename to apps/portal/src/app/payments/page.mdx index 18d47f2dac1..7def81411ec 100644 --- a/apps/portal/src/app/pay/page.mdx +++ b/apps/portal/src/app/payments/page.mdx @@ -97,65 +97,6 @@ Payments is supported on select EVM compatible chains. To view the full list, vi | -------- | ----------- | -------- | | **[TypeScript SDK](https://portal.thirdweb.com/typescript/v5/buy/quote)** | Full-featured SDK with quote, prepare, and status functions | Developers building custom applications with complete control | | **[REST API](https://bridge.thirdweb.com/reference)** | Direct API access for any programming language | Backend services, mobile apps, or non-JavaScript environments | -| **[Webhooks](https://portal.thirdweb.com/pay/webhooks)** | Real-time transaction status notifications | Applications requiring instant completion updates | +| **[Webhooks](https://portal.thirdweb.com/payments/webhooks)** | Real-time transaction status notifications | Applications requiring instant completion updates | | **[Playground](https://playground.thirdweb.com/connect/pay)** | Interactive testing environment | Testing and prototyping bridge functionality | -## Quick Start Examples - -### Basic Cross-Chain Purchase -```typescript -import { Bridge, NATIVE_TOKEN_ADDRESS } from "thirdweb"; - -// Get a quote for purchasing ETH on Optimism using ETH on Mainnet -const quote = await Bridge.Buy.quote({ - originChainId: 1, // Ethereum Mainnet - originTokenAddress: NATIVE_TOKEN_ADDRESS, - destinationChainId: 10, // Optimism - destinationTokenAddress: NATIVE_TOKEN_ADDRESS, - amount: toWei("0.01"), - client: thirdwebClient, -}); - -// Prepare finalized transactions -const prepared = await Bridge.Buy.prepare({ - originChainId: 1, - originTokenAddress: NATIVE_TOKEN_ADDRESS, - destinationChainId: 10, - destinationTokenAddress: NATIVE_TOKEN_ADDRESS, - amount: toWei("0.01"), - sender: "0x2a4f24F935Eb178e3e7BA9B53A5Ee6d8407C0709", - receiver: "0x2a4f24F935Eb178e3e7BA9B53A5Ee6d8407C0709", - client: thirdwebClient, -}); -``` - -### Fiat Onramp -```typescript -// Prepare a Stripe onramp to purchase ETH -const onramp = await Bridge.Onramp.prepare({ - client: thirdwebClient, - onramp: "stripe", - chainId: 1, - tokenAddress: NATIVE_TOKEN_ADDRESS, - receiver: "0x2a4f24F935Eb178e3e7BA9B53A5Ee6d8407C0709", - amount: toWei("10"), - country: "US", -}); - -// Redirect user to onramp.link to complete purchase -``` - -### Status Tracking -```typescript -// Check transaction status -const status = await Bridge.status({ - transactionHash: "0x5959b9321ec581640db531b80bac53cbd968f3d34fc6cb1d5f4ea75f26df2ad7", - chainId: 137, - client: thirdwebClient, -}); - -if (status.status === "COMPLETED") { - console.log("Bridge completed!"); - console.log("Final amount:", status.destinationAmount); -} -``` diff --git a/apps/portal/src/app/payments/quick-start/page.mdx b/apps/portal/src/app/payments/quick-start/page.mdx new file mode 100644 index 00000000000..a6ce8058238 --- /dev/null +++ b/apps/portal/src/app/payments/quick-start/page.mdx @@ -0,0 +1,59 @@ +# Quick Start Examples for Payments + +### Basic Cross-Chain Purchase +```typescript +import { Bridge, NATIVE_TOKEN_ADDRESS } from "thirdweb"; + +// Get a quote for purchasing ETH on Optimism using ETH on Mainnet +const quote = await Bridge.Buy.quote({ + originChainId: 1, // Ethereum Mainnet + originTokenAddress: NATIVE_TOKEN_ADDRESS, + destinationChainId: 10, // Optimism + destinationTokenAddress: NATIVE_TOKEN_ADDRESS, + amount: toWei("0.01"), + client: thirdwebClient, +}); + +// Prepare finalized transactions +const prepared = await Bridge.Buy.prepare({ + originChainId: 1, + originTokenAddress: NATIVE_TOKEN_ADDRESS, + destinationChainId: 10, + destinationTokenAddress: NATIVE_TOKEN_ADDRESS, + amount: toWei("0.01"), + sender: "0x2a4f24F935Eb178e3e7BA9B53A5Ee6d8407C0709", + receiver: "0x2a4f24F935Eb178e3e7BA9B53A5Ee6d8407C0709", + client: thirdwebClient, +}); +``` + +### Fiat Onramp +```typescript +// Prepare a Stripe onramp to purchase ETH +const onramp = await Bridge.Onramp.prepare({ + client: thirdwebClient, + onramp: "stripe", + chainId: 1, + tokenAddress: NATIVE_TOKEN_ADDRESS, + receiver: "0x2a4f24F935Eb178e3e7BA9B53A5Ee6d8407C0709", + amount: toWei("10"), + country: "US", +}); + +// Redirect user to onramp.link to complete purchase +``` + +### Status Tracking +```typescript +// Check transaction status +const status = await Bridge.status({ + transactionHash: "0x5959b9321ec581640db531b80bac53cbd968f3d34fc6cb1d5f4ea75f26df2ad7", + chainId: 137, + client: thirdwebClient, +}); + +if (status.status === "COMPLETED") { + console.log("Bridge completed!"); + console.log("Final amount:", status.destinationAmount); +} +``` \ No newline at end of file diff --git a/apps/portal/src/app/payments/sidebar.tsx b/apps/portal/src/app/payments/sidebar.tsx new file mode 100644 index 00000000000..d9261a5fd34 --- /dev/null +++ b/apps/portal/src/app/payments/sidebar.tsx @@ -0,0 +1,132 @@ +import { + AlbumIcon, + ArrowLeftRightIcon, + BracesIcon, + CircleDollarSignIcon, + CodeIcon, + MessageCircleQuestionIcon, + PaletteIcon, + RocketIcon, + TriangleRightIcon, + WalletIcon, + WebhookIcon, + WrenchIcon, +} from "lucide-react"; +import type { SideBar } from "@/components/Layouts/DocLayout"; + +const paySlug = "/payments"; + +export const sidebar: SideBar = { + links: [ + { + href: `${paySlug}`, + icon: , + name: "Overview", + }, + { + href: `${paySlug}/quick-start`, + icon: , + name: "Overview", + }, + { + href: "https://thirdweb.com/routes", + icon: , + name: "Supported Routes", + }, + { + href: `${paySlug}/onramp-providers`, + icon: , + name: "Onramp Providers", + }, + { + href: `${paySlug}/fees`, + icon: , + name: "Service Fees", + }, + { + href: `${paySlug}/get-started`, + icon: , + links: [ + { + href: `${paySlug}/get-started#installation`, + name: "Installation", + }, + { + href: `${paySlug}/get-started#recipes`, + name: "Recipes", + }, + ], + name: "Get Started", + }, + { + icon: , + isCollapsible: true, + links: [ + { + href: `${paySlug}/guides/cross-chain-swapping`, + name: "Cross-Chain Swapping", + }, + { + href: `${paySlug}/guides/smart-accounts`, + name: "Swap with Smart Accounts", + }, + { + href: `${paySlug}/guides/onramp-integration`, + name: "Fiat Onramp", + }, + { + href: `${paySlug}/guides/nft-checkout`, + name: "NFT Checkout", + }, + ], + name: "Tutorials", + }, + { + icon: , + isCollapsible: true, + links: [ + { + href: `${paySlug}/customization/connectbutton`, + name: "ConnectButton", + }, + { + href: `${paySlug}/customization/send-transaction`, + name: "useSendTransaction", + }, + ], + name: "Customization", + }, + { + href: "https://bridge.thirdweb.com/reference", + icon: , + name: "API Reference", + }, + { + href: "/typescript/v5/buy/quote", + icon: , + links: [ + { + href: "/typescript/v5/buy/quote", + name: "TypeScript SDK", + }, + ], + name: "SDK Reference", + }, + { + href: `${paySlug}/webhooks`, + icon: , + name: "Webhooks", + }, + { + href: `${paySlug}/troubleshoot`, + icon: , + name: "Troubleshoot", + }, + { + href: `${paySlug}/faqs`, + icon: , + name: "FAQs", + }, + ], + name: "Payments", +}; diff --git a/apps/portal/src/app/pay/supported-chains/page.mdx b/apps/portal/src/app/payments/supported-chains/page.mdx similarity index 100% rename from apps/portal/src/app/pay/supported-chains/page.mdx rename to apps/portal/src/app/payments/supported-chains/page.mdx diff --git a/apps/portal/src/app/pay/troubleshoot/page.mdx b/apps/portal/src/app/payments/troubleshoot/page.mdx similarity index 100% rename from apps/portal/src/app/pay/troubleshoot/page.mdx rename to apps/portal/src/app/payments/troubleshoot/page.mdx diff --git a/apps/portal/src/app/pay/webhooks/page.mdx b/apps/portal/src/app/payments/webhooks/page.mdx similarity index 100% rename from apps/portal/src/app/pay/webhooks/page.mdx rename to apps/portal/src/app/payments/webhooks/page.mdx diff --git a/apps/portal/src/app/react/v5/sidebar.tsx b/apps/portal/src/app/react/v5/sidebar.tsx index 09860856c87..3402335fbbe 100644 --- a/apps/portal/src/app/react/v5/sidebar.tsx +++ b/apps/portal/src/app/react/v5/sidebar.tsx @@ -59,7 +59,7 @@ export const sidebar: SideBar = { name: "Account Abstraction", }, { - href: `${slug}/pay/fund-wallets`, + href: `${slug}/payments/fund-wallets`, name: "Funding wallets", }, ], @@ -122,7 +122,7 @@ export const sidebar: SideBar = { name: "Sponsored Transactions", }, { - href: `${slug}/pay/transaction`, + href: `${slug}/payments/transaction`, name: "Chain Abstraction", }, ], diff --git a/apps/portal/src/app/connect/account-abstraction/api/page.mdx b/apps/portal/src/app/wallets/account-abstraction/api/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/api/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/api/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/batching-transactions/page.mdx b/apps/portal/src/app/wallets/account-abstraction/batching-transactions/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/batching-transactions/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/batching-transactions/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/erc-20-paymaster/page.mdx b/apps/portal/src/app/wallets/account-abstraction/erc-20-paymaster/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/erc-20-paymaster/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/erc-20-paymaster/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/factories/page.mdx b/apps/portal/src/app/wallets/account-abstraction/factories/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/factories/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/factories/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/faq/page.mdx b/apps/portal/src/app/wallets/account-abstraction/faq/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/faq/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/faq/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/gasless/biconomy/page.mdx b/apps/portal/src/app/wallets/account-abstraction/gasless/biconomy/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/gasless/biconomy/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/gasless/biconomy/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/gasless/engine/page.mdx b/apps/portal/src/app/wallets/account-abstraction/gasless/engine/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/gasless/engine/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/gasless/engine/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/gasless/openzeppelin/page.mdx b/apps/portal/src/app/wallets/account-abstraction/gasless/openzeppelin/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/gasless/openzeppelin/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/gasless/openzeppelin/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/get-started/page.mdx b/apps/portal/src/app/wallets/account-abstraction/get-started/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/get-started/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/get-started/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/guides/react/page.mdx b/apps/portal/src/app/wallets/account-abstraction/guides/react/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/guides/react/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/guides/react/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/guides/typescript/page.mdx b/apps/portal/src/app/wallets/account-abstraction/guides/typescript/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/guides/typescript/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/guides/typescript/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/how-it-works/page.mdx b/apps/portal/src/app/wallets/account-abstraction/how-it-works/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/how-it-works/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/how-it-works/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/images/wallet.png b/apps/portal/src/app/wallets/account-abstraction/images/wallet.png similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/images/wallet.png rename to apps/portal/src/app/wallets/account-abstraction/images/wallet.png diff --git a/apps/portal/src/app/connect/account-abstraction/infrastructure/page.mdx b/apps/portal/src/app/wallets/account-abstraction/infrastructure/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/infrastructure/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/infrastructure/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/overview/page.mdx b/apps/portal/src/app/wallets/account-abstraction/overview/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/overview/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/overview/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/permissions/page.mdx b/apps/portal/src/app/wallets/account-abstraction/permissions/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/permissions/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/permissions/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/sponsorship-rules/page.mdx b/apps/portal/src/app/wallets/account-abstraction/sponsorship-rules/page.mdx similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/sponsorship-rules/page.mdx rename to apps/portal/src/app/wallets/account-abstraction/sponsorship-rules/page.mdx diff --git a/apps/portal/src/app/connect/account-abstraction/sponsorship-rules/sponsorship-rules.png b/apps/portal/src/app/wallets/account-abstraction/sponsorship-rules/sponsorship-rules.png similarity index 100% rename from apps/portal/src/app/connect/account-abstraction/sponsorship-rules/sponsorship-rules.png rename to apps/portal/src/app/wallets/account-abstraction/sponsorship-rules/sponsorship-rules.png diff --git a/apps/portal/src/app/connect/assets/test.jpg b/apps/portal/src/app/wallets/assets/test.jpg similarity index 100% rename from apps/portal/src/app/connect/assets/test.jpg rename to apps/portal/src/app/wallets/assets/test.jpg diff --git a/apps/portal/src/app/connect/auth/assets/auth-api-0.svg b/apps/portal/src/app/wallets/auth/assets/auth-api-0.svg similarity index 100% rename from apps/portal/src/app/connect/auth/assets/auth-api-0.svg rename to apps/portal/src/app/wallets/auth/assets/auth-api-0.svg diff --git a/apps/portal/src/app/connect/auth/assets/auth-api-1.svg b/apps/portal/src/app/wallets/auth/assets/auth-api-1.svg similarity index 100% rename from apps/portal/src/app/connect/auth/assets/auth-api-1.svg rename to apps/portal/src/app/wallets/auth/assets/auth-api-1.svg diff --git a/apps/portal/src/app/connect/auth/assets/auth-api-2.svg b/apps/portal/src/app/wallets/auth/assets/auth-api-2.svg similarity index 100% rename from apps/portal/src/app/connect/auth/assets/auth-api-2.svg rename to apps/portal/src/app/wallets/auth/assets/auth-api-2.svg diff --git a/apps/portal/src/app/connect/auth/assets/auth-api-3.svg b/apps/portal/src/app/wallets/auth/assets/auth-api-3.svg similarity index 100% rename from apps/portal/src/app/connect/auth/assets/auth-api-3.svg rename to apps/portal/src/app/wallets/auth/assets/auth-api-3.svg diff --git a/apps/portal/src/app/connect/auth/assets/auth-api-4.svg b/apps/portal/src/app/wallets/auth/assets/auth-api-4.svg similarity index 100% rename from apps/portal/src/app/connect/auth/assets/auth-api-4.svg rename to apps/portal/src/app/wallets/auth/assets/auth-api-4.svg diff --git a/apps/portal/src/app/connect/auth/assets/auth-diagram.svg b/apps/portal/src/app/wallets/auth/assets/auth-diagram.svg similarity index 100% rename from apps/portal/src/app/connect/auth/assets/auth-diagram.svg rename to apps/portal/src/app/wallets/auth/assets/auth-diagram.svg diff --git a/apps/portal/src/app/connect/auth/assets/firebase-db.png b/apps/portal/src/app/wallets/auth/assets/firebase-db.png similarity index 100% rename from apps/portal/src/app/connect/auth/assets/firebase-db.png rename to apps/portal/src/app/wallets/auth/assets/firebase-db.png diff --git a/apps/portal/src/app/connect/auth/assets/firebase-users.png b/apps/portal/src/app/wallets/auth/assets/firebase-users.png similarity index 100% rename from apps/portal/src/app/connect/auth/assets/firebase-users.png rename to apps/portal/src/app/wallets/auth/assets/firebase-users.png diff --git a/apps/portal/src/app/connect/auth/assets/getting-started-1.png b/apps/portal/src/app/wallets/auth/assets/getting-started-1.png similarity index 100% rename from apps/portal/src/app/connect/auth/assets/getting-started-1.png rename to apps/portal/src/app/wallets/auth/assets/getting-started-1.png diff --git a/apps/portal/src/app/connect/auth/assets/getting-started-2.png b/apps/portal/src/app/wallets/auth/assets/getting-started-2.png similarity index 100% rename from apps/portal/src/app/connect/auth/assets/getting-started-2.png rename to apps/portal/src/app/wallets/auth/assets/getting-started-2.png diff --git a/apps/portal/src/app/connect/auth/assets/getting-started-3.png b/apps/portal/src/app/wallets/auth/assets/getting-started-3.png similarity index 100% rename from apps/portal/src/app/connect/auth/assets/getting-started-3.png rename to apps/portal/src/app/wallets/auth/assets/getting-started-3.png diff --git a/apps/portal/src/app/connect/auth/assets/json-web-tokens-1.png b/apps/portal/src/app/wallets/auth/assets/json-web-tokens-1.png similarity index 100% rename from apps/portal/src/app/connect/auth/assets/json-web-tokens-1.png rename to apps/portal/src/app/wallets/auth/assets/json-web-tokens-1.png diff --git a/apps/portal/src/app/connect/auth/assets/web2auth-diagram.svg b/apps/portal/src/app/wallets/auth/assets/web2auth-diagram.svg similarity index 100% rename from apps/portal/src/app/connect/auth/assets/web2auth-diagram.svg rename to apps/portal/src/app/wallets/auth/assets/web2auth-diagram.svg diff --git a/apps/portal/src/app/connect/auth/assets/web3auth-diagram.svg b/apps/portal/src/app/wallets/auth/assets/web3auth-diagram.svg similarity index 100% rename from apps/portal/src/app/connect/auth/assets/web3auth-diagram.svg rename to apps/portal/src/app/wallets/auth/assets/web3auth-diagram.svg diff --git a/apps/portal/src/app/connect/auth/deploying-to-production/page.mdx b/apps/portal/src/app/wallets/auth/deploying-to-production/page.mdx similarity index 100% rename from apps/portal/src/app/connect/auth/deploying-to-production/page.mdx rename to apps/portal/src/app/wallets/auth/deploying-to-production/page.mdx diff --git a/apps/portal/src/app/connect/auth/frameworks/next/page.mdx b/apps/portal/src/app/wallets/auth/frameworks/next/page.mdx similarity index 100% rename from apps/portal/src/app/connect/auth/frameworks/next/page.mdx rename to apps/portal/src/app/wallets/auth/frameworks/next/page.mdx diff --git a/apps/portal/src/app/connect/auth/frameworks/react-express/page.mdx b/apps/portal/src/app/wallets/auth/frameworks/react-express/page.mdx similarity index 100% rename from apps/portal/src/app/connect/auth/frameworks/react-express/page.mdx rename to apps/portal/src/app/wallets/auth/frameworks/react-express/page.mdx diff --git a/apps/portal/src/app/connect/auth/page.mdx b/apps/portal/src/app/wallets/auth/page.mdx similarity index 98% rename from apps/portal/src/app/connect/auth/page.mdx rename to apps/portal/src/app/wallets/auth/page.mdx index d7fb87b81d9..569c82e614b 100644 --- a/apps/portal/src/app/connect/auth/page.mdx +++ b/apps/portal/src/app/wallets/auth/page.mdx @@ -189,14 +189,14 @@ Auth integrates with a variety of server-side and client-side development framew diff --git a/apps/portal/src/app/connect/blockchain-api/page.mdx b/apps/portal/src/app/wallets/blockchain-api/page.mdx similarity index 100% rename from apps/portal/src/app/connect/blockchain-api/page.mdx rename to apps/portal/src/app/wallets/blockchain-api/page.mdx diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/configuration/page.mdx b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/configuration/page.mdx similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/configuration/page.mdx rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/configuration/page.mdx diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/custom-auth-server/page.mdx b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/custom-auth-server/page.mdx similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/custom-auth-server/page.mdx rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/custom-auth-server/page.mdx diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/custom-jwt-auth-server/page.mdx b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/custom-jwt-auth-server/page.mdx similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/custom-jwt-auth-server/page.mdx rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/custom-jwt-auth-server/page.mdx diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/firebase-auth/page.mdx b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/firebase-auth/page.mdx similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/firebase-auth/page.mdx rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/firebase-auth/page.mdx diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/images/configuration-view.png b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/configuration-view.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/images/configuration-view.png rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/configuration-view.png diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/images/custom-json-firebase.png b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/custom-json-firebase.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/images/custom-json-firebase.png rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/custom-json-firebase.png diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/images/customauth.png b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/customauth.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/images/customauth.png rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/customauth.png diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/images/customauthdb.png b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/customauthdb.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/images/customauthdb.png rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/customauthdb.png diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/images/customauthdb2.png b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/customauthdb2.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/images/customauthdb2.png rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/customauthdb2.png diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/images/ew-configuration-opt.png b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/ew-configuration-opt.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/images/ew-configuration-opt.png rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/ew-configuration-opt.png diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/images/ew-configuration.png b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/ew-configuration.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/images/ew-configuration.png rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/ew-configuration.png diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/images/ew-create-key.png b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/ew-create-key.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/images/ew-create-key.png rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/ew-create-key.png diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/images/ew-custom-auth-config.png b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/ew-custom-auth-config.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/images/ew-custom-auth-config.png rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/ew-custom-auth-config.png diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/images/ew-custom-auth-flow.png b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/ew-custom-auth-flow.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/images/ew-custom-auth-flow.png rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/ew-custom-auth-flow.png diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/images/jwk-creator-tool.png b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/jwk-creator-tool.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/images/jwk-creator-tool.png rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/jwk-creator-tool.png diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/images/speedracer.png b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/speedracer.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/images/speedracer.png rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/images/speedracer.png diff --git a/apps/portal/src/app/connect/in-app-wallet/custom-auth/overview/page.mdx b/apps/portal/src/app/wallets/in-app-wallet/custom-auth/overview/page.mdx similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/custom-auth/overview/page.mdx rename to apps/portal/src/app/wallets/in-app-wallet/custom-auth/overview/page.mdx diff --git a/apps/portal/src/app/connect/in-app-wallet/guides/build-your-own-ui/page.mdx b/apps/portal/src/app/wallets/in-app-wallet/guides/build-your-own-ui/page.mdx similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/guides/build-your-own-ui/page.mdx rename to apps/portal/src/app/wallets/in-app-wallet/guides/build-your-own-ui/page.mdx diff --git a/apps/portal/src/app/connect/in-app-wallet/guides/connect-users/connect-wallet-hero.webp b/apps/portal/src/app/wallets/in-app-wallet/guides/connect-users/connect-wallet-hero.webp similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/guides/connect-users/connect-wallet-hero.webp rename to apps/portal/src/app/wallets/in-app-wallet/guides/connect-users/connect-wallet-hero.webp diff --git a/apps/portal/src/app/connect/in-app-wallet/guides/connect-users/page.mdx b/apps/portal/src/app/wallets/in-app-wallet/guides/connect-users/page.mdx similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/guides/connect-users/page.mdx rename to apps/portal/src/app/wallets/in-app-wallet/guides/connect-users/page.mdx diff --git a/apps/portal/src/app/connect/in-app-wallet/guides/enable-gasless/connect-wallet-embedded-compact.png b/apps/portal/src/app/wallets/in-app-wallet/guides/enable-gasless/connect-wallet-embedded-compact.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/guides/enable-gasless/connect-wallet-embedded-compact.png rename to apps/portal/src/app/wallets/in-app-wallet/guides/enable-gasless/connect-wallet-embedded-compact.png diff --git a/apps/portal/src/app/connect/in-app-wallet/guides/enable-gasless/connect-wallet-smart-dropdown.png b/apps/portal/src/app/wallets/in-app-wallet/guides/enable-gasless/connect-wallet-smart-dropdown.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/guides/enable-gasless/connect-wallet-smart-dropdown.png rename to apps/portal/src/app/wallets/in-app-wallet/guides/enable-gasless/connect-wallet-smart-dropdown.png diff --git a/apps/portal/src/app/connect/in-app-wallet/guides/enable-gasless/page.mdx b/apps/portal/src/app/wallets/in-app-wallet/guides/enable-gasless/page.mdx similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/guides/enable-gasless/page.mdx rename to apps/portal/src/app/wallets/in-app-wallet/guides/enable-gasless/page.mdx diff --git a/apps/portal/src/app/connect/in-app-wallet/guides/enable-gasless/smart-wallet.svg b/apps/portal/src/app/wallets/in-app-wallet/guides/enable-gasless/smart-wallet.svg similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/guides/enable-gasless/smart-wallet.svg rename to apps/portal/src/app/wallets/in-app-wallet/guides/enable-gasless/smart-wallet.svg diff --git a/apps/portal/src/app/connect/in-app-wallet/guides/interact-blockchain/page.mdx b/apps/portal/src/app/wallets/in-app-wallet/guides/interact-blockchain/page.mdx similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/guides/interact-blockchain/page.mdx rename to apps/portal/src/app/wallets/in-app-wallet/guides/interact-blockchain/page.mdx diff --git a/apps/portal/src/app/connect/in-app-wallet/guides/interact-with-accounts/page.mdx b/apps/portal/src/app/wallets/in-app-wallet/guides/interact-with-accounts/page.mdx similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/guides/interact-with-accounts/page.mdx rename to apps/portal/src/app/wallets/in-app-wallet/guides/interact-with-accounts/page.mdx diff --git a/apps/portal/src/app/connect/in-app-wallet/images/embedded-wallet.svg b/apps/portal/src/app/wallets/in-app-wallet/images/embedded-wallet.svg similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/images/embedded-wallet.svg rename to apps/portal/src/app/wallets/in-app-wallet/images/embedded-wallet.svg diff --git a/apps/portal/src/app/connect/in-app-wallet/images/unity.webp b/apps/portal/src/app/wallets/in-app-wallet/images/unity.webp similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/images/unity.webp rename to apps/portal/src/app/wallets/in-app-wallet/images/unity.webp diff --git a/apps/portal/src/app/connect/in-app-wallet/images/wallet.png b/apps/portal/src/app/wallets/in-app-wallet/images/wallet.png similarity index 100% rename from apps/portal/src/app/connect/in-app-wallet/images/wallet.png rename to apps/portal/src/app/wallets/in-app-wallet/images/wallet.png diff --git a/apps/portal/src/app/connect/layout.tsx b/apps/portal/src/app/wallets/layout.tsx similarity index 90% rename from apps/portal/src/app/connect/layout.tsx rename to apps/portal/src/app/wallets/layout.tsx index 8e890659697..2b59c7a1d48 100644 --- a/apps/portal/src/app/connect/layout.tsx +++ b/apps/portal/src/app/wallets/layout.tsx @@ -10,7 +10,7 @@ export default async function Layout(props: { children: React.ReactNode }) { sidebarHeader={

Wallets

- + {/* */}
} > diff --git a/apps/portal/src/app/connect/page.mdx b/apps/portal/src/app/wallets/page.mdx similarity index 98% rename from apps/portal/src/app/connect/page.mdx rename to apps/portal/src/app/wallets/page.mdx index 0e55ff0554a..56d9a5dcead 100644 --- a/apps/portal/src/app/connect/page.mdx +++ b/apps/portal/src/app/wallets/page.mdx @@ -85,7 +85,7 @@ Get started with Wallets in your preferred language. - **Sponsor transactions** to seamlessly onboard non-native or new crypto users with [Account Abstraction](https://portal.thirdweb.com/connect/account-abstraction/overview). - **Perform wallet actions** like connecting and disconnecting wallets, viewing balance, displaying ENS names, and execute transactions with our [performant, reliable and type safe API](https://portal.thirdweb.com/connect/blockchain-api) - **Easily integrate with thirdweb's contracts** to enable users to interact with your application. -- **Facilitate payments** by letting user top up their wallets or do onchain purchases with a credit card with [Pay](https://portal.thirdweb.com/connect/pay/overview). +- **Facilitate payments** by letting user top up their wallets or do onchain purchases with a credit card with [Pay](https://portal.thirdweb.com/payments).
diff --git a/apps/portal/src/app/connect/quickstart/page.mdx b/apps/portal/src/app/wallets/quickstart/page.mdx similarity index 100% rename from apps/portal/src/app/connect/quickstart/page.mdx rename to apps/portal/src/app/wallets/quickstart/page.mdx diff --git a/apps/portal/src/app/connect/sidebar.tsx b/apps/portal/src/app/wallets/sidebar.tsx similarity index 96% rename from apps/portal/src/app/connect/sidebar.tsx rename to apps/portal/src/app/wallets/sidebar.tsx index f5411ef7ab2..9372845f092 100644 --- a/apps/portal/src/app/connect/sidebar.tsx +++ b/apps/portal/src/app/wallets/sidebar.tsx @@ -4,22 +4,18 @@ import { DotNetIcon, ReactIcon, TypeScriptIcon, UnityIcon } from "@/icons"; import { UnrealEngineIcon } from "../../icons/sdks/UnrealEngineIcon"; // TODO: move the following two slugs to walletSlug with updated docs -const inAppSlug = "/connect/in-app-wallet"; +const inAppSlug = "/wallets/in-app-wallet"; -const walletSlug = "/connect/wallet"; -const aAslug = "/connect/account-abstraction"; -const authSlug = "/connect/auth"; +const walletSlug = "/wallets/wallet"; +const aAslug = "/wallets/account-abstraction"; +const authSlug = "/wallets/auth"; export const sidebar: SideBar = { links: [ { separator: true }, { - href: "/connect", - name: "Introduction", - }, - { - href: "/connect/why-thirdweb", - name: "Why thirdweb?", + href: "/wallets", + name: "Overview", }, { href: "https://playground.thirdweb.com/", @@ -325,5 +321,5 @@ export const sidebar: SideBar = { name: "API References", }, ], - name: "Connect", + name: "Wallets", }; diff --git a/apps/portal/src/app/connect/sign-in/assets/ConnectEmbed-embedded.png b/apps/portal/src/app/wallets/sign-in/assets/ConnectEmbed-embedded.png similarity index 100% rename from apps/portal/src/app/connect/sign-in/assets/ConnectEmbed-embedded.png rename to apps/portal/src/app/wallets/sign-in/assets/ConnectEmbed-embedded.png diff --git a/apps/portal/src/app/connect/sign-in/assets/Wide-dark.png b/apps/portal/src/app/wallets/sign-in/assets/Wide-dark.png similarity index 100% rename from apps/portal/src/app/connect/sign-in/assets/Wide-dark.png rename to apps/portal/src/app/wallets/sign-in/assets/Wide-dark.png diff --git a/apps/portal/src/app/connect/sign-in/assets/compact-dark-social.png b/apps/portal/src/app/wallets/sign-in/assets/compact-dark-social.png similarity index 100% rename from apps/portal/src/app/connect/sign-in/assets/compact-dark-social.png rename to apps/portal/src/app/wallets/sign-in/assets/compact-dark-social.png diff --git a/apps/portal/src/app/connect/sign-in/assets/compact-dark.png b/apps/portal/src/app/wallets/sign-in/assets/compact-dark.png similarity index 100% rename from apps/portal/src/app/connect/sign-in/assets/compact-dark.png rename to apps/portal/src/app/wallets/sign-in/assets/compact-dark.png diff --git a/apps/portal/src/app/connect/sign-in/assets/connect-image-new.svg b/apps/portal/src/app/wallets/sign-in/assets/connect-image-new.svg similarity index 100% rename from apps/portal/src/app/connect/sign-in/assets/connect-image-new.svg rename to apps/portal/src/app/wallets/sign-in/assets/connect-image-new.svg diff --git a/apps/portal/src/app/connect/sign-in/assets/connect-playground.png b/apps/portal/src/app/wallets/sign-in/assets/connect-playground.png similarity index 100% rename from apps/portal/src/app/connect/sign-in/assets/connect-playground.png rename to apps/portal/src/app/wallets/sign-in/assets/connect-playground.png diff --git a/apps/portal/src/app/connect/sign-in/assets/connect-wallet-modal.png b/apps/portal/src/app/wallets/sign-in/assets/connect-wallet-modal.png similarity index 100% rename from apps/portal/src/app/connect/sign-in/assets/connect-wallet-modal.png rename to apps/portal/src/app/wallets/sign-in/assets/connect-wallet-modal.png diff --git a/apps/portal/src/app/connect/sign-in/assets/connect.png b/apps/portal/src/app/wallets/sign-in/assets/connect.png similarity index 100% rename from apps/portal/src/app/connect/sign-in/assets/connect.png rename to apps/portal/src/app/wallets/sign-in/assets/connect.png diff --git a/apps/portal/src/app/connect/sign-in/assets/custom-modals.png b/apps/portal/src/app/wallets/sign-in/assets/custom-modals.png similarity index 100% rename from apps/portal/src/app/connect/sign-in/assets/custom-modals.png rename to apps/portal/src/app/wallets/sign-in/assets/custom-modals.png diff --git a/apps/portal/src/app/connect/sign-in/assets/custom-welcome.png b/apps/portal/src/app/wallets/sign-in/assets/custom-welcome.png similarity index 100% rename from apps/portal/src/app/connect/sign-in/assets/custom-welcome.png rename to apps/portal/src/app/wallets/sign-in/assets/custom-welcome.png diff --git a/apps/portal/src/app/connect/sign-in/assets/narrow-wide.png b/apps/portal/src/app/wallets/sign-in/assets/narrow-wide.png similarity index 100% rename from apps/portal/src/app/connect/sign-in/assets/narrow-wide.png rename to apps/portal/src/app/wallets/sign-in/assets/narrow-wide.png diff --git a/apps/portal/src/app/connect/sign-in/customization/page.mdx b/apps/portal/src/app/wallets/sign-in/customization/page.mdx similarity index 100% rename from apps/portal/src/app/connect/sign-in/customization/page.mdx rename to apps/portal/src/app/wallets/sign-in/customization/page.mdx diff --git a/apps/portal/src/app/connect/wallet/ecosystem/assets/add-partner.png b/apps/portal/src/app/wallets/wallet/ecosystem/assets/add-partner.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/assets/add-partner.png rename to apps/portal/src/app/wallets/wallet/ecosystem/assets/add-partner.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/assets/create-ecosystem-wallet.png b/apps/portal/src/app/wallets/wallet/ecosystem/assets/create-ecosystem-wallet.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/assets/create-ecosystem-wallet.png rename to apps/portal/src/app/wallets/wallet/ecosystem/assets/create-ecosystem-wallet.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/assets/ecosystem-info.png b/apps/portal/src/app/wallets/wallet/ecosystem/assets/ecosystem-info.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/assets/ecosystem-info.png rename to apps/portal/src/app/wallets/wallet/ecosystem/assets/ecosystem-info.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/assets/ecosystem-wallet-permissions.png b/apps/portal/src/app/wallets/wallet/ecosystem/assets/ecosystem-wallet-permissions.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/assets/ecosystem-wallet-permissions.png rename to apps/portal/src/app/wallets/wallet/ecosystem/assets/ecosystem-wallet-permissions.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/assets/ecosystem-wallet.png b/apps/portal/src/app/wallets/wallet/ecosystem/assets/ecosystem-wallet.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/assets/ecosystem-wallet.png rename to apps/portal/src/app/wallets/wallet/ecosystem/assets/ecosystem-wallet.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/assets/full-login-system.png b/apps/portal/src/app/wallets/wallet/ecosystem/assets/full-login-system.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/assets/full-login-system.png rename to apps/portal/src/app/wallets/wallet/ecosystem/assets/full-login-system.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/assets/single-login-option.png b/apps/portal/src/app/wallets/wallet/ecosystem/assets/single-login-option.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/assets/single-login-option.png rename to apps/portal/src/app/wallets/wallet/ecosystem/assets/single-login-option.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/assets/wallet-explorer.png b/apps/portal/src/app/wallets/wallet/ecosystem/assets/wallet-explorer.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/assets/wallet-explorer.png rename to apps/portal/src/app/wallets/wallet/ecosystem/assets/wallet-explorer.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/assets/walletconnect-create.png b/apps/portal/src/app/wallets/wallet/ecosystem/assets/walletconnect-create.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/assets/walletconnect-create.png rename to apps/portal/src/app/wallets/wallet/ecosystem/assets/walletconnect-create.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/assets/walletconnect-guide.png b/apps/portal/src/app/wallets/wallet/ecosystem/assets/walletconnect-guide.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/assets/walletconnect-guide.png rename to apps/portal/src/app/wallets/wallet/ecosystem/assets/walletconnect-guide.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/assets/walletconnect-url.png b/apps/portal/src/app/wallets/wallet/ecosystem/assets/walletconnect-url.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/assets/walletconnect-url.png rename to apps/portal/src/app/wallets/wallet/ecosystem/assets/walletconnect-url.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/assets/walletconnect-wallet.png b/apps/portal/src/app/wallets/wallet/ecosystem/assets/walletconnect-wallet.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/assets/walletconnect-wallet.png rename to apps/portal/src/app/wallets/wallet/ecosystem/assets/walletconnect-wallet.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/assets/xai-connect-wallet-explorer.png b/apps/portal/src/app/wallets/wallet/ecosystem/assets/xai-connect-wallet-explorer.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/assets/xai-connect-wallet-explorer.png rename to apps/portal/src/app/wallets/wallet/ecosystem/assets/xai-connect-wallet-explorer.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/faq/page.mdx b/apps/portal/src/app/wallets/wallet/ecosystem/faq/page.mdx similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/faq/page.mdx rename to apps/portal/src/app/wallets/wallet/ecosystem/faq/page.mdx diff --git a/apps/portal/src/app/connect/wallet/ecosystem/integrating-partners/page.mdx b/apps/portal/src/app/wallets/wallet/ecosystem/integrating-partners/page.mdx similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/integrating-partners/page.mdx rename to apps/portal/src/app/wallets/wallet/ecosystem/integrating-partners/page.mdx diff --git a/apps/portal/src/app/connect/wallet/ecosystem/permissions/page.mdx b/apps/portal/src/app/wallets/wallet/ecosystem/permissions/page.mdx similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/permissions/page.mdx rename to apps/portal/src/app/wallets/wallet/ecosystem/permissions/page.mdx diff --git a/apps/portal/src/app/connect/wallet/ecosystem/portal/page.mdx b/apps/portal/src/app/wallets/wallet/ecosystem/portal/page.mdx similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/portal/page.mdx rename to apps/portal/src/app/wallets/wallet/ecosystem/portal/page.mdx diff --git a/apps/portal/src/app/connect/wallet/ecosystem/register-walletconnect/page.mdx b/apps/portal/src/app/wallets/wallet/ecosystem/register-walletconnect/page.mdx similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/register-walletconnect/page.mdx rename to apps/portal/src/app/wallets/wallet/ecosystem/register-walletconnect/page.mdx diff --git a/apps/portal/src/app/connect/wallet/ecosystem/set-up/assets/add-partner.png b/apps/portal/src/app/wallets/wallet/ecosystem/set-up/assets/add-partner.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/set-up/assets/add-partner.png rename to apps/portal/src/app/wallets/wallet/ecosystem/set-up/assets/add-partner.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/set-up/assets/ecosystem-info.png b/apps/portal/src/app/wallets/wallet/ecosystem/set-up/assets/ecosystem-info.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/set-up/assets/ecosystem-info.png rename to apps/portal/src/app/wallets/wallet/ecosystem/set-up/assets/ecosystem-info.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/set-up/assets/ecosystem-wallet-permissions.png b/apps/portal/src/app/wallets/wallet/ecosystem/set-up/assets/ecosystem-wallet-permissions.png similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/set-up/assets/ecosystem-wallet-permissions.png rename to apps/portal/src/app/wallets/wallet/ecosystem/set-up/assets/ecosystem-wallet-permissions.png diff --git a/apps/portal/src/app/connect/wallet/ecosystem/set-up/page.mdx b/apps/portal/src/app/wallets/wallet/ecosystem/set-up/page.mdx similarity index 100% rename from apps/portal/src/app/connect/wallet/ecosystem/set-up/page.mdx rename to apps/portal/src/app/wallets/wallet/ecosystem/set-up/page.mdx diff --git a/apps/portal/src/app/connect/wallet/faq/page.mdx b/apps/portal/src/app/wallets/wallet/faq/page.mdx similarity index 100% rename from apps/portal/src/app/connect/wallet/faq/page.mdx rename to apps/portal/src/app/wallets/wallet/faq/page.mdx diff --git a/apps/portal/src/app/connect/wallet/get-started/page.mdx b/apps/portal/src/app/wallets/wallet/get-started/page.mdx similarity index 99% rename from apps/portal/src/app/connect/wallet/get-started/page.mdx rename to apps/portal/src/app/wallets/wallet/get-started/page.mdx index d2ce951a6f6..c89b111ee52 100644 --- a/apps/portal/src/app/connect/wallet/get-started/page.mdx +++ b/apps/portal/src/app/wallets/wallet/get-started/page.mdx @@ -581,7 +581,7 @@ To connect with other auth strategies, use external wallets, or sponsor gas for - [Sponsor Gas](/connect/account-abstraction/overview) - [Implement Sign In with Ethereum](/connect/auth) - [External Wallets](/connect/wallet/sign-in-methods/external-wallets) -- [Onramp and Payments](/connect/pay/overview) +- [Onramp and Payments](/payments) ## Explore Full SDK Documentation diff --git a/apps/portal/src/app/connect/wallet/get-users/page.mdx b/apps/portal/src/app/wallets/wallet/get-users/page.mdx similarity index 100% rename from apps/portal/src/app/connect/wallet/get-users/page.mdx rename to apps/portal/src/app/wallets/wallet/get-users/page.mdx diff --git a/apps/portal/src/app/connect/wallet/in-app-wallet/faq/page.mdx b/apps/portal/src/app/wallets/wallet/in-app-wallet/faq/page.mdx similarity index 100% rename from apps/portal/src/app/connect/wallet/in-app-wallet/faq/page.mdx rename to apps/portal/src/app/wallets/wallet/in-app-wallet/faq/page.mdx diff --git a/apps/portal/src/app/connect/wallet/migrate-to-thirdweb/page.mdx b/apps/portal/src/app/wallets/wallet/migrate-to-thirdweb/page.mdx similarity index 100% rename from apps/portal/src/app/connect/wallet/migrate-to-thirdweb/page.mdx rename to apps/portal/src/app/wallets/wallet/migrate-to-thirdweb/page.mdx diff --git a/apps/portal/src/app/connect/wallet/overview/assets/custom-modals.png b/apps/portal/src/app/wallets/wallet/overview/assets/custom-modals.png similarity index 100% rename from apps/portal/src/app/connect/wallet/overview/assets/custom-modals.png rename to apps/portal/src/app/wallets/wallet/overview/assets/custom-modals.png diff --git a/apps/portal/src/app/connect/wallet/overview/assets/ecosystem-wallet.png b/apps/portal/src/app/wallets/wallet/overview/assets/ecosystem-wallet.png similarity index 100% rename from apps/portal/src/app/connect/wallet/overview/assets/ecosystem-wallet.png rename to apps/portal/src/app/wallets/wallet/overview/assets/ecosystem-wallet.png diff --git a/apps/portal/src/app/connect/wallet/overview/page.mdx b/apps/portal/src/app/wallets/wallet/overview/page.mdx similarity index 99% rename from apps/portal/src/app/connect/wallet/overview/page.mdx rename to apps/portal/src/app/wallets/wallet/overview/page.mdx index 29d5aabcabd..3ff5fb7929c 100644 --- a/apps/portal/src/app/connect/wallet/overview/page.mdx +++ b/apps/portal/src/app/wallets/wallet/overview/page.mdx @@ -94,7 +94,7 @@ A flexible sign-up flow that accommodates different preferences is critical when diff --git a/apps/portal/src/app/connect/wallet/pregenerate-wallets/page.mdx b/apps/portal/src/app/wallets/wallet/pregenerate-wallets/page.mdx similarity index 100% rename from apps/portal/src/app/connect/wallet/pregenerate-wallets/page.mdx rename to apps/portal/src/app/wallets/wallet/pregenerate-wallets/page.mdx diff --git a/apps/portal/src/app/connect/wallet/security/assets/app-scoped.svg b/apps/portal/src/app/wallets/wallet/security/assets/app-scoped.svg similarity index 100% rename from apps/portal/src/app/connect/wallet/security/assets/app-scoped.svg rename to apps/portal/src/app/wallets/wallet/security/assets/app-scoped.svg diff --git a/apps/portal/src/app/connect/wallet/security/assets/ecosystem-scoped.svg b/apps/portal/src/app/wallets/wallet/security/assets/ecosystem-scoped.svg similarity index 100% rename from apps/portal/src/app/connect/wallet/security/assets/ecosystem-scoped.svg rename to apps/portal/src/app/wallets/wallet/security/assets/ecosystem-scoped.svg diff --git a/apps/portal/src/app/connect/wallet/security/assets/embed-creation.svg b/apps/portal/src/app/wallets/wallet/security/assets/embed-creation.svg similarity index 100% rename from apps/portal/src/app/connect/wallet/security/assets/embed-creation.svg rename to apps/portal/src/app/wallets/wallet/security/assets/embed-creation.svg diff --git a/apps/portal/src/app/connect/wallet/security/assets/enclave-wallet-creation.png b/apps/portal/src/app/wallets/wallet/security/assets/enclave-wallet-creation.png similarity index 100% rename from apps/portal/src/app/connect/wallet/security/assets/enclave-wallet-creation.png rename to apps/portal/src/app/wallets/wallet/security/assets/enclave-wallet-creation.png diff --git a/apps/portal/src/app/connect/wallet/security/legacy/page.mdx b/apps/portal/src/app/wallets/wallet/security/legacy/page.mdx similarity index 100% rename from apps/portal/src/app/connect/wallet/security/legacy/page.mdx rename to apps/portal/src/app/wallets/wallet/security/legacy/page.mdx diff --git a/apps/portal/src/app/connect/wallet/security/page.mdx b/apps/portal/src/app/wallets/wallet/security/page.mdx similarity index 100% rename from apps/portal/src/app/connect/wallet/security/page.mdx rename to apps/portal/src/app/wallets/wallet/security/page.mdx diff --git a/apps/portal/src/app/connect/wallet/sign-in-methods/assets/social-config.png b/apps/portal/src/app/wallets/wallet/sign-in-methods/assets/social-config.png similarity index 100% rename from apps/portal/src/app/connect/wallet/sign-in-methods/assets/social-config.png rename to apps/portal/src/app/wallets/wallet/sign-in-methods/assets/social-config.png diff --git a/apps/portal/src/app/connect/wallet/sign-in-methods/configure/page.mdx b/apps/portal/src/app/wallets/wallet/sign-in-methods/configure/page.mdx similarity index 96% rename from apps/portal/src/app/connect/wallet/sign-in-methods/configure/page.mdx rename to apps/portal/src/app/wallets/wallet/sign-in-methods/configure/page.mdx index 1e18ef7b408..dc97af7ceef 100644 --- a/apps/portal/src/app/connect/wallet/sign-in-methods/configure/page.mdx +++ b/apps/portal/src/app/wallets/wallet/sign-in-methods/configure/page.mdx @@ -64,7 +64,7 @@ If you already have an auth system, you can use thirdweb to attach wallets to yo void }) { - const [input, setInput] = useState(""); - const debouncedInput = useDebounce(input, 500); - - const [selectedTags, setSelectedTags] = useState<{ - [T in Tag]?: boolean; - }>({}); - - const [enabledTags, setEnabledTags] = useState([]); - const scrollableElement = useRef(null); - - const searchQuery = useQuery({ - enabled: debouncedInput.length > 0, - placeholderData: keepPreviousData, - queryFn: async () => { - const res = await fetch(`/api/search?q=${encodeURI(debouncedInput)}`); - const { results } = (await res.json()) as SearchResult; - - const tagsSet: Set = new Set([]); - - if (results.length > 0) { - tagsSet.add("All"); - setSelectedTags({ - All: true, - }); - } - - for (const r of results) { - const tags = getTagsFromHref(r.pageHref); - if (tags) { - for (const tag of tags) { - tagsSet.add(tag); - } - } - } - - const tags = Array.from(tagsSet); - setEnabledTags(tags); - - scrollableElement.current?.scrollTo({ - top: 0, - }); - - return results; - }, - queryKey: ["search-index", debouncedInput], - }); - - const data = searchQuery.data; - const noResults = - debouncedInput && searchQuery.isFetched && data && data.length === 0; - - const handleLinkClick = () => { - props.closeModal(); - }; - - return ( -
- {/* Search */} -
- {searchQuery.isFetching ? ( - - ) : ( - - )} - - { - setInput(e.target.value); - }} - onKeyDown={(e) => { - if (e.key === "Enter" && e.target instanceof HTMLInputElement) { - e.target.blur(); - } - }} - placeholder="Search docs" - /> -
- - -
- {/* tags */} - {enabledTags && enabledTags.length > 0 && ( -
- {enabledTags.map((tag) => ( - - ))} -
- )} - - {/* links */} - {data && data.length > 0 && ( -
- {data.map((result) => { - const tags = getTagsFromHref(result.pageHref); - - if ( - !selectedTags.All && - tags && - !tags.find((t) => selectedTags[t] === true) - ) - return null; - - if (!tags && !selectedTags.All) { - return null; - } - - const sections = result.sections - ?.filter((d) => d.content.length > 50) - .slice(0, 2); - - return ( -
- - - {sections && sections.length > 0 && ( -
- {sections.map((sectionData) => { - return ( - - ); - })} -
- )} -
- ); - })} -
- )} - - {/* No Results */} - {noResults && ( -
-

No Results

-
- )} - - {!debouncedInput && (!data || data.length === 0) && ( - - )} -
-
-
- ); + const [input, setInput] = useState(""); + const debouncedInput = useDebounce(input, 500); + + const [selectedTags, setSelectedTags] = useState<{ + [T in Tag]?: boolean; + }>({}); + + const [enabledTags, setEnabledTags] = useState([]); + const scrollableElement = useRef(null); + + const searchQuery = useQuery({ + enabled: debouncedInput.length > 0, + placeholderData: keepPreviousData, + queryFn: async () => { + const res = await fetch(`/api/search?q=${encodeURI(debouncedInput)}`); + const { results } = (await res.json()) as SearchResult; + + const tagsSet: Set = new Set([]); + + if (results.length > 0) { + tagsSet.add("All"); + setSelectedTags({ + All: true, + }); + } + + for (const r of results) { + const tags = getTagsFromHref(r.pageHref); + if (tags) { + for (const tag of tags) { + tagsSet.add(tag); + } + } + } + + const tags = Array.from(tagsSet); + setEnabledTags(tags); + + scrollableElement.current?.scrollTo({ + top: 0, + }); + + return results; + }, + queryKey: ["search-index", debouncedInput], + }); + + const data = searchQuery.data; + const noResults = + debouncedInput && searchQuery.isFetched && data && data.length === 0; + + const handleLinkClick = () => { + props.closeModal(); + }; + + return ( +
+ {/* Search */} +
+ {searchQuery.isFetching ? ( + + ) : ( + + )} + + { + setInput(e.target.value); + }} + onKeyDown={(e) => { + if (e.key === "Enter" && e.target instanceof HTMLInputElement) { + e.target.blur(); + } + }} + placeholder="Search docs" + /> +
+ + +
+ {/* tags */} + {enabledTags && enabledTags.length > 0 && ( +
+ {enabledTags.map((tag) => ( + + ))} +
+ )} + + {/* links */} + {data && data.length > 0 && ( +
+ {data.map((result) => { + const tags = getTagsFromHref(result.pageHref); + + if ( + !selectedTags.All && + tags && + !tags.find((t) => selectedTags[t] === true) + ) + return null; + + if (!tags && !selectedTags.All) { + return null; + } + + const sections = result.sections + ?.filter((d) => d.content.length > 50) + .slice(0, 2); + + return ( +
+ + + {sections && sections.length > 0 && ( +
+ {sections.map((sectionData) => { + return ( + + ); + })} +
+ )} +
+ ); + })} +
+ )} + + {/* No Results */} + {noResults && ( +
+

No Results

+
+ )} + + {!debouncedInput && (!data || data.length === 0) && ( + + )} +
+
+
+ ); } function NoSearchLinks(props: { onClick?: () => void }) { - return ( -
- {suggestedLinks.map((link) => { - return ( - - ); - })} -
- ); + return ( +
+ {suggestedLinks.map((link) => { + return ( + + ); + })} +
+ ); } function useDebounce(value: string, delay: number) { - const [debouncedValue, setDebouncedValue] = useState(value); + const [debouncedValue, setDebouncedValue] = useState(value); - useEffect(() => { - const handler = setTimeout(() => { - setDebouncedValue(value); - }, delay); + useEffect(() => { + const handler = setTimeout(() => { + setDebouncedValue(value); + }, delay); - return () => { - clearTimeout(handler); - }; - }, [value, delay]); + return () => { + clearTimeout(handler); + }; + }, [value, delay]); - return debouncedValue; + return debouncedValue; } const queryClient = new QueryClient(); export function DocSearch(props: { variant: "icon" | "search" }) { - const [open, setOpen] = useState(false); - - const forDesktop = props.variant === "search"; - useEffect(() => { - if (!forDesktop) { - return; - } - // when cmd+k on MacOS or ctrl+k on Windows is pressed, open the search modal - const handleKeyDown = (e: KeyboardEvent) => { - if (e.key === "k" && (e.metaKey || e.ctrlKey)) { - e.preventDefault(); - setOpen((v) => !v); - } - }; - - document.body.addEventListener("keydown", handleKeyDown); - return () => { - document.body.removeEventListener("keydown", handleKeyDown); - }; - }, [forDesktop]); - - // when escape is pressed, close the search modal - useEffect(() => { - if (!forDesktop) { - return; - } - const handleKeyDown = (e: KeyboardEvent) => { - if (e.key === "Escape") { - setOpen(false); - } - }; - - document.body.addEventListener("keydown", handleKeyDown); - return () => { - document.body.removeEventListener("keydown", handleKeyDown); - }; - }, [forDesktop]); - - return ( - - - {/* Desktop */} - - {forDesktop && ( - - - - )} - - {!forDesktop && ( - - - - )} - - - { - setOpen(false); - }} - /> - - - - ); + const [open, setOpen] = useState(false); + + const forDesktop = props.variant === "search"; + useEffect(() => { + if (!forDesktop) { + return; + } + // when cmd+k on MacOS or ctrl+k on Windows is pressed, open the search modal + const handleKeyDown = (e: KeyboardEvent) => { + if (e.key === "k" && (e.metaKey || e.ctrlKey)) { + e.preventDefault(); + setOpen((v) => !v); + } + }; + + document.body.addEventListener("keydown", handleKeyDown); + return () => { + document.body.removeEventListener("keydown", handleKeyDown); + }; + }, [forDesktop]); + + // when escape is pressed, close the search modal + useEffect(() => { + if (!forDesktop) { + return; + } + const handleKeyDown = (e: KeyboardEvent) => { + if (e.key === "Escape") { + setOpen(false); + } + }; + + document.body.addEventListener("keydown", handleKeyDown); + return () => { + document.body.removeEventListener("keydown", handleKeyDown); + }; + }, [forDesktop]); + + return ( + + + {/* Desktop */} + + {forDesktop && ( + + + + )} + + {!forDesktop && ( + + + + )} + + + { + setOpen(false); + }} + /> + + + + ); } function getTagsFromHref(href: string): Tag[] | undefined { - if (href.includes("/react-native/v0")) { - if (href.includes("/references")) { - return ["Reference", "React Native"]; - } - return ["React Native"]; - } - if (href.includes("/react/v4")) { - if (href.includes("/references")) { - return ["Reference", "React"]; - } - return ["React"]; - } - if (href.includes("/typescript/v4")) { - if (href.includes("/references")) { - return ["Reference", "TypeScript"]; - } - return ["TypeScript"]; - } - if (href.includes("/wallet-sdk/v2")) { - if (href.includes("/references")) { - return ["Reference", "Wallet SDK"]; - } - return ["Wallet SDK"]; - } - if (href.includes("/unity")) { - return ["Unity"]; - } - if (href.includes("/typescript/v5")) { - if (href.includes("/references")) { - return ["Reference", "TypeScript"]; - } - return ["TypeScript"]; - } - if (href.includes("/react/v5")) { - return ["React"]; - } - if (href.includes("/connect")) { - return ["Connect"]; - } - if (href.includes("/engine")) { - return ["Engine"]; - } - if (href.includes("/infrastructure")) { - return ["Infra"]; - } - if (href.includes("/solidity")) { - return ["Solidity"]; - } - if (href.includes("/contracts")) { - return ["Contracts"]; - } - if (href.includes("/payments")) { - return ["Payments"]; - } - if (href.includes("/glossary")) { - return ["Glossary"]; - } + if (href.includes("/react-native/v0")) { + if (href.includes("/references")) { + return ["Reference", "React Native"]; + } + return ["React Native"]; + } + if (href.includes("/react/v4")) { + if (href.includes("/references")) { + return ["Reference", "React"]; + } + return ["React"]; + } + if (href.includes("/typescript/v4")) { + if (href.includes("/references")) { + return ["Reference", "TypeScript"]; + } + return ["TypeScript"]; + } + if (href.includes("/wallet-sdk/v2")) { + if (href.includes("/references")) { + return ["Reference", "Wallet SDK"]; + } + return ["Wallet SDK"]; + } + if (href.includes("/unity")) { + return ["Unity"]; + } + if (href.includes("/typescript/v5")) { + if (href.includes("/references")) { + return ["Reference", "TypeScript"]; + } + return ["TypeScript"]; + } + if (href.includes("/react/v5")) { + return ["React"]; + } + if (href.includes("/wallets")) { + return ["Connect"]; + } + if (href.includes("/engine")) { + return ["Engine"]; + } + if (href.includes("/infrastructure")) { + return ["Infra"]; + } + if (href.includes("/solidity")) { + return ["Solidity"]; + } + if (href.includes("/contracts")) { + return ["Contracts"]; + } + if (href.includes("/payments")) { + return ["Payments"]; + } + if (href.includes("/glossary")) { + return ["Glossary"]; + } } function SearchResultItem(props: { - href: string; - title: string; - content?: string; - tags?: Tag[]; - type: "page" | "section"; - onClick?: () => void; + href: string; + title: string; + content?: string; + tags?: Tag[]; + type: "page" | "section"; + onClick?: () => void; }) { - return ( - -
- {props.title && ( -
-
- {props.type === "page" && ( - - )} - - {props.title} -
- - {props.tags && ( -
- {props.tags.map((tag) => { - return ( - - {tag} - - ); - })} -
- )} -
- )} - {props.content &&
{props.content}
} -
- - ); + return ( + +
+ {props.title && ( +
+
+ {props.type === "page" && ( + + )} + + {props.title} +
+ + {props.tags && ( +
+ {props.tags.map((tag) => { + return ( + + {tag} + + ); + })} +
+ )} +
+ )} + {props.content &&
{props.content}
} +
+ + ); }