Skip to main content

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/// Directory for the helper binaries, on docker
14pub const HELPERS_DIR: &str = "/helpers";
15/// The directories every node and process gets mounted
16pub const NODE_MOUNTED_DIRS: &[&str] = &[
17    NODE_CONFIG_DIR,
18    NODE_DATA_DIR,
19    NODE_RELAY_DATA_DIR,
20    NODE_SCRIPTS_DIR,
21    HELPERS_DIR,
22];
23/// Localhost ip
24pub const LOCALHOST: IpAddr = IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1));
25/// The port substrate listens for p2p connections on
26pub const P2P_PORT: u16 = 30333;
27/// The remote port Prometheus can be accessed with
28pub const PROMETHEUS_PORT: u16 = 9615;
29/// The remote port websocket to access the RPC
30pub const RPC_WS_PORT: u16 = 9944;
31/// The remote port HTTP to access the RPC
32pub const RPC_HTTP_PORT: u16 = 9933;