wighawag / hardhat-deploy

hardhat deployment plugin
MIT License
1.17k stars 283 forks source link

Enable the use of Hedera SDK on hedera based blockchains #499

Open migoldfinger opened 7 months ago

migoldfinger commented 7 months ago

At the moment deployment on hedera network is working so far. However there are important metadata that needs to be set at deployment time. To set these metadata you have to use the hedera SDK there is no way to set these metadata any other way. The most important one is adminKey with will enable you to change the metadata of the contract at a later time, without this Key set the metadata is immutable.

Describe the solution you'd like There should be a DeployOptions to enable the SDK in the deployment process.

Describe alternatives you've considered 1) Custom deploy scripts -> would discard all benefits of hardhat-deploy 2) Mark the network as "hedera style" and change behavior based on the network information -> Even it should not be noticable by the user it would take away users choice of using the SDK or not.

Additional context I did fork the project and startet to try to add this myself since for me it is urgent. I lack confidence in my TS/JS skills to deliver a clean solution. I also did not find a way to debug the module when running hardhat deployment. I use Visual Studio Code and a way to live debug the _deploy and see exactly what is going on would be highly appreciated.