I am currently deploying minimal (non upgradeable) proxies using ProxyFactory.
I want to make these upgradeable and therefore want to shift from using ProxyFactory to deploying upgradeable proxies using OZ upgrades. However, I see only usage from truffle migrations. Is there any way (and is it advisable) to deploy upgradeable proxies programmatically from a solidity contract ? I want to ideally replace the deployminimal() with a deployproxy(). Reason I want to do this programmatically is because the application needs to create multiple proxies at run time, all of which point to a single implementation contract.
Any advice will be greatly appreciated !