ERC20VotesHarness.sol 1017 B

12345678910111213141516171819202122232425262728293031323334
  1. import "../munged/token/ERC20/extensions/ERC20Votes.sol";
  2. contract ERC20VotesHarness is ERC20Votes {
  3. constructor(string memory name, string memory symbol) ERC20(name, symbol) ERC20Permit(name) {}
  4. function mint(address account, uint256 amount) public {
  5. _mint(account, amount);
  6. }
  7. function burn(address account, uint256 amount) public {
  8. _burn(account, amount);
  9. }
  10. function ckptFromBlock(address account, uint32 pos) public view returns (uint32) {
  11. return _checkpoints[account][pos].fromBlock;
  12. }
  13. function ckptVotes(address account, uint32 pos) public view returns (uint224) {
  14. return _checkpoints[account][pos].fromBlock;
  15. }
  16. function unsafeNumCheckpoints(address account) public view returns (uint256) {
  17. return _checkpoints[account].length;
  18. }
  19. function delegateBySig(
  20. address delegatee,
  21. uint256 nonce,
  22. uint256 expiry,
  23. uint8 v,
  24. bytes32 r,
  25. bytes32 s
  26. ) public virtual override {}
  27. }