18 lines
579 B
Solidity
18 lines
579 B
Solidity
|
pragma solidity ^0.6.12;
|
||
|
|
||
|
interface IGovernance {
|
||
|
function lockedBalance(address account) external view returns (uint256);
|
||
|
|
||
|
function propose(address target, string memory description) external returns (uint256);
|
||
|
|
||
|
function castVote(uint256 proposalId, bool support) external;
|
||
|
|
||
|
function lock(address owner, uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external;
|
||
|
|
||
|
function lockWithApproval(uint256 amount) external;
|
||
|
|
||
|
function unlock(uint256 amount) external;
|
||
|
|
||
|
function execute(uint256 proposalId) external payable;
|
||
|
}
|