When i change code in any of *.sol files i would want to run hh compile followed by running these 3 scripts in the right order. How should i do this?
Or am i thinking of this wrong, and there is a better/different way to setup dev workflow?
PS: in the past i was using hardhat-deploy but since it doesnt leverage the safety features built in to hardhat-upgrades, I decided to write scripts to do deployment which use deployProxy and upgradeProxy to do the deployment.
I have a similar working flow, and I'm wondering how we can get references to the proxies deployed in 01_deploy_box_proxy.js in 02_upgrade_box_proxy_to_v2.js. If the contracts were not upgradeable, the deployed contracts can be referenced even by the contract names const contract = await ethers.getContract<Contract>("Contract");, but it does not seem as straightforward as in the scenario with proxies. @ericglau Thanks.
Thanks, @Mister_Singh. Was expecting something like getProxy("ProxyName") where ProxyName should be the name of logic contract. Do you mind sharing the scripts for referencing proxies? Thanks.