Add configuration for L1 beacon endpoint and funding amounts for Optimism accounts #4

Merged
nabarun merged 5 commits from deep-stack/fixturenet-optimism-stack:ag-configure-funding-amount into main 2024-09-03 09:42:09 +00:00
2 changed files with 18 additions and 0 deletions
Showing only changes of commit d15d14c539 - Show all commits

View File

@ -112,6 +112,15 @@ Inside the `fixturenet-eth-deployment` deployment directory, open `config.env` f
CERC_ALLOW_UNPROTECTED_TXS=true CERC_ALLOW_UNPROTECTED_TXS=true
``` ```
Inside the `fixturenet-optimism-deployment` deployment directory, open `config.env` file and set following env variables:
```bash
# Optional
# Funding amounts for proposer and batcher accounts
CERC_L2_PROPOSER_AMOUNT= # Default 0.2ether
CERC_L2_BATCHER_AMOUNT= # Default 0.1ether
```
## Start the stack ## Start the stack
Start the deployment: Start the deployment:

View File

@ -64,6 +64,9 @@ Inside the deployment directory, open the file `config.env` and add the followin
CERC_L1_HOST= CERC_L1_HOST=
CERC_L1_PORT= CERC_L1_PORT=
# External L1 Beacon node endpoint
CERC_L1_BEACON=
# URL to get CSV with credentials for accounts on L1 # URL to get CSV with credentials for accounts on L1
# that are used to send balance to Optimism Proxy contract # that are used to send balance to Optimism Proxy contract
# (enables them to do transactions on L2) # (enables them to do transactions on L2)
@ -74,6 +77,12 @@ Inside the deployment directory, open the file `config.env` and add the followin
# Other generated accounts will be funded from this account, so it should contain ~20 Eth # Other generated accounts will be funded from this account, so it should contain ~20 Eth
CERC_L1_ADDRESS= CERC_L1_ADDRESS=
CERC_L1_PRIV_KEY= CERC_L1_PRIV_KEY=
# Optional
# Funding amounts for proposer and batcher accounts
CERC_L2_PROPOSER_AMOUNT=
CERC_L2_BATCHER_AMOUNT=
``` ```
* NOTE: If L1 is running on the host machine, use `host.docker.internal` as the hostname to access the host port, or use the `ip a` command to find the IP address of the `docker0` interface (this will usually be something like `172.17.0.1` or `172.18.0.1`) * NOTE: If L1 is running on the host machine, use `host.docker.internal` as the hostname to access the host port, or use the `ip a` command to find the IP address of the `docker0` interface (this will usually be something like `172.17.0.1` or `172.18.0.1`)