- x86
go
https://go.dev/doc/installdocker
https://www.docker.com/get-starteddocker-compose
https://docs.docker.com/compose/install/node
(version >=16)
git submodule init
git submodule update
./build.sh
./run.sh
./stop.sh
go run scripts/main.go l1bridge
You will find out the command will be blocked until L1 chain's latest block number >=202 ,It is fine and the reason about the magic number 202 is that the bridge-service will sync the info between L1 & L2 every 202 blocks
go run scripts/main.go l2claim
Note:
claim may be failed with
err:execution reverted: Bridge::_verifyLeaf: GLOBAL_EXIT_ROOT_INVALID_OR_NOT_YET_CLAIMABL
Wait more minutes and try again. If you want to claim specific bridge index, trygo run scripts/main.go l2claim --index={specificNumber}
Metamask requires the network to be running while configuring it, so make sure your network is running before starting.
private key: ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
To configure your Metamask to use your local environment, follow these steps:
- Log in to your Metamask wallet
- Click on your account picture and then on Settings
- On the left menu, click on Networks
- Click on
Add Network
button - Fill up the L2 network information
Network Name:
OKC-zkEVM-Local-L2New RPC URL:
http://localhost:8123ChainID:
1337Currency Symbol:
OKT
- Click on Save
- Click on
Add Network
button - Fill up the L1 network information
Network Name:
OKC-Local-L1New RPC URL:
http://localhost:26659ChainID:
67Currency Symbol:
OKT
- Click on Save