·upgrade-cairo-contracts
!

upgrade-cairo-contracts

Starknet에서 OpenZeppelin의 UpgradeableComponent를 사용하여 Cairo 스마트 계약을 업그레이드하세요. 사용자가 다음 작업을 수행해야 하는 경우에 사용합니다. (1) replacement_class_syscall을 통해 Cairo 계약을 업그레이드 가능하게 만들고, (2) OpenZeppelin UpgradeableComponent를 통합하고, (3) Starknet의 클래스 기반 업그레이드 모델과 EVM 프록시 패턴을 이해하고, (4) 업그레이드 간 스토리지 호환성을 보장하고, (5) 액세스 제어를 통해 업그레이드 기능을 보호하거나, (6) Cairo 계약에 대한 업그레이드 경로를 테스트합니다.

45설치·5트렌드·@openzeppelin

설치

$npx skills add https://github.com/openzeppelin/openzeppelin-skills --skill upgrade-cairo-contracts

upgrade-cairo-contracts 설치 방법

명령줄에서 upgrade-cairo-contracts AI 스킬을 개발 환경에 빠르게 설치

  1. 터미널 열기: 터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다
  2. 설치 명령어 실행: 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/openzeppelin/openzeppelin-skills --skill upgrade-cairo-contracts
  3. 설치 확인: 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code, Cursor, OpenClaw에서 사용할 수 있습니다

출처: openzeppelin/openzeppelin-skills.

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:

| Mechanism | replaceclasssyscall swaps the class hash in-place | Proxy delegatecalls to a separate implementation contract | | Proxy contract needed | No — the contract upgrades itself | Yes — a proxy sits in front of the implementation | | Storage location | Belongs to the contract directly | Lives in the proxy, accessed via delegatecall |

인용 가능한 정보

AI/검색 인용용 안정적인 필드와 명령어.

설치 명령어
npx skills add https://github.com/openzeppelin/openzeppelin-skills --skill upgrade-cairo-contracts
카테고리
!보안
인증됨
최초 등록
2026-03-06
업데이트
2026-03-10

Browse more skills from openzeppelin/openzeppelin-skills

빠른 답변

upgrade-cairo-contracts이란?

Starknet에서 OpenZeppelin의 UpgradeableComponent를 사용하여 Cairo 스마트 계약을 업그레이드하세요. 사용자가 다음 작업을 수행해야 하는 경우에 사용합니다. (1) replacement_class_syscall을 통해 Cairo 계약을 업그레이드 가능하게 만들고, (2) OpenZeppelin UpgradeableComponent를 통합하고, (3) Starknet의 클래스 기반 업그레이드 모델과 EVM 프록시 패턴을 이해하고, (4) 업그레이드 간 스토리지 호환성을 보장하고, (5) 액세스 제어를 통해 업그레이드 기능을 보호하거나, (6) Cairo 계약에 대한 업그레이드 경로를 테스트합니다. 출처: openzeppelin/openzeppelin-skills.

upgrade-cairo-contracts 설치 방법은?

터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/openzeppelin/openzeppelin-skills --skill upgrade-cairo-contracts 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code, Cursor, OpenClaw에서 사용할 수 있습니다

소스 저장소는 어디인가요?

https://github.com/openzeppelin/openzeppelin-skills