Skip to content

Commit aaefe31

Browse files
authored
Merge pull request #1333 from ethereum-optimism/supersim-migrate
app dev restructure
2 parents 27c441c + d33b4a0 commit aaefe31

File tree

111 files changed

+2844
-690
lines changed

Some content is hidden

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

111 files changed

+2844
-690
lines changed

components/AskAIButton.tsx

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,36 @@
11
import { RiSparkling2Fill } from '@remixicon/react';
22
import { useFeature } from '@growthbook/growthbook-react';
3+
import { useEffect, useState } from 'react';
34

45
const AskAIButton = () => {
6+
const [mounted, setMounted] = useState(false);
57
const enableDocsAIWidget = useFeature('enable_docs_ai_widget').on;
8+
9+
useEffect(() => {
10+
setMounted(true);
11+
}, []);
12+
13+
// Don't render anything until client-side
14+
if (!mounted) {
15+
return null;
16+
}
617

718
if (!enableDocsAIWidget) {
819
return null;
920
}
1021

1122
return (
12-
<button id='custom-ask-ai-button' className='nx-flex nx-gap-2 nx-items-center nx-py-1.5 nx-px-3 nx-rounded-lg nx-text-sm nx-font-semibold' style={{ backgroundColor: '#FF0420', color: 'white', display: 'flex', alignItems: 'center', gap: '4px' }}>
23+
<button
24+
id='custom-ask-ai-button'
25+
className='nx-flex nx-gap-2 nx-items-center nx-py-1.5 nx-px-3 nx-rounded-lg nx-text-sm nx-font-semibold'
26+
style={{
27+
backgroundColor: '#FF0420',
28+
color: 'white',
29+
display: 'flex',
30+
alignItems: 'center',
31+
gap: '4px'
32+
}}
33+
>
1334
<span>Ask AI</span>
1435
<RiSparkling2Fill size={14} />
1536
</button>

components/WipCallout.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,8 @@ export function InteropCallout({ context }: Props): ReactElement {
6262
<div className="nx-text-left">
6363
Interop is currently in <strong>active development</strong> and not
6464
yet ready for production use. The information provided here may
65-
change frequently.
66-
<p>
67-
We recommend checking back regularly for the most up-to-date
65+
change frequently. We recommend checking back regularly for the most up-to-date
6866
information.
69-
</p>
7067
</div>
7168
)}
7269
</div>

nouns.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Ethereum
44
OP Stack
55
MetaMask
66
SuperchainERC20
7+
SuperchainERC20 Starter Kit
8+
Supersim
79
ZK
810
Security Council
911
Sequencer PBS

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"fix": "eslint . --ext mdx --fix && pnpm spellcheck:fix && pnpm breadcrumbs && pnpm fix-redirects",
88
"spellcheck:lint": "cspell lint \"**/*.mdx\"",
99
"spellcheck:fix": "cspell --words-only --unique \"**/*.mdx\" | sort --ignore-case | uniq > words.txt",
10+
"linkcheck": "lychee --config ./lychee.toml --quiet \"./pages\"",
1011
"breadcrumbs": "npx ts-node --skip-project utils/create-breadcrumbs.ts",
1112
"check-redirects": "npx ts-node --skip-project utils/redirects.ts",
1213
"fix-redirects": "npx ts-node --skip-project utils/fix-redirects.ts",

pages/app-developers/_meta.json

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,35 @@
33
"title": "App Developers",
44
"type": "separator"
55
},
6-
"overview": "Overview",
7-
"quick-start": "Superchain app quick start",
8-
"tutorials": "Tutorials",
9-
"transactions": "Transactions",
6+
"get-started": "Getting started",
7+
"starter-kit": "SuperchainERC20 starter kit",
8+
"interop": "Interoperability",
9+
"building-apps": "Building apps on the Superchain",
10+
"testing-apps": "Testing apps for the Superchain",
1011
"bridging": "Bridging",
11-
"tools": "App tools"
12+
"transactions": "Transactions",
13+
"+++ Tutorials": {
14+
"title": "",
15+
"type": "separator"
16+
},
17+
"--- Tutorials": {
18+
"title": "Tutorials",
19+
"type": "separator"
20+
},
21+
"tutorials": {
22+
"title": "Tutorials",
23+
"display": "children"
24+
},
25+
"+++ DevTools": {
26+
"title": "",
27+
"type": "separator"
28+
},
29+
"--- DevTools": {
30+
"title": "Developer tools",
31+
"type": "separator"
32+
},
33+
"tools": {
34+
"title": "Developer tools",
35+
"display": "children"
36+
}
1237
}

pages/app-developers/bridging.mdx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
---
2-
title: Bridging
2+
title: Bridging guides
33
lang: en-US
44
description: Learn about bridging basics, custom bridges, data transmission between L1 and L2, and using the standard bridge in OP Stack.
55
---
66

77
import { Card, Cards } from 'nextra/components'
88

9-
# Bridging
9+
# Bridging guides
1010

