https://github.com/decentralisedme/foundry_erc20
https://github.com/decentralisedme/foundry_erc20
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/decentralisedme/foundry_erc20
- Owner: Decentralisedme
- Created: 2024-04-10T15:22:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T15:38:18.000Z (over 2 years ago)
- Last Synced: 2024-12-30T12:26:59.415Z (over 1 year ago)
- Language: Solidity
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Foundry ERC-20
Creating a a Ric Token based on ERC-20 standards.
There are 2 Token contracs:
### ManualToken.sol:
The contract contains basic functions taken from the Ethereum Improvement Proposals page:
https://eips.ethereum.org/EIPS/eip-20
### RicToken.sol:
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:
```shell
$ forge install OpenZeppelin/openzeppelin-contracts --no-commit
```
In the solidity contract:
```shell
$ import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract RicToken is ERC20 {}
```
## ChatGPT Test
We made use of GPT to generate unit tests for our erc20 contract: few suggestions had to be updated