Skip to content

Commit

Permalink
Added Soneium chain, updated Minato explorer (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maar-io authored Jan 16, 2025
1 parent 802918d commit cc06d27
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
16 changes: 14 additions & 2 deletions assets/chains.json

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

21 changes: 16 additions & 5 deletions src/named.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,10 @@ pub enum NamedChain {
#[cfg_attr(feature = "serde", serde(alias = "immutable-testnet"))]
ImmutableTestnet = 13473,

#[strum(to_string = "soneium")]
#[cfg_attr(feature = "serde", serde(alias = "soneium"))]
Soneium = 1868,

#[strum(to_string = "soneium-minato-testnet")]
#[cfg_attr(feature = "serde", serde(alias = "soneium-minato-testnet"))]
SoneiumMinatoTestnet = 1946,
Expand Down Expand Up @@ -575,6 +579,7 @@ impl NamedChain {
| BlastSepolia
| OpBNBMainnet
| OpBNBTestnet
| Soneium
| SoneiumMinatoTestnet
| Odyssey
| World
Expand Down Expand Up @@ -632,7 +637,7 @@ impl NamedChain {
Optimism | OptimismGoerli | OptimismSepolia | Base | BaseGoerli | BaseSepolia
| Blast | BlastSepolia | Fraxtal | FraxtalTestnet | Zora | ZoraGoerli | ZoraSepolia
| Mantle | MantleSepolia | Mode | ModeSepolia | Pgn | PgnSepolia
| HappychainTestnet | SoneiumMinatoTestnet | Bob | BobSepolia => 2_000,
| HappychainTestnet | Soneium | SoneiumMinatoTestnet | Bob | BobSepolia => 2_000,

Ink | InkSepolia | Odyssey => 1_000,

Expand Down Expand Up @@ -838,6 +843,7 @@ impl NamedChain {
| Koi
| Immutable
| ImmutableTestnet
| Soneium
| SoneiumMinatoTestnet
| World
| WorldSepolia
Expand Down Expand Up @@ -929,6 +935,7 @@ impl NamedChain {
| Koi
| Immutable
| ImmutableTestnet
| Soneium
| SoneiumMinatoTestnet
| World
| WorldSepolia
Expand Down Expand Up @@ -1011,6 +1018,7 @@ impl NamedChain {
| XaiSepolia
| Koi
| ImmutableTestnet
| Soneium
| SoneiumMinatoTestnet
| WorldSepolia
| UnichainSepolia
Expand Down Expand Up @@ -1422,9 +1430,11 @@ impl NamedChain {
"https://explorer.testnet.immutable.com/api",
"https://explorer.testnet.immutable.com",
),
SoneiumMinatoTestnet => {
("https://explorer-testnet.soneium.org/api", "https://explorer-testnet.soneium.org")
}
Soneium => ("https://soneium.blockscout.com/api", "https://soneium.blockscout.com"),
SoneiumMinatoTestnet => (
"https://soneium-minato.blockscout.com/api",
"https://soneium-minato.blockscout.com",
),
Odyssey => {
("https://odyssey-explorer.ithaca.xyz/api", "https://odyssey-explorer.ithaca.xyz")
}
Expand Down Expand Up @@ -1537,7 +1547,7 @@ impl NamedChain {
| Etherlink | EtherlinkTestnet | Flare | FlareCoston2 | KakarotSepolia | Karura
| KaruraTestnet | Mode | ModeSepolia | Pgn | PgnSepolia | Shimmer | Zora
| ZoraGoerli | ZoraSepolia | Darwinia | Crab | Koi | Immutable | ImmutableTestnet
| SoneiumMinatoTestnet | World | WorldSepolia | Curtis | Ink | InkSepolia => {
| Soneium | SoneiumMinatoTestnet | World | WorldSepolia | Curtis | Ink | InkSepolia => {
"BLOCKSCOUT_API_KEY"
}

Expand Down Expand Up @@ -1773,6 +1783,7 @@ mod tests {
(AutonomysNovaTestnet, &["autonomys-nova-testnet"]),
(Immutable, &["immutable"]),
(ImmutableTestnet, &["immutable-testnet"]),
(Soneium, &["soneium"]),
(SoneiumMinatoTestnet, &["soneium-minato-testnet"]),
(ApeChain, &["apechain"]),
(Curtis, &["apechain-testnet", "curtis"]),
Expand Down

0 comments on commit cc06d27

Please sign in to comment.