Skip to content
Yuichiro Aoki edited this page Mar 1, 2022 · 1 revision

In the project directory, you can run:

yarn build

Clears the cache and deletes all artifacts && Compiles the entire project, building all artifacts

yarn deploy

Deploys the flashloan contract on the mainnet fork

yarn deploy --network polygon

Deploys the flashloan contract on the polygon mainnet

yarn clean

Clears the cache and deletes all artifacts

yarn compile

Compiles the entire project, building all artifacts

npx hardhat node

Starts a JSON-RPC server on top of Hardhat Network

yarn test

Runs mocha tests

yarn coverage

Implement a code coverage for tests

yarn account

Show the list of accounts

yarn block-number

Show the current block number

yarn balance (account's address)

Show an account's balance

References

https://hardhat.org/guides/create-task.html