wagyu_ethereum/network/mod.rs
1use wagyu_model::{ChildIndex, Network};
2
3pub mod goerli;
4pub use self::goerli::*;
5
6pub mod kovan;
7pub use self::kovan::*;
8
9pub mod mainnet;
10pub use self::mainnet::*;
11
12pub mod rinkeby;
13pub use self::rinkeby::*;
14
15pub mod ropsten;
16pub use self::ropsten::*;
17
18/// The interface for an Ethereum network.
19pub trait EthereumNetwork: Network {
20 const CHAIN_ID: u32;
21 const NETWORK_ID: u32;
22 const HD_PURPOSE: ChildIndex = ChildIndex::Hardened(44);
23 const HD_COIN_TYPE: ChildIndex;
24}