-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
c388934
commit cf947c9
Showing
1 changed file
with
25 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* @authors: [@shotaronowhere] | ||
* @reviewers: [] | ||
* @auditors: [] | ||
*/ | ||
|
||
pragma solidity ^0.8.0; | ||
|
||
/** | ||
* @title ISortitionStrategy | ||
* @author ShotaroNowhere - <[email protected]> | ||
* @dev Strategy Interface for drawing. | ||
*/ | ||
interface ICore{ | ||
|
||
struct Account { | ||
uint88 stakedTokens; // The account's total amount of tokens staked in subpools. | ||
uint88 lockedTokens; // The account's total amount of tokens locked. | ||
uint48 index; // indexing the account | ||
uint32 time; // The time when the juror staked | ||
} | ||
|
||
function indexToStakeID(uint48) external view returns (bytes32); | ||
function getStakeIDToAccounts(bytes32) external view returns (Account memory); | ||
} |