diff --git a/src/env/infura.rs b/src/env/infura.rs index 67d5e002..8dd4460b 100644 --- a/src/env/infura.rs +++ b/src/env/infura.rs @@ -104,6 +104,14 @@ fn default_supported_chains() -> HashMap { Weight::new(Priority::Normal).unwrap(), ), ), + // Mantle + ( + "eip155:5000".into(), + ( + "mantle-mainnet".into(), + Weight::new(Priority::Normal).unwrap(), + ), + ), ]) } diff --git a/src/env/publicnode.rs b/src/env/publicnode.rs index 6e40b173..e01671c6 100644 --- a/src/env/publicnode.rs +++ b/src/env/publicnode.rs @@ -115,6 +115,11 @@ fn default_supported_chains() -> HashMap { Weight::new(Priority::Normal).unwrap(), ), ), + // Gnosis Chain mainnet + ( + "eip155:100".into(), + ("gnosis-rpc".into(), Weight::new(Priority::Normal).unwrap()), + ), // Bitcoin mainnet ( "bip122:000000000019d6689c085ae165831e93".into(), diff --git a/tests/functional/http/infura.rs b/tests/functional/http/infura.rs index d8ff7fb8..ecbcb1ad 100644 --- a/tests/functional/http/infura.rs +++ b/tests/functional/http/infura.rs @@ -7,46 +7,32 @@ use { #[tokio::test] #[ignore] async fn infura_provider(ctx: &mut ServerContext) { + let provider = ProviderKind::Infura; // Ethereum mainnet - check_if_rpc_is_responding_correctly_for_supported_chain( - ctx, - &ProviderKind::Infura, - "eip155:1", - "0x1", - ) - .await; + check_if_rpc_is_responding_correctly_for_supported_chain(ctx, &provider, "eip155:1", "0x1") + .await; // Ethereum Sepolia check_if_rpc_is_responding_correctly_for_supported_chain( ctx, - &ProviderKind::Infura, + &provider, "eip155:11155111", "0xaa36a7", ) .await; // Polgyon mainnet - check_if_rpc_is_responding_correctly_for_supported_chain( - ctx, - &ProviderKind::Infura, - "eip155:137", - "0x89", - ) - .await; + check_if_rpc_is_responding_correctly_for_supported_chain(ctx, &provider, "eip155:137", "0x89") + .await; // Optimism mainnet - check_if_rpc_is_responding_correctly_for_supported_chain( - ctx, - &ProviderKind::Infura, - "eip155:10", - "0xa", - ) - .await; + check_if_rpc_is_responding_correctly_for_supported_chain(ctx, &provider, "eip155:10", "0xa") + .await; // Optimism Sepolia check_if_rpc_is_responding_correctly_for_supported_chain( ctx, - &ProviderKind::Infura, + &provider, "eip155:11155420", "0xaa37dc", ) @@ -55,7 +41,7 @@ async fn infura_provider(ctx: &mut ServerContext) { // Arbitrum mainnet check_if_rpc_is_responding_correctly_for_supported_chain( ctx, - &ProviderKind::Infura, + &provider, "eip155:42161", "0xa4b1", ) @@ -64,7 +50,7 @@ async fn infura_provider(ctx: &mut ServerContext) { // Arbitrum Sepolia check_if_rpc_is_responding_correctly_for_supported_chain( ctx, - &ProviderKind::Infura, + &provider, "eip155:421614", "0x66eee", ) @@ -73,7 +59,7 @@ async fn infura_provider(ctx: &mut ServerContext) { // Celo check_if_rpc_is_responding_correctly_for_supported_chain( ctx, - &ProviderKind::Infura, + &provider, "eip155:42220", "0xa4ec", ) @@ -82,9 +68,18 @@ async fn infura_provider(ctx: &mut ServerContext) { // Linea Mainnet check_if_rpc_is_responding_correctly_for_supported_chain( ctx, - &ProviderKind::Infura, + &provider, "eip155:59144", "0xe708", ) .await; + + // Mantle Mainnet + check_if_rpc_is_responding_correctly_for_supported_chain( + ctx, + &provider, + "eip155:5000", + "0x1388", + ) + .await; } diff --git a/tests/functional/http/publicnode.rs b/tests/functional/http/publicnode.rs index 71a57a0e..49838bbb 100644 --- a/tests/functional/http/publicnode.rs +++ b/tests/functional/http/publicnode.rs @@ -110,6 +110,10 @@ async fn publicnode_provider(ctx: &mut ServerContext) { "0x8274f", ) .await; + + // Gnosis + check_if_rpc_is_responding_correctly_for_supported_chain(ctx, &provider, "eip155:100", "0x64") + .await; } #[test_context(ServerContext)]