Skip to content

Default types

Note

Different data types are recognized by the compiler.

TypeExample
Number123Integer values only, negative values included. The VM Number is a big integer.
Decimal0.123Declared as decimal<N>, where N is the number of decimal places; stored as a Number in fixed point.
BoolfalseEither true or false
String“hello”Single line only.
TimestampNo literal support for this type, use either Time.now or Time.unix
Byte array0xFAFAFA2423424In hexadecimal format, starting with 0x
Address@P2K6p3VzyRhxqHE2KcNV2B3QjVrv5ekvWPZLevteDoBQTzA or @null
Hash#E3FE7BB73996CF7057913BD916F1B07AC0EAB4916DF3BCBDC221829F5CBEA9AFMust be hexadecimal number with 256 bits
Compiler macro$SOMETHING