/mhxw-contracts

Primary LanguageSolidityGNU General Public License v3.0GPL-3.0

MHXW Contracts

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.

Installation

  1. Clone the repo
  2. Install foundry
git clone https://github.com/mhxw/mhxw-contracts
cd mhxw-contracts
pnpm install
forge install

Setup

.env

Copy .env from .env.example abd fill in all the variables in .env

hardhat.config.ts

Modify namedAccounts in hardhat.config.ts and add networks if necessary.

Test

forge test
forge test -vvv

Deployment

npx hardhat deploy --network <NETWORK>
# or
npx hardhat run --network <NETWORK> scripts/01-deploy-sunshine-nft.ts

Other

slither .

License

GNU General Public License v3.0 or later

See COPYING to see the full text.