Skip to content

Commit

Permalink
feat: flare mainnet/testnet rpc support (#595)
Browse files Browse the repository at this point in the history
* feat: flare mainnet/testnet rpc support

* Format file
  • Loading branch information
Uttam-Singhh committed Sep 3, 2024
1 parent 4695fac commit 1ce7535
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/StdChains.sol
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ abstract contract StdChains {
setChainWithDefaultRpcUrl(
"berachain_bartio_testnet", ChainData("Berachain bArtio Testnet", 80084, "https://bartio.rpc.berachain.com")
);
setChainWithDefaultRpcUrl("flare", ChainData("Flare", 14, "https://flare-api.flare.network/ext/C/rpc"));
setChainWithDefaultRpcUrl(
"flare_coston2", ChainData("Flare Coston2", 114, "https://coston2-api.flare.network/ext/C/rpc")
);
}

// set chain info, with priority to chainAlias' rpc url in foundry.toml
Expand Down
2 changes: 2 additions & 0 deletions test/StdChains.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ contract StdChainsTest is Test {
// _testRpc("fraxtal");
// _testRpc("fraxtal_testnet");
// _testRpc("berachain_bartio_testnet");
// _testRpc("flare");
// _testRpc("flare_coston2");
// }

function test_ChainNoDefault() public {
Expand Down

0 comments on commit 1ce7535

Please sign in to comment.