pub struct WalletConfig {
pub rewards_address: Option<RewardsAddress>,
pub network: Network,
}Expand description
EVM wallet configuration for a node.
Fields§
§rewards_address: Option<RewardsAddress>The rewards address where payments are received.
network: NetworkThe EVM network (Arbitrum One or Sepolia).
Implementations§
Source§impl WalletConfig
impl WalletConfig
Sourcepub fn has_rewards_address(&self) -> bool
pub fn has_rewards_address(&self) -> bool
Check if the wallet has a rewards address configured.
Sourcepub fn get_rewards_address(&self) -> Option<&RewardsAddress>
pub fn get_rewards_address(&self) -> Option<&RewardsAddress>
Get the rewards address if configured.
Sourcepub fn is_mainnet(&self) -> bool
pub fn is_mainnet(&self) -> bool
Check if this wallet is configured for mainnet.
Trait Implementations§
Source§impl Clone for WalletConfig
impl Clone for WalletConfig
Source§fn clone(&self) -> WalletConfig
fn clone(&self) -> WalletConfig
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 WalletConfig
impl RefUnwindSafe for WalletConfig
impl Send for WalletConfig
impl Sync for WalletConfig
impl Unpin for WalletConfig
impl UnsafeUnpin for WalletConfig
impl UnwindSafe for WalletConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more