Type mapping
Contracts, the catalog and the properties' forms are JSON; scripts are Kalem. The types map like this (ABI 1):
| JSON (contract, catalog, schema) | Kalem |
|---|---|
boolean | bool |
number with integer: true | int; bounds must fit 32 bits |
number | float |
string | string |
time | time |
color (property forms only) | color |
- A script's
reads/writesmust name its field with the mapped type; binding checks it. min/maxand defaults are kept; nothing is narrowed silently. A write out of range refuses the transaction.- A
timeis the minute of the day in JSON and in saves (1080), and18:00in the editor. - The mapping is versioned; a new JSON type comes with a new version.