pub struct ChainRegistryEntry {
pub id: ChainId,
pub genesis_hash: GenesisHash,
pub display_name: String,
pub endpoint: String,
pub backend: ConnectionBackend,
pub relay_db_key: String,
pub para_db_key: String,
pub chain_specs: Option<(String, String)>,
}Expand description
A single entry in the ChainRegistry.
Contains the full chain configuration. All string fields use String (not
&'static str) so that runtime-provided values for custom chains work
without lifetime constraints.
Fields§
§id: ChainId§genesis_hash: GenesisHash§display_name: StringHuman-readable chain name for display in UIs.
endpoint: StringWebSocket RPC endpoint URL. Empty for non-RPC backends (ETH, BTC).
backend: ConnectionBackendWhich connection backend to use for this chain.
relay_db_key: StringDatabase key shared by all parachains on the same relay chain.
para_db_key: StringDatabase key unique to this parachain’s state.
chain_specs: Option<(String, String)>Smoldot chain specs as (relay_spec, para_spec). None for chains
that use RPC, Kyoto, or Helios backends.
Trait Implementations§
Source§impl Clone for ChainRegistryEntry
impl Clone for ChainRegistryEntry
Source§fn clone(&self) -> ChainRegistryEntry
fn clone(&self) -> ChainRegistryEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChainRegistryEntry
impl RefUnwindSafe for ChainRegistryEntry
impl Send for ChainRegistryEntry
impl Sync for ChainRegistryEntry
impl Unpin for ChainRegistryEntry
impl UnsafeUnpin for ChainRegistryEntry
impl UnwindSafe for ChainRegistryEntry
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