8000 Best way to generate deploy artifact · Issue #4 · wighawag/tutorial-hardhat-deploy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Best way to generate deploy artifact #4

New issue

Ha 8000 ve 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

Open
David-Kneel opened this issue Jul 9, 2021 · 2 comments
Open

Best way to generate deploy artifact #4

David-Kneel opened this issue Jul 9, 2021 · 2 comments
Labels
question Further information is requested

Comments

@David-Kneel
Copy link

Which is the best way to generate deploy artifacts of a deployed proxied smart contract at a given public network?

I was able to do this once with the following set of manually written artifacts placed in deployments/<network name> folder:

  • _implementation.json
  • _proxy.json
  • .json

This time I'm not being able to correctly define <contract name>_implementation.json byte code and because of this, hardhat is redeploying the implementation contract...

Ideally, there should be an automated and straight forward way to get the deployment artifacts from from contracts already deployed in public networks. Any suggestions?

@wighawag
Copy link
Owner

It should be _Implementation.json and _Proxy,json (note the upper case letter)

The bytecode in the file is not used to check difference, hardhat-depliy actually fetch the transaction from the transactionHash field and check if the new source code + constructor argument matches

@wighawag wighawag added the question Further information is requested label Jul 10, 2021
@wighawag
Copy link
Owner

As for generating deployment artifact from project like etherscan, this could be handled by an external tool, or even an hardhat plugin. You would still need to provide the address

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

No branches or pull requests

2 participants
0