Skip to content

Tokpay-finance/contracts

Repository files navigation

contracts

This repo holds the TBILL vault contract and the TBILL staking token developed with solidity and hardhat, it has the deployment and verification functionalities

Hardhat Configuration

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.

Setup

  1. Install Dependencies:

    npm install
    

Create Environment Variables:

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.

Compile Contracts:

npx hardhat compile

Run test

npx hardhat test

Deployment

To deploy the to testnet contract:

npx hardhat run scripts/deploy.js --network alfajores

For mainnet

npx hardhat run scripts/deploy.js --network celo

Make 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.

About

This repo holds the TBILL vault contract and the TBILL staking token developed with solidity and hardhat, it has the deployment and verification functionalities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors