Skip to content

Commit 5de80ab

Browse files
committed
chore: deploy mock contract for proof-aggregator
1 parent 6fd57f6 commit 5de80ab

File tree

6 files changed

+42
-3
lines changed

6 files changed

+42
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ anvil_start_with_block_time_with_more_prefunded_accounts:
156156

157157
__AGGREGATION_MODE__:
158158
start_proof_aggregator_local:
159-
cargo run --manifest-path ./aggregation_mode/Cargo.toml --release -- config-files/config-proof-aggregator.yaml
159+
cargo run --manifest-path ./aggregation_mode/Cargo.toml --release -- config-files/config-proof-aggregator-mock.yaml
160160

161161
start_proof_aggregator_local_with_proving:
162162
cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features prove -- config-files/config-proof-aggregator.yaml
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
aligned_service_manager_address: "0x851356ae760d987E095750cCeb3bC6014560891C"
2+
proof_aggregation_service_address: "0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07"
3+
private_key: "0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"
4+
eth_rpc_url: "http://localhost:8545"
5+
eth_ws_url: "ws://localhost:8545"
6+
max_proofs_in_queue: 1000
7+
# How far in the past should the service go to fetch batch logs
8+
fetch_logs_from_secs_ago: 86400 # 24hs
9+
# Anvil start with block time is 7 seconds
10+
block_time_secs: 7
11+
12+
ecdsa:
13+
private_key_store_path: "config-files/anvil.proof-aggregator.ecdsa.key.json"
14+
private_key_store_password: ""
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"address": {
3+
"sp1VerifierAddress": "0x00000000000000000000000000000000000000FF",
4+
"alignedAggregatorAddress": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
5+
"alignedAggregatorAddressPrivateKey": "0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"
6+
},
7+
"permissions": {
8+
"owner": "0x14dC79964da2C08b23698B3D3cc7Ca32193d9955"
9+
}
10+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"addresses": {
3+
"alignedProofAggregationService": "0xB0D4afd8879eD9F52b28595d31B441D079B2Ca07",
4+
"alignedProofAggregationServiceImplementation": "0x1429859428C0aBc9C2C47C8Ee9FBaf82cFA0F20f"
5+
}
6+
}

contracts/scripts/anvil/deploy_aligned_contracts.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ rm -f "script/output/devnet/alignedlayer_deployment_output.temp1.json"
6565
rm -f "script/output/devnet/alignedlayer_deployment_output.temp2.json"
6666

6767

68-
# Deploy proof aggregation service contract
68+
# Deploy proof aggregation service contract with SP1 Verifier
6969
forge script script/deploy/AlignedProofAggregationServiceDeployer.s.sol \
7070
./script/deploy/config/devnet/proof-aggregator-service.devnet.config.json \
7171
./script/output/devnet/proof_aggregation_service_deployment_output.json \
@@ -74,5 +74,14 @@ forge script script/deploy/AlignedProofAggregationServiceDeployer.s.sol \
7474
--broadcast \
7575
--sig "run(string configPath, string outputPath)"
7676

77+
# Deploy proof aggregation service contract with Mocked Verifier
78+
forge script script/deploy/AlignedProofAggregationServiceDeployer.s.sol \
79+
./script/deploy/config/devnet/proof-aggregator-service.devnet.mock.config.json \
80+
./script/output/devnet/proof_aggregation_service_deployment_output.mock.json \
81+
--rpc-url "http://localhost:8545" \
82+
--private-key "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80" \
83+
--broadcast \
84+
--sig "run(string configPath, string outputPath)"
85+
7786
# Kill the anvil process to save state
7887
pkill anvil

contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)