- “What’s the analogue of XXX in TL-B?”
- “How to generate a TL-B schema for a Tolk structure?”
- etc.
Stop thinking in TL-B terms
Tolk type system replaces TL-BThere is no need to “provide a TL-B schema for a contract”.
Every Tolk
Every Tolk
struct is already a schema.- which inputs are valid,
- which shape is expected,
- how storage is structured, etc.
In the near future, ABI and TypeScript wrappers will be generated automatically as well.
These features rely entirely on the type system.
Surprisingly, source maps and debugger integration will also rely on the same core.
TL-B is not involved in any of these processes.
intN,uintN,bitsNMaybe(nullable),Either(a two-component union)- multiple constructors (declared structs + prefixes + unions)
- cells and typed cells
~tilde{conditions}- dynamic
## n
- type aliases
- enums
- inline unions (auto-generated prefix trees)
- tensors
- custom
packToBuilderandunpackFromSlice address?as “internal or none” (not “maybe T”)- further language improvements, such as namespaces or modules
block.tlb — but not for contracts APIs or interaction models.
The page Overall serialization describes how each Tolk type relates to TL-B.
Notice the presence of imperative serialization rules there — fundamentally different from declarative TL-B schemas.