pub struct EvmChainInfo {Show 17 fields
pub id: u64,
pub label: &'static str,
pub eip155_label: &'static str,
pub address_prefix: &'static str,
pub native_currency: ChainTokenInfo,
pub is_testnet: bool,
pub color: &'static str,
pub logo: ThemedImage,
pub website: WebUrl,
pub docs: WebUrl,
pub block_explorer: WebUrl,
pub bridges: &'static [WebUrl],
pub contracts: ChainContracts,
pub rpc_urls: ChainRpcUrls,
pub is_zk_sync: bool,
pub is_under_development: bool,
pub is_deprecated: bool,
}Expand description
Metadata for an EVM chain.
Fields§
§id: u64The EIP-155 chain ID.
label: &'static strDisplay label.
eip155_label: &'static strEIP-155 label (used for wallet connections).
address_prefix: &'static strERC-3770 address prefix.
native_currency: ChainTokenInfoNative currency token info.
is_testnet: boolWhether this is a testnet.
color: &'static strBrand color for UI display.
logo: ThemedImageChain logo.
website: WebUrlChain website.
docs: WebUrlChain documentation.
block_explorer: WebUrlBlock explorer.
bridges: &'static [WebUrl]Bridges.
contracts: ChainContractsWell-known contracts.
rpc_urls: ChainRpcUrlsDefault RPC URLs.
is_zk_sync: boolWhether this chain is zkSync-based.
is_under_development: boolWhether this chain is under development.
is_deprecated: boolWhether this chain is deprecated (no new trading).
Trait Implementations§
Source§impl Clone for EvmChainInfo
impl Clone for EvmChainInfo
Source§fn clone(&self) -> EvmChainInfo
fn clone(&self) -> EvmChainInfo
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 EvmChainInfo
impl RefUnwindSafe for EvmChainInfo
impl Send for EvmChainInfo
impl Sync for EvmChainInfo
impl Unpin for EvmChainInfo
impl UnsafeUnpin for EvmChainInfo
impl UnwindSafe for EvmChainInfo
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