11-
This section provides information on bridging basics, custom bridges, sending data between l1 and l2 and using the standard bridge. You'll find guide, overview to help you understand and work with these topics.
11+
Looking to build an application that sends ETH, tokens, or data between OP Mainnet and Ethereum?
12+
You'll find some useful guides and tutorials in this area of the docs.
13+
For instance, if you want to learn how to bridge a token from Ethereum to OP Mainnet (or vice versa!), you should check out the [Standard Token Bridge](bridging/standard-bridge).
14+
15+
If you're looking for something more advanced, take a look at the guide on [sending data between L1 and L2](bridging/messaging).
16+
Contracts on one chain can trigger contract functions on the other chain, which is pretty cool!
17+
The Standard Token Bridge for OP Mainnet even uses this same message-passing infrastructure under the hood.
1218

1319
<Cards>
14-
<Card title="Bridging basics" href="/app-developers/bridging/basics" />
15-
<Card title="Custom bridges" href="/app-developers/bridging/custom-bridge" />
16-
<Card title="Sending data between L1 and L2" href="/app-developers/bridging/messaging" />
17-
<Card title="The Standard Bridge" href="/app-developers/bridging/standard-bridge" />
20+
<Card title="Bridging basics" href="/app-developers/bridging/basics" icon={<img src="/img/icons/shapes.svg" />} />
21+
<Card title="Standard bridge" href="/app-developers/bridging/standard-bridge" icon={<img src="/img/icons/shapes.svg" />} />
22+
<Card title="Custom bridges" href="/app-developers/bridging/custom-bridge" icon={<img src="/img/icons/shapes.svg" />} />
23+
<Card title="Sending data between L1 and L2" href="/app-developers/bridging/messaging" icon={<img src="/img/icons/shapes.svg" />} />
1824
</Cards>

pages/app-developers/bridging/basics.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ All of this is easily accessible with a simple, clean API.
2828
Ready to start bridging?
2929
Check out these tutorials to get up to speed fast.
3030

31-
* [Learn how to bridge ERC-20 tokens with viem](/app-developers/tutorials/cross-dom-bridge-erc20)
32-
* [Learn how to bridge ETH with viem](/app-developers/tutorials/cross-dom-bridge-eth)
33-
* [Learn how to create a standard bridged token](/app-developers/tutorials/standard-bridge-standard-token)
34-
* [Learn how to create a custom bridged token](/app-developers/tutorials/standard-bridge-custom-token)
31+
* [Learn how to bridge ERC-20 tokens with viem](/app-developers/tutorials/bridging/cross-dom-bridge-erc20)
32+
* [Learn how to bridge ETH with viem](/app-developers/tutorials/bridging/cross-dom-bridge-eth)
33+
* [Learn how to create a standard bridged token](/app-developers/tutorials/bridging/standard-bridge-standard-token)
34+
* [Learn how to create a custom bridged token](/app-developers/tutorials/bridging/standard-bridge-custom-token)

pages/app-developers/bridging/custom-bridge.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This guide provides important information you should be aware of when building a
1515
<Callout>
1616
Custom bridges can bring a significant amount of complexity and risk to any project.
1717
Before you commit to a custom bridge, be sure that the [Standard Bridge](./standard-bridge) definitely does not support your use case.
18-
[Building a custom bridged token](/app-developers/tutorials/standard-bridge-custom-token) is often sufficient for projects that need more flexibility.
18+
[Building a custom bridged token](/app-developers/tutorials/bridging/standard-bridge-custom-token) is often sufficient for projects that need more flexibility.
1919
</Callout>
2020

2121
## Guidelines

pages/app-developers/bridging/messaging.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This page explains how bridging works, how to use it, and what to watch out for.
1313

1414
<Callout type="info">
1515
This is a high-level overview of the bridging process.
16-
For a step-by-step tutorial on how to send data between L1 and L2, check out the [Solidity tutorial](/app-developers/tutorials/cross-dom-solidity).
16+
For a step-by-step tutorial on how to send data between L1 and L2, check out the [Solidity tutorial](/app-developers/tutorials/bridging/cross-dom-solidity).
1717
</Callout>
1818

1919
## Understanding contract calls

pages/app-developers/bridging/standard-bridge.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ Users simply need to trigger and send ETH to the [`bridgeETH`](https://github.co
199199

200200
## Tutorials
201201

202-
* [Learn how to bridge ERC-20 tokens with viem](/app-developers/tutorials/cross-dom-bridge-erc20)
203-
* [Learn how to bridge ETH with viem](/app-developers/tutorials/cross-dom-bridge-eth)
204-
* [Learn how to create a standard bridged token](/app-developers/tutorials/standard-bridge-standard-token)
205-
* [Learn how to create a custom bridged token](/app-developers/tutorials/standard-bridge-custom-token)
202+
* [Learn how to bridge ERC-20 tokens with viem](/app-developers/tutorials/bridging/cross-dom-bridge-erc20)
203+
* [Learn how to bridge ETH with viem](/app-developers/tutorials/bridging/cross-dom-bridge-eth)
204+
* [Learn how to create a standard bridged token](/app-developers/tutorials/bridging/standard-bridge-standard-token)
205+
* [Learn how to create a custom bridged token](/app-developers/tutorials/bridging/standard-bridge-custom-token)
206206

207207
## Superchain Token List
208208

0 commit comments

Comments
 (0)