Skip to content

Commit 37b327c

Browse files
committed
feat: deploy contract and add stage addresses
1 parent 6b71421 commit 37b327c

File tree

4 files changed

+57
-0
lines changed

4 files changed

+57
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,10 @@ upgrade_batcher_payment_service: ## Upgrade BatcherPayments contract. Parameters
698698
@echo "Upgrading BatcherPayments Contract on $(NETWORK) network..."
699699
@. contracts/scripts/.env.$(NETWORK) && . contracts/scripts/upgrade_batcher_payment_service.sh
700700

701+
deploy_proof_aggregator:
702+
@echo "Deploying ProofAggregator contract on $(NETWORK) network..."
703+
@. contracts/scripts/.env.$(NETWORK) && . contracts/scripts/deploy_proof_aggregator.sh
704+
701705
build_aligned_contracts:
702706
@cd contracts/src/core && forge build
703707

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"address": {
3+
"sp1VerifierAddress": "0x397A5f7f3dBd538f23DE225B51f532c34448dA9B",
4+
"alignedAggregatorAddress": "0x3595aa7d30f89f65933e7421dec77e4478d9fb01"
5+
},
6+
"permissions": {
7+
"owner": "0xE3C695b73dbe27106aF4530b152de3e57456B385"
8+
}
9+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"addresses": {
3+
"alignedProofAggregationService": "0xa5A27c9138Ee4fA77F1a742bF4A4a4422635FDA9",
4+
"alignedProofAggregationServiceImplementation": "0x01D5b9a84bF6D5768a96aEEc538a5Eab7fa6acB9"
5+
}
6+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/bash
2+
3+
# ENV VARIABLES
4+
#
5+
# PROOF_AGGREGATOR_DEPLOY_CONFIG_PATH: Path to the proof aggregator deploy config file
6+
# - Holesky Stage: ./script/deploy/config/holesky/proof-aggregator-service.holesky.config.stage.json
7+
# - Holesky Prod: ./script/deploy/config/holesky/proof-aggregator-service.holesky.config.json
8+
#
9+
# PROOF_AGGREGATOR_OUTPUT_PATH: Path to the proof aggregator output file
10+
# - Holesky Stage: ./script/output/holesky/proof_aggregation_service_deployment_output.stage.json
11+
# - Holesky Prod: ./script/output/holesky/proof_aggregation_service_deployment_output.json
12+
#
13+
# RPC_URL: The RPC URL to connect to the Ethereum network
14+
#
15+
# PRIVATE_KEY: The private key to use for the deployment
16+
#
17+
# ETHERSCAN_API_KEY: The Etherscan API key to use for verification
18+
#
19+
20+
# cd to the directory of this script so that this can be run from anywhere
21+
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
22+
# At this point we are in contracts/scripts
23+
cd "$parent_path"
24+
25+
# At this point we are in contracts
26+
cd ../
27+
28+
# Deploy proof aggregation service contract
29+
forge script script/deploy/AlignedProofAggregationServiceDeployer.s.sol \
30+
$PROOF_AGGREGATOR_DEPLOY_CONFIG_PATH \
31+
$PROOF_AGGREGATOR_OUTPUT_PATH \
32+
--rpc-url $RPC_URL \
33+
--private-key $PRIVATE_KEY \
34+
--broadcast \
35+
--verify \
36+
--etherscan-api-key $ETHERSCAN_API_KEY \
37+
--slow \
38+
--sig "run(string configPath, string outputPath)"

0 commit comments

Comments
 (0)