Module upgrade

Source

Enums§

UpgradeSource
Where an upgrade’s new code comes from — a raw blob, or a global contract pinned by code hash. Both are immutable: exactly this code is deployed, then migrate runs. (Global-by-account-id is deliberately excluded: it is a live delegation to the publisher, so a later republish would swap the code with no proposal, timelock, or migrate — bypassing governance and bricking versioned state.)
UpgradeSummary
A compact, loggable stand-in for an UpgradeSource — a hash, never the (potentially large) blob.

Constants§

MIGRATE_METHOD
The post-deploy state-migration method every contract exposes.