Commit 8f98de8d authored by vicotor's avatar vicotor

update

parent 9a5cf5bd
...@@ -27,29 +27,12 @@ export L1_BLOCK_TIME=3 ...@@ -27,29 +27,12 @@ export L1_BLOCK_TIME=3
export L2_CHAIN_ID=42069 export L2_CHAIN_ID=42069
export L2_BLOCK_TIME=1 export L2_BLOCK_TIME=1
##################################################
# op-node Configuration #
##################################################
# The kind of RPC provider, used to inform optimal transactions receipts
# fetching. Valid options: alchemy, quicknode, infura, parity, nethermind,
# debug_geth, erigon, basic, any.
export L1_RPC_KIND=basic export L1_RPC_KIND=basic
##################################################
# Contract Deployment #
##################################################
# RPC URL for the L1 network to interact with # RPC URL for the L1 network to interact with
export L1_RPC_URL=http://172.80.1.2:8545 export L1_RPC_URL=http://172.80.1.2:8545
# Salt used via CREATE2 to determine implementation addresses
# NOTE: If you want to deploy contracts from scratch you MUST reload this
# variable to ensure the salt is regenerated and the contracts are
# deployed to new addresses (otherwise deployment will fail)
export IMPL_SALT=$(openssl rand -hex 32) export IMPL_SALT=$(openssl rand -hex 32)
# Name for the deployed network
export DEPLOYMENT_CONTEXT=exchain export DEPLOYMENT_CONTEXT=exchain
# Optional Tenderly details for simulation link during deployment # Optional Tenderly details for simulation link during deployment
......
# deploy # ExChain Deployment Guide
1. deploy layer1 with eth. ## 1. prepare .envrc
Copy the `.envrc.example` to `.envrc` and modify the content to fit your environment.
2. deploy `0x4e59b44847b379578588920cA78FbF26c0B4956C` contract
```shell ```shell
docker run cp .envrc.example .envrc
``` ```
3. deploy `contract-bedrock` ## 2. modify the layer1 and layer2 config
You can modify `layer1/genesis.json` and `layer2/alloc.json` to funds the account at genesis block.
```shell
source .envrc
forge install
```
4. generate `genesis.json` and `rollup.json` with `op-node` ## 3. detail command to do.
make init : init layer1 and layer2
make start: start layer1 and layer2
make stop : stop layer1 and layer2
make clean: clean all chain data
5. init and start `op-node`.
\ No newline at end of file
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"petersburgBlock": 0, "petersburgBlock": 0,
"istanbulBlock": 0, "istanbulBlock": 0,
"clique": { "clique": {
"period": 1, "period": 3,
"epoch": 30000 "epoch": 30000
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment