Currently @openzeppelin/hardhat-upgrades deploys contracts that are shipped with @openzeppelin/upgrades-core. They are built with a regular solc which is incompatible with PolkaVM. To support PolkaVM for @openzeppelin/hardhat-upgrades for PolkaVM, we need:
- Ship a PolkaVM version of contracts (and all needed data like build info) in the adjacent directory, for example
artifacts-pvm in @openzeppelin/upgrades-core
- In
@openzeppelin/hardhat-upgrades add helpers that will select a correct versions of the contracts based on the field networks.hardhat.polkavm being set to true. This helpers should be used whenever a contract is deployed.
Currently
@openzeppelin/hardhat-upgradesdeploys contracts that are shipped with@openzeppelin/upgrades-core. They are built with a regularsolcwhich is incompatible with PolkaVM. To support PolkaVM for@openzeppelin/hardhat-upgradesfor PolkaVM, we need:artifacts-pvmin@openzeppelin/upgrades-core@openzeppelin/hardhat-upgradesadd helpers that will select a correct versions of the contracts based on the fieldnetworks.hardhat.polkavmbeing set totrue. This helpers should be used whenever a contract is deployed.