upgrade-stylus-contracts

Upgrade Stylus WASM contracts on Arbitrum using OpenZeppelin proxy patterns.

Updated Oct 17, 2025
One-click install
npx skills add https://github.com/iamcapote/emptyrepo --skill upgrade-stylus-contracts-iamcapote
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: upgrade-stylus-contracts
Source: https://github.com/iamcapote/emptyrepo/tree/main/skills/allied/openzeppelin-skills/skills/upgrade-stylus-contracts
Command: npx skills add https://github.com/iamcapote/emptyrepo --skill upgrade-stylus-contracts-iamcapote

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stylus WASM contracts face upgrade challenges when coexisting with EVM proxies and need robust, auditable upgrade paths.

Core Features & Use Cases

  • UUPS and Beacon proxy pattern integration for Stylus upgrades
  • Preservation of storage layout and proper initialization sequencing
  • Guidance on access control, reactivation, and safety checks for production upgrades

Quick Start

Deploy a Stylus implementation behind an ERC-1967 proxy and perform an upgrade using the UUPS or Beacon pattern with proper access control.

Frequently Asked Questions about upgrade-stylus-contracts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upgrade Stylus WASM contracts on Arbitrum?

Upgrade Stylus WASM contracts on Arbitrum by deploying implementations behind ERC-1967 proxies and executing UUPS or Beacon pattern upgrades with strict access control and initialization sequencing. This ensures safe contract reactivation and storage compatibility.

What proxy patterns work with Stylus contract upgrades?

UUPS and Beacon proxy patterns work with Stylus contract upgrades. Both OpenZeppelin patterns integrate with Stylus WASM to manage implementation migrations while preserving storage layout and enforcing proxiable UUID validation during contract reactivation.

Can I use OpenZeppelin proxies with Arbitrum Stylus contracts?

Yes, you can use OpenZeppelin proxies with Arbitrum Stylus contracts. The integration supports ERC-1967 proxy deployment, allowing Stylus WASM implementations to coexist with EVM proxies and perform auditable upgrades using standard safety checks.

How do I preserve storage layout when upgrading Stylus implementations?

Preserve storage layout when upgrading Stylus implementations by using compatible proxy patterns and following correct initialization sequencing. This approach maintains data integrity across contract migrations and prevents storage collisions during reactivation.

What safety checks are required for Stylus proxy upgrades?

Required safety checks for Stylus proxy upgrades include access control enforcement, proxy context checks, and proxiable UUID validation. These checks ensure only authorized callers perform upgrades and that implementation contracts validate their proxy context correctly.

When do I need to use a Beacon proxy vs UUPS for Stylus upgrades?

Use a Beacon proxy for Stylus upgrades when managing multiple proxy instances sharing one implementation, and UUPS for single-contract upgrades with built-in upgrade logic. Both patterns maintain storage compatibility and support safe reactivation on Arbitrum.