TheDocumentation Index
Fetch the complete documentation index at: https://optimism-373f39ad-feat-swap-documentation.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
upgrade command allows you to upgrade a chain from one version to another. It consists of several subcommands, one
for each upgrade version. Think of it like a database migration: each upgrade command upgrades a chain from exactly
one previous version to the next. A chain that is several versions behind can be upgrade to the latest version by
running multiple upgrade commands in sequence.
Unlike the bootstrap or apply commands, upgrade does not directly interact with the chain. Instead, it generates
calldata. You can then use this calldata with cast, Gnosis SAFE, superchain-ops, or whatever
tooling you use to manage your L1.
Usage
Use theupgrade command like this:
version must be one of v2.0.0 or v3.0.0.
You can also provide an optional --override-artifacts-url flag if you want to point to a different set of artifacts
from the default. Setting this flag is not recommended.
The config file should look like this:
chainConfigs array. The CLI will generate calldata for all chains you
specify. Note that all of these chains must be upgradeable using the provided OPCM and prank address.
The upgrade command will provide the following output:
data field in the to field as input to cast or other tools.