Types, primitives and literals
Ursus types are listed in the following table:
Built-in types:
type | Description | Literals |
---|---|---|
int | signed int | {0}, {-1}, {1}, ... |
int8 | signed int for 1 byte | {0}, {-1}, {1}, ... |
int16 | signed int for 2 bytes | {0}, {-1}, {1}, ... |
int32 | signed int for 4 bytes | {0}, {-1}, {1}, ... |
int64 | signed int for 8 bytes | {0}, {-1}, {1}, ... |
int128 | signed int for 16 bytes | {0}, {-1}, {1}, ... |
int256 | signed int for 32 bytes | {0}, {-1}, {1}, ... |
uint | unsigned int | {0}, {1}, ... |
uuint8 | unsigned int for 1 byte | {0}, {1}, ... |
uint16 | unsigned int for 2 bytes | {0}, {1}, ... |
uint32 | unsigned int for 4 bytes | {0}, {1}, ... |
uint64 | unsigned int for 8 bytes | {0}, {1}, ... |
uint128 | unsigned int for 16 bytes | {0}, {1}, ... |
uint256 | unsigned int for 32 bytes | {0}, {1}, ... |
listArray a or a[] | array of a type element | array ( x ; y ; ... ; z) |
listVector a | vector of a type element | TODO |
string | basic string type | {"something"} |
boolean | bool type | TRUE |
optional a | option type (see there) | some(x) |
bytes | the same as string | {"something"} |
mapping a b | hash-map type | TODO |
queue | queue of uint elements | TODO |
tuple a b or a**b or a*b | type of pair | [ x , y ] or [ x , y , z ] |
TvmCell | for Everscale (see there 1.1.3) | TODO |
TvmSlice | for Everscale (see there 1.1.3) | TODO |
TvmBuilder | for Everscale (see there 1.1.3) | |
address | TODO | [ x , y ] |