Skip to content

Commit 84c590c

Browse files
committed
feat: update program ids on anvil_deploy_aligned_contracts
1 parent ad36f8c commit 84c590c

File tree

3 files changed

+31
-14
lines changed

3 files changed

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

contracts/scripts/anvil/deploy_aligned_contracts.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,23 @@ rm -f "script/output/devnet/alignedlayer_deployment_output.temp1.json"
6565
rm -f "script/output/devnet/alignedlayer_deployment_output.temp2.json"
6666

6767

68+
# Update Program IDs in anvil deployment
69+
cd ..
70+
make agg_mode_write_program_ids
71+
72+
# Copy new values to config file
73+
jq '.programs_id.risc0AggregationProgramImageId = $input[0].risc0_image_id | .programs_id.sp1AggregationProgramVKHash = $input[0].sp1_vk_hash' \
74+
--slurpfile input aggregation_mode/programs_ids.json \
75+
contracts/script/deploy/config/devnet/proof-aggregator-service.devnet.config.json \
76+
> temp.json && mv temp.json contracts/script/deploy/config/devnet/proof-aggregator-service.devnet.config.json
77+
78+
jq '.programs_id.risc0AggregationProgramImageId = $input[0].risc0_image_id | .programs_id.sp1AggregationProgramVKHash = $input[0].sp1_vk_hash' \
79+
--slurpfile input aggregation_mode/programs_ids.json \
80+
contracts/script/deploy/config/devnet/proof-aggregator-service.devnet.mock.config.json \
81+
> temp.json && mv temp.json contracts/script/deploy/config/devnet/proof-aggregator-service.devnet.mock.config.json
82+
83+
cd contracts
84+
6885
# Deploy proof aggregation service contract with SP1 Verifier
6986
forge script script/deploy/AlignedProofAggregationServiceDeployer.s.sol \
7087
./script/deploy/config/devnet/proof-aggregator-service.devnet.config.json \

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)