Source Expressions
Literals
source number: integer = 6;
source text: string = "Hello, world!";
source wallet: address = 0xcafeface...abcd1234;
source cond: boolean = true;
source numbers: list<integer> = list(1, 2, -3);
source nameToValue: map<string, integer> = map("token_1": 10, "token_2": 4);
source items: tuple<integer, address> = tuple(42, 0x12341234...dadd);
source calldata: bytes = bytes(0x123456);Operations
Arithmetic
Conditions
Logic Combinators
Parenthesized expressions
Source identifiers as expressions
Data sources
Conditional expressions
For expressions
Example
Map expressions
Example
Generics
Example
Last updated