Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
feat(chain): add viction (#2710)
Browse files Browse the repository at this point in the history
  • Loading branch information
phnaharris authored Jan 8, 2024
1 parent 8421cfd commit 9bf2f90
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ethers-core/src/types/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ pub enum Chain {
#[serde(alias = "mantle_testnet")]
MantleTestnet = 5001,

Viction = 88,

Zora = 7777777,
ZoraGoerli = 999,
ZoraSepolia = 999999999,
Expand Down Expand Up @@ -314,6 +316,7 @@ impl Chain {
FilecoinCalibrationTestnet | FilecoinMainnet => 30_000,
Scroll | ScrollSepolia | ScrollAlphaTestnet => 3_000,
Gnosis | Chiado => 5_000,
Viction => 2_000,
// Explicitly exhaustive. See NB above.
Morden | Ropsten | Rinkeby | Goerli | Kovan | Sepolia | Holesky | Moonbase |
MoonbeamDev | OptimismKovan | Poa | Sokol | Rsk | EmeraldTestnet | Boba | Base |
Expand Down Expand Up @@ -362,6 +365,7 @@ impl Chain {
PolygonZkEvm |
PolygonZkEvmTestnet |
Metis |
Viction |
Scroll |
ScrollSepolia => true,

Expand Down Expand Up @@ -602,6 +606,7 @@ impl Chain {
// new chain
return None
}
Viction => ("https://www.vicscan.xyz/api", "https://www.vicscan.xyz"),
};

Some(urls)
Expand Down Expand Up @@ -686,6 +691,7 @@ impl Chain {
ZkSyncTestnet |
FilecoinMainnet |
LineaTestnet |
Viction |
FilecoinCalibrationTestnet => return None,
};

Expand Down Expand Up @@ -763,6 +769,7 @@ mod tests {
(ZkSync, &["zksync"]),
(Mantle, &["mantle"]),
(MantleTestnet, &["mantle-testnet"]),
(Viction, &["viction"]),
];

for &(chain, aliases) in ALIASES {
Expand Down

0 comments on commit 9bf2f90

Please sign in to comment.