Skip to content

An ERC 20 token deployed on the Celo Alfajores testnet using Hardhat & Solidity

Notifications You must be signed in to change notification settings

Tahmeed156/Elonium-Dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elonium

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.

~ Features ~

  • 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

~ Some useful commands ~

# 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

~ Notes ~

  • .env contains the following variables
    • PRIVATE_KEY - key for an account you own
    • UNITS_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

About

An ERC 20 token deployed on the Celo Alfajores testnet using Hardhat & Solidity

Topics

Resources

Stars

Watchers

Forks