ApeWorX / ape

The smart contract development tool for Pythonistas, Data Scientists, and Security Professionals
https://apeworx.io
Apache License 2.0
886 stars 131 forks source link

Hardhat support #130

Closed lost-theory closed 3 years ago

lost-theory commented 3 years ago

Elevator pitch:

Add support for Hardhat as a network provider in Ape.

Value:

Hardhat is an Ethereum development environment written in JavaScript that includes a JSON RPC node. We can use this endpoint as a network provider (as an alternative to existing eth-tester, Infura, and HTTP network providers). The Hardhat node has a few extra features that are useful for Ape developers, like a fork mode and snapshots (esp. useful for writing test code).

Dependencies:

N/A.

Design approach:

Should be straightforward to implement using the existing HTTP provider (EthereumProvider) and possibly looking at Brownie's hardhat support:

https://github.com/eth-brownie/brownie/blob/master/brownie/network/rpc/hardhat.py

Task list:

Estimated completion date:

Mid August 2021.

Design review:

Do not signoff unless:

(Please leave a comment to sign off)

fubuloubu commented 3 years ago

Sign-off!

lost-theory commented 3 years ago

All set: