Skip to content

Commit

Permalink
fix: update explorer API endpoint for Celo / CeloAlfajores to use…
Browse files Browse the repository at this point in the history
… Etherscan (#109)

- Update Celo / CeloAlfajores with correct Etherscan URL
- Correctly identify `Celo Baklava` as using Blockscout
  • Loading branch information
zerosnacks authored Nov 1, 2024
1 parent 43bcbaa commit fec9bbd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
10 changes: 5 additions & 5 deletions assets/chains.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions src/named.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1183,9 +1183,9 @@ impl NamedChain {
Evmos => ("https://evm.evmos.org/api", "https://evm.evmos.org"),
EvmosTestnet => ("https://evm.evmos.dev/api", "https://evm.evmos.dev"),

Celo => ("https://explorer.celo.org/mainnet/api", "https://explorer.celo.org/mainnet"),
Celo => ("https://api.celoscan.io/api", "https://celoscan.io"),
CeloAlfajores => {
("https://explorer.celo.org/alfajores/api", "https://explorer.celo.org/alfajores")
("https://api-alfajores.celoscan.io/api", "https://alfajores.celoscan.io")
}
CeloBaklava => {
("https://explorer.celo.org/baklava/api", "https://explorer.celo.org/baklava")
Expand Down Expand Up @@ -1391,7 +1391,6 @@ impl NamedChain {
| AuroraTestnet
| Celo
| CeloAlfajores
| CeloBaklava
| Base
| Linea
| LineaSepolia
Expand Down Expand Up @@ -1424,11 +1423,13 @@ impl NamedChain {

Moonbeam | Moonbase | MoonbeamDev | Moonriver => "MOONSCAN_API_KEY",

Acala | AcalaMandalaTestnet | AcalaTestnet | Canto | CantoTestnet | Etherlink
| EtherlinkTestnet | Flare | FlareCoston2 | KakarotSepolia | Karura | KaruraTestnet
| Mode | ModeSepolia | Pgn | PgnSepolia | Shimmer | Zora | ZoraGoerli | ZoraSepolia
| Darwinia | Crab | Koi | Immutable | ImmutableTestnet | SoneiumMinatoTestnet
| World | WorldSepolia | Curtis | InkSepolia => "BLOCKSCOUT_API_KEY",
Acala | AcalaMandalaTestnet | AcalaTestnet | Canto | CantoTestnet | CeloBaklava
| Etherlink | EtherlinkTestnet | Flare | FlareCoston2 | KakarotSepolia | Karura
| KaruraTestnet | Mode | ModeSepolia | Pgn | PgnSepolia | Shimmer | Zora
| ZoraGoerli | ZoraSepolia | Darwinia | Crab | Koi | Immutable | ImmutableTestnet
| SoneiumMinatoTestnet | World | WorldSepolia | Curtis | InkSepolia => {
"BLOCKSCOUT_API_KEY"
}

Boba => "BOBASCAN_API_KEY",

Expand Down

0 comments on commit fec9bbd

Please sign in to comment.