Skip to content

Commit 3d31c3b

Browse files
committed
feat: anvil deployment and config
1 parent 5bb7011 commit 3d31c3b

9 files changed

+46
-12
lines changed

contracts/script/deploy/AlignedProofAggregationServiceDeployer.s.sol

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ contract AlignedProofAggregationServiceDeployer is Script {
1212

1313
address alignedAggregatorAddress = stdJson.readAddress(config_data, ".address.alignedAggregatorAddress");
1414
address sp1VerifierAddress = stdJson.readAddress(config_data, ".address.sp1VerifierAddress");
15+
bytes32 sp1AggregationProgramVKHash =
16+
stdJson.readBytes32(config_data, ".programs_id.sp1AggregationProgramVKHash");
1517
address risc0VerifierAddress = stdJson.readAddress(config_data, ".address.risc0VerifierAddress");
18+
bytes32 risc0AggregationProgramImageId =
19+
stdJson.readBytes32(config_data, ".programs_id.risc0AggregationProgramImageId");
1620

1721
address ownerAddress = stdJson.readAddress(config_data, ".permissions.owner");
1822

@@ -23,11 +27,13 @@ contract AlignedProofAggregationServiceDeployer is Script {
2327
ERC1967Proxy proxy = new ERC1967Proxy(
2428
address(alignedProofAggregationService),
2529
abi.encodeWithSignature(
26-
"initialize(address,address,address,address)",
30+
"initialize(address,address,address,address,bytes32,bytes32)",
2731
ownerAddress,
2832
alignedAggregatorAddress,
2933
sp1VerifierAddress,
30-
risc0VerifierAddress
34+
risc0VerifierAddress,
35+
risc0AggregationProgramImageId,
36+
sp1AggregationProgramVKHash
3137
)
3238
);
3339

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
2-
"address": {
3-
"sp1VerifierAddress": "0xB146FbFdFeC2a5182b3Cef9becE03290224256D5",
4-
"risc0VerifierAddress": "0x663F3ad617193148711d28f5334eE4Ed07016602",
5-
"alignedAggregatorAddress": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
6-
"alignedAggregatorAddressPrivateKey": "0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"
7-
},
8-
"permissions": {
9-
"owner": "0x14dC79964da2C08b23698B3D3cc7Ca32193d9955"
10-
}
2+
"address": {
3+
"sp1VerifierAddress": "0xB146FbFdFeC2a5182b3Cef9becE03290224256D5",
4+
"risc0VerifierAddress": "0x663F3ad617193148711d28f5334eE4Ed07016602",
5+
"alignedAggregatorAddress": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
6+
"alignedAggregatorAddressPrivateKey": "0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"
7+
},
8+
"programs_id": {
9+
"sp1AggregationProgramVKHash": "0x00964e05feb8c81d33714c9a9d66d0941210996853b8886d40e8c85ed3a4fa39",
10+
"risc0AggregationProgramImageId": "0x616eccca41e741062c79481078c0cbaa034da436c2ba254b09de8c2cf20bdd86"
11+
},
12+
"permissions": {
13+
"owner": "0x14dC79964da2C08b23698B3D3cc7Ca32193d9955"
14+
}
1115
}

contracts/script/deploy/config/devnet/proof-aggregator-service.devnet.mock.config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"alignedAggregatorAddress": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
66
"alignedAggregatorAddressPrivateKey": "0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"
77
},
8+
"programs_id": {
9+
"sp1AggregationProgramVKHash": "0x00964e05feb8c81d33714c9a9d66d0941210996853b8886d40e8c85ed3a4fa39",
10+
"risc0AggregationProgramImageId": "0x616eccca41e741062c79481078c0cbaa034da436c2ba254b09de8c2cf20bdd86"
11+
},
812
"permissions": {
913
"owner": "0x14dC79964da2C08b23698B3D3cc7Ca32193d9955"
1014
}

contracts/script/deploy/config/holesky/proof-aggregator-service.holesky.config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"risc0VerifierAddress": "0xf70aBAb028Eb6F4100A24B203E113D94E87DE93C",
55
"alignedAggregatorAddress": "0x9403dF48130621f87974a5A1d1d11d3aF1222A82"
66
},
7+
"programs_id": {
8+
"sp1AggregationProgramVKHash": "0x00964e05feb8c81d33714c9a9d66d0941210996853b8886d40e8c85ed3a4fa39",
9+
"risc0AggregationProgramImageId": "0x616eccca41e741062c79481078c0cbaa034da436c2ba254b09de8c2cf20bdd86"
10+
},
711
"permissions": {
812
"owner": "0x97aEC5F28181abe5d2aD40dBe7FbaEe014529b7D"
913
}

contracts/script/deploy/config/holesky/proof-aggregator-service.holesky.config.stage.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"risc0VerifierAddress": "0xf70aBAb028Eb6F4100A24B203E113D94E87DE93C",
55
"alignedAggregatorAddress": "0x3595aa7d30f89f65933e7421dec77e4478d9fb01"
66
},
7+
"programs_id": {
8+
"sp1AggregationProgramVKHash": "0x00964e05feb8c81d33714c9a9d66d0941210996853b8886d40e8c85ed3a4fa39",
9+
"risc0AggregationProgramImageId": "0x616eccca41e741062c79481078c0cbaa034da436c2ba254b09de8c2cf20bdd86"
10+
},
711
"permissions": {
812
"owner": "0xE3C695b73dbe27106aF4530b152de3e57456B385"
913
}

contracts/script/deploy/config/mainnet/proof-aggregator-service.mainnet.config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"risc0VerifierAddress": "0x8EaB2D97Dfce405A1692a21b3ff3A172d593D319",
55
"alignedAggregatorAddress": "<aligned_aggregator_address>"
66
},
7+
"programs_id": {
8+
"sp1AggregationProgramVKHash": "0x00964e05feb8c81d33714c9a9d66d0941210996853b8886d40e8c85ed3a4fa39",
9+
"risc0AggregationProgramImageId": "0x616eccca41e741062c79481078c0cbaa034da436c2ba254b09de8c2cf20bdd86"
10+
},
711
"permissions": {
812
"owner": "<owner_address>"
913
}

contracts/script/deploy/config/mainnet_staging/proof-aggregator-service.mainnet.config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"risc0VerifierAddress": "0x8EaB2D97Dfce405A1692a21b3ff3A172d593D319",
55
"alignedAggregatorAddress": "<aligned_aggregator_address>"
66
},
7+
"programs_id": {
8+
"sp1AggregationProgramVKHash": "0x00964e05feb8c81d33714c9a9d66d0941210996853b8886d40e8c85ed3a4fa39",
9+
"risc0AggregationProgramImageId": "0x616eccca41e741062c79481078c0cbaa034da436c2ba254b09de8c2cf20bdd86"
10+
},
711
"permissions": {
812
"owner": "<owner_address>"
913
}

contracts/script/deploy/config/sepolia/proof-aggregator-service.sepolia.config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"risc0VerifierAddress": "0x925d8331ddc0a1F0d96E68CF073DFE1d92b69187",
55
"alignedAggregatorAddress": "<aligned_aggregator_address>"
66
},
7+
"programs_id": {
8+
"sp1AggregationProgramVKHash": "0x00964e05feb8c81d33714c9a9d66d0941210996853b8886d40e8c85ed3a4fa39",
9+
"risc0AggregationProgramImageId": "0x616eccca41e741062c79481078c0cbaa034da436c2ba254b09de8c2cf20bdd86"
10+
},
711
"permissions": {
812
"owner": "<owner_address>"
913
}

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)