Skip to content

Commit dc07fdd

Browse files
committed
[Portal] removed glossary, added new articles, deprecated old pages (#6841)
CORE-0000 <!-- start pr-codex --> --- ## PR-Codex overview This PR primarily focuses on the removal of various glossary-related files and the addition of new features and content in the sidebar navigation for different sections of the application. ### Detailed summary - Deleted multiple `.mdx` files related to the glossary in `apps/portal/src/app/glossary/`. - Updated sidebar navigation in `apps/portal/src/app/account/sidebar.tsx` to rename "API Keys" to "Projects" and added "Transfer Projects". - Added new sidebar entry "Playground" in `apps/portal/src/app/engine/sidebar.tsx`. - Enhanced `apps/portal/src/app/account/api-keys/transfer-projects/page.mdx` with steps for transferring projects, including images. - Improved `apps/portal/src/app/connect/pay/fees/page.mdx` with detailed explanations of fees. - Introduced `glossaryRedirects` in `apps/portal/redirects.mjs` for various glossary pages. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 1d598ce commit dc07fdd

File tree

45 files changed

+157
-528
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+157
-528
lines changed

apps/portal/redirects.mjs

+45
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,50 @@ const infrastructureRedirects = {
867867
"/rpc-edge/faqs": "/infrastructure/rpc-edge/overview",
868868
};
869869

870+
const glossaryRedirects = {
871+
"/glossary": "https://thirdweb.com/learn/glossary",
872+
"/claim-phases": "https://thirdweb.com/learn/glossary/claim-phases",
873+
"/glossary/claiming": "https://thirdweb.com/learn/glossary/claim-phases",
874+
"/glossary/composability":
875+
"https://thirdweb.com/learn/glossary/composability",
876+
"/glossary/delayed-reveal":
877+
"https://thirdweb.com/learn/glossary/delayed-reveal",
878+
"/glossary/drop": "https://thirdweb.com/learn/glossary/drop",
879+
"/glossary/externally-owned-account":
880+
"https://thirdweb.com/learn/glossary/externally-owned-account",
881+
"/glossary/factory-contract":
882+
"https://thirdweb.com/learn/glossary/factory-contract",
883+
"/glossary/gas": "https://thirdweb.com/learn/glossary/gas-fee",
884+
"/glossary/gasless-transactions":
885+
"https://thirdweb.com/learn/glossary/gasless-transactions",
886+
"/glossary/interoperability":
887+
"https://thirdweb.com/learn/glossary/interoperability",
888+
"/glossary/ipfs":
889+
"https://thirdweb.com/learn/glossary/interplanetary-file-system-ipfs",
890+
"/glossary/lazy-minting": "https://thirdweb.com/learn/glossary/lazy-minting",
891+
"/glossary/local-wallet": "https://thirdweb.com/learn/glossary/local-wallet",
892+
"/glossary/minting": "https://thirdweb.com/learn/glossary/minting",
893+
"/glossary/nft": "https://thirdweb.com/learn/glossary/nft",
894+
"/glossary/non-custodial-wallet":
895+
"https://thirdweb.com/learn/glossary/non-custodial-wallet",
896+
"/glossary/permissionless":
897+
"https://thirdweb.com/learn/glossary/permissionless",
898+
"/glossary/proxy-contracts":
899+
"https://thirdweb.com/learn/glossary/proxy-contracts",
900+
"/glossary/rpc": "https://thirdweb.com/learn/glossary/rpc-url",
901+
"/glossary/signature-based-minting":
902+
"https://thirdweb.com/learn/glossary/signature-based-minting",
903+
"/glossary/smart-contract":
904+
"https://thirdweb.com/learn/glossary/smart-contract",
905+
"/glossary/smart-account":
906+
"https://thirdweb.com/learn/glossary/smart-account",
907+
"/glossary/soulbound": "https://thirdweb.com/learn/glossary/soulbound-tokens",
908+
"/glossary/staking": "https://thirdweb.com/learn/glossary/staking",
909+
"/glossary/token": "https://thirdweb.com/learn/glossary/token",
910+
"/glossary/wallet": "https://thirdweb.com/learn/glossary/",
911+
"/glossary/bundler": "https://thirdweb.com/learn/glossary/bundler",
912+
};
913+
870914
const otherRedirects = {
871915
// wallets > connect redirects
872916
"/wallets": "/connect",
@@ -1020,6 +1064,7 @@ export const redirects = async () => {
10201064
...createRedirects(v5RestructuredRedirects),
10211065
...createRedirects(unrealEngineRedirects),
10221066
...createRedirects(v4ToV5Redirects),
1067+
...createRedirects(glossaryRedirects),
10231068
];
10241069
};
10251070

Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import { Callout, Step, Steps, DocImage } from "@doc";
2+
import ProjOverview from "./assets/proj-overview.png";
3+
import ProjSettings from "./assets/proj-settings.png";
4+
import ProjTransfer from "./assets/proj-transfer.png";
5+
6+
7+
# Transfer projects to another team
8+
9+
Learn how to transfer a thirdweb project from one team to another.
10+
11+
<Callout variant="info" title="Owner Permissions Required">
12+
To transfer projects, you must be an owner of both the source and destination teams.
13+
</Callout>
14+
15+
<Steps>
16+
17+
<Step title="Select Project">
18+
Select the project you want to transfer from the list of projects in your team.
19+
20+
<DocImage src={ProjOverview} alt="Project overview"/>
21+
22+
</Step>
23+
24+
<Step title="Project Settings">
25+
Navigate to the project settings by clicking on the gear icon in the bottom left of the project dashboard.
26+
<DocImage src={ProjSettings} alt="Project settings"/>
27+
28+
</Step>
29+
30+
<Step title="Transfer Project">
31+
Navigate to the Transfer Project modal and select the destination team from the dropdown. Click on the Transfer Project button to initiate the transfer.
32+
33+
<DocImage src={ProjTransfer} alt="Transfer project"/>
34+
</Step>
35+
36+
</Steps>

apps/portal/src/app/account/sidebar.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const sidebar: SideBar = {
3838
],
3939
},
4040
{
41-
name: "API Keys",
41+
name: "Projects",
4242
links: [
4343
{
4444
name: "Overview",
@@ -64,6 +64,10 @@ export const sidebar: SideBar = {
6464
name: "Access Restrictions",
6565
href: `${accountSlug}/api-keys/access`,
6666
},
67+
{
68+
name: "Transfer Projects",
69+
href: `${accountSlug}/api-keys/transfer-projects`,
70+
},
6771
],
6872
},
6973
{
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import {DocImage} from "@doc";
2+
import FeeShare from './assets/fee-dash.png';
3+
4+
5+
# Understanding fees
6+
7+
Understand how protocol, developer, and onramp fees work with Universal Bridge.
8+
9+
### Developer Fee
10+
11+
To monetize applications or games, you are able to set a developer fee on each crypto-to-crypto or swap transaction. You may set this percentage
12+
through Project > Universal Bridge > Settings.
13+
14+
<DocImage src={FeeShare} alt="Developer fee share" />
15+
16+
### Protocol Fee
17+
18+
Our protocol fee is a flat 30 basis points (0.30%) applied on the source token amount.
19+
This fee is independent of network gas fees and does not fluctuate.
20+
21+
#### Setting fees using buy or sell
22+
23+
You can configure who pays the protocol fee for buy or sell transactions by specifying the input amount `sell` or `buy`.
24+
25+
See full reference for [`buy`](https://portal.thirdweb.com/references/typescript/v5/buy/prepare) and [`sell`](https://portal.thirdweb.com/references/typescript/v5/sell/prepare).
26+
27+
28+
#### Setting fees on transfers or purchase mode
29+
30+
You can configure who pays the protocol fee for transfers or purchase mode using the `feePayer` setting. This affects the
31+
total amount paid by the user and the amount received by the destination (e.g., a seller, app, or partner).
32+
33+
feePayer=buyer (Default) i.e. the user covers the protocol fee.
34+
35+
Example: If the source token is 10 USDC, the user pays 10.30 USDC.
36+
37+
- thirdweb receives: 0.30 USDC
38+
39+
- Receiver receives: 10.00 USDC
40+
41+
feePayer=receiver i.e. the receiver covers the protocol fee.
42+
43+
Example: The user pays 10.00 USDC.
44+
45+
- thirdweb receives: 0.30 USDC
46+
47+
- Receiver receives: 9.70 USDC
48+
49+
[See full reference.](https://bridge.thirdweb.com/reference#tag/transfer/POST/v1/transfer/prepare)
50+
51+
### Onramp Fee
52+
53+
When onramping to crypto using the Universal Bridge, a fee is charged by the third-party provider. This fee is determined by the provider and is typically a percentage
54+
of the amount being onramped. This fee may vary based on the provider and payment method used.
55+
56+
There are no protocol fees on onramp transactions.

apps/portal/src/app/connect/sidebar.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ export const sidebar: SideBar = {
232232
name: "Supported Routes",
233233
href: "https://thirdweb.com/routes",
234234
},
235+
{
236+
name: "Service Fees",
237+
href: `${paySlug}/fees`,
238+
},
235239
{
236240
name: "Get Started",
237241
href: `${paySlug}/get-started`,

apps/portal/src/app/contracts/sidebar.tsx

-8
Original file line numberDiff line numberDiff line change
@@ -644,10 +644,6 @@ export const sidebar: SideBar = {
644644
name: "ERC20ClaimConditions",
645645
href: `${extensionsSlug}/erc-20/ERC20ClaimConditions`,
646646
},
647-
{
648-
name: "ERC20ClaimPhases",
649-
href: `${extensionsSlug}/erc-20/ERC20ClaimPhases`,
650-
},
651647
{
652648
name: "ERC20Mintable",
653649
href: `${extensionsSlug}/erc-20/ERC20Mintable`,
@@ -791,10 +787,6 @@ export const sidebar: SideBar = {
791787
{
792788
name: "ERC-4337",
793789
links: [
794-
{
795-
name: "AccountModule",
796-
href: `${extensionsSlug}/erc-4337/AccountModule`,
797-
},
798790
{
799791
name: "SmartWallet",
800792
href: `${extensionsSlug}/erc-4337/SmartWallet`,

apps/portal/src/app/engine/page.mdx

+7
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ Engine enables your app to:
2626

2727
🚀 [Get Engine hosted by thirdweb](https://thirdweb.com/team/~/~/engine/create) or [self-host for free](/engine/self-host).
2828

29+
### Tiers
30+
31+
Engine is available in two tiers: Cloud and Dedicated.
32+
- **Cloud**: thirdweb-hosted Engine with autoscaling and high availability.
33+
- **Dedicated**: Self-hosted Engine with full control over your infrastructure.
34+
35+
2936
<DocImage
3037
src={OverviewImage}
3138
alt="Engine overview"

apps/portal/src/app/engine/sidebar.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ export const sidebar: SideBar = {
99
name: "Overview",
1010
href: "/engine",
1111
},
12+
{
13+
name: "Playground",
14+
href: "https://playground.thirdweb.com/engine/airdrop",
15+
},
1216
{
1317
name: "Get Started",
1418
href: `${engineSlug}/get-started`,

apps/portal/src/app/glossary/_components/GlossaryBreadcrumb.tsx

-31
This file was deleted.

apps/portal/src/app/glossary/bundler/page.mdx

-10
This file was deleted.

apps/portal/src/app/glossary/claim-phases/page.mdx

-8
This file was deleted.

apps/portal/src/app/glossary/claiming/page.mdx

-4
This file was deleted.

apps/portal/src/app/glossary/composability/page.mdx

-10
This file was deleted.

apps/portal/src/app/glossary/delayed-reveal/page.mdx

-14
This file was deleted.

apps/portal/src/app/glossary/drop/page.mdx

-15
This file was deleted.

apps/portal/src/app/glossary/entry-point/page.mdx

-4
This file was deleted.

apps/portal/src/app/glossary/externally-owned-account/page.mdx

-4
This file was deleted.

apps/portal/src/app/glossary/factory-contract/page.mdx

-3
This file was deleted.

apps/portal/src/app/glossary/gas/page.mdx

-17
This file was deleted.

apps/portal/src/app/glossary/gasless-transactions/page.mdx

-22
This file was deleted.

apps/portal/src/app/glossary/interoperability/page.mdx

-5
This file was deleted.

0 commit comments

Comments
 (0)