Skip to content

Commit 12e0642

Browse files
MarcosNicolauJuArceMauroToscano
authored
feat(examples): full example and docs for aggregation mode (#1942)
Co-authored-by: JuArce <[email protected]> Co-authored-by: MauroFab <[email protected]> Co-authored-by: Mauro Toscano <[email protected]>
1 parent deecb46 commit 12e0642

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+18199
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ nonce_*.bin
1818

1919
infra/ansible/playbooks/ini/**.ini
2020
infra/ansible/playbooks/files/**.pem
21+
22+
examples/l2/crates/l2/db
23+
examples/l2/crates/l2/zkvm_programs/sp1/elf/sp1_state_transition_program

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@
4040
[submodule "contracts/eigenlayer_contracts/eigenlayer-contracts"]
4141
path = contracts/eigenlayer_contracts/eigenlayer-contracts
4242
url = https://github.com/Layr-Labs/eigenlayer-contracts.git
43+
[submodule "examples/l2/contracts/lib/forge-std"]
44+
path = examples/l2/contracts/lib/forge-std
45+
url = https://github.com/foundry-rs/forge-std

batcher/aligned-sdk/src/common/types.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ use std::fmt::Display;
33
use std::fmt::Formatter;
44
use std::str::FromStr;
55

6-
use ethers::core::k256::ecdsa::SigningKey;
7-
use ethers::signers::Signer;
8-
use ethers::signers::Wallet;
6+
pub use ethers::core::k256::ecdsa::SigningKey;
7+
pub use ethers::signers::{Signer, Wallet};
98
use ethers::types::transaction::eip712::EIP712Domain;
109
use ethers::types::transaction::eip712::Eip712;
1110
use ethers::types::transaction::eip712::Eip712Error;

examples/l2/.env.devnet

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
# Generate it with `make gen_devnet_owner_wallet`
7+
PRIVATE_KEY_STORE_PATH="../contract-owner.keystore.json" # This is read from cmd/.
8+
PRIVATE_KEY_STORE_PASSWORD="<!w5Y%In94Vw"
9+
# Obtain it with `make deploy_contract`
10+
STATE_TRANSITION_CONTRACT_ADDRESS=<STATE_TRANSITION_CONTRACT_ADDRESS>

examples/l2/.env.holesky

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# .env example for holesky network
2+
NETWORK=holesky
3+
ETH_RPC_URL=https://ethereum-holesky-rpc.publicnode.com
4+
WS_ETH_RPC_URL=wss://ethereum-holesky-rpc.publicnode.com
5+
BEACON_CLIENT_URL=<YOUR_BEACON_CLIENT_URL> # This can't be a public one as we need to retrieve blobs and they don't support that method
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/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
crates/l2/programs_ids.json
2+
contract-owner.keystore.json
3+
cmd/db
4+
cmd/proof.bin
5+
crates/db

0 commit comments

Comments
 (0)