Call upgradeable contract methods through Etherscan

Call upgradeable contract methods through etherscan (for example)

:computer: Environment
Hardhat (I believe - the default one included with the OZ CLI)

:memo:Details
Is there any way to interact generically from a web ui such as etherscan with an upgradeable contract such that the generic UI deduces the callable methods and attributes for you on the proxied to contract? This would be especially handy for manual testing scenarios and trying things out with metamask for instance.

Thank you in advance for any thoughts,
-Aaron

1 Like

Hi @porkchop,

Welcome to the community :wave:

Etherscan supports interacting via a proxy contract:

You will need both the proxy and implementation contract verified to use this.

To verify an implementation contract, we can use: Verify smart contract inheriting from OpenZeppelin Contracts.

What network are you deploying to? We can verify the proxy contract.

Hi @porkchop,

Were you able to verify and interact via Etherscan?

Alternatively you could also try services such as https://oneclickdapp.com/ or https://kumavis.github.io/udapp using the ABI of your implementation contract and the address of the proxy.

A post was split to a new topic: Verify with OpenZeppelin CLI