TGViewer
TON Builders TON Builders @tonbuild · 8.18K subscribers
Post #102 13.5K
🚀 Tolk vs TL‑B: Stop Translating Schemas, Start Modeling Types

If you are coming to Tolk from FunC, you might look for TL‑B equivalents or try generating TL‑B schemas from Tolk structs. That approach can make sense in FunC, but it is not required in Tolk.

▪️ TL‑B vs Tolk: TL‑B describes inputs, storage, and structure for low-level FunC contracts. Tolk defines these directly through structs that specify layout, typing, optionality, and serialization. The type system becomes the main source of truth.

▪️ Tooling and features: ABI generation, TypeScript wrappers, source maps, and debugger integration work directly with Tolk types. Tolk also supports type aliases, enums, inline unions, tensors, and custom serialization — features TL‑B does not cover.

▪️ Where TL‑B still fits: TL‑B remains useful for TON protocol internals like block.tlb. For contracts, messages, and storage, Tolk types are the authoritative definition.

▪️ Mindset shift: In Tolk, the type system is the schema. Model data directly in the language instead of translating external schemas.

📚 Read the full blog for more insights!

Think in types, not schemas.
  • ❤ 72
  • 👍 41
  • 🔥 22
  • 👏 19
  • 🎉 10
  • 👌 7
  • ⚡ 1
More from @tonbuild
  1. Apr 2, 2026📣 Community Update As the TON ecosystem evolves, so does the way we come together! We're…
  2. Mar 28, 2026🚀 The AI Hackathon review period has been extended until April 3. The results exceeded al…
  3. Mar 27, 2026🫧 Tolk v1.3: moving toward a general-purpose language After the previous post, this relea…
  4. Mar 26, 2026💎 WalletConnect now supports TON. WalletConnect's global network, which connects 500M+ us…
  5. Mar 26, 2026🎁 Gift Fest Season 2 is live — Mini App-based campaign with $300,000 in rewards Gift Fest…
  6. Mar 26, 2026💎 That's a wrap. TON AI Agent Hackathon is closed. 150+ projects. Two weeks. Some of what…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →