Commit 3d27411a authored by soyboy's avatar soyboy Committed by GitHub

improving the op-upgrade docs (#10123)

* improving the op-upgrade docs

* addressing code rabbit suggestions
parent 5c1dcb03
...@@ -7,6 +7,9 @@ ecotone-scalar: ...@@ -7,6 +7,9 @@ ecotone-scalar:
receipt-reference-builder: receipt-reference-builder:
go build -o ./bin/receipt-reference-builder ./cmd/receipt-reference-builder/*.go go build -o ./bin/receipt-reference-builder ./cmd/receipt-reference-builder/*.go
op-upgrade:
go build -o ./bin/op-upgrade ./cmd/op-upgrade/main.go
test: test:
go test ./... go test ./...
......
...@@ -36,3 +36,25 @@ be read out of the directory as needed. ...@@ -36,3 +36,25 @@ be read out of the directory as needed.
The file that the bundle should be written to. If omitted, the file The file that the bundle should be written to. If omitted, the file
will be written to stdout. will be written to stdout.
#### Usage
Build and run using the [Makefile](../../Makefile) `op-upgrade` target.
Inside `/op-chain-ops`, run:
```sh
make op-upgrade
```
to create a binary in [../../bin/op-upgrade](../../bin/op-upgrade) that can
be executed. Execute the following command inside `/op-chain-ops` to
create the Safe transaction bundle in an output file called `input.json`.
```sh
./bin/op-upgrade \
--l1-rpc-url https://ethereum-rpc.publicnode.com \
--chain-ids 10 \
--superchain-target mainnet \
--outfile input.json \
--deploy-config ../packages/contracts-bedrock/deploy-config
```
...@@ -44,7 +44,7 @@ func main() { ...@@ -44,7 +44,7 @@ func main() {
}, },
&cli.StringFlag{ &cli.StringFlag{
Name: "superchain-target", Name: "superchain-target",
Usage: "The name of the superchain to upgrade", Usage: "The name of the superchain target to upgrade. For example: mainnet or sepolia.",
EnvVars: []string{"SUPERCHAIN_TARGET"}, EnvVars: []string{"SUPERCHAIN_TARGET"},
}, },
&cli.PathFlag{ &cli.PathFlag{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment