anychain_ethereum/network/
testnet.rs1use super::EthereumNetwork;
2
3#[derive(Copy, Clone, Debug)]
4pub struct Sepolia; #[derive(Copy, Clone, Debug)]
7pub struct Goerli; #[derive(Copy, Clone, Debug)]
10pub struct Kotti; #[derive(Copy, Clone, Debug)]
13pub struct Mumbai; #[derive(Copy, Clone, Debug)]
16pub struct Amoy; #[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
48impl EthereumNetwork for Sepolia {
50 const CHAIN_ID: u32 = 11155111;
51 const NETWORK_ID: u32 = 11155111;
52}
53
54impl EthereumNetwork for Goerli {
56 const CHAIN_ID: u32 = 5;
57 const NETWORK_ID: u32 = 5;
58}
59
60impl EthereumNetwork for Kotti {
62 const CHAIN_ID: u32 = 6;
63 const NETWORK_ID: u32 = 6;
64}
65
66impl EthereumNetwork for Mumbai {
68 const CHAIN_ID: u32 = 80001;
69 const NETWORK_ID: u32 = 80001;
70}
71
72impl EthereumNetwork for Amoy {
74 const CHAIN_ID: u32 = 80002;
75 const NETWORK_ID: u32 = 80002;
76}
77
78impl EthereumNetwork for ArbitrumGoerli {
79 const CHAIN_ID: u32 = 421613;
80 const NETWORK_ID: u32 = 421613;
81}
82
83impl EthereumNetwork for AvalancheTestnet {
84 const CHAIN_ID: u32 = 43113;
85 const NETWORK_ID: u32 = 43113;
86}
87
88impl EthereumNetwork for BaseGoerli {
89 const CHAIN_ID: u32 = 84531;
90 const NETWORK_ID: u32 = 84531;
91}
92
93impl EthereumNetwork for BinanceSmartChainTestnet {
94 const CHAIN_ID: u32 = 97;
95 const NETWORK_ID: u32 = 97;
96}
97
98impl EthereumNetwork for HuobiEcoTestnet {
99 const CHAIN_ID: u32 = 256;
100 const NETWORK_ID: u32 = 256;
101}
102
103impl EthereumNetwork for OkexTestnet {
104 const CHAIN_ID: u32 = 65;
105 const NETWORK_ID: u32 = 65;
106}
107
108impl EthereumNetwork for OpBnbTestnet {
109 const CHAIN_ID: u32 = 5611;
110 const NETWORK_ID: u32 = 5611;
111}
112
113impl EthereumNetwork for OptimismGoerli {
114 const CHAIN_ID: u32 = 420;
115 const NETWORK_ID: u32 = 420;
116}
117
118impl EthereumNetwork for LineaSepolia {
119 const CHAIN_ID: u32 = 59141;
120 const NETWORK_ID: u32 = 59141;
121}
122
123impl EthereumNetwork for XlayerTestnet {
124 const CHAIN_ID: u32 = 195;
125 const NETWORK_ID: u32 = 195;
126}