Module constants

Source
Expand description

Configurable yet non-changing constants for the compiler.

Constantsยง

ALLOW_ATTRIBUTE_NAME
The valid attribute strings related to allow.
ALLOW_DEAD_CODE_NAME
ALLOW_DEPRECATED_NAME
CFG_ATTRIBUTE_NAME
The valid attribute strings related to conditional compilation.
CFG_PROGRAM_TYPE_ARG_NAME
CFG_TARGET_ARG_NAME
CONTRACT_CALL_ASSET_ID_PARAMETER_DEFAULT_VALUE
CONTRACT_CALL_ASSET_ID_PARAMETER_NAME
CONTRACT_CALL_COINS_PARAMETER_DEFAULT_VALUE
CONTRACT_CALL_COINS_PARAMETER_NAME
CONTRACT_CALL_GAS_PARAMETER_NAME
CONTRACT_ID
CORE
DEFAULT_ENTRY_POINT_FN_NAME
The default entry point for scripts and predicates.
DEFAULT_FILE_EXTENSION
The default extension of LANGUAGE_NAME files, e.g. main.sw.
DEPRECATED_ATTRIBUTE_NAME
DOC_ATTRIBUTE_NAME
The valid attribute strings related to documentation control.
DOC_COMMENT_ATTRIBUTE_NAME
The valid attribute strings related to documentation comments.
FALLBACK_ATTRIBUTE_NAME
INLINE_ALWAYS_NAME
INLINE_ATTRIBUTE_NAME
The valid attribute strings related to inline.
INLINE_NEVER_NAME
LANGUAGE_NAME
After a large language name change PR, we decided to make this configurable. :)
PAYABLE_ATTRIBUTE_NAME
The valid attribute string used for payable functions.
PRELUDE
STD
STORAGE_PURITY_ATTRIBUTE_NAME
The valid attribute strings related to storage and purity.
STORAGE_PURITY_READ_NAME
STORAGE_PURITY_WRITE_NAME
TEST_ATTRIBUTE_NAME
The attribute used for Sway in-language unit tests.
VALID_ATTRIBUTE_NAMES
The list of valid attributes.
VM_WORD_SIZE
The size, in bytes, of a single word in the FuelVM.