Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
3d27411a
Unverified
Commit
3d27411a
authored
Apr 12, 2024
by
soyboy
Committed by
GitHub
Apr 12, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improving the op-upgrade docs (#10123)
* improving the op-upgrade docs * addressing code rabbit suggestions
parent
5c1dcb03
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
Makefile
op-chain-ops/Makefile
+3
-0
README.md
op-chain-ops/cmd/op-upgrade/README.md
+22
-0
main.go
op-chain-ops/cmd/op-upgrade/main.go
+1
-1
No files found.
op-chain-ops/Makefile
View file @
3d27411a
...
...
@@ -7,6 +7,9 @@ ecotone-scalar:
receipt-reference-builder
:
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
:
go
test
./...
...
...
op-chain-ops/cmd/op-upgrade/README.md
View file @
3d27411a
...
...
@@ -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
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
```
op-chain-ops/cmd/op-upgrade/main.go
View file @
3d27411a
...
...
@@ -44,7 +44,7 @@ func main() {
},
&
cli
.
StringFlag
{
Name
:
"superchain-target"
,
Usage
:
"The name of the superchain t
o upgrade
"
,
Usage
:
"The name of the superchain t
arget to upgrade. For example: mainnet or sepolia.
"
,
EnvVars
:
[]
string
{
"SUPERCHAIN_TARGET"
},
},
&
cli
.
PathFlag
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment