Add Optimism Fixturenet stack #266
@ -6,11 +6,11 @@ services:
|
||||
depends_on:
|
||||
fixturenet-eth-geth-1:
|
||||
condition: service_healthy
|
||||
image: cerc/fixturenet-optimism:local
|
||||
image: cerc/optimism-contracts:local
|
||||
environment:
|
||||
CHAIN_ID: 1212
|
||||
L1_RPC: "http://fixturenet-eth-geth-1:8545"
|
||||
command: ["sh", "run.sh"]
|
||||
command: "./run.sh"
|
||||
volumes:
|
||||
- ../config/fixturenet-optimism/optimism-contracts/rekey-json.ts:/app/packages/contracts-bedrock/tasks/rekey-json.ts
|
||||
- ../config/fixturenet-optimism/optimism-contracts/send-balance.ts:/app/packages/contracts-bedrock/tasks/send-balance.ts
|
||||
@ -72,5 +72,3 @@ services:
|
||||
volumes:
|
||||
op_node_data:
|
||||
l2-accounts:
|
||||
# TODO: Required?
|
||||
# fixturenet-geth-accounts:
|
||||
|
@ -16,9 +16,9 @@ KEYS_JSON=$(cat /l2-accounts/keys.json)
|
||||
# Parse JSON into variables
|
||||
ADMIN_ADDRESS=$(echo "$KEYS_JSON" | jq -r '.Admin.address')
|
||||
ADMIN_PRIV_KEY=$(echo "$KEYS_JSON" | jq -r '.Admin.privateKey')
|
||||
PROPOSER_ADDRESS=$(echo "$KEYS_JSON" | jq -r '.Admin.address')
|
||||
BATCHER_ADDRESS=$(echo "$KEYS_JSON" | jq -r '.Admin.address')
|
||||
SEQUENCER_ADDRESS=$(echo "$KEYS_JSON" | jq -r '.Admin.address')
|
||||
PROPOSER_ADDRESS=$(echo "$KEYS_JSON" | jq -r '.Proposer.address')
|
||||
BATCHER_ADDRESS=$(echo "$KEYS_JSON" | jq -r '.Batcher.address')
|
||||
SEQUENCER_ADDRESS=$(echo "$KEYS_JSON" | jq -r '.Sequencer.address')
|
||||
|
||||
# Read the private key of a L1 account
|
||||
L1_PRIV_KEY=$(head -n 1 /geth-accounts/accounts.csv | cut -d ',' -f 3)
|
||||
|
@ -1,5 +1,6 @@
|
||||
FROM cerc/foundry:local
|
||||
|
||||
# Install node (local foundry is a debian based image)
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y curl \
|
||||
&& curl --silent --location https://deb.nodesource.com/setup_16.x | bash - \
|
||||
@ -12,6 +13,7 @@ RUN corepack enable \
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy optimism repo contents
|
||||
COPY . .
|
||||
|
||||
RUN echo "Building optimism" && \
|
||||
|
@ -33,3 +33,11 @@ This should create the required docker images in the local image registry:
|
||||
* cerc/optimism-op-batcher
|
||||
* cerc/optimism-op-node
|
||||
* cerc/optimism-contracts
|
||||
|
||||
# Deploy
|
||||
|
||||
Deploy the stack:
|
||||
|
||||
```bash
|
||||
$ laconic-so --stack fixturenet-optimism deploy up
|
||||
```
|
||||
|
@ -4,8 +4,8 @@ decription: "Optimism Fixturenet"
|
||||
repos:
|
||||
- cerc-io/go-ethereum
|
||||
- dboreham/foundry
|
||||
- ethereum-optimism/op-geth
|
||||
- ethereum-optimism/optimism
|
||||
- ethereum-optimism/op-geth
|
||||
containers:
|
||||
- cerc/go-ethereum
|
||||
- cerc/lighthouse
|
||||
|
Loading…
Reference in New Issue
Block a user