Skip to content

Commit

Permalink
feat(providers): adding Sei network support
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother committed Oct 1, 2024
1 parent ca12088 commit b129889
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions SUPPORTED_CHAINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Chain name with associated `chainId` query param to use.
| zkSync Era Sepolia Testnet <sup>[1](#footnote1)</sup> | eip155:300 |
| zkSync Era | eip155:324 |
| Polygon Zkevm | eip155:1101 |
| Sei Network <sup>[1](#footnote1)</sup> | eip155:1329 |
| Mantle <sup>[1](#footnote1)</sup> | eip155:5000 |
| Mantle Testnet <sup>[1](#footnote1)</sup> | eip155:5003 |
| Klaytn Mainnet | eip155:8217 |
Expand Down
5 changes: 5 additions & 0 deletions src/env/publicnode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,10 @@ fn default_supported_chains() -> HashMap<String, (String, Weight)> {
"eip155:5000".into(),
("mantle-rpc".into(), Weight::new(Priority::High).unwrap()),
),
// Sei mainnet
(
"eip155:1329".into(),
("sei-rpc".into(), Weight::new(Priority::Normal).unwrap()),
),
])
}
9 changes: 9 additions & 0 deletions tests/functional/http/publicnode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,13 @@ async fn publicnode_provider(ctx: &mut ServerContext) {
"0x1388",
)
.await;

// Sei
check_if_rpc_is_responding_correctly_for_supported_chain(
ctx,
&ProviderKind::Publicnode,
"eip155:1329",
"0x531",
)
.await;
}

0 comments on commit b129889

Please sign in to comment.