2020-12-02 14:03:39 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2021-04-13 21:22:30 +00:00
|
|
|
pragma solidity ^0.8.0;
|
2020-11-30 00:22:18 +00:00
|
|
|
|
2020-12-02 14:03:39 +00:00
|
|
|
interface IDioneStaking {
|
2020-11-30 00:22:18 +00:00
|
|
|
function mine(address _minerAddr) external;
|
|
|
|
function mineAndStake(address _minerAddr) external;
|
|
|
|
function stake(uint256 _amount) external;
|
|
|
|
function withdraw(uint256 _amount) external;
|
|
|
|
function totalStake() external view returns (uint256);
|
|
|
|
function minerStake(address _minerAddr) external view returns (uint256);
|
|
|
|
function setMinerReward(uint256 _minerReward) external;
|
|
|
|
function isMiner(address _minerAddr) external view returns (bool);
|
|
|
|
function setMinimumStake(uint256 _minimumStake) external;
|
|
|
|
function setAggregator(address _aggregatorAddr) external;
|
2021-04-13 21:22:30 +00:00
|
|
|
function slashMiner(address miner, address[] calldata receipentMiners) external;
|
|
|
|
}
|