You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/builders/chain-operators/tutorials/create-l2-rollup.mdx
+96-71Lines changed: 96 additions & 71 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,77 +112,102 @@ Although this adds a few extra steps, it means you'll have an easier time modify
112
112
cd optimism
113
113
```
114
114
115
-
{<h3>Check out the correct branch</h3>}
116
-
117
-
<Callouttype="info">
118
-
You will be using the `tutorials/chain` branch of the Optimism Monorepo to deploy an OP Stack testnet chain during this tutorial.
119
-
This is a non-production branch that lags behind the `develop` branch.
120
-
You should **NEVER** use the `develop` or `tutorials/chain` branches in production.
121
-
</Callout>
122
-
123
-
```bash
124
-
git checkout tutorials/chain
125
-
```
126
-
127
-
<Callouttype="warning">
128
-
The components in the `tutorials/chain` branch are outdated and may have compatibility issues with the latest L1 networks.\
129
-
To ensure compatibility and stability, you will:
130
-
131
-
1. Download the latest releases of `op-node`, `op-batcher`, and `op-proposer` from the Optimism releases page
132
-
2. Use these latest versions to override the outdated components in the `tutorials/chain` branch
133
-
3. Maintain compatibility with current L1 network specifications
134
-
</Callout>
135
-
136
-
{<h3> Download the latest Optimism releases </h3>}
137
-
138
-
1. Visit the [Official Optimism releases page](https://github.com/ethereum-optimism/optimism/releases)
139
-
2. Look for the latest stable release tagged as `vX.Y.Z`
140
-
3. Download the following components for your operating system:
141
-
142
-
*`op-node`
143
-
*`op-batcher`
144
-
*`op-proposer`
145
-
146
-
{<h3>Verify release integrity</h3>}
147
-
148
-
1. Download the `checksums.txt` file from the release assets
149
-
2. Verify file integrity using the appropriate command for your OS:
150
-
151
-
```bash
152
-
# On Linux
153
-
sha256sum -c checksums.txt
154
-
# On macOS
155
-
shasum -a 256 -c checksums.txt
156
-
# On Windows (PowerShell)
157
-
Get-FileHash <file>| Format-List
158
-
```
159
-
160
-
{<h3> Download required binaries</h3>}
161
-
162
-
In the *Assets* section of the release, download these files for your operating system:
163
-
164
-
*`op-node_<version>_<OS>_<arch>.tar.gz`
165
-
*`op-batcher_<version>_<OS>_<arch>.tar.gz`
166
-
*`op-proposer_<version>_<OS>_<arch>.tar.gz`
167
-
168
-
{<h3> Extract binaries</h3>}
169
-
170
-
Using your system's archive tool:
171
-
172
-
1. Extract all `.tar.gz` files
173
-
2. Override any outdated components in the `tutorials/chain` branch during extraction by moving these extracted files to a directory in your system `PATH`:
174
-
175
-
*`op-node`
176
-
*`op-batcher`
177
-
*`op-proposer`
178
-
179
-
{<h3> Verify installation</h3>}
180
-
181
-
```bash
182
-
op-node --version
183
-
op-batcher --version
184
-
op-proposer --version
185
-
```
115
+
{<h3>Create and switch to tutorial branch</h3>}
116
+
117
+
```bash
118
+
git checkout -b tutorial
119
+
```
120
+
121
+
{<h3>Create package.json</h3>}
122
+
123
+
Create a new file named `package.json` and add the following content:
124
+
125
+
```json
126
+
{
127
+
"name": "optimism",
128
+
"version": "1.0.0",
129
+
"author": "Optimism PBC",
130
+
"license": "MIT",
131
+
"private": true,
132
+
"engines": {
133
+
"node": ">=16",
134
+
"pnpm": ">=8"
135
+
},
136
+
"scripts": {
137
+
"clean": "pnpm recursive run clean; rm -rf node_modules packages/*/node_modules && echo 'Finished cleaning. Run `pnpm install && pnpm build` from root of repo to rebuild the repo.'",
0 commit comments