Basic Types
storage nat Foo;
entry Test(int Bar){
let string Hello = string "World";
#We must declare the type of all literals
}Boolean
let bool available = bool true;Integers & Natural Numbers
let nat n1 = nat 1;
let nat n2 = nat 2;
let nat n3 = sub(n1, n2); # Fail - must be declared as an int
let int n4 = sub(n1, n2); # OK
let nat n5 = to_int(sub(n1, n2)); # Also OKStrings
Mutez
Timestamp
Address
Public Key
Public Key Hash
Signature
Bytes
Last updated
Was this helpful?