zink
zink copied to clipboard
feat(example): demo of erc20
trafficstars
A basic ERC20 implementation
Tasks
- [ ] ~~function~~
- [ ] ~~dynamic arguments~~
- [x] storage
- [x] write storage in constructor
- [x] read storage
- [ ] ~~read / write dynamic{bytes, string}~~
- [x] mapping implementation
- [x] fix reading static variables
- [ ] transfer / allowance / approval
- [ ] deriving and exposing functions from trait (ERC20)
Contract
- [ ] read
- [x] name
- [x] symbol
- [x] decimals
- [x] totalSupply
- [x] balanceOf
- [x] allowance
- [ ] write
- [ ] transfer
- [ ] approve
- [ ] transferFrom
- [ ] internal
- [ ] _transfer
- [ ] _update
- [ ] _mint
- [ ] _burn
- [ ] _approve
- [ ] _spendAllowance