Skip to main content

FactoryERC20

FactoryERC20

INTERNAL TOOL Used to factory ERC20 coins for unit testing

constructor

constructor(uint256 mintAmount, string coinName, string coinTicker) public

Creates ERC20 token

NameTypeDescription
mintAmountuint256how much should be minted and given to msg.sender. Pass mintAmount=0 to create 1_000_000_000_000_000_000_000_000_000 coins.
coinNamestringname used to identify coin
coinTickerstringticker used to identify coin

setTrustedForwarder

function setTrustedForwarder(address forwarder) public

_msgSender

function _msgSender() internal view returns (address sender)

the following 3 functions are all required for OpenGSN integration

_msgData

function _msgData() internal view returns (bytes)

versionRecipient

function versionRecipient() external pure returns (string)

mint

function mint(address to, uint256 amount) external