Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load hardhat project files and deployments #75

Open
mikeshultz opened this issue Jul 6, 2022 · 0 comments
Open

Load hardhat project files and deployments #75

mikeshultz opened this issue Jul 6, 2022 · 0 comments

Comments

@mikeshultz
Copy link
Contributor

mikeshultz commented Jul 6, 2022

Overview

If this is out of scope of this plugin, let me know.

It would be pretty useful if we could automatically get deployed hardhat contracts initialized in the console/API. I'm currently trying to work the Ape console into my workflow with a hardhat project. I'm currently creating web3.py contracts so I can interact with them but it's manual, doesn't keep up on ABI and address changes, and doesn't integrate well with the rest of the Ape API (e.g. accounts).

Would love to just be able to overlay Ape on top of hardhat and act-as-if it were just an Ape project. I'd be willing to put some work into this one, with some direction on where to start.

Specification

I'm not clear on what the scope would be so I'm probably missing some things here:

  • Read files from deployments/[network_name]/[contract_name].json for deployment ABI and addresses
  • Have Ape contract instances created and available on project.[contract_name]

Dependencies

Maybe #63 is a prereq or even this issue may be a duplicate of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant