anychain_ethereum/network/
testnet.rs

1use super::EthereumNetwork;
2
3#[derive(Copy, Clone, Debug)]
4pub struct Sepolia; // ETH testnet
5
6// ETH testnet
7impl EthereumNetwork for Sepolia {
8    const CHAIN_ID: u32 = 11155111;
9}
10
11#[derive(Copy, Clone, Debug)]
12pub struct Goerli; // ETH testnet
13
14// ETH testnet
15impl EthereumNetwork for Goerli {
16    const CHAIN_ID: u32 = 5;
17}
18
19#[derive(Copy, Clone, Debug)]
20pub struct Kotti; // ETC testnet
21
22// ETC testnet
23impl EthereumNetwork for Kotti {
24    const CHAIN_ID: u32 = 6;
25}
26
27#[derive(Copy, Clone, Debug)]
28pub struct Mumbai; // Polygon testnet
29
30// Polygon testnet
31impl EthereumNetwork for Mumbai {
32    const CHAIN_ID: u32 = 80001;
33}
34
35#[derive(Copy, Clone, Debug)]
36pub struct Amoy; // Polygon testnet
37
38// Polygon testnet
39impl EthereumNetwork for Amoy {
40    const CHAIN_ID: u32 = 80002;
41}
42
43#[derive(Copy, Clone, Debug)]
44pub struct ArbitrumGoerli; // Arbitrum testnet
45
46// Arbitrum testnet
47impl EthereumNetwork for ArbitrumGoerli {
48    const CHAIN_ID: u32 = 421613;
49}
50
51#[derive(Copy, Clone, Debug)]
52pub struct AvalancheTestnet; // Avalanche testnet
53
54// Avalanche testnet
55impl EthereumNetwork for AvalancheTestnet {
56    const CHAIN_ID: u32 = 43113;
57}
58
59#[derive(Copy, Clone, Debug)]
60pub struct BaseGoerli; // Base testnet
61
62// Base testnet
63impl EthereumNetwork for BaseGoerli {
64    const CHAIN_ID: u32 = 84531;
65}
66
67#[derive(Copy, Clone, Debug)]
68pub struct BinanceSmartChainTestnet; // BinanceSmartChain testnet
69
70// BinanceSmartChain testnet
71impl EthereumNetwork for BinanceSmartChainTestnet {
72    const CHAIN_ID: u32 = 97;
73}
74
75#[derive(Copy, Clone, Debug)]
76pub struct HuobiEcoTestnet; // HuobiEco testnet
77
78// HuobiEco testnet
79impl EthereumNetwork for HuobiEcoTestnet {
80    const CHAIN_ID: u32 = 256;
81}
82
83#[derive(Copy, Clone, Debug)]
84pub struct OkexTestnet; // Okex testnet
85
86// Okex testnet
87impl EthereumNetwork for OkexTestnet {
88    const CHAIN_ID: u32 = 65;
89}
90
91#[derive(Copy, Clone, Debug)]
92pub struct OpBnbTestnet; // OpBnb testnet
93
94// OpBnb testnet
95impl EthereumNetwork for OpBnbTestnet {
96    const CHAIN_ID: u32 = 5611;
97}
98
99#[derive(Copy, Clone, Debug)]
100pub struct OptimismGoerli; // Optimism testnet
101
102// Optimism testnet
103impl EthereumNetwork for OptimismGoerli {
104    const CHAIN_ID: u32 = 420;
105}
106
107#[derive(Copy, Clone, Debug)]
108pub struct LineaSepolia; // Linea testnet
109
110// Linea testnet
111impl EthereumNetwork for LineaSepolia {
112    const CHAIN_ID: u32 = 59141;
113}
114
115#[derive(Copy, Clone, Debug)]
116pub struct XlayerTestnet; // Xlayer testnet
117
118// Xlayer testnet
119impl EthereumNetwork for XlayerTestnet {
120    const CHAIN_ID: u32 = 195;
121}
122
123#[derive(Copy, Clone, Debug)]
124pub struct SeiTestnet; // Sei testnet
125
126// Sei testnet
127impl EthereumNetwork for SeiTestnet {
128    const CHAIN_ID: u32 = 1328;
129}
130
131#[derive(Copy, Clone, Debug)]
132pub struct CroTestnet; // Cro testnet
133
134// Cro testnet
135impl EthereumNetwork for CroTestnet {
136    const CHAIN_ID: u32 = 338;
137}
138
139#[derive(Copy, Clone, Debug)]
140pub struct MovaTestnet; // Mova testnet
141
142// Mova testnet
143impl EthereumNetwork for MovaTestnet {
144    const CHAIN_ID: u32 = 10323;
145}
146
147#[derive(Copy, Clone, Debug)]
148pub struct InkTestnet; // Ink testnet
149
150// Ink testnet
151impl EthereumNetwork for InkTestnet {
152    const CHAIN_ID: u32 = 763373;
153}
154
155#[derive(Copy, Clone, Debug)]
156pub struct MorphTestnet; // Morph testnet
157
158// Morph testnet
159impl EthereumNetwork for MorphTestnet {
160    const CHAIN_ID: u32 = 2710;
161}