sway_utils/
constants.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pub const MANIFEST_FILE_NAME: &str = "Forc.toml";
pub const LOCK_FILE_NAME: &str = "Forc.lock";
pub const TEST_MANIFEST_FILE_NAME: &str = "Cargo.toml";
pub const TEST_DIRECTORY: &str = "tests";
pub const SWAY_EXTENSION: &str = "sw";
pub const USER_FORC_DIRECTORY: &str = ".forc";
pub const SRC_DIR: &str = "src";
pub const DEFAULT_NODE_URL: &str = "http://127.0.0.1:4000";
pub const LANGUAGE_NAME: &str = "Sway";
pub const STORAGE_DOMAIN: [u8; 1] = [0u8];
pub const STORAGE_TOP_LEVEL_NAMESPACE: &str = "storage";
pub const STORAGE_NAMESPACE_SEPARATOR: &str = "::";
pub const STORAGE_FIELD_SEPARATOR: &str = ".";
pub const STRUCT_FIELD_SEPARATOR: &str = ".";
pub const LIB_ENTRY: &str = "lib.sw";
pub const MAIN_ENTRY: &str = "main.sw";
pub const FORC_INIT_MANIFEST_AUTHOR: &str = "FORC_INIT_MANIFEST_AUTHOR";
// TODO: Once Fuel has its own IPFS node, default should be that node for performance reasons.
pub const DEFAULT_IPFS_GATEWAY_URL: &str = "https://ipfs.io";