bugout-dev / dao

Moonstream DAO
Apache License 2.0
17 stars 7 forks source link

hardhat support #60

Open zomglings opened 2 years ago

zomglings commented 2 years ago

Currently, running a hardhat compile in a repo that contains @moonstream/contracts imports breaks.

This is because there is no @moonstream/contracts package on NPM and hardhat uses NPM packages to manage dependencies.

See conversation on Moonstream Discord: https://discord.com/channels/867156607644860418/954495097406382120/1015381496082726983

Thanks to defikris for pointing this out.

This is what we need to do to enable hardhat support:

Yhtiyar commented 2 years ago

Foundry is using hardhat-preprocessor to deal with remappings: https://book.getfoundry.sh/config/hardhat