This project demonstrates a Hardhat and Foundry use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.
- Clone the repo
- Install foundry
git clone https://github.com/mhxw/mhxw-contracts
cd mhxw-contracts
pnpm install
forge install
Copy .env
from .env.example
abd fill in all the variables in .env
Modify namedAccounts
in hardhat.config.ts
and add networks if necessary.
forge test
forge test -vvv
npx hardhat deploy --network <NETWORK>
# or
npx hardhat run --network <NETWORK> scripts/01-deploy-sunshine-nft.ts
slither .
GNU General Public License v3.0 or later
See COPYING to see the full text.