This is a Hardhat project with several simple contracts and their test in TypeScript. It uses OpenZeppelin contracts as the base contract most of the time.
Compiled contracts are fed into TypeChain to generate types, which are then used within TypeScript.
yarn compile
to compile the contracts.yarn test
to test the contracts.yarn lint
to lint everything.yarn node:start
to start a Hardhat node onlocalhost
.yarn node:run <path>
to run a script at the given path onlocalhost
.yarn deploy
to deploy contract to Mumbai testnet.yarn verify
to verify contract which is deployed to Mumbai testnet. Before it, you should update deployed contract address with recent one.
- TypeScript codes are formatted & linted with GTS.
- Contracts are formatted with Solidity + Hardhat.
- Contracts are linted with solhint.