·upgrade-stellar-contracts
!

upgrade-stellar-contracts

使用 OpenZeppelin 的可升级模块升级 Stellar/Soroban 智能合约。当用户需要:(1) 通过本机 WASM 替换使 Soroban 合约可升级,(2) 使用 Upgradeable 或 UpgradeableMigratable 派生宏,(3) 使用 Upgrader 合约实现原子升级和迁移模式,(4) 确保升级之间的存储密钥兼容性,或 (5) 测试 Soroban 合约的升级路径。

44安装·6热度·@openzeppelin

安装

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

如何安装 upgrade-stellar-contracts

通过命令行快速安装 upgrade-stellar-contracts AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/openzeppelin/openzeppelin-skills --skill upgrade-stellar-contracts
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:openzeppelin/openzeppelin-skills。

SKILL.md

查看原文

Soroban contracts are mutable by default. Mutability refers to the ability of a smart contract to modify its own WASM bytecode, altering its function interface, execution logic, or metadata. Soroban provides a built-in, protocol-level mechanism for contract upgrades — no proxy pattern is needed.

A contract can upgrade itself if it is explicitly designed to do so. Conversely, a contract becomes immutable simply by not provisioning any upgrade function. This is fundamentally different from EVM proxy patterns:

| | Soroban | EVM (proxy pattern) | Starknet |

使用 OpenZeppelin 的可升级模块升级 Stellar/Soroban 智能合约。当用户需要:(1) 通过本机 WASM 替换使 Soroban 合约可升级,(2) 使用 Upgradeable 或 UpgradeableMigratable 派生宏,(3) 使用 Upgrader 合约实现原子升级和迁移模式,(4) 确保升级之间的存储密钥兼容性,或 (5) 测试 Soroban 合约的升级路径。 来源:openzeppelin/openzeppelin-skills。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/openzeppelin/openzeppelin-skills --skill upgrade-stellar-contracts
分类
!安全工具
认证
收录时间
2026-03-06
更新时间
2026-03-10

Browse more skills from openzeppelin/openzeppelin-skills

快速解答

什么是 upgrade-stellar-contracts?

使用 OpenZeppelin 的可升级模块升级 Stellar/Soroban 智能合约。当用户需要:(1) 通过本机 WASM 替换使 Soroban 合约可升级,(2) 使用 Upgradeable 或 UpgradeableMigratable 派生宏,(3) 使用 Upgrader 合约实现原子升级和迁移模式,(4) 确保升级之间的存储密钥兼容性,或 (5) 测试 Soroban 合约的升级路径。 来源:openzeppelin/openzeppelin-skills。

如何安装 upgrade-stellar-contracts?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/openzeppelin/openzeppelin-skills --skill upgrade-stellar-contracts 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

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