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

Commit 9bf2f90

Browse files
authored
feat(chain): add viction (#2710)
1 parent 8421cfd commit 9bf2f90

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ethers-core/src/types/chain.rs

+7
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ pub enum Chain {
177177
#[serde(alias = "mantle_testnet")]
178178
MantleTestnet = 5001,
179179

180+
Viction = 88,
181+
180182
Zora = 7777777,
181183
ZoraGoerli = 999,
182184
ZoraSepolia = 999999999,
@@ -314,6 +316,7 @@ impl Chain {
314316
FilecoinCalibrationTestnet | FilecoinMainnet => 30_000,
315317
Scroll | ScrollSepolia | ScrollAlphaTestnet => 3_000,
316318
Gnosis | Chiado => 5_000,
319+
Viction => 2_000,
317320
// Explicitly exhaustive. See NB above.
318321
Morden | Ropsten | Rinkeby | Goerli | Kovan | Sepolia | Holesky | Moonbase |
319322
MoonbeamDev | OptimismKovan | Poa | Sokol | Rsk | EmeraldTestnet | Boba | Base |
@@ -362,6 +365,7 @@ impl Chain {
362365
PolygonZkEvm |
363366
PolygonZkEvmTestnet |
364367
Metis |
368+
Viction |
365369
Scroll |
366370
ScrollSepolia => true,
367371

@@ -602,6 +606,7 @@ impl Chain {
602606
// new chain
603607
return None
604608
}
609+
Viction => ("https://www.vicscan.xyz/api", "https://www.vicscan.xyz"),
605610
};
606611

607612
Some(urls)
@@ -686,6 +691,7 @@ impl Chain {
686691
ZkSyncTestnet |
687692
FilecoinMainnet |
688693
LineaTestnet |
694+
Viction |
689695
FilecoinCalibrationTestnet => return None,
690696
};
691697

@@ -763,6 +769,7 @@ mod tests {
763769
(ZkSync, &["zksync"]),
764770
(Mantle, &["mantle"]),
765771
(MantleTestnet, &["mantle-testnet"]),
772+
(Viction, &["viction"]),
766773
];
767774

768775
for &(chain, aliases) in ALIASES {

0 commit comments

Comments
 (0)