upgrade-cairo-contracts

Installation
SKILL.md

Cairo Upgrades

Contents

Starknet Upgrade Model

Starknet separates contract instances from contract classes. A class is the compiled program (identified by its class hash); a contract is a deployed instance pointing to a class. Multiple contracts can share the same class.

Upgrading a contract means replacing its class hash so it points to a new class. The contract keeps its address, storage, and nonce — only the code changes. This is fundamentally different from EVM proxy patterns:

Related skills

More from openzeppelin/openzeppelin-skills

Installs
97
GitHub Stars
174
First Seen
Mar 5, 2026