anychain_ethereum/network/
mainnet.rs

1use super::EthereumNetwork;
2
3#[derive(Copy, Clone, Debug)]
4pub struct Ethereum;
5
6impl EthereumNetwork for Ethereum {
7    const CHAIN_ID: u32 = 1;
8}
9
10#[derive(Copy, Clone, Debug)]
11pub struct EthereumClassic;
12
13impl EthereumNetwork for EthereumClassic {
14    const CHAIN_ID: u32 = 61;
15}
16
17#[derive(Copy, Clone, Debug)]
18pub struct Polygon;
19
20impl EthereumNetwork for Polygon {
21    const CHAIN_ID: u32 = 137;
22}
23
24#[derive(Copy, Clone, Debug)]
25pub struct Arbitrum;
26
27impl EthereumNetwork for Arbitrum {
28    const CHAIN_ID: u32 = 42161;
29}
30
31#[derive(Copy, Clone, Debug)]
32pub struct Avalanche;
33
34impl EthereumNetwork for Avalanche {
35    const CHAIN_ID: u32 = 43114;
36}
37
38#[derive(Copy, Clone, Debug)]
39pub struct Base;
40
41impl EthereumNetwork for Base {
42    const CHAIN_ID: u32 = 8453;
43}
44
45#[derive(Copy, Clone, Debug)]
46pub struct BinanceSmartChain;
47
48impl EthereumNetwork for BinanceSmartChain {
49    const CHAIN_ID: u32 = 56;
50}
51
52#[derive(Copy, Clone, Debug)]
53pub struct HuobiEco;
54
55impl EthereumNetwork for HuobiEco {
56    const CHAIN_ID: u32 = 128;
57}
58
59#[derive(Copy, Clone, Debug)]
60pub struct Okex;
61
62impl EthereumNetwork for Okex {
63    const CHAIN_ID: u32 = 66;
64}
65
66#[derive(Copy, Clone, Debug)]
67pub struct OpBnb;
68
69impl EthereumNetwork for OpBnb {
70    const CHAIN_ID: u32 = 204;
71}
72
73#[derive(Copy, Clone, Debug)]
74pub struct Optimism;
75
76impl EthereumNetwork for Optimism {
77    const CHAIN_ID: u32 = 10;
78}
79
80#[derive(Copy, Clone, Debug)]
81pub struct Linea;
82
83impl EthereumNetwork for Linea {
84    const CHAIN_ID: u32 = 59144;
85}
86
87#[derive(Copy, Clone, Debug)]
88pub struct Xlayer;
89
90impl EthereumNetwork for Xlayer {
91    const CHAIN_ID: u32 = 196;
92}
93
94#[derive(Copy, Clone, Debug)]
95pub struct Sei;
96
97impl EthereumNetwork for Sei {
98    const CHAIN_ID: u32 = 1329;
99}
100
101#[derive(Copy, Clone, Debug)]
102pub struct Cro;
103
104impl EthereumNetwork for Cro {
105    const CHAIN_ID: u32 = 25;
106}
107
108#[derive(Copy, Clone, Debug)]
109pub struct Mova;
110
111impl EthereumNetwork for Mova {
112    const CHAIN_ID: u32 = 61900;
113}
114
115#[derive(Copy, Clone, Debug)]
116pub struct Ink;
117
118impl EthereumNetwork for Ink {
119    const CHAIN_ID: u32 = 57073;
120}
121
122#[derive(Copy, Clone, Debug)]
123pub struct Morph;
124
125impl EthereumNetwork for Morph {
126    const CHAIN_ID: u32 = 2818;
127}