OpenZeppelin / openzeppelin-upgrades

Plugins for Hardhat and Foundry to deploy and manage upgradeable contracts on Ethereum.
MIT License
604 stars 254 forks source link

Support Vyper contracts #822

Open 0xOzy42 opened 1 year ago

0xOzy42 commented 1 year ago

I'm trying to deploy an upgradable vyper contract, and to check if the implementation of this contract is safe before deployment. But when i run the validateImplementation with the ethers.ContractFactory associated to my vyper contract i have this error:

Error: The requested contract was not found. Make sure the source code is available for compilation

There is an option for vyper contracts, or it's simply not available with the plugin ? (seems that it only target .sol contract)

ericglau commented 1 year ago

Vyper contracts are not currently supported with the plugins. The Vyper compiler's output format and storage layout description are different than Solidity's.

If anyone would like to see this supported with the plugins, feel free to comment further and let us know what use cases you are interested in (e.g. proxy deployments and/or upgrade safety validations).