Skip to content

RawinSader/NetvrkERC20

Repository files navigation

Description

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.

OS

  • macOS Monterey

App environment

  • Ganache
  • Metamask extension

Programming environment

  • NodeJS
  • Javascript/Jquery
  • Solidity
  • Truffle

Before running the three commands below

  • Install truffle globally: https://trufflesuite.com/docs/truffle/getting-started/installation
  • Run npm install
  • Download and launch ganache

Migrate

  • truffle migrate --reset --network ganache

Test

  • truffle test --network ganache

Attach console

  • truffle console --network ganache

Before using the webapp

  • Download the metamask extension
  • Connect metamask to ganache

Notes

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published