Skip to content

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

@aspiers

Description

@aspiers

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
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions