aragon / buidler-aragon

(Aragon 1) Buidler plugin for Aragon App development
24 stars 22 forks source link

Hardhat support #197

Open skozin opened 3 years ago

skozin commented 3 years ago

🚀 Feature

Support a new version of Buidler which is now called Hardhat.

Have you read the Contributing Guidelines on issues?

Yes.

Motivation

Recently, Buidler was renamed to Hardhat, which was accompanied by a number of improvements as well as breaking API changes. Plugins need to be migrated to the new API in order to support the new version.

Pitch

Hardhat is much better than Buidler in many aspects: the compilation is much faster (it uses the native solc binaries), it supports mainnet forking and multiple solc versions per one configuration. I doubt that Buidler would still be used by a lot of projects once most plugins are migrated to the new API.

welcome[bot] commented 3 years ago

Thanks for opening your first issue in aragonCLI! Someone will circle back soon âš¡

0xGabi commented 3 years ago

Hi, @skozin sharing in case it is still relevant for you. I migrate the plugin to use hardhat with some caveats. I remove the start task as the front-end is less relevant now that Aragon Connect exists. The plugin now focuses on the publishing process supporting smart contract deployments using hardhat-deploy and pinning the repo content to IPFS using pinata API.

I still need to clean up the commit history. The plugin was published under @1hive/hardhat-aragon and lives in my personal GitHub account for now: https://github.com/0xGabi/hardhat-aragon

You can have a better understanding of how to use it looking at a PR create to migrate the aragon-apps repo to hardhat and deploy them to polygon: https://github.com/1Hive/aragon-apps/pull/1

0xGabi commented 3 years ago

cc @cmauriciocoronel as well