zombienet_provider/shared/
constants.rs

1use std::net::{IpAddr, Ipv4Addr};
2
3/// Namespace prefix
4pub const NAMESPACE_PREFIX: &str = "zombie-";
5/// Directory for node configuration
6pub const NODE_CONFIG_DIR: &str = "/cfg";
7/// Directory for node data dir
8pub const NODE_DATA_DIR: &str = "/data";
9/// Directory for node relay data dir
10pub const NODE_RELAY_DATA_DIR: &str = "/relay-data";
11/// Directory for node scripts
12pub const NODE_SCRIPTS_DIR: &str = "/scripts";
13/// Localhost ip
14pub const LOCALHOST: IpAddr = IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1));
15/// The port substrate listens for p2p connections on
16pub const P2P_PORT: u16 = 30333;
17/// The remote port Prometheus can be accessed with
18pub const PROMETHEUS_PORT: u16 = 9615;
19/// The remote port websocket to access the RPC
20pub const RPC_WS_PORT: u16 = 9944;
21/// The remote port HTTP to access the RPC
22pub const RPC_HTTP_PORT: u16 = 9933;