MockToken
Inherits: ERC20
WARNING! This mock is strictly intended for testing purposes only. Do NOT copy anything here into production code unless you really know what you are doing.
State Variables
_name
string internal _name;
_symbol
string internal _symbol;
_decimals
uint8 internal _decimals;
_nameHash
bytes32 internal immutable _nameHash;
Functions
constructor
constructor(string memory name_, string memory symbol_, uint8 decimals_);
_constantNameHash
function _constantNameHash() internal view virtual override returns (bytes32);
name
function name() public view virtual override returns (string memory);
symbol
function symbol() public view virtual override returns (string memory);
decimals
function decimals() public view virtual override returns (uint8);
mint
function mint(address to, uint256 value) public virtual;
burn
function burn(address from, uint256 value) public virtual;
directTransfer
function directTransfer(address from, address to, uint256 amount) public virtual;
directSpendAllowance
function directSpendAllowance(address owner, address spender, uint256 amount) public virtual;
transfer
function transfer(address to, uint256 amount) public virtual override returns (bool);
transferFrom
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool);
_brutalized
function _brutalized(address a) internal view returns (address result);