From e4d42435af7bb89e2934f9f715a0cf75c0bc3141 Mon Sep 17 00:00:00 2001 From: Ahmed Castro Date: Wed, 26 Jul 2023 16:40:23 -0600 Subject: [PATCH 1/8] Added missing ` in the OP Stack Getting Started --- src/docs/build/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/build/getting-started.md b/src/docs/build/getting-started.md index a105be8..e3f4898 100644 --- a/src/docs/build/getting-started.md +++ b/src/docs/build/getting-started.md @@ -43,7 +43,7 @@ This tutorial was checked on: | Ubuntu | 20.04 LTS | | | git, curl, jq, and make | OS default | `sudo apt install -y git curl make jq` | | Go | 1.20 | `sudo apt update`
`wget https://go.dev/dl/go1.20.linux-amd64.tar.gz`
`tar xvzf go1.20.linux-amd64.tar.gz`
`sudo cp go/bin/go /usr/bin/go`
`sudo mv go /usr/lib`
`echo export GOROOT=/usr/lib/go >> ~/.bashrc` -| Node | 16.19.0 | `curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -`
`sudo apt-get install -y nodejs npm` +| Node | 16.19.0 | `curl -fsSL https://deb.nodesource.com/setup_16.x \| sudo -E bash -`
`sudo apt-get install -y nodejs npm` | pnpm | 8.5.6 | `sudo npm install -g pnpm` | Foundry | 0.2.0 | `yarn install:foundry` From aaf4fef03ee5f7d789532e051d4d0998cb4c885a Mon Sep 17 00:00:00 2001 From: Ahmed Castro Date: Thu, 27 Jul 2023 09:20:27 -0600 Subject: [PATCH 2/8] Update getting-started.md --- src/docs/build/getting-started.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/docs/build/getting-started.md b/src/docs/build/getting-started.md index e3f4898..0d24fd1 100644 --- a/src/docs/build/getting-started.md +++ b/src/docs/build/getting-started.md @@ -41,11 +41,11 @@ This tutorial was checked on: | Software | Version | Installation command(s) | | -------- | ---------- | - | | Ubuntu | 20.04 LTS | | -| git, curl, jq, and make | OS default | `sudo apt install -y git curl make jq` | -| Go | 1.20 | `sudo apt update`
`wget https://go.dev/dl/go1.20.linux-amd64.tar.gz`
`tar xvzf go1.20.linux-amd64.tar.gz`
`sudo cp go/bin/go /usr/bin/go`
`sudo mv go /usr/lib`
`echo export GOROOT=/usr/lib/go >> ~/.bashrc` +| git, curl, jq, and make | OS default | `sudo apt update`
`sudo apt install -y git curl make jq` | +| Go | 1.20 | `wget https://go.dev/dl/go1.20.linux-amd64.tar.gz`
`tar xvzf go1.20.linux-amd64.tar.gz`
`sudo cp go/bin/go /usr/bin/go`
`sudo mv go /usr/lib`
`echo export GOROOT=/usr/lib/go >> ~/.bashrc` | Node | 16.19.0 | `curl -fsSL https://deb.nodesource.com/setup_16.x \| sudo -E bash -`
`sudo apt-get install -y nodejs npm` | pnpm | 8.5.6 | `sudo npm install -g pnpm` -| Foundry | 0.2.0 | `yarn install:foundry` +| Foundry | 0.2.0 | `curl -L https://foundry.paradigm.xyz \| bash`
`source /root/.bashrc`
`foundryup` ## Build the Source Code @@ -119,6 +119,7 @@ You can generate all of these keys with the `rekey` tool in the `contracts-bedro 1. Enter the Optimism Monorepo: ```bash + cd ~ cd optimism ``` From 66de0a50d70fd325f6c724894b3181e09f310e33 Mon Sep 17 00:00:00 2001 From: Ahmed Castro Date: Thu, 27 Jul 2023 09:33:48 -0600 Subject: [PATCH 3/8] Update getting-started.md --- src/docs/build/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/build/getting-started.md b/src/docs/build/getting-started.md index 0d24fd1..ba408fe 100644 --- a/src/docs/build/getting-started.md +++ b/src/docs/build/getting-started.md @@ -41,7 +41,7 @@ This tutorial was checked on: | Software | Version | Installation command(s) | | -------- | ---------- | - | | Ubuntu | 20.04 LTS | | -| git, curl, jq, and make | OS default | `sudo apt update`
`sudo apt install -y git curl make jq` | +| git, curl, jq, and make | OS default | `sudo apt update`
`sudo apt install -y git curl make jq direnv` | | Go | 1.20 | `wget https://go.dev/dl/go1.20.linux-amd64.tar.gz`
`tar xvzf go1.20.linux-amd64.tar.gz`
`sudo cp go/bin/go /usr/bin/go`
`sudo mv go /usr/lib`
`echo export GOROOT=/usr/lib/go >> ~/.bashrc` | Node | 16.19.0 | `curl -fsSL https://deb.nodesource.com/setup_16.x \| sudo -E bash -`
`sudo apt-get install -y nodejs npm` | pnpm | 8.5.6 | `sudo npm install -g pnpm` From 1474610118d57f206bb16fcd974c152901ee1940 Mon Sep 17 00:00:00 2001 From: Ahmed Castro Date: Fri, 28 Jul 2023 08:54:53 -0600 Subject: [PATCH 4/8] Update getting-started.md --- src/docs/build/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/build/getting-started.md b/src/docs/build/getting-started.md index ba408fe..b9a37e1 100644 --- a/src/docs/build/getting-started.md +++ b/src/docs/build/getting-started.md @@ -43,7 +43,7 @@ This tutorial was checked on: | Ubuntu | 20.04 LTS | | | git, curl, jq, and make | OS default | `sudo apt update`
`sudo apt install -y git curl make jq direnv` | | Go | 1.20 | `wget https://go.dev/dl/go1.20.linux-amd64.tar.gz`
`tar xvzf go1.20.linux-amd64.tar.gz`
`sudo cp go/bin/go /usr/bin/go`
`sudo mv go /usr/lib`
`echo export GOROOT=/usr/lib/go >> ~/.bashrc` -| Node | 16.19.0 | `curl -fsSL https://deb.nodesource.com/setup_16.x \| sudo -E bash -`
`sudo apt-get install -y nodejs npm` +| Node | 16.19.0 | `curl -fsSL https://deb.nodesource.com/setup_16.x \| sudo -E bash -`
`sudo apt-get install -y nodejs` | pnpm | 8.5.6 | `sudo npm install -g pnpm` | Foundry | 0.2.0 | `curl -L https://foundry.paradigm.xyz \| bash`
`source /root/.bashrc`
`foundryup` From 71f8e20efa7f98f793904cdccc6aca05cd1ccd83 Mon Sep 17 00:00:00 2001 From: Ahmed Castro Date: Sat, 29 Jul 2023 10:09:55 -0600 Subject: [PATCH 5/8] Update getting-started.md --- src/docs/build/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/build/getting-started.md b/src/docs/build/getting-started.md index b9a37e1..68bdacb 100644 --- a/src/docs/build/getting-started.md +++ b/src/docs/build/getting-started.md @@ -420,7 +420,7 @@ cd ~/optimism/op-node ./bin/op-node \ --l2=http://localhost:8551 \ - --l2.jwt-secret=./jwt.txt \ + --l2.jwt-secret=./jwt.txt \ --sequencer.enabled \ --sequencer.l1-confs=3 \ --verifier.l1-confs=3 \ From 7ce6f2b87588b8ac1403496bc1cb9e4a480a807c Mon Sep 17 00:00:00 2001 From: Ahmed Castro Date: Thu, 7 Sep 2023 15:20:12 -0600 Subject: [PATCH 6/8] Added rate limit to prevent "429 max limit reached" error --- src/docs/build/getting-started.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/docs/build/getting-started.md b/src/docs/build/getting-started.md index 68bdacb..8bb2cba 100644 --- a/src/docs/build/getting-started.md +++ b/src/docs/build/getting-started.md @@ -431,7 +431,8 @@ cd ~/optimism/op-node --rpc.enable-admin \ --p2p.sequencer.key=$SEQ_KEY \ --l1=$L1_RPC \ - --l1.rpckind=$RPC_KIND + --l1.rpckind=$RPC_KIND \ + --l1.rpc-rate-limit 10 ``` Once you run this command, you should start seeing the `op-node` begin to process all of the L1 information after the starting block number that you picked earlier. Once the `op-node` has enough information, it’ll begin sending Engine API payloads to `op-geth`. At that point, you’ll start to see blocks being created inside of `op-geth`. We’re live! From 54d67d77c07ad51c243e12b89d7afadddf8d9bba Mon Sep 17 00:00:00 2001 From: Ahmed Castro Date: Sat, 9 Sep 2023 17:10:08 -0600 Subject: [PATCH 7/8] now using nvm --- src/docs/build/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/build/getting-started.md b/src/docs/build/getting-started.md index 8bb2cba..e205610 100644 --- a/src/docs/build/getting-started.md +++ b/src/docs/build/getting-started.md @@ -43,7 +43,7 @@ This tutorial was checked on: | Ubuntu | 20.04 LTS | | | git, curl, jq, and make | OS default | `sudo apt update`
`sudo apt install -y git curl make jq direnv` | | Go | 1.20 | `wget https://go.dev/dl/go1.20.linux-amd64.tar.gz`
`tar xvzf go1.20.linux-amd64.tar.gz`
`sudo cp go/bin/go /usr/bin/go`
`sudo mv go /usr/lib`
`echo export GOROOT=/usr/lib/go >> ~/.bashrc` -| Node | 16.19.0 | `curl -fsSL https://deb.nodesource.com/setup_16.x \| sudo -E bash -`
`sudo apt-get install -y nodejs` +| Node | 16.19.0 | `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh \| bash`
`export NVM_DIR="$HOME/.nvm"`
`[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm`
`[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion`
`nvm install 16` | pnpm | 8.5.6 | `sudo npm install -g pnpm` | Foundry | 0.2.0 | `curl -L https://foundry.paradigm.xyz \| bash`
`source /root/.bashrc`
`foundryup` From 1a5f8a87b88b838c4666cac195ca3c093262a229 Mon Sep 17 00:00:00 2001 From: Ahmed Castro Date: Sat, 9 Sep 2023 17:11:39 -0600 Subject: [PATCH 8/8] Now installing pnpm as current user instead of sudo --- src/docs/build/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/build/getting-started.md b/src/docs/build/getting-started.md index e205610..41b0d21 100644 --- a/src/docs/build/getting-started.md +++ b/src/docs/build/getting-started.md @@ -44,7 +44,7 @@ This tutorial was checked on: | git, curl, jq, and make | OS default | `sudo apt update`
`sudo apt install -y git curl make jq direnv` | | Go | 1.20 | `wget https://go.dev/dl/go1.20.linux-amd64.tar.gz`
`tar xvzf go1.20.linux-amd64.tar.gz`
`sudo cp go/bin/go /usr/bin/go`
`sudo mv go /usr/lib`
`echo export GOROOT=/usr/lib/go >> ~/.bashrc` | Node | 16.19.0 | `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh \| bash`
`export NVM_DIR="$HOME/.nvm"`
`[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm`
`[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion`
`nvm install 16` -| pnpm | 8.5.6 | `sudo npm install -g pnpm` +| pnpm | 8.5.6 | `npm install -g pnpm` | Foundry | 0.2.0 | `curl -L https://foundry.paradigm.xyz \| bash`
`source /root/.bashrc`
`foundryup` ## Build the Source Code