unify all steps to one cmd to start L2: make l2-launch (generate address, deploy contract, start services including the bridge)
move all complex logic to its own shell scripts. the idea is each make cmd should maps to one or a few shell scripts. any other logics such as sed should go into the scripts
added l2-stop target
Test Plan
make l2-stop
make l2-launch
╰─ make l2-verify ─╯
Checking if L2 op-geth is running...
L2 op-geth is running and the chain id is 11155437
Checking if L2 op-node is running...
{
"head_l1_number": 56190,
"safe_l1_number": 56144,
"finalized_l1_number": 56136,
"unsafe_l2_number": 379,
"safe_l2_number": 0,
"finalized_l2_number": 0
}
Summary
make l2-launch
(generate address, deploy contract, start services including the bridge)sed
should go into the scriptsl2-stop
targetTest Plan
also see http://35.192.168.213:3002/ is up