-
Notifications
You must be signed in to change notification settings - Fork 265
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
12 changed files
with
695 additions
and
70 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Copyright 2024 Aztec Labs. | ||
pragma solidity >=0.8.18; | ||
|
||
interface ILeonidas { | ||
// Changing depending on sybil mechanism and slashing enforcement | ||
function addValidator(address _validator) external; | ||
function removeValidator(address _validator) external; | ||
|
||
// Likely changing to optimize in Pleistarchus | ||
function setupEpoch() external; | ||
function getCurrentProposer() external view returns (address); | ||
|
||
// Stable | ||
function getCurrentEpoch() external view returns (uint256); | ||
function getCurrentSlot() external view returns (uint256); | ||
|
||
// Consider removing below this point | ||
// Likely removal of these to replace with a size and indiviual getter | ||
function getEpochCommittee(uint256 _epoch) external view returns (address[] memory); | ||
function getValidators() external view returns (address[] memory); | ||
} |
Oops, something went wrong.