The documentation for Hardhat Deploy and update of a UUPS proxy is somewhat lacking.
Can anyone from the dev team confirm that using the standard deployProxy/upgradeProxy functions with an additional <kind : "uups"> opt is the correct way to handle a UUPS proxy.
That is:
Code to reproduce
//deploy a uups proxy:
const _proxy = await upgrades.deployProxy(OrigContractFactory, [initialize -params-here], {
initializer: "initialize",
kind : "uups",
});
//upgrade a uups proxy:
const _proxy = await upgrades.upgradeProxy(ORIG_PROXY_ADDRESS, NewContractFactory, {
kind : "uups"
});