pub struct NetworkConfig {
pub chain_id: u64,
pub usdc_contract: String,
pub name: String,
pub is_testnet: bool,
}Expand description
Network configuration with chain-specific details
Fields§
§chain_id: u64Chain ID for the network
usdc_contract: StringUSDC contract address
name: StringNetwork name
is_testnet: boolWhether this is a testnet
Implementations§
Source§impl NetworkConfig
impl NetworkConfig
Sourcepub fn base_mainnet() -> Self
pub fn base_mainnet() -> Self
Base mainnet configuration
Sourcepub fn base_sepolia() -> Self
pub fn base_sepolia() -> Self
Base Sepolia testnet configuration
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§fn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
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 NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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