Skip to content

Commit e3cc03c

Browse files
committed
chore: target for ethereum package devnet
1 parent 6f3561c commit e3cc03c

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

examples/L2/.env.devnet

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# .env example for devnet network
2+
NETWORK=devnet
3+
ETH_RPC_URL=http://localhost:8545
4+
WS_ETH_RPC_URL=ws://localhost:8546
5+
BEACON_CLIENT_URL=http://localhost:58801
6+
PRIVATE_KEY_STORE_PATH=<PATH_TO_STATE_TRANSITION_OWNER_KEYSTORE>
7+
PRIVATE_KEY_STORE_PASSWORD=<STATE_TRANSITION_OWNER_KEYSTORE_PASSWORD>
8+
STATE_TRANSITION_CONTRACT_ADDRESS=<STATE_TRANSITION_CONTRACT_ADDRESS>

examples/L2/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ SHELL := /bin/bash
55
gen_env_l2_holesky:
66
@cp .env.holesky .env
77

8+
gen_env_l2_devnet:
9+
@cp .env.devnet .env
10+
811
run_l2:
912
@cd crates/l2 && cargo run --release --bin main
1013

@@ -15,5 +18,8 @@ generate_program_id:
1518
gen_env_contract_holesky:
1619
@cp ./contracts/.env.holesky ./contracts/.env
1720

21+
gen_env_contract_devnet:
22+
@cp ./contracts/.env.devnet ./contracts/.env
23+
1824
deploy_contract:
1925
@. ./contracts/.env && . ./contracts/scripts/deploy.sh

examples/L2/contracts/.env.devnet

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
RPC_URL=http://localhost:8545
2+
# Initial state root of db, see in crates/l2/db.rs
3+
INITIAL_STATE_ROOT=0x3c1d1c01f8e0a4533085bc9d8a3829c5f6872e6d6cf62e04ae71acbc803747ce
4+
# You can read it from crates/l2/programs_ids.json and generate it via `make generate_program_id`
5+
PROGRAM_ID=<PROGRAM_ID>
6+
# Address of the wallet you want to set as owner
7+
OWNER_ADDRESS=<CONTRACT_OWNER_ADDRESS>
8+
# Private key used to deploy the contract
9+
PRIVATE_KEY=<PRIVATE_KEY_TO_DEPLOY>
10+
# This is the aligned proof aggregator address in devnet
11+
ALIGNED_PROOF_AGGREGATOR_ADDRESS=0xe84CD4084d8131841CE6DC265361f81F4C59a1d4
12+
ETHERSCAN_API_KEY=""

0 commit comments

Comments
 (0)