ERC20VotesHarness.sol 819 B

1234567891011121314151617181920212223242526
  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 ckptFromBlock(address account, uint32 pos) public view returns (uint32) {
  5. return _checkpoints[account][pos].fromBlock;
  6. }
  7. function ckptVotes(address account, uint32 pos) public view returns (uint224) {
  8. return _checkpoints[account][pos].fromBlock;
  9. }
  10. function unsafeNumCheckpoints(address account) public view returns (uint256) {
  11. return _checkpoints[account].length;
  12. }
  13. function delegateBySig(
  14. address delegatee,
  15. uint256 nonce,
  16. uint256 expiry,
  17. uint8 v,
  18. bytes32 r,
  19. bytes32 s
  20. ) public virtual override {}
  21. }