anychain_ethereum/network/
mainnet.rs

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