An ERC 20 token deployed on the Celo alfajores
testnet using hardhat
, solidity
& web3
/contractkit
. This repository contains smart contracts written in solidity
and deployment, testing using hardhat
.
- Owner can mint, burn & transfer tokens arbitrarily
- Transfer occur among receivers in a list only modified by owner
- Users can buy ELM tokens using CELO
- Mining of ELM tokens in Proof of Work process
- Mining of ELM tokens in Proof of Stake process
- Mint an NFT (LORI) with ELM tokens
# Setup environment
npm install
# Deploying the smart contract
npx hardhat --network alfajores deploy
# Verifying the smart contract
npx hardhat --network alfajores sourcify
# Run tests
npx hardhat test
.env
contains the following variablesPRIVATE_KEY
- key for an account you ownUNITS_PER_CELO
- amount of ELM for a unit of CELO (default=100 i.e. 0.01 CELO / ELM)ELM_PER_NFT
- amount of ELM to purchase an NFT (default=100)
- Tests do not have complete coverage; only tests some basic functionality