Some tools provide secure and usable ERC20 contracts through inheritance for us to include such as openzeppelin, and it is recommended to use them for security purposes. This project is my own attempt of implementing the ins and outs of an ERC20 token without the use of external libraries.
- macOS Monterey
- Ganache
- Metamask extension
- NodeJS
- Javascript/Jquery
- Solidity
- Truffle
- Install truffle globally:
https://trufflesuite.com/docs/truffle/getting-started/installation
- Run
npm install
- Download and launch ganache
truffle migrate --reset --network ganache
truffle test --network ganache
truffle console --network ganache
- Download the metamask extension
- Connect metamask to ganache
- In my code, I use a lot of require statements which is expensive in terms of gas, they can easily be merged into one statement.
- I did not really focus on the webpage design and esthetics as it is not really the point of the exercise, it is a very basic webpage that lets you interact with the smart contracts.