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
5c224f2b
Commit
5c224f2b
authored
Dec 07, 2022
by
Ben C
Committed by
Mark Tyneway
Jan 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-chain-ops: cleanup
Co-authored-by:
clabby
<
ben@clab.by
>
parent
ae68c34f
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
953 additions
and
121 deletions
+953
-121
messages.tgz
op-chain-ops/cmd/withdrawals/data/messages.tgz
+0
-0
main.go
op-chain-ops/cmd/withdrawals/main.go
+504
-117
withdraw.sh
op-chain-ops/cmd/withdrawals/withdraw.sh
+42
-0
go.mod
op-chain-ops/go.mod
+5
-2
go.sum
op-chain-ops/go.sum
+402
-2
No files found.
op-chain-ops/cmd/withdrawals/data/messages.tgz
0 → 100644
View file @
5c224f2b
File added
op-chain-ops/cmd/withdrawals/main.go
View file @
5c224f2b
This diff is collapsed.
Click to expand it.
op-chain-ops/cmd/withdrawals/withdraw.sh
0 → 100755
View file @
5c224f2b
#!/bin/sh
# Get relative directory of this script
SCRIPT_DIR
=
"
$(
dirname
--
${
BASH_SOURCE
[0]
}
)
"
# -- RPCs --
L1_RPC
=
"https://goerli-l1-8104952.optimism.io"
L2_RPC
=
"https://goerli-3319642-sequencer.optimism.io"
# -- Message File Paths --
OVM_MESSAGES
=
"
$SCRIPT_DIR
/data/messages/ovm-messages.json"
EVM_MESSAGES
=
"
$SCRIPT_DIR
/data/messages/evm-messages.json"
# -- Contracts --
PORTAL
=
"0x7db2f4b1f880257a99e024647cead4e3ad63b665"
L1XDM
=
"0x5086d1eef304eb5284a0f6720f79403b4e9be294"
L1BRIDGE
=
"0x636Af16bf2f682dD3109e60102b8E1A089FedAa8"
# -- Genesis Block --
L2GENESIS
=
3319643
# -- Account --
# Pub Key: 0x4F3278d9FF0426E4b60653bee23D0a768E700672
SECRET
=
"
$(
cat
$SCRIPT_DIR
/.secret
)
"
# Extract messages tar
tar
-xvf
$SCRIPT_DIR
/data/messages.tgz
-C
$SCRIPT_DIR
/data
# Run built withdrawals binary
go run
$SCRIPT_DIR
/main.go
\
--l1-rpc-url
$L1_RPC
\
--l2-rpc-url
$L2_RPC
\
--ovm-messages
$OVM_MESSAGES
\
--evm-messages
$EVM_MESSAGES
\
--optimism-portal-address
$PORTAL
\
--l1-crossdomain-messenger-address
$L1XDM
\
--l1-standard-bridge-address
$L1BRIDGE
\
--bedrock-transition-block-number
$L2GENESIS
\
--private-key
$SECRET
# Delete message JSON files
rm
-rf
$SCRIPT_DIR
/data/messages
op-chain-ops/go.mod
View file @
5c224f2b
...
...
@@ -3,6 +3,7 @@ module github.com/ethereum-optimism/optimism/op-chain-ops
go 1.18
require (
github.com/ethereum-optimism/optimism/l2geth v0.0.0-20230125064221-e92bc23c2619
github.com/ethereum-optimism/optimism/op-bindings v0.10.11
github.com/ethereum-optimism/optimism/op-node v0.10.1
github.com/ethereum/go-ethereum v1.10.26
...
...
@@ -24,7 +25,7 @@ require (
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
github.com/edsrzf/mmap-go v1.1.0 // indirect
github.com/ethereum-optimism/optimism/op-service v0.10.11 // indirect
github.com/g
o-kit/kit v0.10.0
// indirect
github.com/g
ballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08
// indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/golang/snappy v0.0.4 // indirect
...
...
@@ -48,14 +49,16 @@ require (
github.com/rogpeppe/go-internal v1.8.1 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/status-im/keycard-go v0.0.0-20211109104530-b0e0482ba91d // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a // indirect
github.com/tklauser/go-sysconf v0.3.10 // indirect
github.com/tklauser/numcpus v0.5.0 // indirect
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/yusufpapurcu/wmi v1.2.2 // indirect
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect
golang.org/x/sys v0.0.0-20221013171732-95e765b1cc43 // indirect
go
pkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
// indirect
go
lang.org/x/text v0.3.7
// indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
...
...
op-chain-ops/go.sum
View file @
5c224f2b
This diff is collapsed.
Click to expand it.
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