23 lines
697 B
Solidity
23 lines
697 B
Solidity
import "../munged/token/ERC20/extensions/ERC20Votes.sol";
|
|
|
|
contract ERC20VotesHarness is ERC20Votes {
|
|
constructor(string memory name, string memory symbol) ERC20Permit(name) ERC20(name, symbol) {}
|
|
|
|
function ckptFromBlock(address account, uint32 pos) public view returns (uint32) {
|
|
return _checkpoints[account][pos].fromBlock;
|
|
}
|
|
|
|
function ckptVotes(address account, uint32 pos) public view returns (uint224) {
|
|
return _checkpoints[account][pos].fromBlock;
|
|
}
|
|
|
|
function mint(address account, uint256 amount) public {
|
|
_mint(account, amount);
|
|
}
|
|
|
|
function burn(address account, uint256 amount) public {
|
|
_burn(account, amount);
|
|
}
|
|
}
|
|
|