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 toChainConfig.ROLLUP_CONFIGS: A map from chain id toRollupConfig.
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 yourCargo.toml.
kona-registry no_std, toggle default-features off like so.
RollupConfig for OP Mainnet (Chain ID 10).
ChainConfig is also available.