You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
870 B
29 lines
870 B
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../patched/token/ERC20/extensions/ERC20Votes.sol";
|
|
|
|
contract ERC20VotesBlocknumberHarness is ERC20Votes {
|
|
constructor(string memory name, string memory symbol) ERC20(name, symbol) ERC20Permit(name) {}
|
|
|
|
function mint(address account, uint256 amount) external {
|
|
_mint(account, amount);
|
|
}
|
|
|
|
function burn(address account, uint256 amount) external {
|
|
_burn(account, amount);
|
|
}
|
|
|
|
// inspection
|
|
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).votes;
|
|
}
|
|
|
|
function maxSupply() public view returns (uint224) {
|
|
return _maxSupply();
|
|
}
|
|
}
|
|
|