anychain_ethereum/network/
testnet.rs

1use super::EthereumNetwork;
2
3#[derive(Copy, Clone, Debug)]
4pub struct Sepolia; // ETH testnet
5
6#[derive(Copy, Clone, Debug)]
7pub struct Goerli; // ETH testnet
8
9#[derive(Copy, Clone, Debug)]
10pub struct Kotti; // ETC testnet
11
12#[derive(Copy, Clone, Debug)]
13pub struct Mumbai; // Polygon testnet
14
15#[derive(Copy, Clone, Debug)]
16pub struct Amoy; // Polygon testnet
17
18#[derive(Copy, Clone, Debug)]
19pub struct ArbitrumGoerli;
20
21#[derive(Copy, Clone, Debug)]
22pub struct AvalancheTestnet;
23
24#[derive(Copy, Clone, Debug)]
25pub struct BaseGoerli;
26
27#[derive(Copy, Clone, Debug)]
28pub struct BinanceSmartChainTestnet;
29
30#[derive(Copy, Clone, Debug)]
31pub struct HuobiEcoTestnet;
32
33#[derive(Copy, Clone, Debug)]
34pub struct OkexTestnet;
35
36#[derive(Copy, Clone, Debug)]
37pub struct OpBnbTestnet;
38
39#[derive(Copy, Clone, Debug)]
40pub struct OptimismGoerli;
41
42#[derive(Copy, Clone, Debug)]
43pub struct LineaSepolia;
44
45#[derive(Copy, Clone, Debug)]
46pub struct XlayerTestnet;
47
48#[derive(Copy, Clone, Debug)]
49pub struct SeiTestnet;
50
51#[derive(Copy, Clone, Debug)]
52pub struct CroTestnet;
53
54// ETH testnet
55impl EthereumNetwork for Sepolia {
56    const CHAIN_ID: u32 = 11155111;
57}
58
59// ETH testnet
60impl EthereumNetwork for Goerli {
61    const CHAIN_ID: u32 = 5;
62}
63
64// ETC testnet
65impl EthereumNetwork for Kotti {
66    const CHAIN_ID: u32 = 6;
67}
68
69// Polygon testnet
70impl EthereumNetwork for Mumbai {
71    const CHAIN_ID: u32 = 80001;
72}
73
74// Polygon testnet
75impl EthereumNetwork for Amoy {
76    const CHAIN_ID: u32 = 80002;
77}
78
79impl EthereumNetwork for ArbitrumGoerli {
80    const CHAIN_ID: u32 = 421613;
81}
82
83impl EthereumNetwork for AvalancheTestnet {
84    const CHAIN_ID: u32 = 43113;
85}
86
87impl EthereumNetwork for BaseGoerli {
88    const CHAIN_ID: u32 = 84531;
89}
90
91impl EthereumNetwork for BinanceSmartChainTestnet {
92    const CHAIN_ID: u32 = 97;
93}
94
95impl EthereumNetwork for HuobiEcoTestnet {
96    const CHAIN_ID: u32 = 256;
97}
98
99impl EthereumNetwork for OkexTestnet {
100    const CHAIN_ID: u32 = 65;
101}
102
103impl EthereumNetwork for OpBnbTestnet {
104    const CHAIN_ID: u32 = 5611;
105}
106
107impl EthereumNetwork for OptimismGoerli {
108    const CHAIN_ID: u32 = 420;
109}
110
111impl EthereumNetwork for LineaSepolia {
112    const CHAIN_ID: u32 = 59141;
113}
114
115impl EthereumNetwork for XlayerTestnet {
116    const CHAIN_ID: u32 = 195;
117}
118
119impl EthereumNetwork for SeiTestnet {
120    const CHAIN_ID: u32 = 1328;
121}
122
123impl EthereumNetwork for CroTestnet {
124    const CHAIN_ID: u32 = 338;
125}