Skip to content

Support upgrades plugin for PolkaVM #1188

@KitHat

Description

@KitHat

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.

Metadata

Metadata

Assignees

Labels

Projects

Status

⚠ Blocked

Relationships

None yet

Development

No branches or pull requests

Issue actions