-
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
0c69a95
commit 20ad1f9
Showing
2 changed files
with
25 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ pragma solidity ^0.8.0; | |
* @author ShotaroNowhere - <[email protected]> | ||
* @dev Strategy Interface for drawing. | ||
*/ | ||
interface ICore{ | ||
interface ICoreKleros{ | ||
|
||
struct Account { | ||
uint96 stakedTokens; // The account's total amount of tokens staked in subpools. | ||
|
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,24 @@ | ||
/** | ||
* @authors: [@shotaronowhere] | ||
* @reviewers: [] | ||
* @auditors: [] | ||
*/ | ||
|
||
pragma solidity ^0.8.0; | ||
|
||
/** | ||
* @title ISortitionStrategy | ||
* @author ShotaroNowhere - <[email protected]> | ||
* @dev Strategy Interface for drawing. | ||
*/ | ||
interface ICoreKlerosPacked{ | ||
|
||
struct Account { | ||
uint184 packedStakedLockedTokens; // ~ [uint92 staked][uint92 locked] | ||
uint40 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); | ||
} |