TON Builders
@tonbuild
16 4.5K
array<T> — dynamically sized arrays backed by TVM tuples.unknown — a TVM primitive with unknown contents.lisp_list<T> — nested two-element tuples (FunC-style).string — text chunks backed by snaked cells, with StringBuilder for concatenation."str".crc32(), "str".sha256(), etc.?? like in TypeScript.import "@third_party/utils".@stdlib/reflection.array<T> — a dynamically sized container:
// array<int>
var numbers = [1, 2, 3];
// array<Point?>
var optPoints = [
Point { x: 10, y: 20 },
Point { x: 30, y: 40 },
null,
];
push, get(idx), etc.T, including sub-arrays like array<array<int>>tuple exists, but it's no longer built-in. It's just an array... of something unknown:
type tuple = array<unknown>
unknown gives access to the untyped TVM stack, fully integrated into the type system.
// string
val str = "hello";
calculateLength, equalTo, etc.StringBuilder encapsulates cell manipulation:
StringBuilder.create()
.append(content.commonContent)
.append(individualNftContent)
.build()
import statement now accepts @aliases:
import "@common/jettons"
import "@third_party/math-lib"
reflect features:
fun log(msg: string, loc: SourceLocation = reflect.sourceLocation()) {
debug.print(loc.lineNo);
}
fun demo() {
log("a"); // prints K — current line no
log("b"); // prints K+1
}
expect(...) in tests — by carrying source location at compile time.tolk compiler is now thread-safe and re-invokable within a single process. It will be embedded into an external toolchain written in Rust, communicating via FFI.
• Wallets with WalletConnect can now support TON with minimal integration effort.
• Institutions gain access to TON's DeFi and liquidity layer.
• Apps can attract non-TON native audiences.
pending → confirmed → finalized → trace_invalidated.
Build the tooling layer: wallet integrations, agent coordination, payment flows, developer tools, core infrastructure that powers AI applications on TON.
Build agents users interact with directly in Telegram: commerce agents, payment bots, trading tools, automation products.