Commit 97a52aa9 authored by luxq's avatar luxq

add layer1

parent a841dcbe
.idea
node/data/geth
init:
docker run -rm -name initlayer1 -v "${PWD}/layer1:/root" tscel/eth:v1.10.26 geth init --datadir /root/node /root/genesis.json
start:
docker compose up -d
stop:
docker compose down
\ No newline at end of file
# deploy
1. deploy layer1 with eth.
2. deploy `0x4e59b44847b379578588920cA78FbF26c0B4956C` contract
```shell
docker run
```
3. deploy `contract-bedrock`
```shell
source .envrc
forge install
```
4. generate `genesis.json` and `rollup.json` with `op-node`
5. init and start `op-node`.
\ No newline at end of file
version: '3'
networks:
exchain:
driver: bridge
services:
layer1:
image: tscel/eth:v1.10.26
networks:
- exchain
ports:
- "8545:8545"
entrypoint: geth --datadir /root/node/data --http --nodiscover --miner.gaslimit=10000000000 --http.api=eth,net,web3,admin,txpool,miner,debug --http.addr=0.0.0.0 --http.corsdomain=* --authrpc.vhosts=* --authrpc.addr=0.0.0.0 --authrpc.port=8552 --rpc.allow-unprotected-txs --authrpc.jwtsecret=/root/node/data/jwtsecret --allow-insecure-unlock --unlock=$MINER --password=/root/password.txt --mine --gcmode archive
volumes:
- "./layer1/node:/root/node"
- "./layer1/password.txt:/root/password.txt"
environment:
- MINER=0xfEe2882b7d75FadDcebD002E7e3bEf7B19Eed14E
{
"config": {
"chainId": 10099,
"homesteadBlock": 0,
"eip150Block": 0,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 0,
"eip158Block": 0,
"berlinBlock": 0,
"byzantiumBlock": 0,
"londonBlock":0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"clique": {
"period": 1,
"epoch": 30000
}
},
"nonce": "0x0",
"timestamp": "0x67d155d4",
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000fee2882b7d75faddcebd002e7e3bef7b19eed14e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x47b760",
"difficulty": "0x1",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
"alloc": {
"00008b378851eba80f66575b2fbc34e9e0b7baa7": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
},
"119ba92c15337ffb37871e44f3f9102409d95f12": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
},
"3fab184622dc19b6109349b94811493bf2a45362": {
"balance": "0x200000000000000000000000000000000000000000000000000000000000000"
}
},
"number": "0x0",
"gasUsed": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"baseFeePerGas": null
}
\ No newline at end of file
{"address":"fee2882b7d75faddcebd002e7e3bef7b19eed14e","crypto":{"cipher":"aes-128-ctr","ciphertext":"5cb612327d73ea9af8d4010a06e0702eb0042fde8d93159522ab64e733acac50","cipherparams":{"iv":"23d80c43d680eca06f8ddb396f9d068c"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"e20db663d361867f42674dd9b11c7aa796bcabfcf2658e00f6220797bbb15c79"},"mac":"4a04effd5b0090dbe40168f6c782770e03d810713f27fbd5f85611b0b65abfa8"},"id":"fdabca50-7a04-4137-9647-230654b766ee","version":3}
\ No newline at end of file
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