From 840ba9d06e1fc796c47355febfd9c2735a97df92 Mon Sep 17 00:00:00 2001 From: m-lord-renkse <160488334+m-lord-renkse@users.noreply.github.com> Date: Tue, 5 Nov 2024 09:52:21 +0100 Subject: [PATCH] Base support (#83) Add base chain id support. --- src/domain/eth/chain.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/domain/eth/chain.rs b/src/domain/eth/chain.rs index c4e4a02..d661c17 100644 --- a/src/domain/eth/chain.rs +++ b/src/domain/eth/chain.rs @@ -6,6 +6,7 @@ pub enum ChainId { Mainnet = 1, Goerli = 5, Gnosis = 100, + Base = 8453, ArbitrumOne = 42161, } @@ -22,6 +23,7 @@ impl ChainId { 1 => Ok(Self::Mainnet), 5 => Ok(Self::Goerli), 100 => Ok(Self::Gnosis), + 8453 => Ok(Self::Base), 42161 => Ok(Self::ArbitrumOne), _ => Err(UnsupportedChain), } @@ -33,6 +35,7 @@ impl ChainId { ChainId::Mainnet => "1", ChainId::Goerli => "5", ChainId::Gnosis => "100", + ChainId::Base => "8453", ChainId::ArbitrumOne => "42161", } }