-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(providers): removing Solana from DRPC (#924)
* fix(providers): removing Solana from DRPC * feat: adding EVM chains
- Loading branch information
1 parent
d7d1b1a
commit 61220b8
Showing
2 changed files
with
108 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,63 @@ | ||
use { | ||
super::check_if_rpc_is_responding_correctly_for_solana, crate::context::ServerContext, | ||
super::check_if_rpc_is_responding_correctly_for_supported_chain, crate::context::ServerContext, | ||
rpc_proxy::providers::ProviderKind, test_context::test_context, | ||
}; | ||
|
||
#[test_context(ServerContext)] | ||
#[tokio::test] | ||
#[ignore] | ||
async fn drpc_provider_solana(ctx: &mut ServerContext) { | ||
async fn drpc_provider_evm(ctx: &mut ServerContext) { | ||
let provider = ProviderKind::Drpc; | ||
|
||
// Solana mainnet | ||
check_if_rpc_is_responding_correctly_for_solana( | ||
// Ethereum Mainnet | ||
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, | ||
&provider, | ||
"eip155:11155111", | ||
"0xaa36a7", | ||
) | ||
.await; | ||
|
||
// Ethereum Holesky | ||
check_if_rpc_is_responding_correctly_for_supported_chain( | ||
ctx, | ||
"5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", | ||
&provider, | ||
"eip155:17000", | ||
"0x4268", | ||
) | ||
.await; | ||
|
||
// Arbitrum One | ||
check_if_rpc_is_responding_correctly_for_supported_chain( | ||
ctx, | ||
&provider, | ||
"eip155:42161", | ||
"0xa4b1", | ||
) | ||
.await; | ||
|
||
// Base | ||
check_if_rpc_is_responding_correctly_for_supported_chain( | ||
ctx, | ||
&provider, | ||
"eip155:8453", | ||
"0x2105", | ||
) | ||
.await; | ||
|
||
// BSC | ||
check_if_rpc_is_responding_correctly_for_supported_chain(ctx, &provider, "eip155:56", "0x38") | ||
.await; | ||
|
||
// Polygon Mainnet | ||
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, &provider, "eip155:10", "0xa") | ||
.await; | ||
} |