Creating a a Ric Token based on ERC-20 standards. There are 2 Token contracs:
The contract contains basic functions taken from the Ethereum Improvement Proposals page: https://eips.ethereum.org/EIPS/eip-20
The contract inherits the code from ERC-20 OpenZeppelin Solidity Contract Librairy under token:
- OpenZeppelin: https://www.openzeppelin.com/contracts
- OpenZeppelin Github: https://github.com/OpenZeppelin/openzeppelin-contracts/ Steps to use it: In terminal install the package:
$ forge install OpenZeppelin/openzeppelin-contracts --no-commitIn the solidity contract:
$ import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract RicToken is ERC20 {}We made use of GPT to generate unit tests for our erc20 contract: few suggestions had to be updated