/NullCoin

A virtually worthless ERC20 token.

Primary LanguageSolidityMIT LicenseMIT

NullCoin

A virtually worthless ERC20 token.

  • There are exactly $2^{256} - 1$ coins – maximum uint256 – in "circulation".
  • Coins cannot be destroyed or minted. It's just not computationally plausible.
  • While this is an ERC20 token, decimals are negligible for obvious reasons.
  • ./contracts/SafeMath.sol was taken from the OpenZeppelin contracts library.
  • Function names are taken after those of the equilvalent functions in @OpenZeppelin/contracts/contracts/token/ERC20/ERC20.sol

Not sure what I want to do with this... yet...

Instructions

Basic Testing Using Truffle

  1. Install then initiate Truffle.
    $ npm install -g truffle
    $ truffle init
    
  2. Copy paste repo files into directory where truffle was initated.
  3. Run the following to deploy the contracts to the local Truffle network.
    $ truffle develop
    > compile
    > migrate
    
  4. Test away.
  5. Miscellaneous commands for truffle(develop) that are useful.
    • Instance of contract
      > enc = await NullCoin.deployed()
      
    • Getting an array of the truffle test accounts
      > let accounts = await web3.eth.getAccounts()