pub struct Registry {
pub chains: Vec<Chain>,
pub op_chains: HashMap<u64, ChainConfig, DefaultHashBuilder>,
pub rollup_configs: HashMap<u64, RollupConfig, DefaultHashBuilder>,
}
Expand description
The registry containing all the superchain configurations.
Fields§
§chains: Vec<Chain>
The list of chains.
op_chains: HashMap<u64, ChainConfig, DefaultHashBuilder>
Map of chain IDs to their chain configuration.
rollup_configs: HashMap<u64, RollupConfig, DefaultHashBuilder>
Map of chain IDs to their rollup configurations.
Implementations§
Source§impl Registry
impl Registry
Sourcepub fn read_chain_list() -> Vec<Chain>
pub fn read_chain_list() -> Vec<Chain>
Read the chain list.
Sourcepub fn read_superchain_configs() -> Superchains
pub fn read_superchain_configs() -> Superchains
Read superchain configs.
Sourcepub fn from_chain_list() -> Self
pub fn from_chain_list() -> Self
Initialize the superchain configurations from the chain list.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Registry
impl<'de> Deserialize<'de> for Registry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Registry
impl StructuralPartialEq for Registry
Auto Trait Implementations§
impl Freeze for Registry
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnwindSafe for Registry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more