ERC20
Interface#
Explanation of each method:
- https://en.bitcoinwiki.org/wiki/ERC20
- https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol
Code Notes#
- You cannot get "existing" keys for a mapping. You'd have to store them separately.
publiccontract variables automatically have a getter created for them, but not a setter.- When a
requirecondition is not met, all prior transactions are undone. - Useful variables available in Solidity
- msg.sender: The address of the sender of the whatever function is being executed.
- block.timestamp: The current block timestamp as seconds since unix epoch.