-
Notifications
You must be signed in to change notification settings - Fork 0
/
cd git clone https github.txt
144 lines (130 loc) · 3.79 KB
/
cd git clone https github.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
cd ~
git clone https://github.com/Plasmmer/op-geth.git
cd op-geth
make geth
cd ~
cd optimism
cd packages/contracts-bedrock
npx hardhat rekey
cd ~/optimism
cd packages/contracts-bedrock
#cast block finalized --rpc-url https://rpc-mumbai.maticvigil.com | grep -E "(timestamp|hash|number)"
#cast block finalized --rpc-url https://rpc-mainnet.maticvigil.com | grep -E "(timestamp|hash|number)"
cp .env.example .env
"npx hardhat deploy --network mumbai --tags l1" or "npx hardhat deploy --network polygon --tags l1"
cd ~/optimism/op-node
--------------------------
go run cmd/main.go genesis l2 \
--deploy-config ../packages/contracts-bedrock/deploy-config/mumbai.json \
--deployment-dir ../packages/contracts-bedrock/deployments/mumbai/ \
--outfile.l2 genesis.json \
--outfile.rollup rollup.json \
--l1-rpc https://rpc-mumbai.maticvigil.com
------------------or:
go run cmd/main.go genesis l2 \
--deploy-config ../packages/contracts-bedrock/deploy-config/polygon.json \
--deployment-dir ../packages/contracts-bedrock/deployments/polygon/ \
--outfile.l2 genesis.json \
--outfile.rollup rollup.json \
--l1-rpc https://rpc-mainnet.maticvigil.com
--------------------------
openssl rand -hex 32 > jwt.txt
cp genesis.json ~/op-geth
cp jwt.txt ~/op-geth
cd ~/op-geth
mkdir datadir
echo "pwd" > datadir/password
echo "<SEQUENCER KEY HERE>" > datadir/block-signer-key
./build/bin/geth account import --datadir=datadir --password=datadir/password datadir/block-signer-key
build/bin/geth init --datadir=datadir genesis.json
cd ~/op-geth
--------------------------
export SEQ_ADDR="0xdbbe642382acebe84fb95d520a54f758d19e3b6c"
export SEQ_KEY=""
export BATCHER_KEY=""
export PROPOSER_KEY=""
export L1_RPC="https://rpc-mumbai.maticvigil.com"
export RPC_KIND="any"
export L2OO_ADDR="0x4Eb28Ca01c7062D51D4E86e09dB2D7Ad451F87BD"
------------------or:
export SEQ_ADDR="0xdbbe642382acebe84fb95d520a54f758d19e3b6c"
export SEQ_KEY=""
export BATCHER_KEY=""
export PROPOSER_KEY=""
export L1_RPC="https://rpc-mainnet.maticvigil.com"
export RPC_KIND="any"
export L2OO_ADDR="0x4Eb28Ca01c7062D51D4E86e09dB2D7Ad451F87BD"
--------------------------
source .bashrc
--------------------------
./build/bin/geth \
--datadir ./datadir \
--http \
--http.corsdomain="*" \
--http.vhosts="*" \
--http.addr=0.0.0.0 \
--http.api=web3,debug,eth,txpool,net,engine \
--ws \
--ws.addr=0.0.0.0 \
--ws.port=8546 \
--ws.origins="*" \
--ws.api=debug,eth,txpool,net,engine \
--syncmode=full \
--gcmode=archive \
--nodiscover \
--maxpeers=0 \
--networkid=80002 \
--authrpc.vhosts="*" \
--authrpc.addr=0.0.0.0 \
--authrpc.port=8551 \
--authrpc.jwtsecret=./jwt.txt \
--rollup.disabletxpoolgossip=true \
--password=./datadir/password \
--allow-insecure-unlock \
--mine \
--miner.etherbase=$SEQ_ADDR \
--unlock=$SEQ_ADDR
------------------or:
./build/bin/geth \
--datadir ./datadir \
--http \
--http.corsdomain="*" \
--http.vhosts="*" \
--http.addr=0.0.0.0 \
--http.api=web3,debug,eth,txpool,net,engine \
--ws \
--ws.addr=0.0.0.0 \
--ws.port=8546 \
--ws.origins="*" \
--ws.api=debug,eth,txpool,net,engine \
--syncmode=full \
--gcmode=archive \
--nodiscover \
--maxpeers=0 \
--networkid=133 \
--authrpc.vhosts="*" \
--authrpc.addr=0.0.0.0 \
--authrpc.port=8551 \
--authrpc.jwtsecret=./jwt.txt \
--rollup.disabletxpoolgossip=true \
--password=./datadir/password \
--allow-insecure-unlock \
--mine \
--miner.etherbase=$SEQ_ADDR \
--unlock=$SEQ_ADDR
--------------------------
cd ~/optimism/op-node
./bin/op-node \
--l2=http://localhost:8551 \
--l2.jwt-secret=./jwt.txt \
--sequencer.enabled \
--sequencer.l1-confs=3 \
--verifier.l1-confs=3 \
--rollup.config=./rollup.json \
--rpc.addr=0.0.0.0 \
--rpc.port=8547 \
--p2p.disable \
--rpc.enable-admin \
--p2p.sequencer.key=$SEQ_KEY \
--l1=$L1_RPC \
--l1.rpckind=$RPC_KIND