Attempting to verify a proxy contract (
TransparentUpgradeableProxy) based on deployment logs) in polygon mumbai testnet chain explorer: https://explorer-mumbai.maticvigil.com
Using Truffle with following package versions:
"@openzeppelin/contracts": "^3.4.0", "@openzeppelin/contracts-upgradeable": "^3.4.0", "@openzeppelin/truffle-upgrades": "^1.7.0", "truffle": "^5.3.7"
The reason for using older versions is consistency between all our contacts, we’re not ready to migrate to latest versions yet
Verifying requires full Solidity code (I could not find
TransparentUpgradeableProxy, I was only able to locate
AdminUpgradeabilityProxy and flatten that.
Additionally I will need compiler details which are not available in the JSON files of the upgrade package, proxy contracts come pre-compiled
Are you able to provide details on where to locate
sol files for the deployed proxy contracts and which compiler versions are used to create them?
Code to reproduce
Create a truffle project with above dependencies, deploy any contract as an upgradable (
Initializable), and attempt to verify the proxy contract on Mumbai testnet
Unfortunately this process is fairly tedious and I wish they did not require
sol code, realistically ABI should be all that is needed to interface with a contract