Skip to content

Commit

Permalink
feat(providers): updating Publicnode RPC endpoints (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother authored Dec 11, 2024
1 parent ca5eb01 commit 9f936db
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
28 changes: 21 additions & 7 deletions src/env/publicnode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn default_supported_chains() -> HashMap<String, (String, Weight)> {
// Ethereum mainnet
(
"eip155:1".into(),
("ethereum".into(), Weight::new(Priority::High).unwrap()),
("ethereum-rpc".into(), Weight::new(Priority::High).unwrap()),
),
// Ethereum Sepolia
(
Expand All @@ -59,7 +59,7 @@ fn default_supported_chains() -> HashMap<String, (String, Weight)> {
// Base mainnet
(
"eip155:8453".into(),
("base".into(), Weight::new(Priority::High).unwrap()),
("base-rpc".into(), Weight::new(Priority::High).unwrap()),
),
// Base Sepolia
(
Expand All @@ -72,33 +72,39 @@ fn default_supported_chains() -> HashMap<String, (String, Weight)> {
// Binance Smart Chain mainnet
(
"eip155:56".into(),
("bsc".into(), Weight::new(Priority::High).unwrap()),
("bsc-rpc".into(), Weight::new(Priority::High).unwrap()),
),
// Binance Smart Chain testnet
(
"eip155:97".into(),
("bsc-testnet".into(), Weight::new(Priority::High).unwrap()),
(
"bsc-testnet-rpc".into(),
Weight::new(Priority::High).unwrap(),
),
),
// Avalanche c chain
(
"eip155:43114".into(),
(
"avalanche-c-chain".into(),
"avalanche-c-chain-rpc".into(),
Weight::new(Priority::Normal).unwrap(),
),
),
// Avalanche fuji testnet
(
"eip155:43113".into(),
(
"avalanche-fuji-c-chain".into(),
"avalanche-fuji-c-chain-rpc".into(),
Weight::new(Priority::High).unwrap(),
),
),
// Polygon bor mainnet
(
"eip155:137".into(),
("polygon-bor".into(), Weight::new(Priority::Normal).unwrap()),
(
"polygon-bor-rpc".into(),
Weight::new(Priority::Normal).unwrap(),
),
),
// Polygon bor amoy testnet
(
Expand Down Expand Up @@ -152,6 +158,14 @@ fn default_supported_chains() -> HashMap<String, (String, Weight)> {
Weight::new(Priority::Normal).unwrap(),
),
),
// Berachain bArtio testnet
(
"eip155:80084".into(),
(
"berachain-testnet-evm-rpc".into(),
Weight::new(Priority::Normal).unwrap(),
),
),
// Bitcoin mainnet
(
"bip122:000000000019d6689c085ae165831e93".into(),
Expand Down
9 changes: 9 additions & 0 deletions tests/functional/http/publicnode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ async fn publicnode_provider(ctx: &mut ServerContext) {
"0xa4b1",
)
.await;

// Berachain Bartio
check_if_rpc_is_responding_correctly_for_supported_chain(
ctx,
&provider,
"eip155:80084",
"0x138d4",
)
.await;
}

#[test_context(ServerContext)]
Expand Down

0 comments on commit 9f936db

Please sign in to comment.