-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
682 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
l1-contracts/test/governance/scenario/NewGerousiaPayload.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity >=0.8.27; | ||
|
||
import {IPayload} from "@aztec/governance/interfaces/IPayload.sol"; | ||
import {IRegistry} from "@aztec/governance/interfaces/IRegistry.sol"; | ||
import {Apella} from "@aztec/governance/Apella.sol"; | ||
import {Gerousia} from "@aztec/governance/Gerousia.sol"; | ||
|
||
/** | ||
* @title NewGerousiaPayload | ||
* @author Aztec Labs | ||
* @notice A payload that upgrades the Gerousia contract to a new version. | ||
*/ | ||
contract NewGerousiaPayload is IPayload { | ||
IRegistry public immutable REGISTRY; | ||
address public immutable NEW_GEROUSIA; | ||
|
||
constructor(IRegistry _registry) { | ||
REGISTRY = _registry; | ||
NEW_GEROUSIA = address(new Gerousia(_registry, 667, 1000)); | ||
} | ||
|
||
function getActions() external view override(IPayload) returns (IPayload.Action[] memory) { | ||
IPayload.Action[] memory res = new IPayload.Action[](1); | ||
|
||
Apella apella = Apella(REGISTRY.getApella()); | ||
|
||
res[0] = Action({ | ||
target: address(apella), | ||
data: abi.encodeWithSelector(apella.updateGerousia.selector, NEW_GEROUSIA) | ||
}); | ||
|
||
return res; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
export { | ||
deployL1Contract, | ||
deployL1Contracts, | ||
DeployL1Contracts, | ||
L1ContractArtifactsForDeployment, | ||
} from '@aztec/ethereum'; | ||
export { deployL1Contract, deployL1Contracts, DeployL1Contracts } from '@aztec/ethereum'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.