From b8fcfbe55b6c72769d1176a34daddf6ca8bcb654 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 10 Jul 2025 19:41:42 +0000 Subject: [PATCH 1/2] Changes from background composer bc-5dce9707-61da-45ff-b76e-9f17ae114c39 --- CHANGES_SUMMARY.md | 32 +++++++++ .../(sidebar)/transactions/layout.tsx | 2 +- apps/playground-web/src/app/navLinks.ts | 10 +-- .../_hooks/useEngineTxStatus.ts | 0 .../app/{engine => transactions}/actions.ts | 0 .../airdrop/_components/airdrop-card.tsx | 0 .../airdrop/_components/airdrop-code.tsx | 0 .../airdrop/_components/airdrop-preview.tsx | 0 .../airdrop/constants.ts | 0 .../{engine => transactions}/airdrop/page.tsx | 2 +- .../minting/_components/mint-code.tsx | 0 .../minting/_components/mint-preview.tsx | 0 .../minting/constants.ts | 0 .../{engine => transactions}/minting/page.tsx | 2 +- .../src/app/{engine => transactions}/types.ts | 0 .../webhooks/_components/webhooks-preview.tsx | 0 .../webhooks/constants.ts | 0 .../webhooks/page.tsx | 4 +- apps/portal/redirects.mjs | 67 ++++++++++------- apps/portal/src/app/Header.tsx | 2 +- apps/portal/src/app/dotnet/sidebar.tsx | 2 +- apps/portal/src/app/page.tsx | 2 +- .../v2/assets/add-alert.png | Bin .../v2/assets/add-custom-chain-1.png | Bin .../v2/assets/add-custom-chain-2.png | Bin .../v2/assets/add-custom-chain-3.png | Bin .../v2/assets/add-custom-chain-4.png | Bin .../v2/assets/airdrop-nfts-1.png | Bin .../v2/assets/airdrop-nfts-2.png | Bin .../v2/assets/airdrop-nfts-3.png | Bin .../v2/assets/airdrop-nfts-4.png | Bin .../v2/assets/airdrop-overview.png | Bin .../v2/assets/authorize-api.png | Bin .../v2/assets/authorize-bearer.png | Bin .../v2/assets/cancel-transaction-button.png | Bin .../v2/assets/engine-docs-diagram-updated.svg | 0 .../v2/assets/engine-out-of-gas.png | Bin .../v2/assets/engine-overview.png | Bin .../v2/assets/engine-webhooks.webp | Bin .../v2/assets/nft-checkout-1.png | Bin .../v2/assets/nft-checkout-2.png | Bin .../v2/assets/nft-checkout-3.png | Bin .../v2/assets/nft-checkout-overview.png | Bin .../v2/assets/recent-alerts.png | Bin .../v2/assets/relayer-1.png | Bin .../v2/assets/tx-lifecycle.webp | Bin .../v2/configure-wallets/aws-kms/page.mdx | 0 .../configure-wallets/circle-wallet/page.mdx | 0 .../v2/configure-wallets/gcp-kms/page.mdx | 0 .../v2/configure-wallets/page.mdx | 0 .../configure-wallets/server-wallet/page.mdx | 0 .../wallet-credentials/page.mdx | 0 .../{engine => transactions}/v2/faq/page.mdx | 0 .../v2/features/access-tokens/page.mdx | 0 .../v2/features/account-abstraction/page.mdx | 0 .../v2/features/admins/page.mdx | 0 .../v2/features/alert-notifications/page.mdx | 0 .../v2/features/backend-wallets/page.mdx | 0 .../features/contract-subscriptions/page.mdx | 0 .../v2/features/contracts/page.mdx | 0 .../v2/features/custom-chains/page.mdx | 0 .../v2/features/gasless-transactions/page.mdx | 0 .../features/keypair-authentication/page.mdx | 0 .../page.mdx | 0 .../v2/features/relayers/page.mdx | 0 .../v2/features/security/page.mdx | 0 .../v2/features/transactions/page.mdx | 0 .../v2/features/webhooks/page.mdx | 0 .../v2/get-started/page.mdx | 0 .../v2/guides/airdrop-nfts/page.mdx | 0 .../v2/guides/nft-checkout/page.mdx | 0 .../{engine => transactions}/v2/layout.tsx | 4 +- .../app/{engine => transactions}/v2/page.mdx | 0 .../v2/production-checklist/page.mdx | 0 .../v2/references/typescript/page.mdx | 0 .../v2/security/page.mdx | 0 .../v2/self-host/page.mdx | 0 .../{engine => transactions}/v2/sidebar.tsx | 68 ++++++++++-------- .../v2/troubleshooting/page.mdx | 0 .../v3/assets/create-vault.png | Bin .../v3/assets/send-transaction.png | Bin .../configure-wallets/server-wallets/page.mdx | 0 .../{engine => transactions}/v3/faq/page.mdx | 0 .../v3/get-started/page.mdx | 0 .../v3/guides/session-keys/page.mdx | 0 .../{engine => transactions}/v3/layout.tsx | 0 .../v3/migrate/page.mdx | 0 .../app/{engine => transactions}/v3/page.mdx | 0 .../{engine => transactions}/v3/sidebar.tsx | 18 ++--- .../v3/troubleshoot/page.mdx | 0 .../v3/typescript-sdk/page.mdx | 0 .../unreal-engine/blueprints/engine/page.mdx | 4 +- .../app/unreal-engine/blueprints/sidebar.ts | 4 +- .../src/components/others/DocSearch.tsx | 7 +- .../others/EngineVersionSelector.tsx | 10 +-- .../useSendAndConfirmTransaction.ts | 2 +- .../hooks/transaction/useSendTransaction.tsx | 2 +- .../react/web/ui/TransactionButton/index.tsx | 2 +- .../actions/send-and-confirm-transaction.ts | 2 +- .../transaction/actions/send-transaction.ts | 2 +- 100 files changed, 153 insertions(+), 97 deletions(-) create mode 100644 CHANGES_SUMMARY.md rename apps/playground-web/src/app/{engine => transactions}/_hooks/useEngineTxStatus.ts (100%) rename apps/playground-web/src/app/{engine => transactions}/actions.ts (100%) rename apps/playground-web/src/app/{engine => transactions}/airdrop/_components/airdrop-card.tsx (100%) rename apps/playground-web/src/app/{engine => transactions}/airdrop/_components/airdrop-code.tsx (100%) rename apps/playground-web/src/app/{engine => transactions}/airdrop/_components/airdrop-preview.tsx (100%) rename apps/playground-web/src/app/{engine => transactions}/airdrop/constants.ts (100%) rename apps/playground-web/src/app/{engine => transactions}/airdrop/page.tsx (89%) rename apps/playground-web/src/app/{engine => transactions}/minting/_components/mint-code.tsx (100%) rename apps/playground-web/src/app/{engine => transactions}/minting/_components/mint-preview.tsx (100%) rename apps/playground-web/src/app/{engine => transactions}/minting/constants.ts (100%) rename apps/playground-web/src/app/{engine => transactions}/minting/page.tsx (90%) rename apps/playground-web/src/app/{engine => transactions}/types.ts (100%) rename apps/playground-web/src/app/{engine => transactions}/webhooks/_components/webhooks-preview.tsx (100%) rename apps/playground-web/src/app/{engine => transactions}/webhooks/constants.ts (100%) rename apps/playground-web/src/app/{engine => transactions}/webhooks/page.tsx (72%) rename apps/portal/src/app/{engine => transactions}/v2/assets/add-alert.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/add-custom-chain-1.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/add-custom-chain-2.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/add-custom-chain-3.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/add-custom-chain-4.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/airdrop-nfts-1.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/airdrop-nfts-2.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/airdrop-nfts-3.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/airdrop-nfts-4.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/airdrop-overview.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/authorize-api.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/authorize-bearer.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/cancel-transaction-button.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/engine-docs-diagram-updated.svg (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/engine-out-of-gas.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/engine-overview.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/engine-webhooks.webp (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/nft-checkout-1.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/nft-checkout-2.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/nft-checkout-3.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/nft-checkout-overview.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/recent-alerts.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/relayer-1.png (100%) rename apps/portal/src/app/{engine => transactions}/v2/assets/tx-lifecycle.webp (100%) rename apps/portal/src/app/{engine => transactions}/v2/configure-wallets/aws-kms/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/configure-wallets/circle-wallet/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/configure-wallets/gcp-kms/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/configure-wallets/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/configure-wallets/server-wallet/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/configure-wallets/wallet-credentials/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/faq/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/access-tokens/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/account-abstraction/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/admins/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/alert-notifications/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/backend-wallets/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/contract-subscriptions/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/contracts/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/custom-chains/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/gasless-transactions/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/keypair-authentication/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/preventing-duplicate-transactions/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/relayers/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/security/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/transactions/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/features/webhooks/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/get-started/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/guides/airdrop-nfts/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/guides/nft-checkout/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/layout.tsx (94%) rename apps/portal/src/app/{engine => transactions}/v2/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/production-checklist/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/references/typescript/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/security/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/self-host/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v2/sidebar.tsx (55%) rename apps/portal/src/app/{engine => transactions}/v2/troubleshooting/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v3/assets/create-vault.png (100%) rename apps/portal/src/app/{engine => transactions}/v3/assets/send-transaction.png (100%) rename apps/portal/src/app/{engine => transactions}/v3/configure-wallets/server-wallets/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v3/faq/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v3/get-started/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v3/guides/session-keys/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v3/layout.tsx (100%) rename apps/portal/src/app/{engine => transactions}/v3/migrate/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v3/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v3/sidebar.tsx (77%) rename apps/portal/src/app/{engine => transactions}/v3/troubleshoot/page.mdx (100%) rename apps/portal/src/app/{engine => transactions}/v3/typescript-sdk/page.mdx (100%) diff --git a/CHANGES_SUMMARY.md b/CHANGES_SUMMARY.md new file mode 100644 index 00000000000..456990affec --- /dev/null +++ b/CHANGES_SUMMARY.md @@ -0,0 +1,32 @@ +# Summary of Changes Made + +## Directory Structure Changes +1. Moved /apps/portal/src/app/engine → /apps/portal/src/app/transactions +2. Moved /apps/playground-web/src/app/engine → /apps/playground-web/src/app/transactions + +## Portal Changes +1. Updated navigation in Header.tsx: /engine → /transactions +2. Updated sidebar files (v2 and v3) to use /transactions paths +3. Updated layout files to show 'Transactions' instead of 'Engine' +4. Updated EngineVersionSelector component to use transaction links +5. Updated main page and DocSearch component references +6. Updated Unreal Engine references to use /transactions + +## Redirect Configuration +1. Added engineToTransactionsRedirects section with comprehensive redirects +2. Updated infrastructureRedirects to use /transactions paths +3. Updated otherRedirects to use /transactions paths +4. Added redirect rules at highest priority for proper URL handling + +## SDK Documentation Updates +1. Updated documentation links in TypeScript SDK files +2. Updated React hook documentation links +3. Updated playground links in portal sidebars + +## Files Modified: +- Portal: Header.tsx, sidebars, layouts, page.tsx, DocSearch.tsx, redirects.mjs +- Playground: navLinks.ts, page components, webhooks documentation link +- SDK: transaction action files, React hooks +- Unreal Engine: sidebar and page updates + +All /engine routes now redirect to /transactions equivalents while maintaining backward compatibility. diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/layout.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/layout.tsx index 1f0d5294b76..cccbb73956c 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/layout.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/layout.tsx @@ -53,7 +53,7 @@ function TransactionsLayout(props: { - + diff --git a/apps/playground-web/src/app/navLinks.ts b/apps/playground-web/src/app/navLinks.ts index 29a6be8169a..bc06a26ad45 100644 --- a/apps/playground-web/src/app/navLinks.ts +++ b/apps/playground-web/src/app/navLinks.ts @@ -112,20 +112,20 @@ const universalBridgeSidebarLinks: SidebarLink = { name: "Universal Bridge", }; -const engineSidebarLinks: SidebarLink = { +const transactionsSidebarLinks: SidebarLink = { expanded: false, isCollapsible: false, links: [ { - href: "/engine/airdrop", + href: "/transactions/airdrop", name: "Airdrop", }, { - href: "/engine/minting", + href: "/transactions/minting", name: "Mint NFTs", }, { - href: "/engine/webhooks", + href: "/transactions/webhooks", name: "Webhooks", }, ], @@ -150,7 +150,7 @@ export function getSidebarLinks() { const sidebarLinks: SidebarLink[] = [ ...staticSidebarLinks, universalBridgeSidebarLinks, - engineSidebarLinks, + transactionsSidebarLinks, { expanded: false, isCollapsible: false, diff --git a/apps/playground-web/src/app/engine/_hooks/useEngineTxStatus.ts b/apps/playground-web/src/app/transactions/_hooks/useEngineTxStatus.ts similarity index 100% rename from apps/playground-web/src/app/engine/_hooks/useEngineTxStatus.ts rename to apps/playground-web/src/app/transactions/_hooks/useEngineTxStatus.ts diff --git a/apps/playground-web/src/app/engine/actions.ts b/apps/playground-web/src/app/transactions/actions.ts similarity index 100% rename from apps/playground-web/src/app/engine/actions.ts rename to apps/playground-web/src/app/transactions/actions.ts diff --git a/apps/playground-web/src/app/engine/airdrop/_components/airdrop-card.tsx b/apps/playground-web/src/app/transactions/airdrop/_components/airdrop-card.tsx similarity index 100% rename from apps/playground-web/src/app/engine/airdrop/_components/airdrop-card.tsx rename to apps/playground-web/src/app/transactions/airdrop/_components/airdrop-card.tsx diff --git a/apps/playground-web/src/app/engine/airdrop/_components/airdrop-code.tsx b/apps/playground-web/src/app/transactions/airdrop/_components/airdrop-code.tsx similarity index 100% rename from apps/playground-web/src/app/engine/airdrop/_components/airdrop-code.tsx rename to apps/playground-web/src/app/transactions/airdrop/_components/airdrop-code.tsx diff --git a/apps/playground-web/src/app/engine/airdrop/_components/airdrop-preview.tsx b/apps/playground-web/src/app/transactions/airdrop/_components/airdrop-preview.tsx similarity index 100% rename from apps/playground-web/src/app/engine/airdrop/_components/airdrop-preview.tsx rename to apps/playground-web/src/app/transactions/airdrop/_components/airdrop-preview.tsx diff --git a/apps/playground-web/src/app/engine/airdrop/constants.ts b/apps/playground-web/src/app/transactions/airdrop/constants.ts similarity index 100% rename from apps/playground-web/src/app/engine/airdrop/constants.ts rename to apps/playground-web/src/app/transactions/airdrop/constants.ts diff --git a/apps/playground-web/src/app/engine/airdrop/page.tsx b/apps/playground-web/src/app/transactions/airdrop/page.tsx similarity index 89% rename from apps/playground-web/src/app/engine/airdrop/page.tsx rename to apps/playground-web/src/app/transactions/airdrop/page.tsx index ef676f8c77b..dea3bbbff8f 100644 --- a/apps/playground-web/src/app/engine/airdrop/page.tsx +++ b/apps/playground-web/src/app/transactions/airdrop/page.tsx @@ -1,4 +1,4 @@ -import { EngineAirdropPreview } from "@/app/engine/airdrop/_components/airdrop-preview"; +import { EngineAirdropPreview } from "@/app/transactions/airdrop/_components/airdrop-preview"; import ThirdwebProvider from "@/components/thirdweb-provider"; import { PageLayout } from "../../../components/blocks/APIHeader"; import { AirdropCode } from "./_components/airdrop-code"; diff --git a/apps/playground-web/src/app/engine/minting/_components/mint-code.tsx b/apps/playground-web/src/app/transactions/minting/_components/mint-code.tsx similarity index 100% rename from apps/playground-web/src/app/engine/minting/_components/mint-code.tsx rename to apps/playground-web/src/app/transactions/minting/_components/mint-code.tsx diff --git a/apps/playground-web/src/app/engine/minting/_components/mint-preview.tsx b/apps/playground-web/src/app/transactions/minting/_components/mint-preview.tsx similarity index 100% rename from apps/playground-web/src/app/engine/minting/_components/mint-preview.tsx rename to apps/playground-web/src/app/transactions/minting/_components/mint-preview.tsx diff --git a/apps/playground-web/src/app/engine/minting/constants.ts b/apps/playground-web/src/app/transactions/minting/constants.ts similarity index 100% rename from apps/playground-web/src/app/engine/minting/constants.ts rename to apps/playground-web/src/app/transactions/minting/constants.ts diff --git a/apps/playground-web/src/app/engine/minting/page.tsx b/apps/playground-web/src/app/transactions/minting/page.tsx similarity index 90% rename from apps/playground-web/src/app/engine/minting/page.tsx rename to apps/playground-web/src/app/transactions/minting/page.tsx index e3a4e6db846..468b0e9b2ba 100644 --- a/apps/playground-web/src/app/engine/minting/page.tsx +++ b/apps/playground-web/src/app/transactions/minting/page.tsx @@ -1,4 +1,4 @@ -import { EngineMintPreview } from "@/app/engine/minting/_components/mint-preview"; +import { EngineMintPreview } from "@/app/transactions/minting/_components/mint-preview"; import ThirdwebProvider from "@/components/thirdweb-provider"; import { PageLayout } from "../../../components/blocks/APIHeader"; import { MintCode } from "./_components/mint-code"; diff --git a/apps/playground-web/src/app/engine/types.ts b/apps/playground-web/src/app/transactions/types.ts similarity index 100% rename from apps/playground-web/src/app/engine/types.ts rename to apps/playground-web/src/app/transactions/types.ts diff --git a/apps/playground-web/src/app/engine/webhooks/_components/webhooks-preview.tsx b/apps/playground-web/src/app/transactions/webhooks/_components/webhooks-preview.tsx similarity index 100% rename from apps/playground-web/src/app/engine/webhooks/_components/webhooks-preview.tsx rename to apps/playground-web/src/app/transactions/webhooks/_components/webhooks-preview.tsx diff --git a/apps/playground-web/src/app/engine/webhooks/constants.ts b/apps/playground-web/src/app/transactions/webhooks/constants.ts similarity index 100% rename from apps/playground-web/src/app/engine/webhooks/constants.ts rename to apps/playground-web/src/app/transactions/webhooks/constants.ts diff --git a/apps/playground-web/src/app/engine/webhooks/page.tsx b/apps/playground-web/src/app/transactions/webhooks/page.tsx similarity index 72% rename from apps/playground-web/src/app/engine/webhooks/page.tsx rename to apps/playground-web/src/app/transactions/webhooks/page.tsx index 3fd85879759..48c4dfd7f9a 100644 --- a/apps/playground-web/src/app/engine/webhooks/page.tsx +++ b/apps/playground-web/src/app/transactions/webhooks/page.tsx @@ -1,4 +1,4 @@ -import { EngineWebhooksPreview } from "@/app/engine/webhooks/_components/webhooks-preview"; +import { EngineWebhooksPreview } from "@/app/transactions/webhooks/_components/webhooks-preview"; import ThirdwebProvider from "@/components/thirdweb-provider"; import { PageLayout } from "../../../components/blocks/APIHeader"; @@ -12,7 +12,7 @@ export default function Page() { transaction or backend wallet events. } - docsLink="https://portal.thirdweb.com/engine/features/webhooks?utm_source=playground" + docsLink="https://portal.thirdweb.com/transactions/features/webhooks?utm_source=playground" title="Webhooks" > diff --git a/apps/portal/redirects.mjs b/apps/portal/redirects.mjs index be3d0064344..8df16c079a0 100644 --- a/apps/portal/redirects.mjs +++ b/apps/portal/redirects.mjs @@ -830,35 +830,47 @@ const contractRedirects = { "/sdk/how-it-works": "/contracts", }; +const engineToTransactionsRedirects = { + "/engine": "/transactions/v3", + "/engine/v2": "/transactions/v2", + "/engine/v3": "/transactions/v3", + "/engine/:path*": "/transactions/:path*", +}; + const infrastructureRedirects = { - "/engine": "/engine/v3", - "/engine/features/permissions": "/engine/features/admins", - "/guides/engine/relayer": "/engine/features/relayer", + "/engine/features/permissions": "/transactions/features/admins", + "/guides/engine/relayer": "/transactions/features/relayer", //engine top-level - "/infrastructure/engine": "/engine", - "/infrastructure/engine/faq": "/engine/faq", + "/infrastructure/engine": "/transactions", + "/infrastructure/engine/faq": "/transactions/faq", "/infrastructure/engine/features/backend-wallets": - "/engine/features/backend-wallets", - "/infrastructure/engine/features/contracts": "/engine/features/contracts", + "/transactions/features/backend-wallets", + "/infrastructure/engine/features/contracts": + "/transactions/features/contracts", "/infrastructure/engine/features/gasless-transactions": - "/engine/features/gasless-transactions", - "/infrastructure/engine/features/permissions": "/engine/features/permissions", - "/infrastructure/engine/features/relayers": "/engine/features/relayers", + "/transactions/features/gasless-transactions", + "/infrastructure/engine/features/permissions": + "/transactions/features/permissions", + "/infrastructure/engine/features/relayers": "/transactions/features/relayers", "/infrastructure/engine/features/smart-wallets": - "/engine/features/smart-wallets", - "/infrastructure/engine/features/webhooks": "/engine/features/webhooks", - "/infrastructure/engine/get-started": "/engine/get-started", - "/infrastructure/engine/guides/airdrop-nfts": "/engine/guides/airdrop-nfts", - "/infrastructure/engine/guides/nft-checkout": "/engine/guides/nft-checkout", - "/infrastructure/engine/guides/smart-wallets": "/engine/guides/smart-wallets", - "/infrastructure/engine/overview": "/engine", - "/infrastructure/engine/production-checklist": "/engine/production-checklist", + "/transactions/features/smart-wallets", + "/infrastructure/engine/features/webhooks": "/transactions/features/webhooks", + "/infrastructure/engine/get-started": "/transactions/get-started", + "/infrastructure/engine/guides/airdrop-nfts": + "/transactions/guides/airdrop-nfts", + "/infrastructure/engine/guides/nft-checkout": + "/transactions/guides/nft-checkout", + "/infrastructure/engine/guides/smart-wallets": + "/transactions/guides/smart-wallets", + "/infrastructure/engine/overview": "/transactions", + "/infrastructure/engine/production-checklist": + "/transactions/production-checklist", "/infrastructure/engine/references/api-reference": - "/engine/references/api-reference", + "/transactions/references/api-reference", "/infrastructure/engine/references/typescript": - "/engine/references/typescript", - "/infrastructure/engine/self-host": "/engine/self-host", - "/infrastucture/engine/security": "/engine/security", + "/transactions/references/typescript", + "/infrastructure/engine/self-host": "/transactions/self-host", + "/infrastucture/engine/security": "/transactions/security", //rpc-edge "/rpc-edge": "/infrastructure/rpc-edge/overview", "/rpc-edge/faqs": "/infrastructure/rpc-edge/overview", @@ -949,12 +961,13 @@ const otherRedirects = { "/contracts/token": "/contracts/explore/pre-built-contracts/token", "/contracts/token-drop": "/contracts/explore/pre-built-contracts/token-drop", "/contracts/vote": "/contracts/explore/pre-built-contracts/vote", - "/engine/features/smart-wallets": "/engine/features/account-abstraction", + "/transactions/features/smart-wallets": + "/transactions/features/account-abstraction", "/extensions/:path*": "/contracts/build/extensions", "/gaming": "/", "/gaming-kit/:path*": "/unity", "/gamingkit/:path*": "/unity", - "/go": "/engine/overview", + "/go": "/transactions/overview", "/guides": "https://blog.thirdweb.com/guides", "/guides/bundle-collection": "https://blog.thirdweb.com/tag/edition", "/guides/bundle-drop": "https://blog.thirdweb.com/tag/edition-drop", @@ -989,7 +1002,7 @@ const otherRedirects = { "/pre-built-contracts/:path*": "/contracts", "/pre-built-contracts/solana/:match*": "https://blog.thirdweb.com/discontinuing-solana-support/", - "/python": "/engine/overview", + "/python": "/transactions/overview", "/react-native/v0/wallets/embedded-wallet": "/react-native/v0/wallets/in-app-wallet", // in-app wallet @@ -1024,7 +1037,7 @@ const otherRedirects = { "/wallets/embedded-wallet/:path*": "/connect/embedded-wallet/:path*", // account abstraction rename "/wallets/smart-wallet/:path*": "/connect/account-abstraction/:path*", - "/web3-api/:path*": "/infrastructure/engine/overview", + "/web3-api/:path*": "/transactions/overview", }; const v5RestructuredRedirects = { @@ -1076,6 +1089,8 @@ const payRedirects = { */ export const redirects = async () => { return [ + // Engine to Transactions redirects (highest priority) + ...createRedirects(engineToTransactionsRedirects), // old portal redirects ...createRedirects(reactRedirects), ...createRedirects(solidityRedirects), diff --git a/apps/portal/src/app/Header.tsx b/apps/portal/src/app/Header.tsx index 86d36a3df9b..12f6615582d 100644 --- a/apps/portal/src/app/Header.tsx +++ b/apps/portal/src/app/Header.tsx @@ -40,7 +40,7 @@ const links = [ name: "Payments", }, { - href: "/engine", + href: "/transactions", name: "Transactions", }, { diff --git a/apps/portal/src/app/dotnet/sidebar.tsx b/apps/portal/src/app/dotnet/sidebar.tsx index 6725ad5e394..d7b002f6900 100644 --- a/apps/portal/src/app/dotnet/sidebar.tsx +++ b/apps/portal/src/app/dotnet/sidebar.tsx @@ -23,7 +23,7 @@ const walletProviders: SidebarLink = (() => { name: "Private Key Wallet", }, { - href: `${parentSlug}/engine-wallet`, + href: `${parentSlug}/transactions-wallet`, name: "Engine Wallet", }, ], diff --git a/apps/portal/src/app/page.tsx b/apps/portal/src/app/page.tsx index 0d03b246ce2..d7596c7cf97 100644 --- a/apps/portal/src/app/page.tsx +++ b/apps/portal/src/app/page.tsx @@ -171,7 +171,7 @@ function LearningResourcesSection() { /> diff --git a/apps/portal/src/app/engine/v2/assets/add-alert.png b/apps/portal/src/app/transactions/v2/assets/add-alert.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/add-alert.png rename to apps/portal/src/app/transactions/v2/assets/add-alert.png diff --git a/apps/portal/src/app/engine/v2/assets/add-custom-chain-1.png b/apps/portal/src/app/transactions/v2/assets/add-custom-chain-1.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/add-custom-chain-1.png rename to apps/portal/src/app/transactions/v2/assets/add-custom-chain-1.png diff --git a/apps/portal/src/app/engine/v2/assets/add-custom-chain-2.png b/apps/portal/src/app/transactions/v2/assets/add-custom-chain-2.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/add-custom-chain-2.png rename to apps/portal/src/app/transactions/v2/assets/add-custom-chain-2.png diff --git a/apps/portal/src/app/engine/v2/assets/add-custom-chain-3.png b/apps/portal/src/app/transactions/v2/assets/add-custom-chain-3.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/add-custom-chain-3.png rename to apps/portal/src/app/transactions/v2/assets/add-custom-chain-3.png diff --git a/apps/portal/src/app/engine/v2/assets/add-custom-chain-4.png b/apps/portal/src/app/transactions/v2/assets/add-custom-chain-4.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/add-custom-chain-4.png rename to apps/portal/src/app/transactions/v2/assets/add-custom-chain-4.png diff --git a/apps/portal/src/app/engine/v2/assets/airdrop-nfts-1.png b/apps/portal/src/app/transactions/v2/assets/airdrop-nfts-1.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/airdrop-nfts-1.png rename to apps/portal/src/app/transactions/v2/assets/airdrop-nfts-1.png diff --git a/apps/portal/src/app/engine/v2/assets/airdrop-nfts-2.png b/apps/portal/src/app/transactions/v2/assets/airdrop-nfts-2.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/airdrop-nfts-2.png rename to apps/portal/src/app/transactions/v2/assets/airdrop-nfts-2.png diff --git a/apps/portal/src/app/engine/v2/assets/airdrop-nfts-3.png b/apps/portal/src/app/transactions/v2/assets/airdrop-nfts-3.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/airdrop-nfts-3.png rename to apps/portal/src/app/transactions/v2/assets/airdrop-nfts-3.png diff --git a/apps/portal/src/app/engine/v2/assets/airdrop-nfts-4.png b/apps/portal/src/app/transactions/v2/assets/airdrop-nfts-4.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/airdrop-nfts-4.png rename to apps/portal/src/app/transactions/v2/assets/airdrop-nfts-4.png diff --git a/apps/portal/src/app/engine/v2/assets/airdrop-overview.png b/apps/portal/src/app/transactions/v2/assets/airdrop-overview.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/airdrop-overview.png rename to apps/portal/src/app/transactions/v2/assets/airdrop-overview.png diff --git a/apps/portal/src/app/engine/v2/assets/authorize-api.png b/apps/portal/src/app/transactions/v2/assets/authorize-api.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/authorize-api.png rename to apps/portal/src/app/transactions/v2/assets/authorize-api.png diff --git a/apps/portal/src/app/engine/v2/assets/authorize-bearer.png b/apps/portal/src/app/transactions/v2/assets/authorize-bearer.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/authorize-bearer.png rename to apps/portal/src/app/transactions/v2/assets/authorize-bearer.png diff --git a/apps/portal/src/app/engine/v2/assets/cancel-transaction-button.png b/apps/portal/src/app/transactions/v2/assets/cancel-transaction-button.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/cancel-transaction-button.png rename to apps/portal/src/app/transactions/v2/assets/cancel-transaction-button.png diff --git a/apps/portal/src/app/engine/v2/assets/engine-docs-diagram-updated.svg b/apps/portal/src/app/transactions/v2/assets/engine-docs-diagram-updated.svg similarity index 100% rename from apps/portal/src/app/engine/v2/assets/engine-docs-diagram-updated.svg rename to apps/portal/src/app/transactions/v2/assets/engine-docs-diagram-updated.svg diff --git a/apps/portal/src/app/engine/v2/assets/engine-out-of-gas.png b/apps/portal/src/app/transactions/v2/assets/engine-out-of-gas.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/engine-out-of-gas.png rename to apps/portal/src/app/transactions/v2/assets/engine-out-of-gas.png diff --git a/apps/portal/src/app/engine/v2/assets/engine-overview.png b/apps/portal/src/app/transactions/v2/assets/engine-overview.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/engine-overview.png rename to apps/portal/src/app/transactions/v2/assets/engine-overview.png diff --git a/apps/portal/src/app/engine/v2/assets/engine-webhooks.webp b/apps/portal/src/app/transactions/v2/assets/engine-webhooks.webp similarity index 100% rename from apps/portal/src/app/engine/v2/assets/engine-webhooks.webp rename to apps/portal/src/app/transactions/v2/assets/engine-webhooks.webp diff --git a/apps/portal/src/app/engine/v2/assets/nft-checkout-1.png b/apps/portal/src/app/transactions/v2/assets/nft-checkout-1.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/nft-checkout-1.png rename to apps/portal/src/app/transactions/v2/assets/nft-checkout-1.png diff --git a/apps/portal/src/app/engine/v2/assets/nft-checkout-2.png b/apps/portal/src/app/transactions/v2/assets/nft-checkout-2.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/nft-checkout-2.png rename to apps/portal/src/app/transactions/v2/assets/nft-checkout-2.png diff --git a/apps/portal/src/app/engine/v2/assets/nft-checkout-3.png b/apps/portal/src/app/transactions/v2/assets/nft-checkout-3.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/nft-checkout-3.png rename to apps/portal/src/app/transactions/v2/assets/nft-checkout-3.png diff --git a/apps/portal/src/app/engine/v2/assets/nft-checkout-overview.png b/apps/portal/src/app/transactions/v2/assets/nft-checkout-overview.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/nft-checkout-overview.png rename to apps/portal/src/app/transactions/v2/assets/nft-checkout-overview.png diff --git a/apps/portal/src/app/engine/v2/assets/recent-alerts.png b/apps/portal/src/app/transactions/v2/assets/recent-alerts.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/recent-alerts.png rename to apps/portal/src/app/transactions/v2/assets/recent-alerts.png diff --git a/apps/portal/src/app/engine/v2/assets/relayer-1.png b/apps/portal/src/app/transactions/v2/assets/relayer-1.png similarity index 100% rename from apps/portal/src/app/engine/v2/assets/relayer-1.png rename to apps/portal/src/app/transactions/v2/assets/relayer-1.png diff --git a/apps/portal/src/app/engine/v2/assets/tx-lifecycle.webp b/apps/portal/src/app/transactions/v2/assets/tx-lifecycle.webp similarity index 100% rename from apps/portal/src/app/engine/v2/assets/tx-lifecycle.webp rename to apps/portal/src/app/transactions/v2/assets/tx-lifecycle.webp diff --git a/apps/portal/src/app/engine/v2/configure-wallets/aws-kms/page.mdx b/apps/portal/src/app/transactions/v2/configure-wallets/aws-kms/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/configure-wallets/aws-kms/page.mdx rename to apps/portal/src/app/transactions/v2/configure-wallets/aws-kms/page.mdx diff --git a/apps/portal/src/app/engine/v2/configure-wallets/circle-wallet/page.mdx b/apps/portal/src/app/transactions/v2/configure-wallets/circle-wallet/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/configure-wallets/circle-wallet/page.mdx rename to apps/portal/src/app/transactions/v2/configure-wallets/circle-wallet/page.mdx diff --git a/apps/portal/src/app/engine/v2/configure-wallets/gcp-kms/page.mdx b/apps/portal/src/app/transactions/v2/configure-wallets/gcp-kms/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/configure-wallets/gcp-kms/page.mdx rename to apps/portal/src/app/transactions/v2/configure-wallets/gcp-kms/page.mdx diff --git a/apps/portal/src/app/engine/v2/configure-wallets/page.mdx b/apps/portal/src/app/transactions/v2/configure-wallets/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/configure-wallets/page.mdx rename to apps/portal/src/app/transactions/v2/configure-wallets/page.mdx diff --git a/apps/portal/src/app/engine/v2/configure-wallets/server-wallet/page.mdx b/apps/portal/src/app/transactions/v2/configure-wallets/server-wallet/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/configure-wallets/server-wallet/page.mdx rename to apps/portal/src/app/transactions/v2/configure-wallets/server-wallet/page.mdx diff --git a/apps/portal/src/app/engine/v2/configure-wallets/wallet-credentials/page.mdx b/apps/portal/src/app/transactions/v2/configure-wallets/wallet-credentials/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/configure-wallets/wallet-credentials/page.mdx rename to apps/portal/src/app/transactions/v2/configure-wallets/wallet-credentials/page.mdx diff --git a/apps/portal/src/app/engine/v2/faq/page.mdx b/apps/portal/src/app/transactions/v2/faq/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/faq/page.mdx rename to apps/portal/src/app/transactions/v2/faq/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/access-tokens/page.mdx b/apps/portal/src/app/transactions/v2/features/access-tokens/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/access-tokens/page.mdx rename to apps/portal/src/app/transactions/v2/features/access-tokens/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/account-abstraction/page.mdx b/apps/portal/src/app/transactions/v2/features/account-abstraction/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/account-abstraction/page.mdx rename to apps/portal/src/app/transactions/v2/features/account-abstraction/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/admins/page.mdx b/apps/portal/src/app/transactions/v2/features/admins/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/admins/page.mdx rename to apps/portal/src/app/transactions/v2/features/admins/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/alert-notifications/page.mdx b/apps/portal/src/app/transactions/v2/features/alert-notifications/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/alert-notifications/page.mdx rename to apps/portal/src/app/transactions/v2/features/alert-notifications/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/backend-wallets/page.mdx b/apps/portal/src/app/transactions/v2/features/backend-wallets/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/backend-wallets/page.mdx rename to apps/portal/src/app/transactions/v2/features/backend-wallets/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/contract-subscriptions/page.mdx b/apps/portal/src/app/transactions/v2/features/contract-subscriptions/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/contract-subscriptions/page.mdx rename to apps/portal/src/app/transactions/v2/features/contract-subscriptions/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/contracts/page.mdx b/apps/portal/src/app/transactions/v2/features/contracts/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/contracts/page.mdx rename to apps/portal/src/app/transactions/v2/features/contracts/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/custom-chains/page.mdx b/apps/portal/src/app/transactions/v2/features/custom-chains/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/custom-chains/page.mdx rename to apps/portal/src/app/transactions/v2/features/custom-chains/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/gasless-transactions/page.mdx b/apps/portal/src/app/transactions/v2/features/gasless-transactions/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/gasless-transactions/page.mdx rename to apps/portal/src/app/transactions/v2/features/gasless-transactions/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/keypair-authentication/page.mdx b/apps/portal/src/app/transactions/v2/features/keypair-authentication/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/keypair-authentication/page.mdx rename to apps/portal/src/app/transactions/v2/features/keypair-authentication/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/preventing-duplicate-transactions/page.mdx b/apps/portal/src/app/transactions/v2/features/preventing-duplicate-transactions/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/preventing-duplicate-transactions/page.mdx rename to apps/portal/src/app/transactions/v2/features/preventing-duplicate-transactions/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/relayers/page.mdx b/apps/portal/src/app/transactions/v2/features/relayers/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/relayers/page.mdx rename to apps/portal/src/app/transactions/v2/features/relayers/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/security/page.mdx b/apps/portal/src/app/transactions/v2/features/security/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/security/page.mdx rename to apps/portal/src/app/transactions/v2/features/security/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/transactions/page.mdx b/apps/portal/src/app/transactions/v2/features/transactions/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/transactions/page.mdx rename to apps/portal/src/app/transactions/v2/features/transactions/page.mdx diff --git a/apps/portal/src/app/engine/v2/features/webhooks/page.mdx b/apps/portal/src/app/transactions/v2/features/webhooks/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/features/webhooks/page.mdx rename to apps/portal/src/app/transactions/v2/features/webhooks/page.mdx diff --git a/apps/portal/src/app/engine/v2/get-started/page.mdx b/apps/portal/src/app/transactions/v2/get-started/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/get-started/page.mdx rename to apps/portal/src/app/transactions/v2/get-started/page.mdx diff --git a/apps/portal/src/app/engine/v2/guides/airdrop-nfts/page.mdx b/apps/portal/src/app/transactions/v2/guides/airdrop-nfts/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/guides/airdrop-nfts/page.mdx rename to apps/portal/src/app/transactions/v2/guides/airdrop-nfts/page.mdx diff --git a/apps/portal/src/app/engine/v2/guides/nft-checkout/page.mdx b/apps/portal/src/app/transactions/v2/guides/nft-checkout/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/guides/nft-checkout/page.mdx rename to apps/portal/src/app/transactions/v2/guides/nft-checkout/page.mdx diff --git a/apps/portal/src/app/engine/v2/layout.tsx b/apps/portal/src/app/transactions/v2/layout.tsx similarity index 94% rename from apps/portal/src/app/engine/v2/layout.tsx rename to apps/portal/src/app/transactions/v2/layout.tsx index ded308d76eb..a9798763527 100644 --- a/apps/portal/src/app/engine/v2/layout.tsx +++ b/apps/portal/src/app/transactions/v2/layout.tsx @@ -10,7 +10,9 @@ export default async function Layout(props: { children: React.ReactNode }) { sideBar={sidebar} sidebarHeader={
-

Engine

+

+ Transactions +

} diff --git a/apps/portal/src/app/engine/v2/page.mdx b/apps/portal/src/app/transactions/v2/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/page.mdx rename to apps/portal/src/app/transactions/v2/page.mdx diff --git a/apps/portal/src/app/engine/v2/production-checklist/page.mdx b/apps/portal/src/app/transactions/v2/production-checklist/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/production-checklist/page.mdx rename to apps/portal/src/app/transactions/v2/production-checklist/page.mdx diff --git a/apps/portal/src/app/engine/v2/references/typescript/page.mdx b/apps/portal/src/app/transactions/v2/references/typescript/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/references/typescript/page.mdx rename to apps/portal/src/app/transactions/v2/references/typescript/page.mdx diff --git a/apps/portal/src/app/engine/v2/security/page.mdx b/apps/portal/src/app/transactions/v2/security/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/security/page.mdx rename to apps/portal/src/app/transactions/v2/security/page.mdx diff --git a/apps/portal/src/app/engine/v2/self-host/page.mdx b/apps/portal/src/app/transactions/v2/self-host/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/self-host/page.mdx rename to apps/portal/src/app/transactions/v2/self-host/page.mdx diff --git a/apps/portal/src/app/engine/v2/sidebar.tsx b/apps/portal/src/app/transactions/v2/sidebar.tsx similarity index 55% rename from apps/portal/src/app/engine/v2/sidebar.tsx rename to apps/portal/src/app/transactions/v2/sidebar.tsx index 97a894daf94..94fade41955 100644 --- a/apps/portal/src/app/engine/v2/sidebar.tsx +++ b/apps/portal/src/app/transactions/v2/sidebar.tsx @@ -15,22 +15,22 @@ import { } from "lucide-react"; import type { SideBar } from "@/components/Layouts/DocLayout"; -const engineSlug = "/engine/v2"; +const transactionsSlug = "/transactions/v2"; export const sidebar: SideBar = { links: [ { - href: engineSlug, + href: transactionsSlug, icon: , name: "Overview", }, { - href: "https://playground.thirdweb.com/engine/airdrop", + href: "https://playground.thirdweb.com/transactions/airdrop", icon: , name: "Playground", }, { - href: `${engineSlug}/get-started`, + href: `${transactionsSlug}/get-started`, icon: , name: "Get Started", }, @@ -38,82 +38,82 @@ export const sidebar: SideBar = { icon: , links: [ { - href: `${engineSlug}/features/transactions`, + href: `${transactionsSlug}/features/transactions`, name: "Transactions", }, { - href: `${engineSlug}/features/contracts`, + href: `${transactionsSlug}/features/contracts`, name: "Contracts", }, { - href: `${engineSlug}/features/admins`, + href: `${transactionsSlug}/features/admins`, name: "Admins", }, { - href: `${engineSlug}/features/access-tokens`, + href: `${transactionsSlug}/features/access-tokens`, name: "Access Tokens", }, { - href: `${engineSlug}/features/webhooks`, + href: `${transactionsSlug}/features/webhooks`, name: "Webhooks", }, { - href: `${engineSlug}/features/preventing-duplicate-transactions`, + href: `${transactionsSlug}/features/preventing-duplicate-transactions`, name: "Preventing Duplicate Transactions", }, { - href: `${engineSlug}/features/custom-chains`, + href: `${transactionsSlug}/features/custom-chains`, name: "Custom Chains", }, { - href: `${engineSlug}/features/account-abstraction`, + href: `${transactionsSlug}/features/account-abstraction`, name: "Account Abstraction", }, { - href: `${engineSlug}/features/relayers`, + href: `${transactionsSlug}/features/relayers`, name: "Relayers", }, { - href: `${engineSlug}/features/gasless-transactions`, + href: `${transactionsSlug}/features/gasless-transactions`, name: "Gasless Transactions", }, { - href: `${engineSlug}/features/contract-subscriptions`, + href: `${transactionsSlug}/features/contract-subscriptions`, name: "Contract Subscriptions", }, { - href: `${engineSlug}/features/alert-notifications`, + href: `${transactionsSlug}/features/alert-notifications`, name: "Alert Notifications", }, { - href: `${engineSlug}/features/security`, + href: `${transactionsSlug}/features/security`, name: "Security", }, ], name: "Key Concepts", }, { - href: `${engineSlug}/configure-wallets`, + href: `${transactionsSlug}/configure-wallets`, icon: , links: [ { - href: `${engineSlug}/configure-wallets/server-wallet`, + href: `${transactionsSlug}/configure-wallets/server-wallet`, name: "Smart Server Wallet", }, { - href: `${engineSlug}/configure-wallets/aws-kms`, + href: `${transactionsSlug}/configure-wallets/aws-kms`, name: "AWS KMS", }, { - href: `${engineSlug}/configure-wallets/gcp-kms`, + href: `${transactionsSlug}/configure-wallets/gcp-kms`, name: "Google Cloud KMS", }, { - href: `${engineSlug}/configure-wallets/circle-wallet`, + href: `${transactionsSlug}/configure-wallets/circle-wallet`, name: "Circle Wallet", }, { - href: `${engineSlug}/configure-wallets/wallet-credentials`, + href: `${transactionsSlug}/configure-wallets/wallet-credentials`, name: "Wallet Credentials", }, ], @@ -122,8 +122,14 @@ export const sidebar: SideBar = { { icon: , links: [ - { href: `${engineSlug}/guides/airdrop-nfts`, name: "Airdrop NFTs" }, - { href: `${engineSlug}/guides/nft-checkout`, name: "NFT Checkout" }, + { + href: `${transactionsSlug}/guides/airdrop-nfts`, + name: "Airdrop NFTs", + }, + { + href: `${transactionsSlug}/guides/nft-checkout`, + name: "NFT Checkout", + }, ], name: "Tutorials", }, @@ -133,32 +139,32 @@ export const sidebar: SideBar = { name: "API Reference", }, { - href: `${engineSlug}/references/typescript`, + href: `${transactionsSlug}/references/typescript`, icon: , name: "Typescript SDK", }, { - href: `${engineSlug}/production-checklist`, + href: `${transactionsSlug}/production-checklist`, icon: , name: "Prod Checklist", }, { - href: `${engineSlug}/self-host`, + href: `${transactionsSlug}/self-host`, icon: , name: "Self-Host", }, { - href: `${engineSlug}/security`, + href: `${transactionsSlug}/security`, icon: , name: "Security", }, { - href: `${engineSlug}/troubleshooting`, + href: `${transactionsSlug}/troubleshooting`, icon: , name: "Troubleshoot", }, { - href: `${engineSlug}/faq`, + href: `${transactionsSlug}/faq`, icon: , name: "FAQ", }, diff --git a/apps/portal/src/app/engine/v2/troubleshooting/page.mdx b/apps/portal/src/app/transactions/v2/troubleshooting/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v2/troubleshooting/page.mdx rename to apps/portal/src/app/transactions/v2/troubleshooting/page.mdx diff --git a/apps/portal/src/app/engine/v3/assets/create-vault.png b/apps/portal/src/app/transactions/v3/assets/create-vault.png similarity index 100% rename from apps/portal/src/app/engine/v3/assets/create-vault.png rename to apps/portal/src/app/transactions/v3/assets/create-vault.png diff --git a/apps/portal/src/app/engine/v3/assets/send-transaction.png b/apps/portal/src/app/transactions/v3/assets/send-transaction.png similarity index 100% rename from apps/portal/src/app/engine/v3/assets/send-transaction.png rename to apps/portal/src/app/transactions/v3/assets/send-transaction.png diff --git a/apps/portal/src/app/engine/v3/configure-wallets/server-wallets/page.mdx b/apps/portal/src/app/transactions/v3/configure-wallets/server-wallets/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v3/configure-wallets/server-wallets/page.mdx rename to apps/portal/src/app/transactions/v3/configure-wallets/server-wallets/page.mdx diff --git a/apps/portal/src/app/engine/v3/faq/page.mdx b/apps/portal/src/app/transactions/v3/faq/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v3/faq/page.mdx rename to apps/portal/src/app/transactions/v3/faq/page.mdx diff --git a/apps/portal/src/app/engine/v3/get-started/page.mdx b/apps/portal/src/app/transactions/v3/get-started/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v3/get-started/page.mdx rename to apps/portal/src/app/transactions/v3/get-started/page.mdx diff --git a/apps/portal/src/app/engine/v3/guides/session-keys/page.mdx b/apps/portal/src/app/transactions/v3/guides/session-keys/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v3/guides/session-keys/page.mdx rename to apps/portal/src/app/transactions/v3/guides/session-keys/page.mdx diff --git a/apps/portal/src/app/engine/v3/layout.tsx b/apps/portal/src/app/transactions/v3/layout.tsx similarity index 100% rename from apps/portal/src/app/engine/v3/layout.tsx rename to apps/portal/src/app/transactions/v3/layout.tsx diff --git a/apps/portal/src/app/engine/v3/migrate/page.mdx b/apps/portal/src/app/transactions/v3/migrate/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v3/migrate/page.mdx rename to apps/portal/src/app/transactions/v3/migrate/page.mdx diff --git a/apps/portal/src/app/engine/v3/page.mdx b/apps/portal/src/app/transactions/v3/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v3/page.mdx rename to apps/portal/src/app/transactions/v3/page.mdx diff --git a/apps/portal/src/app/engine/v3/sidebar.tsx b/apps/portal/src/app/transactions/v3/sidebar.tsx similarity index 77% rename from apps/portal/src/app/engine/v3/sidebar.tsx rename to apps/portal/src/app/transactions/v3/sidebar.tsx index eb291b41069..d7fd9970fe6 100644 --- a/apps/portal/src/app/engine/v3/sidebar.tsx +++ b/apps/portal/src/app/transactions/v3/sidebar.tsx @@ -13,22 +13,22 @@ import { } from "lucide-react"; import type { SideBar } from "@/components/Layouts/DocLayout"; -const engineV3Slug = "/engine/v3"; +const transactionsV3Slug = "/transactions/v3"; export const sidebar: SideBar = { links: [ { - href: engineV3Slug, + href: transactionsV3Slug, icon: , name: "Overview", }, { - href: "https://playground.thirdweb.com/engine/airdrop", + href: "https://playground.thirdweb.com/transactions/airdrop", icon: , name: "Playground", }, { - href: `${engineV3Slug}/get-started`, + href: `${transactionsV3Slug}/get-started`, icon: , name: "Get Started", }, @@ -46,7 +46,7 @@ export const sidebar: SideBar = { icon: , links: [ { - href: `${engineV3Slug}/configure-wallets/server-wallets`, + href: `${transactionsV3Slug}/configure-wallets/server-wallets`, name: "Smart Server Wallet", }, ], @@ -56,7 +56,7 @@ export const sidebar: SideBar = { icon: , links: [ { - href: `${engineV3Slug}/guides/session-keys`, + href: `${transactionsV3Slug}/guides/session-keys`, name: "Session Keys", }, ], @@ -78,17 +78,17 @@ export const sidebar: SideBar = { name: "Security", }, { - href: `${engineV3Slug}/migrate`, + href: `${transactionsV3Slug}/migrate`, icon: , name: "Migrate from v2", }, { - href: `${engineV3Slug}/troubleshoot`, + href: `${transactionsV3Slug}/troubleshoot`, icon: , name: "Troubleshoot", }, { - href: `${engineV3Slug}/faq`, + href: `${transactionsV3Slug}/faq`, icon: , name: "FAQ", }, diff --git a/apps/portal/src/app/engine/v3/troubleshoot/page.mdx b/apps/portal/src/app/transactions/v3/troubleshoot/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v3/troubleshoot/page.mdx rename to apps/portal/src/app/transactions/v3/troubleshoot/page.mdx diff --git a/apps/portal/src/app/engine/v3/typescript-sdk/page.mdx b/apps/portal/src/app/transactions/v3/typescript-sdk/page.mdx similarity index 100% rename from apps/portal/src/app/engine/v3/typescript-sdk/page.mdx rename to apps/portal/src/app/transactions/v3/typescript-sdk/page.mdx diff --git a/apps/portal/src/app/unreal-engine/blueprints/engine/page.mdx b/apps/portal/src/app/unreal-engine/blueprints/engine/page.mdx index 7dfa21b4c37..ac94c714b41 100644 --- a/apps/portal/src/app/unreal-engine/blueprints/engine/page.mdx +++ b/apps/portal/src/app/unreal-engine/blueprints/engine/page.mdx @@ -2,9 +2,9 @@ import { Blueprint } from "../blueprint"; import { getTransactionReceiptNode, getTransactionStatusNode, readContractNode, writeContractNode } from "./nodes"; import { createUnrealEngineMetadata } from "../../util"; -export const metadata = createUnrealEngineMetadata({ title: "Engine", description: "Engine Blueprints" }); +export const metadata = createUnrealEngineMetadata({ title: "Transactions", description: "Transactions Blueprints" }); -# Engine +# Transactions ## Contract Interaction diff --git a/apps/portal/src/app/unreal-engine/blueprints/sidebar.ts b/apps/portal/src/app/unreal-engine/blueprints/sidebar.ts index 00883b4eac5..87239b10ada 100644 --- a/apps/portal/src/app/unreal-engine/blueprints/sidebar.ts +++ b/apps/portal/src/app/unreal-engine/blueprints/sidebar.ts @@ -17,8 +17,8 @@ export const blueprints: LinkGroup = hrefBuilder("/blueprints", { name: "Smart Wallets", }, { - href: "/engine", - name: "Engine", + href: "/transactions", + name: "Transactions", }, { href: "/utilities", diff --git a/apps/portal/src/components/others/DocSearch.tsx b/apps/portal/src/components/others/DocSearch.tsx index a07fff3ce42..173bd86fe81 100644 --- a/apps/portal/src/components/others/DocSearch.tsx +++ b/apps/portal/src/components/others/DocSearch.tsx @@ -31,7 +31,7 @@ const suggestedLinks: { title: string; href: string }[] = [ title: "Contracts", }, { - href: "/engine", + href: "/transactions", title: "Engine", }, { @@ -359,7 +359,8 @@ export function DocSearch(props: { variant: "icon" | "search" }) { > Search Docs
- K + + K
@@ -425,7 +426,7 @@ function getTagsFromHref(href: string): Tag[] | undefined { if (href.includes("/connect")) { return ["Connect"]; } - if (href.includes("/engine")) { + if (href.includes("/transactions")) { return ["Engine"]; } if (href.includes("/infrastructure")) { diff --git a/apps/portal/src/components/others/EngineVersionSelector.tsx b/apps/portal/src/components/others/EngineVersionSelector.tsx index 9cab862b5a4..495e14f7798 100644 --- a/apps/portal/src/components/others/EngineVersionSelector.tsx +++ b/apps/portal/src/components/others/EngineVersionSelector.tsx @@ -11,20 +11,20 @@ import { } from "@/components/ui/dropdown-menu"; type Version = "v2" | "v3"; -const engineLinks = [ +const transactionLinks = [ { - href: "/engine/v2", + href: "/transactions/v2", name: "v2", }, { - href: "/engine/v3", + href: "/transactions/v3", name: "v3", }, ]; export function EngineVersionSelector(props: { selected: Version }) { // biome-ignore lint/style/noNonNullAssertion: guaranteed - const platform = engineLinks.find((p) => p.name === props.selected)!; + const platform = transactionLinks.find((p) => p.name === props.selected)!; return ( @@ -40,7 +40,7 @@ export function EngineVersionSelector(props: { selected: Version }) { minWidth: "150px", }} > - {engineLinks.map((version) => { + {transactionLinks.map((version) => { return (
* ``` * - * ### Gasless usage with [thirdweb Engine](https://portal.thirdweb.com/engine) + * ### Gasless usage with [thirdweb Engine](https://portal.thirdweb.com/transactions) * ```tsx * Date: Thu, 10 Jul 2025 20:14:39 +0000 Subject: [PATCH 2/2] Migrate portal /engine routes to /transactions with comprehensive redirects Co-authored-by: samina --- CHANGES_SUMMARY.md | 78 +++++++++++-------- .../(sidebar)/transactions/layout.tsx | 2 +- .../_hooks/useEngineTxStatus.ts | 0 .../app/{transactions => engine}/actions.ts | 0 .../airdrop/_components/airdrop-card.tsx | 0 .../airdrop/_components/airdrop-code.tsx | 0 .../airdrop/_components/airdrop-preview.tsx | 0 .../airdrop/constants.ts | 0 .../{transactions => engine}/airdrop/page.tsx | 2 +- .../minting/_components/mint-code.tsx | 0 .../minting/_components/mint-preview.tsx | 0 .../minting/constants.ts | 0 .../{transactions => engine}/minting/page.tsx | 2 +- .../src/app/{transactions => engine}/types.ts | 0 .../webhooks/_components/webhooks-preview.tsx | 0 .../webhooks/constants.ts | 0 .../webhooks/page.tsx | 4 +- apps/playground-web/src/app/navLinks.ts | 10 +-- apps/portal/src/app/dotnet/sidebar.tsx | 2 +- .../src/app/transactions/v2/sidebar.tsx | 2 +- .../src/app/transactions/v3/sidebar.tsx | 2 +- .../useSendAndConfirmTransaction.ts | 2 +- .../hooks/transaction/useSendTransaction.tsx | 2 +- .../react/web/ui/TransactionButton/index.tsx | 2 +- .../actions/send-and-confirm-transaction.ts | 2 +- .../transaction/actions/send-transaction.ts | 2 +- 26 files changed, 64 insertions(+), 50 deletions(-) rename apps/playground-web/src/app/{transactions => engine}/_hooks/useEngineTxStatus.ts (100%) rename apps/playground-web/src/app/{transactions => engine}/actions.ts (100%) rename apps/playground-web/src/app/{transactions => engine}/airdrop/_components/airdrop-card.tsx (100%) rename apps/playground-web/src/app/{transactions => engine}/airdrop/_components/airdrop-code.tsx (100%) rename apps/playground-web/src/app/{transactions => engine}/airdrop/_components/airdrop-preview.tsx (100%) rename apps/playground-web/src/app/{transactions => engine}/airdrop/constants.ts (100%) rename apps/playground-web/src/app/{transactions => engine}/airdrop/page.tsx (89%) rename apps/playground-web/src/app/{transactions => engine}/minting/_components/mint-code.tsx (100%) rename apps/playground-web/src/app/{transactions => engine}/minting/_components/mint-preview.tsx (100%) rename apps/playground-web/src/app/{transactions => engine}/minting/constants.ts (100%) rename apps/playground-web/src/app/{transactions => engine}/minting/page.tsx (90%) rename apps/playground-web/src/app/{transactions => engine}/types.ts (100%) rename apps/playground-web/src/app/{transactions => engine}/webhooks/_components/webhooks-preview.tsx (100%) rename apps/playground-web/src/app/{transactions => engine}/webhooks/constants.ts (100%) rename apps/playground-web/src/app/{transactions => engine}/webhooks/page.tsx (72%) diff --git a/CHANGES_SUMMARY.md b/CHANGES_SUMMARY.md index 456990affec..324a3a3d095 100644 --- a/CHANGES_SUMMARY.md +++ b/CHANGES_SUMMARY.md @@ -1,32 +1,46 @@ -# Summary of Changes Made - -## Directory Structure Changes -1. Moved /apps/portal/src/app/engine → /apps/portal/src/app/transactions -2. Moved /apps/playground-web/src/app/engine → /apps/playground-web/src/app/transactions - -## Portal Changes -1. Updated navigation in Header.tsx: /engine → /transactions -2. Updated sidebar files (v2 and v3) to use /transactions paths -3. Updated layout files to show 'Transactions' instead of 'Engine' -4. Updated EngineVersionSelector component to use transaction links -5. Updated main page and DocSearch component references -6. Updated Unreal Engine references to use /transactions - -## Redirect Configuration -1. Added engineToTransactionsRedirects section with comprehensive redirects -2. Updated infrastructureRedirects to use /transactions paths -3. Updated otherRedirects to use /transactions paths -4. Added redirect rules at highest priority for proper URL handling - -## SDK Documentation Updates -1. Updated documentation links in TypeScript SDK files -2. Updated React hook documentation links -3. Updated playground links in portal sidebars - -## Files Modified: -- Portal: Header.tsx, sidebars, layouts, page.tsx, DocSearch.tsx, redirects.mjs -- Playground: navLinks.ts, page components, webhooks documentation link -- SDK: transaction action files, React hooks -- Unreal Engine: sidebar and page updates - -All /engine routes now redirect to /transactions equivalents while maintaining backward compatibility. +# Portal-Only Engine to Transactions Migration Summary + +## Overview +Renamed `/engine` slugs to `/transactions` in the **portal app only**, with comprehensive redirects for backward compatibility. + +## Portal Changes Made + +### 1. Directory Structure +- **Moved**: `/apps/portal/src/app/engine` → `/apps/portal/src/app/transactions` + +### 2. Navigation & UI Updates +- **Header.tsx**: Updated main navigation `/engine` → `/transactions` +- **Sidebar files** (v2 & v3): All internal links updated to use `/transactions` paths +- **Layout files**: Updated to display "Transactions" instead of "Engine" +- **EngineVersionSelector component**: Updated to use transaction routes +- **Main page**: Updated article card link +- **DocSearch component**: Updated search handling + +### 3. Comprehensive Redirect Configuration +Added `engineToTransactionsRedirects` in `redirects.mjs`: +```javascript +const engineToTransactionsRedirects = { + "/engine": "/transactions/v3", // Default to latest + "/engine/v2": "/transactions/v2", + "/engine/v3": "/transactions/v3", + "/engine/:path*": "/transactions/:path*" // Catch-all +}; +``` + +### 4. Cross-Reference Updates (Portal Only) +- **Unreal Engine references**: Updated to use `/transactions` +- **Infrastructure redirects**: Updated to point to `/transactions` +- **Other redirects**: Updated various legacy redirects + +## What Was NOT Changed +- **Dashboard app**: No changes made (still uses `/engine`) +- **Playground app**: No changes made (still uses `/engine`) +- **Packages/SDK**: No documentation link changes made +- **External links**: Only portal-internal links updated + +## Result +- ✅ Portal now uses `/transactions` URLs consistently +- ✅ All old `/engine` URLs redirect to `/transactions` +- ✅ Backward compatibility maintained +- ✅ Other apps remain unchanged as requested +- ✅ External playground/API links still work correctly diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/layout.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/layout.tsx index cccbb73956c..1f0d5294b76 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/layout.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/transactions/layout.tsx @@ -53,7 +53,7 @@ function TransactionsLayout(props: {
- + diff --git a/apps/playground-web/src/app/transactions/_hooks/useEngineTxStatus.ts b/apps/playground-web/src/app/engine/_hooks/useEngineTxStatus.ts similarity index 100% rename from apps/playground-web/src/app/transactions/_hooks/useEngineTxStatus.ts rename to apps/playground-web/src/app/engine/_hooks/useEngineTxStatus.ts diff --git a/apps/playground-web/src/app/transactions/actions.ts b/apps/playground-web/src/app/engine/actions.ts similarity index 100% rename from apps/playground-web/src/app/transactions/actions.ts rename to apps/playground-web/src/app/engine/actions.ts diff --git a/apps/playground-web/src/app/transactions/airdrop/_components/airdrop-card.tsx b/apps/playground-web/src/app/engine/airdrop/_components/airdrop-card.tsx similarity index 100% rename from apps/playground-web/src/app/transactions/airdrop/_components/airdrop-card.tsx rename to apps/playground-web/src/app/engine/airdrop/_components/airdrop-card.tsx diff --git a/apps/playground-web/src/app/transactions/airdrop/_components/airdrop-code.tsx b/apps/playground-web/src/app/engine/airdrop/_components/airdrop-code.tsx similarity index 100% rename from apps/playground-web/src/app/transactions/airdrop/_components/airdrop-code.tsx rename to apps/playground-web/src/app/engine/airdrop/_components/airdrop-code.tsx diff --git a/apps/playground-web/src/app/transactions/airdrop/_components/airdrop-preview.tsx b/apps/playground-web/src/app/engine/airdrop/_components/airdrop-preview.tsx similarity index 100% rename from apps/playground-web/src/app/transactions/airdrop/_components/airdrop-preview.tsx rename to apps/playground-web/src/app/engine/airdrop/_components/airdrop-preview.tsx diff --git a/apps/playground-web/src/app/transactions/airdrop/constants.ts b/apps/playground-web/src/app/engine/airdrop/constants.ts similarity index 100% rename from apps/playground-web/src/app/transactions/airdrop/constants.ts rename to apps/playground-web/src/app/engine/airdrop/constants.ts diff --git a/apps/playground-web/src/app/transactions/airdrop/page.tsx b/apps/playground-web/src/app/engine/airdrop/page.tsx similarity index 89% rename from apps/playground-web/src/app/transactions/airdrop/page.tsx rename to apps/playground-web/src/app/engine/airdrop/page.tsx index dea3bbbff8f..ef676f8c77b 100644 --- a/apps/playground-web/src/app/transactions/airdrop/page.tsx +++ b/apps/playground-web/src/app/engine/airdrop/page.tsx @@ -1,4 +1,4 @@ -import { EngineAirdropPreview } from "@/app/transactions/airdrop/_components/airdrop-preview"; +import { EngineAirdropPreview } from "@/app/engine/airdrop/_components/airdrop-preview"; import ThirdwebProvider from "@/components/thirdweb-provider"; import { PageLayout } from "../../../components/blocks/APIHeader"; import { AirdropCode } from "./_components/airdrop-code"; diff --git a/apps/playground-web/src/app/transactions/minting/_components/mint-code.tsx b/apps/playground-web/src/app/engine/minting/_components/mint-code.tsx similarity index 100% rename from apps/playground-web/src/app/transactions/minting/_components/mint-code.tsx rename to apps/playground-web/src/app/engine/minting/_components/mint-code.tsx diff --git a/apps/playground-web/src/app/transactions/minting/_components/mint-preview.tsx b/apps/playground-web/src/app/engine/minting/_components/mint-preview.tsx similarity index 100% rename from apps/playground-web/src/app/transactions/minting/_components/mint-preview.tsx rename to apps/playground-web/src/app/engine/minting/_components/mint-preview.tsx diff --git a/apps/playground-web/src/app/transactions/minting/constants.ts b/apps/playground-web/src/app/engine/minting/constants.ts similarity index 100% rename from apps/playground-web/src/app/transactions/minting/constants.ts rename to apps/playground-web/src/app/engine/minting/constants.ts diff --git a/apps/playground-web/src/app/transactions/minting/page.tsx b/apps/playground-web/src/app/engine/minting/page.tsx similarity index 90% rename from apps/playground-web/src/app/transactions/minting/page.tsx rename to apps/playground-web/src/app/engine/minting/page.tsx index 468b0e9b2ba..e3a4e6db846 100644 --- a/apps/playground-web/src/app/transactions/minting/page.tsx +++ b/apps/playground-web/src/app/engine/minting/page.tsx @@ -1,4 +1,4 @@ -import { EngineMintPreview } from "@/app/transactions/minting/_components/mint-preview"; +import { EngineMintPreview } from "@/app/engine/minting/_components/mint-preview"; import ThirdwebProvider from "@/components/thirdweb-provider"; import { PageLayout } from "../../../components/blocks/APIHeader"; import { MintCode } from "./_components/mint-code"; diff --git a/apps/playground-web/src/app/transactions/types.ts b/apps/playground-web/src/app/engine/types.ts similarity index 100% rename from apps/playground-web/src/app/transactions/types.ts rename to apps/playground-web/src/app/engine/types.ts diff --git a/apps/playground-web/src/app/transactions/webhooks/_components/webhooks-preview.tsx b/apps/playground-web/src/app/engine/webhooks/_components/webhooks-preview.tsx similarity index 100% rename from apps/playground-web/src/app/transactions/webhooks/_components/webhooks-preview.tsx rename to apps/playground-web/src/app/engine/webhooks/_components/webhooks-preview.tsx diff --git a/apps/playground-web/src/app/transactions/webhooks/constants.ts b/apps/playground-web/src/app/engine/webhooks/constants.ts similarity index 100% rename from apps/playground-web/src/app/transactions/webhooks/constants.ts rename to apps/playground-web/src/app/engine/webhooks/constants.ts diff --git a/apps/playground-web/src/app/transactions/webhooks/page.tsx b/apps/playground-web/src/app/engine/webhooks/page.tsx similarity index 72% rename from apps/playground-web/src/app/transactions/webhooks/page.tsx rename to apps/playground-web/src/app/engine/webhooks/page.tsx index 48c4dfd7f9a..3fd85879759 100644 --- a/apps/playground-web/src/app/transactions/webhooks/page.tsx +++ b/apps/playground-web/src/app/engine/webhooks/page.tsx @@ -1,4 +1,4 @@ -import { EngineWebhooksPreview } from "@/app/transactions/webhooks/_components/webhooks-preview"; +import { EngineWebhooksPreview } from "@/app/engine/webhooks/_components/webhooks-preview"; import ThirdwebProvider from "@/components/thirdweb-provider"; import { PageLayout } from "../../../components/blocks/APIHeader"; @@ -12,7 +12,7 @@ export default function Page() { transaction or backend wallet events. } - docsLink="https://portal.thirdweb.com/transactions/features/webhooks?utm_source=playground" + docsLink="https://portal.thirdweb.com/engine/features/webhooks?utm_source=playground" title="Webhooks" > diff --git a/apps/playground-web/src/app/navLinks.ts b/apps/playground-web/src/app/navLinks.ts index bc06a26ad45..29a6be8169a 100644 --- a/apps/playground-web/src/app/navLinks.ts +++ b/apps/playground-web/src/app/navLinks.ts @@ -112,20 +112,20 @@ const universalBridgeSidebarLinks: SidebarLink = { name: "Universal Bridge", }; -const transactionsSidebarLinks: SidebarLink = { +const engineSidebarLinks: SidebarLink = { expanded: false, isCollapsible: false, links: [ { - href: "/transactions/airdrop", + href: "/engine/airdrop", name: "Airdrop", }, { - href: "/transactions/minting", + href: "/engine/minting", name: "Mint NFTs", }, { - href: "/transactions/webhooks", + href: "/engine/webhooks", name: "Webhooks", }, ], @@ -150,7 +150,7 @@ export function getSidebarLinks() { const sidebarLinks: SidebarLink[] = [ ...staticSidebarLinks, universalBridgeSidebarLinks, - transactionsSidebarLinks, + engineSidebarLinks, { expanded: false, isCollapsible: false, diff --git a/apps/portal/src/app/dotnet/sidebar.tsx b/apps/portal/src/app/dotnet/sidebar.tsx index d7b002f6900..6725ad5e394 100644 --- a/apps/portal/src/app/dotnet/sidebar.tsx +++ b/apps/portal/src/app/dotnet/sidebar.tsx @@ -23,7 +23,7 @@ const walletProviders: SidebarLink = (() => { name: "Private Key Wallet", }, { - href: `${parentSlug}/transactions-wallet`, + href: `${parentSlug}/engine-wallet`, name: "Engine Wallet", }, ], diff --git a/apps/portal/src/app/transactions/v2/sidebar.tsx b/apps/portal/src/app/transactions/v2/sidebar.tsx index 94fade41955..5a4027dd5c9 100644 --- a/apps/portal/src/app/transactions/v2/sidebar.tsx +++ b/apps/portal/src/app/transactions/v2/sidebar.tsx @@ -25,7 +25,7 @@ export const sidebar: SideBar = { name: "Overview", }, { - href: "https://playground.thirdweb.com/transactions/airdrop", + href: "https://playground.thirdweb.com/engine/airdrop", icon: , name: "Playground", }, diff --git a/apps/portal/src/app/transactions/v3/sidebar.tsx b/apps/portal/src/app/transactions/v3/sidebar.tsx index d7fd9970fe6..54f913a0e8e 100644 --- a/apps/portal/src/app/transactions/v3/sidebar.tsx +++ b/apps/portal/src/app/transactions/v3/sidebar.tsx @@ -23,7 +23,7 @@ export const sidebar: SideBar = { name: "Overview", }, { - href: "https://playground.thirdweb.com/transactions/airdrop", + href: "https://playground.thirdweb.com/engine/airdrop", icon: , name: "Playground", }, diff --git a/packages/thirdweb/src/react/core/hooks/transaction/useSendAndConfirmTransaction.ts b/packages/thirdweb/src/react/core/hooks/transaction/useSendAndConfirmTransaction.ts index aee80f49dec..59632720ff7 100644 --- a/packages/thirdweb/src/react/core/hooks/transaction/useSendAndConfirmTransaction.ts +++ b/packages/thirdweb/src/react/core/hooks/transaction/useSendAndConfirmTransaction.ts @@ -29,7 +29,7 @@ type SendAndConfirmTransactionConfig = { * ``` * * - * ### Gasless usage with [thirdweb Engine](https://portal.thirdweb.com/transactions) + * ### Gasless usage with [thirdweb Engine](https://portal.thirdweb.com/engine) * ```tsx * import { useSendAndConfirmTransaction } from "thirdweb/react"; * const mutation = useSendAndConfirmTransaction({ diff --git a/packages/thirdweb/src/react/native/hooks/transaction/useSendTransaction.tsx b/packages/thirdweb/src/react/native/hooks/transaction/useSendTransaction.tsx index 114e9f063fb..8acf9656096 100644 --- a/packages/thirdweb/src/react/native/hooks/transaction/useSendTransaction.tsx +++ b/packages/thirdweb/src/react/native/hooks/transaction/useSendTransaction.tsx @@ -19,7 +19,7 @@ import { useSwitchActiveWalletChain } from "../../../core/hooks/wallets/useSwitc * sendTx(tx); * ``` * - * ### Gasless usage with [thirdweb Engine](https://portal.thirdweb.com/transactions) + * ### Gasless usage with [thirdweb Engine](https://portal.thirdweb.com/engine) * ```tsx * import { useSendTransaction } from "thirdweb/react"; * const mutation = useSendTransaction({ diff --git a/packages/thirdweb/src/react/web/ui/TransactionButton/index.tsx b/packages/thirdweb/src/react/web/ui/TransactionButton/index.tsx index e2f1d3c2d66..96ccfc8fdbf 100644 --- a/packages/thirdweb/src/react/web/ui/TransactionButton/index.tsx +++ b/packages/thirdweb/src/react/web/ui/TransactionButton/index.tsx @@ -103,7 +103,7 @@ import { Spinner } from "../components/Spinner.js"; * * ``` * - * ### Gasless usage with [thirdweb Engine](https://portal.thirdweb.com/transactions) + * ### Gasless usage with [thirdweb Engine](https://portal.thirdweb.com/engine) * ```tsx *