Skip to content

Commit

Permalink
feat: add viction chain (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jan 8, 2024
1 parent a36d918 commit d0d8224
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
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.

15 changes: 12 additions & 3 deletions src/named.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ pub enum NamedChain {
#[cfg_attr(feature = "serde", serde(alias = "mantle_testnet"))]
MantleTestnet = 5001,

Viction = 88,

Zora = 7777777,
ZoraGoerli = 999,
ZoraSepolia = 999999999,
Expand Down Expand Up @@ -320,6 +322,8 @@ impl NamedChain {
| C::ZoraGoerli
| C::ZoraSepolia => 2_000,

C::Viction => 2_000,

C::Polygon | C::PolygonMumbai => 2_100,

C::Moonbeam | C::Moonriver => 12_500,
Expand Down Expand Up @@ -414,7 +418,8 @@ impl NamedChain {
| C::PolygonZkEvmTestnet
| C::Scroll
| C::ScrollSepolia
| C::Metis => true,
| C::Metis
| C::Viction => true,

// Known EIP-1559 chains.
C::Mainnet
Expand Down Expand Up @@ -580,7 +585,8 @@ impl NamedChain {
| C::Linea
| C::ZkSync
| C::Mantle
| C::Zora => false,
| C::Zora
| C::Viction => false,
}
}

Expand Down Expand Up @@ -796,6 +802,8 @@ impl NamedChain {
("https://explorer.testnet.mantle.xyz/api", "https://explorer.testnet.mantle.xyz")
}

C::Viction => ("https://www.vicscan.xyz/api", "https://www.vicscan.xyz"),

C::Zora => ("https://explorer.zora.energy/api", "https://explorer.zora.energy"),
C::ZoraGoerli => {
("https://testnet.explorer.zora.energy/api", "https://testnet.explorer.zora.energy")
Expand Down Expand Up @@ -894,7 +902,8 @@ impl NamedChain {
| C::ZkSyncTestnet
| C::FilecoinMainnet
| C::LineaTestnet
| C::FilecoinCalibrationTestnet => return None,
| C::FilecoinCalibrationTestnet
| C::Viction => return None,
};

Some(api_key_name)
Expand Down

0 comments on commit d0d8224

Please sign in to comment.