Skip to main content
kona-registry is a no_std crate that exports rust type definitions for chains in the superchain-registry. These are lazily evaluated statics that provide ChainConfigs, RollupConfigs, and Chain objects for all chains with static definitions in the superchain-registry. Since it reads static files to read configurations for various chains into instantiated objects, the kona-registry crate requires serde as a dependency. There are three core statics exposed by the kona-registry.
  • CHAINS: A list of chain objects containing the superchain metadata for this chain.
  • OPCHAINS: A map from chain id to ChainConfig.
  • ROLLUP_CONFIGS: A map from chain id to RollupConfig.
kona-registry exports the complete list of chains within the superchain, as well as each chain’s RollupConfigs and ChainConfigs.

Usage

Add the following to your Cargo.toml.
To make kona-registry no_std, toggle default-features off like so.
Below demonstrates getting the RollupConfig for OP Mainnet (Chain ID 10).
A mapping from chain id to ChainConfig is also available.