Skip to content

Commit

Permalink
feat(account): Kleros abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
shotaronowhere committed Jun 20, 2022
1 parent c388934 commit cf947c9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions contracts/interfaces/ICoreKleros.sol
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);
}

0 comments on commit cf947c9

Please sign in to comment.