How TON contracts work
TON contracts are actors that communicate by sending asynchronous messages, so one action can span several transactions across several contracts. A jetton transfer, for example, involves a wallet contract for each side plus a master contract.
That changes how we design for failure. We plan for bounced messages, partial completion and gas for each step in the chain, and we test those paths. Tact gives readable code for most projects, and we use FunC when a project needs tighter control.
