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...
- Install then initiate Truffle.
$ npm install -g truffle $ truffle init
- Copy paste repo files into directory where truffle was initated.
- Run the following to deploy the contracts to the local Truffle network.
$ truffle develop > compile > migrate
- Test away.
- 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()
- Instance of contract