This repo holds the TBILL vault contract and the TBILL staking token developed with solidity and hardhat, it has the deployment and verification functionalities
The Hardhat configuration file is hardhat.config.js. It includes settings for the Solidity compiler, networks, and any additional plugins used in the project. Environment variables are managed using the dotenv package.
-
Install Dependencies:
npm install
Create a .env file in the project root with the following content:
PRIVATE_KEY="your private key "
API_URL="your Alchemy API key here"Replace the placeholder values with your actual Celo wallet private key and Infura/Alchemy API key for http rpc.
npx hardhat compilenpx hardhat testTo deploy the to testnet contract:
npx hardhat run scripts/deploy.js --network alfajoresFor mainnet
npx hardhat run scripts/deploy.js --network celoMake sure you have the Hardhat node running (npx hardhat node) if deploying to the local network.
To verify run this command
npx hardhat verify --network celo <Deployed contract address>this comand takes the nertwork, contract address and the time of deployment.