Skip to content

Commit 1462cd8

Browse files
committed
Add missing functions and events
1 parent fbc0b96 commit 1462cd8

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

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

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

contracts/src/core/AlignedProofAggregationService.sol

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ contract AlignedProofAggregationService is
1414
OwnableUpgradeable,
1515
UUPSUpgradeable
1616
{
17+
18+
event Risc0VerifierAddressUpdated(address indexed newAddress);
19+
event SP1VerifierAddressUpdated(address indexed newAddress);
20+
event Risc0AggregatorProgramImageIdUpdated(bytes32 indexed newImageId);
21+
event SP1AggregatorProgramVKHashUpdated(bytes32 indexed newVKHash);
22+
1723
/// @notice Map the merkle root to a boolean to indicate it was verified
1824
mapping(bytes32 => bool) public aggregatedProofs;
1925

@@ -124,17 +130,27 @@ contract AlignedProofAggregationService is
124130
/// @param _risc0VerifierAddress The new address for the Risc0 verifier contract
125131
function setRisc0VerifierAddress(address _risc0VerifierAddress) external onlyOwner {
126132
risc0VerifierAddress = _risc0VerifierAddress;
133+
emit Risc0VerifierAddressUpdated(_risc0VerifierAddress);
127134
}
128135

129136
/// @notice Sets the image id of the Risc0 program
130137
/// @param _risc0AggregatorProgramImageId The new imageid for the Risc0 aggregator program
131138
function setRisc0AggregatorProgramImageId(bytes32 _risc0AggregatorProgramImageId) external onlyOwner {
132139
risc0AggregatorProgramImageId = _risc0AggregatorProgramImageId;
140+
emit Risc0AggregatorProgramImageIdUpdated(_risc0AggregatorProgramImageId);
141+
}
142+
143+
/// @notice Sets the address of the SP1 verifier contract
144+
/// @param _sp1VerifierAddress The new address for the SP1 verifier contract
145+
function setSP1VerifierAddress(address _sp1VerifierAddress) external onlyOwner {
146+
sp1VerifierAddress = _sp1VerifierAddress;
147+
emit SP1VerifierAddressUpdated(_sp1VerifierAddress);
133148
}
134149

135150
/// @notice Sets the vk hash of the sp1 program
136151
/// @param _sp1AggregatorProgramVKHash The new vk hash for the sp1 aggregator program
137152
function setSP1AggregatorProgramVKHash(bytes32 _sp1AggregatorProgramVKHash) external onlyOwner {
138153
sp1AggregatorProgramVKHash = _sp1AggregatorProgramVKHash;
154+
emit SP1AggregatorProgramVKHashUpdated(_sp1AggregatorProgramVKHash);
139155
}
140156
}

staging_deployment_output.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"addresses": {
3+
"alignedLayerProxyAdmin": "0x0D16a82be664c337c615499f8775Ef0431703daC",
4+
"alignedLayerServiceManager": "0x96b6a29D7B98519Ae66E6398BD27A76B30a5dC3f",
5+
"alignedLayerServiceManagerImplementation": "0x97D1f6e8AC6ed284a8b4c846A71Ad6e16E84061E",
6+
"blsApkRegistry": "0x1c81a981bC1605f050C4D400415c7B68f3007053",
7+
"blsApkRegistryImplementation": "0xd49879DD898dB153a9580627ED423832827730c2",
8+
"indexRegistry": "0x4f71C1ab239C967Cb8F8F7f3A3ce6547c753b70B",
9+
"indexRegistryImplementation": "0xd899b7280Cf05b3a802Fc5Cf3ABA55824a0be962",
10+
"operatorStateRetriever": "0xf12De3271f2681Db6d5201F6CFe64d38A668ff34",
11+
"pauserRegistry": "0x9A97Fa7c8b4F076b714F691E87816787aAaDa41D",
12+
"registryCoordinator": "0x7bAF5135241D7D1F870AC6Dd6956BDB1FF55fc3D",
13+
"registryCoordinatorImplementation": "0xB4eECf481fbe258eF0BE6c64C334Fd73896BEc7B",
14+
"serviceManagerRouter": "0xDd7b2239aCb6FB660FE20136a4D2e8A04E15FE6A",
15+
"stakeRegistry": "0x4d52a2289f9f1b126E96937193558fFD2F294DcC",
16+
"stakeRegistryImplementation": "0x398Fe850c9c0B10CCAEe273Af68a526AB99278D2"
17+
18+
},
19+
"chainInfo": {
20+
"chainId": 1,
21+
"deploymentBlock": 22124788
22+
},
23+
"permissions": {
24+
"alignedLayerAggregator": "0xb72D98AB27EBCF86C96a53564135d3141bAAE398",
25+
"alignedLayerChurner": "0x2106AC6FE9599f8A0710643C75661aaf8d8B1599",
26+
"alignedLayerEjector": "0x2106AC6FE9599f8A0710643C75661aaf8d8B1599",
27+
"alignedLayerOwner": "0x2106AC6FE9599f8A0710643C75661aaf8d8B1599",
28+
"alignedLayerPauser": "0x2106AC6FE9599f8A0710643C75661aaf8d8B1599",
29+
"alignedLayerUpgrader": "0x2106AC6FE9599f8A0710643C75661aaf8d8B1599"
30+
}
31+
}

0 commit comments

Comments
 (0)