OpenZeppelin's Upgradable Contract References?

Hi everyone,

I'm trying to write an upgradeble contract. I currenty have an ERC1155Token contract (that I written myself), now I want to make that contract become an upgradeable one. I already understand the idea of an upgradeable contract (as there's a "storage" contract - which is immutable, and another contract for logic - that I can change this and the "storage" contract is still the same).

I did read the OpenZeppelin Tutorial and others, it was okay, but I can just understand the concept. I'm totally dont know where to start changing my contract to an upgradeable one.

Can anyone suggest some references/tutorials/videos/docs/... anything that you think could help me?

I'm expected using these:

  • Openzeppelin: v4.x
  • Solidity: v0.8.x
  • Hardhat: ^2.3.0

Thanks for your help :100: :100: :100:

1 Like

Hi, if you have deployed your token contract without the proxy pattern, so I think later, you can not update your token contract with proxy, that is you have got to use the proxy pattern at the beginning, then you can update your contracts later.

I think you can have a look at this tutorial:

And there is another proxy pattern:

1 Like

I gave a workshop that was specific to the UUPS proxy pattern, but I demonstrated how to to change a contract to an upgradeable one:

2 Likes