Upgrade Safety & Storage Layout
CX3Script v1.3.0 ships storage layout analysis for upgradeable contracts. Use it in CI to check that a new .cxs version keeps the storage keys of the version before it.
Green Chain production deploys via the web console and CX3VM HTTP, and has no in-place upgrade transaction: a new version is a new deploy at a new address, and moving state to it is an operator step. The only other way is a network upgrade that every validator applies at the same block height, with the contract's storage unchanged (on 29 October 2026 the devnet's older token contracts got the own-address rule this way, at blocks 134200 and 134500). The layout check protects that migration and any tooling that reads the old keys. This page covers the cx3script analyser and CXSCompiler APIs for local validation.
---