TON (The Open Network)
smart contract pay gas fee.
太坊模式:bank,用户对 contract 发起 transfer,用户付 gas fee。
TON 模式:每个 contract 自带 balance,用户对 contract 发起 transfer,由 contract 支付 gas fee。当 contract 的 balance 为 0 的时候,contract 自动被从链上移除。充值 balance 后,自动添加到链。
这样做的好处是:当需要全网调整 Gas Fee 的时候,不会影响到用户和 Miner 的权益。
Calls between smart contracts are asynchronous and not atomic
- 异步
- 非原子
在 ETH 链上操作可以串联,并且在其中一个任务失败时,对整个事件进行回滚。
The whole process is even atomic - if any of these steps fails, even the last, the whole transaction rolls back like it never happened.
但是在 TON 中,合约之间的调用是异步的,导致回滚困难。
但是也有好处,就是处理的速度变快了。