Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions assets/chains.json

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

16 changes: 11 additions & 5 deletions src/named.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use num_enum::TryFromPrimitiveError;

#[allow(unused_imports)]
use alloc::string::String;

// When adding a new chain:
// 1. add new variant to the NamedChain enum;
// 2. add extra information in the last `impl` block (explorer URLs, block time) when applicable;
Expand Down Expand Up @@ -560,6 +559,8 @@ pub enum NamedChain {
Insectarium = 43522,

TempoTestnet = 42429,

TempoModerato = 42431,
}

// This must be implemented manually so we avoid a conflict with `TryFromPrimitive` where it treats
Expand Down Expand Up @@ -898,7 +899,7 @@ impl NamedChain {

Sonic | SonicTestnet => 1_000,

TelosEvm | TelosEvmTestnet | TempoTestnet => 500,
TelosEvm | TelosEvmTestnet | TempoTestnet | TempoModerato => 500,

UnichainSepolia | Unichain => 1_000,

Expand Down Expand Up @@ -1120,7 +1121,8 @@ impl NamedChain {
| PaseoPassethub
| XdcMainnet
| XdcTestnet
| TempoTestnet => false,
| TempoTestnet
| TempoModerato => false,
}
}

Expand Down Expand Up @@ -1234,6 +1236,7 @@ impl NamedChain {
| Formicarium
| Insectarium
| TempoTestnet
| TempoModerato
| PaseoPassethub
)
}
Expand Down Expand Up @@ -1326,7 +1329,8 @@ impl NamedChain {
| Insectarium
| SkaleBaseSepoliaTestnet
| XdcTestnet
| TempoTestnet => true,
| TempoTestnet
| TempoModerato => true,

// Dev chains.
Dev | AnvilHardhat | Cannon => true,
Expand Down Expand Up @@ -1815,6 +1819,7 @@ impl NamedChain {
"https://base-sepolia-testnet-explorer.skalenodes.com",
),
TempoTestnet => ("https://scout.tempo.xyz/api", "https://scout.tempo.xyz"),
TempoModerato => ("https://scout.tempo.xyz/api", "https://scout.tempo.xyz"),
PaseoPassethub => (
"https://blockscout-passet-hub.parity-testnet.parity.io/api",
"https://blockscout-passet-hub.parity-testnet.parity.io",
Expand Down Expand Up @@ -1968,7 +1973,8 @@ impl NamedChain {
| SkaleBase
| SkaleBaseSepoliaTestnet
| PaseoPassethub
| TempoTestnet => "BLOCKSCOUT_API_KEY",
| TempoTestnet
| TempoModerato => "BLOCKSCOUT_API_KEY",

Boba => "BOBASCAN_API_KEY",

Expand Down