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.js
PRIVATE_KEY=
INFURA_API_KEY=
ETHERSCAN_API_KEY=
OPTIMISTIC_ETHERSCAN_API_KEY=
- Type (
address
,bytes
, etc.) - Visibility (
public
|private
|internal
|external
) - Array
- Visibility (
public
|private
|internal
|external
) - Type (
address
,bytes
, etc.) - Struct
- Visibility (
public
|private
|internal
|external
) - State Interaction (
pure
|view
) - Restriction (
Access Control
etc. DEFAULT_ADMIN_ROLE first) - Complexity (Calls to inherited functions, external functions, change state)
- Alphabetical