Giter Site home page Giter Site logo

erc20's Introduction

Hello ERC20 Kata

Simple kata to create an ERC20 fixed supply Token.

Requirements

Iteration 1 - Token Metadata

Feature: Token Contract Metadata

As a Token Contract I want to have standard metadata fields.
  • Can get the Token's name as a public field
  • Can get the Token's three character symbol as a public field

Feature: Decimal level

As a Token Contract I want to set the decimal level.
  • Can get the Token's decimal level as a public field

Iteration 2 - Basic Token

Feature: Fixed Token Supply

As a Token Contract I want a fixed supply of Tokens assigned to the creator
  • public view function totalSupply() returns a uint256 with the total supply of tokens
  • public view function balanceOf() returns a uint256 the supply of tokens for the address passed in

Feature: Transfer Tokens

As a Token holder I want to be able to transfer them to another address.
  • public transfer function
  • pass in target address and amount of tokens
  • does not allow user to send tokens to self
  • does not allow user to send tokens they don't have
  • returns if successful or not

Feature: Emits Transfer Event

As a Token Contract I want to emit a Transfer event when the transfer function is called.
  • Should be able to read a Transfer Event off of the event logs

Iteration 3 - ERC20 Token

Feature: Allowance

As an Blockchain User I want to be able to see how many tokens a Token holder has allowed someone else to spend on their behalf.
  • passing in owner and spender addresses returns amount
  • returns zero if none have been approbed

Feature: Approve

As a token holder I want to allow another address to transfer tokens on my behalf.
  • passing in address of spender and amount returns true if possible
  • emits an Approval event when successful

Feature: Transfer From

As a third party I want to be able to transfer Token from one address to another when I've been approved.
  • Approved third party address is able to transfer tokens from an approved address to another address
  • Emits a Transfer Event

erc20's People

Contributors

folkengine avatar

Watchers

James Cloos avatar Jack avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.