zink icon indicating copy to clipboard operation
zink copied to clipboard

feat(example): demo of erc20

Open clearloop opened this issue 1 year ago • 0 comments
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

clearloop avatar Sep 11 '24 13:09 clearloop