Let's assume that there is a VestorFactory contract and it will make new Vester contract via function call like below.
Vester vester = new Vester( ... )
Since the new Vester contract is not deployed via hardhat-deploy package, we're not storing it in deployments folder.
In deploy script, we will deploy VestoryFactory and will generate multi Vester contracts via multi function calls and we can get those Vester contracts address from event.
With this Vester address, can we generate new deployment for the Vestor?
It'd be great if we can use saveDeployment function with compiled contract ABI (or artifact) and address.
Let's assume that there is a VestorFactory contract and it will make new Vester contract via function call like below.
Since the new Vester contract is not deployed via
hardhat-deploy
package, we're not storing it indeployments
folder.In deploy script, we will deploy
VestoryFactory
and will generate multiVester
contracts via multi function calls and we can get those Vester contracts address from event. With this Vester address, can we generate new deployment for theVestor
?It'd be great if we can use saveDeployment function with compiled contract ABI (or artifact) and address.