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

FR: provide a Hardhat task "ethernal:push" #18

Open
aspiers opened this issue Mar 16, 2022 · 2 comments
Open

FR: provide a Hardhat task "ethernal:push" #18

aspiers opened this issue Mar 16, 2022 · 2 comments

Comments

@aspiers
Copy link

aspiers commented Mar 16, 2022

The docs explain that hardhat deploy scripts can be extended to push newly deployed artifacts to Ethernal:

await hre.ethernal.push({
    name: 'Greeter',
    address: greeter.address
});

However this requires tedious and repetitive modification of all deploy scripts. It would be awesome if as an alternative, the plugin also provided a new task so that you could just type

hardhat ethernal:push Greeter1 Greeter2 ...

to push artifacts for one or more contracts, or even omit the contract list altogether to push all known artifacts:

hardhat ethernal:push

I'm guessing this would require integration with wighawag/hardhat-deploy in order to retrieve the persisted artifacts and deployed addresses, since that plugin would allow hardhat-ethernal to automate things like:

const contract = hre.ethers.getContract('Greeter');
await hre.ethernal.push({
    name: contract.name
    address: contract.address
});
@olivmath
Copy link

See my issue #31 friend!

@antoinedc
Copy link
Member

@olivmath, I think he meant a way of pushing multiple contracts at once and through the CLI :)

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

3 participants