Moonbeam / Moonbase Alpha UUPS Proxy verification

Hello OZ team @frangio,

I am trying to verify contracts using UUPS proxies on Moonbeam / Moonbase Alpha. In multiple forum posts I've seen that OZ is responsible for verifying the initially the proxies deployed so I'd like to ask to do the verification on Moonbeam network.

Thanks and regards,
Adrian

:1234: Code to reproduce

Here's a sample for a UUPS proxy deployed on Moonbase Alpha: https://moonbase.moonscan.io/address/0xfc5e65e5ab7329a3d59eaf29054eac9950b872c0#code

I've been using hardhat upgrades plugin for deployment.
"hardhat": "^2.8.2"
"@openzeppelin/hardhat-upgrades": "^1.12.1",


:computer: Environment

Hi @adradr, We now offer a way for you to verify these without relying on us. Please look at the "Upgradeable Contracts and Proxies" section here:

Let me know if you need further help.

I was finally able to verify the @openzeppelin/hardhat-upgrades uups proxy on Moonbase Alpha.

I had to flatten the source ERC1967Proxy.sol from @openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol and encode the constructor arguments used with upgrades.deployProxy() using this: https://abi.hashex.org/

Here's the contract on Moonbase Alpha: https://moonbase.moonscan.io/address/0x4641dD52Eca07b684BC9e2455Bca11fDcfAfab1B#code

Best,
Adrian

1 Like