Integrate optimism-contracts service and update instructions
This commit is contained in:
parent
dc3686229f
commit
eeb9dab626
@ -3,12 +3,12 @@ version: '3.7'
|
|||||||
services:
|
services:
|
||||||
fixturenet-optimism-contracts:
|
fixturenet-optimism-contracts:
|
||||||
hostname: fixturenet-optimism-contracts
|
hostname: fixturenet-optimism-contracts
|
||||||
|
image: cerc/optimism-contracts:local
|
||||||
depends_on:
|
depends_on:
|
||||||
fixturenet-eth-geth-1:
|
fixturenet-eth-geth-1:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
fixturenet-eth-bootnode-lighthouse:
|
fixturenet-eth-bootnode-lighthouse:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
image: cerc/optimism-contracts:local
|
|
||||||
environment:
|
environment:
|
||||||
CHAIN_ID: 1212
|
CHAIN_ID: 1212
|
||||||
L1_RPC: "http://fixturenet-eth-geth-1:8545"
|
L1_RPC: "http://fixturenet-eth-geth-1:8545"
|
||||||
@ -20,18 +20,18 @@ services:
|
|||||||
- ../config/fixturenet-optimism/optimism-contracts/run.sh:/app/packages/contracts-bedrock/run.sh
|
- ../config/fixturenet-optimism/optimism-contracts/run.sh:/app/packages/contracts-bedrock/run.sh
|
||||||
- fixturenet-geth-accounts:/geth-accounts
|
- fixturenet-geth-accounts:/geth-accounts
|
||||||
- l2-accounts:/l2-accounts
|
- l2-accounts:/l2-accounts
|
||||||
# TODO: Add healthcheck
|
- l1-deployment:/app/packages/contracts-bedrock
|
||||||
# healthcheck:
|
|
||||||
|
|
||||||
op-node-l2-config-gen:
|
op-node-l2-config-gen:
|
||||||
environment:
|
|
||||||
# TODO: Integrate
|
|
||||||
L1_RPC: "http://fixturenet-eth-geth-1:8545"
|
|
||||||
image: cerc/optimism-op-node:local
|
image: cerc/optimism-op-node:local
|
||||||
|
depends_on:
|
||||||
|
fixturenet-optimism-contracts:
|
||||||
|
condition: service_completed_successfully
|
||||||
|
environment:
|
||||||
|
L1_RPC: "http://fixturenet-eth-geth-1:8545"
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/fixturenet-optimism/generate-l2-config.sh:/app/generate-l2-config.sh
|
- ../config/fixturenet-optimism/generate-l2-config.sh:/app/generate-l2-config.sh
|
||||||
# TODO: Integrate
|
- l1-deployment:/contracts-bedrock
|
||||||
- ../test/contracts-bedrock:/contracts-bedrock
|
|
||||||
- op_node_data:/app
|
- op_node_data:/app
|
||||||
command: ["sh", "/app/generate-l2-config.sh"]
|
command: ["sh", "/app/generate-l2-config.sh"]
|
||||||
|
|
||||||
@ -43,8 +43,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ../config/fixturenet-optimism/run-op-geth.sh:/run-op-geth.sh
|
- ../config/fixturenet-optimism/run-op-geth.sh:/run-op-geth.sh
|
||||||
- op_node_data:/op-node
|
- op_node_data:/op-node
|
||||||
# TODO: Integrate
|
- l2-accounts:/l2-accounts
|
||||||
- ../test/l2-accounts:/l2-accounts
|
|
||||||
entrypoint: "sh"
|
entrypoint: "sh"
|
||||||
command: "/run-op-geth.sh"
|
command: "/run-op-geth.sh"
|
||||||
ports:
|
ports:
|
||||||
@ -67,8 +66,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ../config/fixturenet-optimism/run-op-node.sh:/app/run-op-node.sh
|
- ../config/fixturenet-optimism/run-op-node.sh:/app/run-op-node.sh
|
||||||
- op_node_data:/app
|
- op_node_data:/app
|
||||||
# TODO: Integrate
|
- l2-accounts:/l2-accounts
|
||||||
- ../test/l2-accounts:/l2-accounts
|
|
||||||
command: ["sh", "/app/run-op-node.sh"]
|
command: ["sh", "/app/run-op-node.sh"]
|
||||||
ports:
|
ports:
|
||||||
- "8547"
|
- "8547"
|
||||||
@ -91,11 +89,11 @@ services:
|
|||||||
image: cerc/optimism-op-batcher:local
|
image: cerc/optimism-op-batcher:local
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/fixturenet-optimism/run-op-batcher.sh:/run-op-batcher.sh
|
- ../config/fixturenet-optimism/run-op-batcher.sh:/run-op-batcher.sh
|
||||||
# TODO: Integrate
|
- l2-accounts:/l2-accounts
|
||||||
- ../test/l2-accounts:/l2-accounts
|
|
||||||
entrypoint: "sh"
|
entrypoint: "sh"
|
||||||
command: "/run-op-batcher.sh"
|
command: "/run-op-batcher.sh"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
op_node_data:
|
op_node_data:
|
||||||
l2-accounts:
|
l2-accounts:
|
||||||
|
l1-deployment:
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
# fixturenet-optimism
|
# fixturenet-optimism
|
||||||
|
|
||||||
Experimental Optimism Fixturenet
|
Instructions to setup and deploy an end-to-end L1+L2 stack with [fixturenet-eth](../fixturenet-eth/) (L1) and Optimism (L2)
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
Clone required repositories:
|
Clone required repositories:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ laconic-so --stack fixturenet-optimism setup-repositories
|
laconic-so --stack fixturenet-optimism setup-repositories
|
||||||
```
|
```
|
||||||
|
|
||||||
Checkout to the required versions and branches in repos:
|
Checkout to the required versions and branches in repos:
|
||||||
@ -21,23 +21,33 @@ git checkout @eth-optimism/sdk@0.0.0-20230329025055
|
|||||||
Build the container images:
|
Build the container images:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ laconic-so --stack fixturenet-optimism build-containers
|
laconic-so --stack fixturenet-optimism build-containers
|
||||||
```
|
```
|
||||||
|
|
||||||
This should create the required docker images in the local image registry:
|
This should create the required docker images in the local image registry:
|
||||||
* cerc/go-ethereum
|
* `cerc/go-ethereum`
|
||||||
* cerc/lighthouse
|
* `cerc/lighthouse`
|
||||||
* cerc/fixturenet-eth-geth
|
* `cerc/fixturenet-eth-geth`
|
||||||
* cerc/fixturenet-eth-lighthouse
|
* `cerc/fixturenet-eth-lighthouse`
|
||||||
* cerc/optimism-l2geth
|
* `cerc/foundry`
|
||||||
* cerc/optimism-op-batcher
|
* `cerc/optimism-contracts`
|
||||||
* cerc/optimism-op-node
|
* `cerc/optimism-l2geth`
|
||||||
* cerc/optimism-contracts
|
* `cerc/optimism-op-batcher`
|
||||||
|
* `cerc/optimism-op-node`
|
||||||
|
|
||||||
# Deploy
|
# Deploy
|
||||||
|
|
||||||
Deploy the stack:
|
Deploy the stack:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
laconic-so --stack fixturenet-optimism deploy up
|
||||||
|
```
|
||||||
|
|
||||||
|
## Clean up
|
||||||
|
|
||||||
|
Stop all services running in the background:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
laconic-so --stack fixturenet-optimism deploy down
|
||||||
$ laconic-so --stack fixturenet-optimism deploy up
|
$ laconic-so --stack fixturenet-optimism deploy up
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user