Closed muskan171105 closed 5 days ago
This PR integrates Hardhat into the project to facilitate the development and deployment of smart contracts. The following changes have been made:
Added Hardhat Configuration:
hardhat.config.js
Updated package.json:
package.json
Directory Structure:
./contracts
./test
./scripts
./artifacts
./cache
Install Dependencies: Make sure to install the project dependencies, including Hardhat:
npm install
Set Up Environment Variables (if deploying):
.env
RINKEBY_URL=https://rinkeby.infura.io/v3/YOUR_INFURA_PROJECT_ID RINKEBY_PRIVATE_KEY=YOUR_PRIVATE_KEY MAINNET_URL=https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID MAINNET_PRIVATE_KEY=YOUR_PRIVATE_KEY
Run Hardhat Tests: To test the smart contracts, run:
npm run test
Deploy Smart Contracts: To deploy the smart contracts, use:
npm run deploy
This PR closed issue #9
The latest updates on your projects. Learn more about Vercel for Git ↗︎
This PR integrates Hardhat into the project to facilitate the development and deployment of smart contracts. The following changes have been made:
Added Hardhat Configuration:
hardhat.config.js
file to configure the Hardhat environment.Updated
package.json
:Directory Structure:
./contracts
for storing smart contracts../test
for writing tests for the contracts../scripts
for deployment scripts../artifacts
for compiled contract artifacts../cache
for caching files.Instructions to Run the Project
Install Dependencies: Make sure to install the project dependencies, including Hardhat:
Set Up Environment Variables (if deploying):
.env
file in the root directory of the project..env
file (replace with your actual keys):Run Hardhat Tests: To test the smart contracts, run:
Deploy Smart Contracts: To deploy the smart contracts, use:
This PR closed issue #9