1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
pub const DEFAULT_FILE_EXTENSION: &str = "sw";
pub const LANGUAGE_NAME: &str = "Sway";
pub const VM_WORD_SIZE: u64 = 8;
pub const CONTRACT_CALL_GAS_PARAMETER_NAME: &str = "gas";
pub const CONTRACT_CALL_COINS_PARAMETER_NAME: &str = "coins";
pub const CONTRACT_CALL_COINS_PARAMETER_DEFAULT_VALUE: u64 = 0;
pub const CONTRACT_CALL_ASSET_ID_PARAMETER_NAME: &str = "asset_id";
pub const CONTRACT_CALL_ASSET_ID_PARAMETER_DEFAULT_VALUE: [u8; 32] = [0; 32];
pub const DEFAULT_ENTRY_POINT_FN_NAME: &str = "main";
pub const TUPLE_NAME_PREFIX: &str = "__tuple_";
pub const DESTRUCTURE_PREFIX: &str = "__destructure_";
pub const MATCH_RETURN_VAR_NAME_PREFIX: &str = "__match_return_var_name_";
pub const STORAGE_PURITY_ATTRIBUTE_NAME: &str = "storage";
pub const STORAGE_PURITY_READ_NAME: &str = "read";
pub const STORAGE_PURITY_WRITE_NAME: &str = "write";
pub const DOC_ATTRIBUTE_NAME: &str = "doc";
pub const VALID_ATTRIBUTE_NAMES: [&str; 2] = [STORAGE_PURITY_ATTRIBUTE_NAME, DOC_ATTRIBUTE_NAME];