How to Write Upgradable Smart Contracts (Smart Contract Versioning)

How upgradable smart contracts work with practical examples using OpenZeppelin Upgrades CLI & Libraries.

1 Like

Thanks for posting this here @coincodecap.com :slight_smile:

This article was first published on our open-source platform, SimpleAsWater.com. If you are interested in IPFS, Libp2p, Ethereum, Zero-knowledge Proofs, Defi, CryptoEconomics, IPLD, Multi formats, and other Web 3.0 projects, concepts and interactive tutorials, then be sure to check out SimpleAsWater.com.

In this post, we are going to learn:

  1. Why do we need to upgrade smart contracts?
  2. Understanding how upgrades work under the hood?
  3. Using OpenZeppelin CLI to easily write/manage "upgradable" smart contracts.
  4. Upgrading Contracts Programmatically using the OpenZeppelin Upgrades library.
  5. A few Limitations & Workarounds of Upgradable Contracts

In case you get stuck somewhere or have any doubts, let us know here.

2 Likes

Thank you for writing this really detailed article on upgradeable solidity contracts @vasa-develop and thanks for sharing @coincodecap.com. :pray:

1 Like

A post was split to a new topic: Where is the storage for an upgradeable contract?