Skip to content

Commit

Permalink
feat: add arbitrum chain methods to Chain (#123)
Browse files Browse the repository at this point in the history
Co-authored-by: zerosnacks <[email protected]>
  • Loading branch information
0xdapper and zerosnacks authored Jan 3, 2025
1 parent e1ff21a commit f7226d4
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,36 @@ impl Chain {
Self::from_named(NamedChain::BaseSepolia)
}

/// Returns the arbitrum mainnet chain.
#[inline]
pub const fn arbitrum_mainnet() -> Self {
Self::from_named(NamedChain::Arbitrum)
}

/// Returns the arbitrum nova chain.
#[inline]
pub const fn arbitrum_nova() -> Self {
Self::from_named(NamedChain::ArbitrumNova)
}

/// Returns the arbitrum goerli chain.
#[inline]
pub const fn arbitrum_goerli() -> Self {
Self::from_named(NamedChain::ArbitrumGoerli)
}

/// Returns the arbitrum sepolia chain.
#[inline]
pub const fn arbitrum_sepolia() -> Self {
Self::from_named(NamedChain::ArbitrumSepolia)
}

/// Returns the arbitrum testnet chain.
#[inline]
pub const fn arbitrum_testnet() -> Self {
Self::from_named(NamedChain::ArbitrumTestnet)
}

/// Returns the syndr l3 mainnet chain.
#[inline]
pub const fn syndr() -> Self {
Expand Down

0 comments on commit f7226d4

Please sign in to comment.