Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 809 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 809 Bytes

Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.ts

Deploy

$ npx hardhat run --network {network_name} scripts/{script_name}.ts

Flatten

$ npx hardhat flatten contracts/{contract_name}.sol > {flatten_folder}/{flatten_name}.sol

Verify

npx hardhat verify --network {network_name} {contract_address} "{constructor_parameter1}"
npx hardhat verify --contract contracts/{contract_name}.sol:{contract_name} --network {network} {contract_address} "{constructor_parameter1}"