pub struct ChainConfig {
pub chain_id: u64,
pub rpc_url: String,
pub mining_contract: String,
pub token_symbol: String,
pub token_decimals: u8,
pub block_time_ms: u64,
}Expand description
EVM chain configuration
Fields§
§chain_id: u64§rpc_url: String§mining_contract: String§token_symbol: String§token_decimals: u8§block_time_ms: u64Implementations§
Source§impl ChainConfig
impl ChainConfig
pub fn from_destination(dest: &TeleportDestination) -> Self
Source§impl ChainConfig
impl ChainConfig
pub fn hanzo_mainnet() -> Self
pub fn hanzo_testnet() -> Self
pub fn zoo_mainnet() -> Self
pub fn zoo_testnet() -> Self
pub fn lux_mainnet() -> Self
pub fn lux_testnet() -> Self
pub fn from_network(network: &NetworkType) -> Self
Trait Implementations§
Source§impl Clone for ChainConfig
impl Clone for ChainConfig
Source§fn clone(&self) -> ChainConfig
fn clone(&self) -> ChainConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChainConfig
impl Debug for ChainConfig
Source§impl<'de> Deserialize<'de> for ChainConfig
impl<'de> Deserialize<'de> for ChainConfig
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
Auto Trait Implementations§
impl Freeze for ChainConfig
impl RefUnwindSafe for ChainConfig
impl Send for ChainConfig
impl Sync for ChainConfig
impl Unpin for ChainConfig
impl UnsafeUnpin for ChainConfig
impl UnwindSafe for ChainConfig
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