Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update interfaces #178

Open
wants to merge 6 commits into
base: develop-archive
Choose a base branch
from
Open

Conversation

sandstone-ag
Copy link
Contributor

No description provided.

Copy link
Contributor

@Psirex Psirex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on improving the interfaces—they look much more comprehensive now! A few additional suggestions for further enhancements:

  1. Consider removing the IAragonVoting.sol interface, as it appears to be used only in scripts that do not invoke any contract methods. If it is still required for scripts, the test/utils/interfaces/IAragonAgent.sol interface could be reused instead.
  2. Add an executeProposal() method to the DualGovernance contract to mirror the functionality of EmergencyProtectedTimelock.execute() in the TimelockedGovernance contract. Alternatively, remove the executeProposal() method from the TimelockedGovernance contract if it is not strictly necessary, ensuring consistency across both contracts.
  3. For consistency with other interfaces, consider moving the WithdrawalRequestStatus struct into the IWithdrawalQueue interface.

/// @param stETHClaimedETH The total amount of ETH claimed from the stETH shares locked in the Escrow.
/// @param unstETHUnfinalizedShares The total number of shares from unstETH NFTs that have not yet been marked as finalized.
/// @param unstETHFinalizedETH The total amount of ETH claimable from unstETH NFTs that have been marked as finalized.
struct LockedAssetsTotals {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose putting these structures inside the IEscrow interface. Then, they may be used inside the Escrow contract without additional imports.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

function MAX_EMERGENCY_MODE_DURATION() external view returns (Duration);
function MAX_EMERGENCY_PROTECTION_DURATION() external view returns (Duration);

function setupDelays(Duration afterSubmitDelay, Duration afterScheduleDelay) external;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move methods setupDelays(), transferExecutorOwnership(), getAfterSubmitDelay(), getAfterScheduleDelay() and setAdminExecutor() into the ITimelock.sol interface

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@sandstone-ag
Copy link
Contributor Author

@Psirex Thank you for the comments. I've added a method canExecuteProposal() as well to make DG interface more consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants