Difference between revisions of "The Open Network (TON)"
m (1 revision imported) |
m |
||
(33 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[https://ton.org/ TON] is a [[Sharding|sharded]] [[Smart Contract (SC)|smart contract]] [[blockchain]] network. | |||
== Basics == | == Basics == | ||
* Started in: | * Started in: | ||
* Based in: Russia | *Based in: Russia, [https://decrypt.co/155138/ton-foundation-announces-registration-as-swiss-non-profit Non-profit foundation] in Switzerland since (6-9-2023). | ||
* Telegram | *TON launched in [https://medium.com/poloniex/what-is-the-open-network-ton-c64594dd70e5 2018] | ||
* | *Fka Telegram Open Network, since then usually just called TON. | ||
''" | * Telegram was [https://ihodl.com/technologies/2019-01-22/bell-ton-blockchain-goes-live-march/?utm_source=cryptotickerr+main+list&utm_campaign=6660187da1-RSS_EMAIL_CAMPAIGN&utm_medium=email&utm_term=0_d53548996e-6660187da1-87461257&ct=t(RSS_EMAIL_CAMPAIGN)&mc_cid=6660187da1&mc_eid=b9fac0945e planned] to launch their own [[blockchain]] in 3-2019 but got [https://telegra.ph/What-Was-TON-And-Why-It-Is-Over-05-12 closed down] (12-5-2020) as an official Telegram project. However, the TON blockchain itself kept running and is [https://decrypt.co/116098/telegram-plans-decentralized-trustless-crypto-exchange-ftx-failure still used] by Telegram (1-12-2022). | ||
== History and Forks == | |||
*Changed its token name into [https://www.coingecko.com/en/coins/toncoin Toncoin (TON)]. | |||
*[https://ton.org/en/roadmap From] their [[roadmap]] (1-2-2023): | |||
''"(2018) The Telegram Messenger team, led by brothers Pavel and Nikolai Durov, begin exploring blockchain solutions for Telegram Messenger. Finding no current [[Layer 1]] blockchain able to support Telegram's 9-figure userbase, they decide to design their own layer-1 chain, then called Telegram Open Network. Telegram raised $1.7b in a private sale of TON tokens (then called Grams) in one of the largest cryptocurrency offerings ever.'' | |||
'' | ''(2019) The Telegram team releases a series of documents detailing the design of the TON blockchain. Telegram spins up two TON testnets - one in Spring 2019, and the second in November 2019. The Telegram team launches the first TON testnet in the spring of 2019, after which the code becomes open-source, and testnet2 goes live on Nov. 15, 2019.'' | ||
'' | ''(Oct 2019) The US [[Securities and Exchange Commission (SEC)|Securities and Exchange Commission]] sues Telegram, accusing it of conducting an unregistered securities offering. Telegram argues that the SEC's claims were baseless, but agrees to postpone the launch of TON until legal matters are resolved.'' | ||
'' | ''(Mar 2020) Amid its ongoing battle of attrition with the U.S. regulator, Telegram finally decides to call it quits. (May 2020) The Telegram team cease development of TON and support of testnet2, pay a $18.5m settlement, and agree to return funds to investors.'' | ||
'' | ''(2020-2021) A small team of open-source developers - NewTON - dive deep into TON's codebase, architecture, and documentation. They resume active development of TON in keeping with the design detailed in TON's original documentation.'' | ||
''(May 2021) Testnet2 remains stable for a long time and the community votes for renaming it as Mainnet. NewTON team, in turn, is renamed as TON Foundation — a not-for-profit community focused on further support and development of the network."'' | |||
*[https://decrypt.co/30587/telegram-crypto-china-ton-project From] [[Decrypt]] (29-5-2020) | |||
''"The Chinese community group for the Telegram Open Network today announced that it is launching its own version of the blockchain. The Chinese project to launch TON is one among several trying to keep Telegram’s magic alive. There’s [[Free TON]] and NewTON, both of which want to get the Telegram Open Network online, using open source-code published by Telegram."'' | |||
* [https://cointelegraph.com/news/telegrams-ton-os-to-go-open-source-on-github-tomorrow From] [[Cointelegraph]] (6-5-2020): | * [https://cointelegraph.com/news/telegrams-ton-os-to-go-open-source-on-github-tomorrow From] [[Cointelegraph]] (6-5-2020): | ||
''"Telegram [https://cointelegraph.com/news/telegram-offers-ico-investors-refund-or-option-to-hang-on-till-april-2021 recently delayed] their open network, TON, and their cryptocurrency, GRAM, once again. There is one related project that has not experienced these setbacks, however. TON OS, an operating system for the TON blockchain, will soon get an [[open source]] release.'' | ''"Telegram [https://cointelegraph.com/news/telegram-offers-ico-investors-refund-or-option-to-hang-on-till-april-2021 recently delayed] their open network, TON, and their cryptocurrency, GRAM, once again. There is one related project that has not experienced these setbacks, however. TON OS, an operating system for the TON blockchain, will soon get an [[open source]] release.'' | ||
Line 22: | Line 28: | ||
''The project’s core infrastructure developers, [https://tonlabs.io/press TON Labs], are planning to open source the main components of the TON OS on [[GitHub]] tomorrow. Mitja Goroshevsky, CTO at TON Labs, confirmed the news to Cointelegraph on May 6."'' | ''The project’s core infrastructure developers, [https://tonlabs.io/press TON Labs], are planning to open source the main components of the TON OS on [[GitHub]] tomorrow. Mitja Goroshevsky, CTO at TON Labs, confirmed the news to Cointelegraph on May 6."'' | ||
''TON Labs to issue a token known as TON Cash within a month.'' ''As [https://forklog.com/ton-labs-nazvala-datu-publikatsii-osnovnyh-komponentov-operatsionnoj-sistemy-dlya-telegram-open-network/ reported] by industry publication, ForkLog, the release includes TON [[Node]] in the [[Rust]] programming language, command line interface, TON [[Multisig|Multi signature]] [[Wallet]] [[smart contract]], as well as tools for launching TON [[validators]]. The report notes that within a month, TON Labs also plans to issue its [[decentralized]] browser, Surf, its [[Staking pools|staking pool]], DePool, and the [[token]] known as [[TON Cash]].'' | |||
''As [https://forklog.com/ton-labs-nazvala-datu-publikatsii-osnovnyh-komponentov-operatsionnoj-sistemy-dlya-telegram-open-network/ reported] by industry publication, ForkLog, the release includes TON Node in the [[Rust]] programming language, command line interface, TON [[Multisig|Multi signature]] [[Wallet]] [[smart contract]], as well as tools for launching TON validators. The report notes that within a month, TON Labs also plans to issue its [[decentralized]] browser, Surf, its [[Staking pools|staking pool]], DePool, and the token known as TON Cash.'' | |||
''In conjunction with the TON OS open source release, TON Labs is joining the Free Software [[Foundation]] (FSF), a major free software movement. As such, all the components of the TON OS are being launched as a free software. According to the developers, the idea of a [[permissionless]] blockchain in a [[closed source]] is absurd. TON Labs reportedly felt that joining the FSF will help them maintain free use of the application as well as the TON blockchain."'' | |||
==Audits & Exploits== | |||
* [[Bug bounty]] program can be found [https://github.com/ton-blockchain/bug-bounty here] (21-7-2022). Up to $100k. | |||
*Had a SlowMist audit, which it [https://www.slowmist.com/security-audit-certificate.html?id=5ea981ee06d54568474e9f92492e8e47c44441bc746ebd92dc534af254d4ac22 passed]: | |||
''"The SlowMist security team use a manual and SlowMist team's analysis tool to audit the project, during the audit work we found 2 low risk, 2 suggestion vulnerabilities."'' | |||
*''"[[CertiK (CTK)|CertiK]] has [https://t.me/toncoin/698 become] (28-12-2022) an official partner of The Open Network and will be auditing smart contracts and services based on TON. CertiK has already audited (<nowiki>https://t.me/toncoin/640</nowiki>) many critical components of The Open Network, including vesting schedule smart contracts, the TON Bridge app, the TON Baselayer, and others."'' | |||
===Bugs/Exploits=== | |||
* Went again [https://x.com/moo9000/status/1828115904225243302 down], for multiple hours, due to DOGS, a meme coin. Showing TON still does not have dynamic [[sharding]] live, and gets into trouble around 280 [[Transactions per second (TPS)|TPS]]. A bit later it went [https://tonviewer.com/stats/transactions down again] for multiple hours, due to the same issue. However, it was able to sustain up to 300 TPS afterwards. | |||
* TON went [https://x.com/moo9000/status/1732751363249934640 down] due to congestion (8-12-2023). | |||
==Governance== | |||
* Governance is done through [[validators]] voting. There is a [https://t.me/tonstatus/47 75% validator minimum] for votes to pass. However, language around it sometimes changes into [https://t.me/toncoin/760 75% minimum of voting validators]. Also, there are not UIs to check which validators voted and how. When asked within the community, no-one answers, but instead people are pointed to the non-binding signaling [https://ton.vote/ voting page] which was community built (2-2023). There is no governance forum and there is no clarity on where validators communicate. | |||
* Hard forks are done in a manner where validators have to update, if they want to vote against, [https://t.me/tonstatus/47 they do not have to do anything], a good practice (21-2-2023). | |||
===Society DAO=== | |||
* [https://www.theblock.co/post/324119/ton-foundation-launches-society-dao-to-drive-decentralized-governance-and-ecosystem-growth From] [[The Block]] (1-11-2024): | |||
"TON Foundation is advancing a community model that redistributes resource allocation power back to the community. Under this approach, respected and proven community members are empowered to coordinate vision, goals, and strategies, collectively determining resource allocation in alignment with TON's overall growth," said President of the TON Foundation Steve Yun and Ton Society co-founder Jack Booth in an announcement on Friday. In January 2025, Society DAO will publish its key initiatives and objectives for the first half of the year, inviting community feedback to help shape its strategic direction. | |||
===Foundation Master Key=== | |||
* The TON Foundation has an [https://ton.org/docs/develop/smart-contracts/governance#emergency-update emergency update key] (6-3-2023). It has used it twice and it can apparently ''"only be used to speed up configuration updates. It has no ability to interfere with the code, storage, and balances of any contract on any chain."'' To date, it has been used twice. | |||
===Notable Governance Votes=== | |||
* [https://t.me/toncoin/760 From] their Telegram channel (22-2-2023): | |||
''"More than 75% of all validators voted in favor of temporarily freezing dormant early [[mining]] [[Wallet|wallets]] — these addresses were not activated before the end of the voting period and now will not be able to be activated until 09:00 (UTC) on February 21, 2027. 171 wallets were deactivated with a total balance of 1,081,389,417 Toncoin (more than 20% of the total supply)."'' | |||
===Treasury=== | |||
* Has a [https://ton.org/en/grants grants committee] funded by the TON Foundation, which in turn was funded by [[Miner|miners]]. | |||
==Token== | |||
===Launch=== | |||
===Token Allocation=== | |||
* [https://t.me/toncoin/760 From] their Telegram channel (22-2-2023): | |||
''"171 wallets were deactivated with a total balance of 1,081,389,417 Toncoin (more than 20% of the total supply)."'' | |||
* From their [https://ton.org/en/validator website] (14-12-2022): | |||
''"New Toncoins are generated during validation. These also go to validators. Overall annual coin inflation is about 0.6%."'' | |||
''"The blockchain runs on proof-of-stake technology, making it fast and cheap, but the initial token distribution [https://ton.org/en/mining was enabled by mining], which was decentralized and had the same conditions for all who participated.'' | |||
''A case in point is all the donations from TON miners that led to the creation of the TON Foundation and the TON Reserve"'' | |||
* From their [https://ton.org/primer.pdf primer] (11-2021): | |||
''"When testnet2 later renamed as Mainnet was launched, 5bn coins were generated with a small fraction (1.45% of the total supply) distributed between testers and developers."'' | |||
===Utility=== | |||
* [https://medium.com/poloniex/what-is-the-open-network-ton-c64594dd70e5 From] [[Poloniex]] (3-12-2022): | |||
''"$TON is used for transaction processing fees as well as cross-chain transaction fees. dApps that build on TON can also receive the token in exchange for services their app provides. $TON is also the governance token of the network, and is used to vote for decisions that affect the future of the network."'' | |||
===Other Details=== | |||
==Coin Distribution== | |||
* From an independent [https://medium.com/@whiterabbit_hq/ton-blockchain-a-group-of-related-whales-mined-85-of-ton-supply-2e3300cc93bc report] (14-3-2023): | |||
''"At least 85.8% of the supply was mined by a few groups of [[Miner|miners]] connected with each other and affiliated with TON Foundation. Funds from these miner groups are used by network validators that control 2/3 of the TON blockchain [[Proof-of-Stake (PoS)|PoS]] consensus."'' | |||
They also make the case for 1 [[whale]] (group) to own 22% or up to 40.8% or even 58% of the supply (due to their activity being highly correlated) with another group having 20% of the supply. | |||
''"There are 182 (~ 66,9%) validators that received funds from defined mining groups which are possibly under the control of the described group of early TON miners. The current initiative to freeze some of the addresses is a step towards reducing the problem because the number of active tokens of this large whale will decrease. In fact, the whale voted to freeze some of their addresses."'' | |||
* The TON Foundation [https://tonwhales.com/explorer/top has] 2 [[Wallet|wallets]] with in total around ~570M tokens, at the moment there are around 5B tokens, so this would be ~11.3% of the supply. This was [https://ton.org/en/mining given] by miners. These wallets also seem [https://tonwhales.com/explorer/address/EQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqB2N quite active], with 9 [[Transaction (Tx)|tx]] in the last 4 days. There is also a [https://tonwhales.com/explorer/early list] of early miners. The highest address has a bit above 2% of the supply. Keep in mind that TON has 0.6% inflation per year, so this will dilute. | |||
==TON Technology== | |||
*[[Whitepaper]] or docs can be found [https://ton.org/whitepaper.pdf here] (26-7-2021). [https://ton.org/en/analysis Had] a first version in 2017. | |||
*Code can be viewed [https://github.com/ton-blockchain here]. | |||
*Consensus mechanism: [[Proof-of-Stake (PoS)|PoS]] | |||
*Algorithm: | |||
*[[Virtual Machine (VM)|Virtual Machine]]: [https://ton.org/en/analysis Turing complete] calls it their [https://ton.org/tvm.pdf TVM]. | |||
*Development language used: FunC, a risk analysis can be read [https://exvul.com/security-risk-analysis-of-func-language-in-ton-blockchain-smart-contracts/ here] (07/19/2024). TOLK will also get [https://ton.app/journal/interview/3 introduced] (11-2024) and is designed as an evolution of FunC, introducing familiar syntax similar to [[Typescript|TypeScript]], but leaving all low-level optimizations untouched. | |||
====Transaction Details==== | |||
*Capacity ([[TPS]]): claims 1million tps ([https://medium.com/poloniex/what-is-the-open-network-ton-c64594dd70e5 3-12-2022]). However went again [https://x.com/moo9000/status/1828115904225243302 down] (27-8-2024), for multiple hours, due to DOGS, a meme coin. Showing TON still does not have dynamic [[sharding]] live, and gets into trouble around 280 [[Transactions per second (TPS)|TPS]]. | |||
*[[Latency]]: under 6 seconds ([https://medium.com/poloniex/what-is-the-open-network-ton-c64594dd70e5 3-12-2022]). [https://blog.ton.org/100000-transactions-per-second-ton-sets-the-world-record-on-its-first-performance-test Claimed] 104,715 TPS and being the fastest blockchain in the world, while admitting it was done in a test setup ''"For the test, TON rented 256 servers from Alibaba Cloud for validator nodes and launched a separate TON Blockchain network."'' | |||
===How it works=== | |||
* From their [https://ton.org/en/validator website] (14-12-2022): | |||
''"An ad hoc [https://ton.org/docs/catchain.pdf Byzantine Fault Tolerant Catchain protocol] was developed to ensure that stakeholders achieve consensus as long as the number of cheaters among them is 1/3 or less."'' | |||
* From their [https://ton.org/docs/learn/overviews/ton-blockchain docs] (14-12-2022): | |||
''"A sequence of transactions Tx1 -> Tx2 -> Tx3 -> .... may be called a chain. And in the considered case it is called AccountChain to emphasize that it is the chain of a single account of transactions. We can get a few AccountChains and store them together, such a set of AccountChains is called a ShardChain. In the same way, we can cut ShardChain into ShardBlocks, which are an aggregation of individual AccountBlocks. An aggregation of all shards which contains all accounts behaving by one set of rules is called a Blockchain. In TON there can be many sets of rules and thus many blockchains which operate simultaneously and can interact with each other by sending messages crosschain in the same way that accounts of one chain can interact with each other.'' | |||
''If you want to customize rules of the group of Shardchains, you could create a Workchain. A good example is to make a workchain that works on the base of EVM to run Solidity smart contracts on it. Theoretically, everyone in community can create own workchain. In fact, it's pretty complicated task to build it, after that to pay (expensive) price of creating it and receive 2/3 of votes from validators to approve creation of your Workchain. TON allows creating up to 2^30 workchains, each subdivided to up to 2^60 shards. Nowadays, there are only 2 workchains in TON: MasterChain and BaseChain."'' | |||
*[https://medium.com/poloniex/what-is-the-open-network-ton-c64594dd70e5 From] [[Poloniex]] (3-12-2022): | |||
''"Its purpose is to provide a platform for decentralized applications ([[Decentralized Applications (DApps)|dApps]]) and [[Smart Contract (SC)|smart contracts]]. It is based on a multi-blockchain architecture and consists of a master chain, several working [[blockchains]], and [[sharding]] protocols.'' | |||
''Some of TON’s Components:'' | |||
# ''The TON [[Peer-to-Peer network|P2P]] (peer-to-peer) Network which is for accessing the TON Blockchain, sending [[Transaction (Tx)|transactions]] candidates, and giving blockchain updates to a [[client]]'' | |||
# ''Distributed storage, or TON Storage, which archives copies of [[Block|blocks]] and [[Snapshot (term)|snapshots]].'' | |||
# ''TON Proxy, which users can anonymously access and use the network through.'' | |||
# ''A distributed [[hash]] table.'' | |||
# ''A platform for services that feature UI that is browser/app-like for easy use through a smartphone.'' | |||
# ''TON DNS, which, like DNS for the Internet, assigns human-readable names to smart contracts, accounts, services, network nodes, and smart contracts.'' | |||
# ''A platform for micropayments called TON Payments'' | |||
''So about that “1million tps”. That sounds crazy, right? Well, this is made possible due to TON’s unique architecture. The TON blockchain is made up of a “collection of two blockchains”. That is, a master blockchain (or masterchain) and several working blockchains (or workchains). The master blockchains are responsible for being a repository of the protocol’s general information, information about validators, workchains and their shards, and the hashes of the work- and sharchains’ most recent blocks. The workchains, on the other hand, contain information on events like smart contract transactions and value-transfer. In terms of [[Consensus Algorithm|consensus]], the blockchain uses a [[Proof-of-Stake (PoS)|proof of stake]] mechanism.'' | |||
''What is interesting about the workchains is that they themselves can be split up into shard blockchains (or shardchains). Each shardchain is tasked with handling transactions for a subset of accounts. The network has an impressive block time of 5 seconds, and can split workchains into 260 shards, allowing for much less network stress and congestion."'' | |||
* On its sharding mechanism. From the TON [https://blog.ton.org/how-to-shard-your-ton-smart-contract-and-why-studying-the-anatomy-of-tons-jettons blog] (16-8-2022): | |||
''"The number of shards is not fixed - TON supports adding more and more shards as needed with an upper bound of 2^60 ( per workchain). This number is practically limitless, enough for every person in the world to be allotted 100 million shards, and still have spare.'' | |||
''The number of shards is elastic - TON supports automatic [https://ton.org/docs/learn/overviews/ton-blockchain splitting of shardchains] in two when the load is high, and then merging them back together when the load is low. This is the only way to deal with dynamic scaling requirements that are impossible to predict in advance. As load on a specific shardchain increases, it will be split in two. Since smart contracts instances are atomic, they're never broken in half. This means that some smart contract instances that once lived on the same shardchain may one day find themselves residing on different ones!'' | |||
''If [a] token is held by 1,000,000 different users, there will be exactly 1,000,001 contract instances deployed. This is where the magic of auto-sharding happens. By default, all contract instances will be found on a single shardchain. But, if these users start issuing a large number of transactions and this single shardchain is under high load, TON will automatically split it into smaller shardchains. Theoretically, the system can keep splitting and splitting until every contract instance is found on a dedicated shard. That's the secret that enables TON to scale to billions of users."'' | |||
* From the TON [https://blog.ton.org/how-to-shard-your-ton-smart-contract-and-why-studying-the-anatomy-of-tons-jettons blog] (28-4-2022): | |||
''"Calls between [[Smart Contract (SC)|smart contracts]] are [[asynchronous]] and not atomic:'' | |||
''If you imagine [[Ethereum (ETH)|Ethereum]] as a monolith on a single server, TON is more similar to a cluster of microservices. Think that every smart contract may be running on a different machine. If two smart contracts want to call each other, just like two microservices communicating, they can send a message over the network. This message takes some time to travel, so communication is suddenly asynchronous! This means that when your smart contract calls a method of a different smart contract, the call will be processed after the transaction terminates, on some different future block.'' | |||
''This is much more difficult to reason about. What happens if conditions change from when the message was sent and until it was received? For example, the calling contract balance had one value, but by the time the second contract processes the call, the balance has changed. Maintaining consistency is more difficult and bugs can creep up. What about atomicity? What happens if you chain three calls and only the last one fails? If you need to roll back all the changes, you will have to do so manually. Smart contracts on TON can only communicate by sending asynchronous messages. If you need to query data from another contract and you require the answer immediately, you're out of luck.'' | |||
''Smart contract code is not [[immutable]] and can easily be modified:'' | |||
''“Smart contracts are free to modify their own code just like writing to any other state variable. If a contract writes to the code variable, it is mutable, and if it doesn't, it is immutable.'' | |||
''Wallets are contracts and one [[Public Key|public key]] can have multiple wallets deployed:'' | |||
''On TON, wallets are not implied, they are independent smart contracts that must be deployed like any other smart contract. When a new user wants to start using TON blockchain, their first step would be to deploy a wallet [[On Chain|on-chain]]. The [[address]] of this wallet is derived from the wallet contract code and various init parameters like the user's public key.'' | |||
''This means that a user can have more than one wallet deployed, each with its own address. The wallets can differ on their code (different official code versions are published by the foundation from time to time) or on their init parameters (one of these parameters is normally a sequence number). This also means that a user that knows their [[Private Key|private key]] must still make a conscious effort to remember their wallet address (or the init parameters used in its construction).'' | |||
''Sending a transaction to some dapp on TON involves [[Signature|signing]] a message using the user's private key. Unlike Ethereum, this transaction is not sent to the dapp smart contract, but to the user's wallet contract, which will in turn forward the message to the dapp smart contract.'' | |||
''This design approach opens up a new dimension of flexibility on TON. New wallet contracts can be invented by the community over time, for example consider a wallet without a nonce (transaction sequence number) that allows multiple transactions to be sent in parallel from different clients without prior synchronization. In addition, special wallets like [[Multi-Signature|multi-sig]] wallets (that also on Ethereum require a special smart contract to be deployed), behave just like their regular counterparts."'' | |||
===Fees=== | |||
* From the TON [https://blog.ton.org/how-to-shard-your-ton-smart-contract-and-why-studying-the-anatomy-of-tons-jettons blog] (28-4-2022): | |||
''"The fee model on TON is quite different [compared to [[Ethereum (ETH)|Ethereum]]]. Instead of emulating a bank account [a 1 time fee per tx], TON is inspired from web apps like * instant messengers*. Who is paying the cost to send a message on Facebook Messenger? It's definitely not the person initiating the transfer. The app developer is actually covering the costs, and it's up to Facebook Inc to recover these costs somehow and fund itself.'' | |||
''Accordingly, in TON, the [[Decentralized Applications (DApps)|dapp]] itself needs to pay for its own resource costs. Every [[Smart Contract (SC)|smart contract]] holds a TON token balance and uses this balance to pay rent. If the smart contract runs out of money, it will eventually be deleted (don't worry, everything is recoverable). Notice that paying for chain storage doesn't happen once, the rent payment is continuous. If you only hold data for a short period of time, you will pay significantly less. These fee economics are more in line with the costs of miners and thus easier to scale.'' | |||
''Very similar to Facebook Inc, the contract developer in TON has a lot of freedom to choose how to fund its operation. The developer can fund the contract with TON tokens out of pocket and subsidize its users; or it can charge gas from users for different actions and keep this gas in its balance for future rent payments."'' | |||
===Upgrades=== | |||
* The [[gas]] limit got [https://t.me/tonstatus/48 increased] by the TON Foundation through an [https://ton.org/docs/develop/smart-contracts/governance#emergency-update emergency upgrade] after an increased amount of activity (2-3-2023). | |||
=== Staking=== | |||
* From their [https://ton.org/en/validator website] (14-12-2022): | |||
''"Validators stake Toncoin for a fixed specific term, and the stake is refunded with interest after the completion of a validation round. Should a validator attempt to cheat or be unavailable during a validation round, its stake is partially or fully [[Slashing|forfeited]] as a penalty. The TON Nominator service allows Toncoin holders to lend their asset to owners of validator nodes (validators). Toncoin earned by the validator is distributed to those that lent their assets to the validator."'' | |||
====Validator Stats==== | |||
* [https://www.onchaintimes.com/p/ton-the-most-credible-mass-adoption From] Onchain Times (7-5-2024): | |||
''"The PoS TON chain is validated by 340 validators today across 29 countries with ~10% of its circulating supply (513M Toncoin) staked."'' | |||
* [[Animoca Brands]] is TON blockchain’s [https://news.bitcoin.com/animoca-brands-now-the-largest-validator-on-ton-network/ largest] validator (30-11-2023). | |||
*From their [https://ton.org/en/validator website] (14-12-2022): | |||
''" Currently, the average validator stake is 600k Toncoin. ~270 Toncoin / per day. Average income daily generated by validator node with average stake as of May 2022."'' | |||
[https://tonwhales.com/staking According] to TONwhales the minimum for staking is at least 350,000 TON. | |||
=== Mining=== | |||
* From an independent [https://medium.com/@whiterabbit_hq/ton-blockchain-a-group-of-related-whales-mined-85-of-ton-supply-2e3300cc93bc report] (14-3-2023): | |||
''"Contract addresses were of two types: Small Givers and Large Givers. The second distributed more coins (100 000 instead of 100 each time) but required more computing power.'' | |||
''Mining continued from July 6, 2020, to June 28, 2022, but almost all token emission was distributed during the first 51 days:'' | |||
# ''From July 6 to August 26, 2020, Large Givers distributed 4.8bn (96%) tokens, Small givers gave away 9.9 mn tokens (0.2%);'' | |||
# ''From August 27, 2020, to June 28, 2022, Small Givers distributed 117.3 mn tokens (2.35%)."'' | |||
* According to the official [https://ton.org/en/mining ton.org website] (15-12-2022), [[mining]] has all but ended: | |||
''"In June 2020, all of the available Toncoin tokens (98.55% of the total supply) became available for mining. The tokens were placed in special Giver [[Smart Contract (SC)|smart contracts]], allowing anyone to participate in the mining — up until 28 june 2022. Users mined around 200,000 TON daily. Today, two years later, the last Toncoin was mined, signaling the successful closure of TON’s initial distribution.'' | |||
''Although all PoW Giver smart contracts have been completely emptied and TON mining is no longer available in a classical sense, the TonWhales team has developed a fascinating solution for miners who want to continue mining Toncoin: a pool for perpetual Toncoin mining called Infinity TON Mining Pool."'' | |||
Which indeed [https://tonwhales.com/docs/pool seems] to happen: "InfinityTON pool is the only pool where you can continue to mine TON." | |||
=== Liquidity Mining=== | |||
* Community rewards, worth $115M will start being [https://twitter.com/ton_blockchain/status/1770444723884376264 released] from 1-4-2024 onwards. | |||
*''"TON Foundation has [https://blog.ton.org/liquidity-mining-rewards-campaign introduced] a [[Liquidity Mining|liquidity mining]] campaign, offering $720,000 worth of Toncoin (TON) in rewards. Scheduled from June 5 to June 30, this campaign is designed to boost network [[liquidity]] with a special emphasis on [[Tether (USDT)|Tether]] (jUSDt), [[US Dollar Coin (USDC)|USD Coin]] (jUSDC), and [[Wrapped Tokens|Wrapped]] [[Bitcoin (BTC)|Bitcoin]] (jWBTC) jettons. Several prominent [[Decentralized Exchange (DEX)|DEX]] protocols, including Megaton Finance,, DeDust, and STON.fi, will be participating in the campaign."'' (2-6-2023) | |||
===Scaling=== | |||
* [https://www.coindesk.com/tech/2024/07/09/ton-blockchain-will-release-new-layer-2-based-on-polygons-technology/ From] [[CoinDesk (DESK)|CoinDesk]] (9-7-2024): | |||
''"TON Applications Chain (TAC) is building a [[Layer Two|layer-2]] network for the TON. The project, which is backed by The Open Platform, an investor focused on the TON blockchain ecosystem, will rely on [[Polygon (POL)|Polygon’s]] Chain Development Kit (CDK) as well as Polygon’s [[AggLayer]]. A key feature of the TAC project is that it will be compatible with [[Ethereum Virtual Machine (EVM)|Ethereum Virtual Machine]], or EVM."'' | |||
* From their [https://ton.org/en/analysis website] (14-12-2022): | |||
''"The system can potentially accommodate up to 2<sup>32</sup> workchains, each of which can be subdivided into up to 2<sup>60</sup> shardchains with near-instant cross-shard and cross-chain communication, resulting in millions of transactions per second."'' | |||
===Interoperability=== | |||
===Other Details=== | |||
==Oracle Method== | |||
* [[Pyth Network (PYTH)|Pyth Network]] announced (14-8-2024) that it has partnered with The Open Network (TON). | |||
*[[RedStone]] ([https://mailchi.mp/e10a3bc0061a/iosg-ventures-monthly-newsletter-august-edition-17447057?e=bf26479d79 1-2024]) | |||
*[[Oracles]] are yet to be deployed (22-2-2023) [https://firststagelabs.medium.com/ton-defi-landscape-da841036015d according] to an outside report. | |||
== Projects == | |||
* [https://decrypt.co/116098/telegram-plans-decentralized-trustless-crypto-exchange-ftx-failure From] [[Decrypt (DCPT)|Decrypt]] (1-12-2022): | |||
'' | ''"Pavel Durov—the messaging platform’s founder and CEO—announced that the company would begin building “[[non-custodial]] [[Wallet|wallets]]” and “[[Decentralized Exchange (DEX)|decentralized exchanges]]” that would let millions of users safely trade their crypto. The executive argued that the project should be more than feasible: the development of Fragment, [[Telegram]]’s decentralized auction platform, “took only 5 weeks and 5 people, including myself,” according to Durov. The marketplace, which [https://decrypt.co/113015/telegram-launches-username-auction-using-ton-blockchain launched] last month, has already raked in $50 million worth of Toncoin by selling tokenized usernames on the blockchain."'' | ||
* [https:// | ==Roadmap==*New one [https://ton.org/en/roadmap here] (1-2-2023): | ||
# TON tokens bridge to ETH & BNB | |||
# A universal [[Decentralised Autonomous Organisation (DAO)|DAO]] smart contract | |||
# Proposes a mechanism for burning a portion of network commissions.\ | |||
# Decentralized Encrypted Messaging | |||
# Support for EVM signature verification and other new TVM features. | |||
* Can be found [https://ton.org/en/roadmap here] (Q3 2022). Has TON Storage and [[Bitcoin (BTC)|Bitcoin]] & [[Ethereum Virtual Machine (EVM)|EVM]] crosschain on its roadmap. | |||
== Usage == | == Usage == | ||
* [https://www.onchaintimes.com/p/ton-the-most-credible-mass-adoption From] Onchain Times (7-5-2024): | |||
''"After a long period of stagnation, TON’s TVL saw an explosive growth in late February 2024 to its current levels of ~157M. This was largely due to the confluence of two factors: 1) a Feb 28 announcement to launch a 50% revenue-share program for Telegram channels, of which payments and withdrawals will be exclusively transacted on TON in Toncoin and 2) the commencement of 30M Toncoin incentives."'' | |||
* [[Telegram]] will be [https://twitter.com/ton_blockchain/status/1762824310631047289 using] TON for its Ad Platform (28-2-2024). | |||
*From a First Stage Labs [https://firststagelabs.medium.com/the-state-of-ton-defi-q2-2023-ac40a14ef8e0 report] (Q2 2023): | |||
''"The number of registered TON addresses increased by +23.6% over the last quarter. TON's market capitalization grew by +108.5% and the network's TVL also surged by 30.4%."'' | |||
* [https://firststagelabs.medium.com/ton-defi-landscape-da841036015d According] to an outside [https://firststagelabs.medium.com/ton-defi-landscape-da841036015d report] (22-2-2023): | |||
''"Low [[On Chain|on-chain]] activity that stays almost the same despite the 5x growth of [[addresses]]. It seems that TON attracts interest, but new addresses don’t have use cases for on-chain activity."'' | |||
* [https://cointelegraph.com/top-people-in-crypto-and-blockchain-2023/the-open-network From] [[CoinTelegraph|Cointelegraph]]: | |||
''"In April 2022, TON announced that the Democratic Republic of the Congo, Cameroon and the Republic of the Congo were considering using TON to deploy products intended to bolster their economies."'' | |||
=== Projects that use or built on it === | === Projects that use or built on it === | ||
* Can be found [https://ton.app/ here] (15-12-2022). | |||
*Ston.fi; AMM, with around ~600k TVL ([https://defillama.com/protocol/ston.fi 14-12-2022]). Has 7 coins to swap. | |||
*[https://www.onchaintimes.com/p/ton-the-most-credible-mass-adoption From] Onchain Times (7-5-2024): | |||
''"TON dapps are listed in the “Telegram App Center”, an App Store of sorts. Hundreds of dapps already exist, but here are a few noteworthy ones:'' | |||
# ''Tonstakers: Toncoin liquid staking with ~208M TVL and 3.6% APY. Toncoin has one of the highest liquid staking rates versus MATIC, AVAX, SOL'' | |||
# ''STON.fi and DeDust: TON’s run-of-the-mill AMM DEXs'' | |||
# ''Storm Trade: Perps DEX with ~9M TVL for pre-launch tokens and TradFi assets (soon)'' | |||
# ''EVAA Protocol: Lending platform with 5.1M TVL'' | |||
# ''Games: Notcoin is a notable mindless clicker game where users receive tokens but saw a staggering 3.5M DAUs. Tap Fantasy is another MMORPG that saw 600K players in Jan 2024.'' | |||
# ''Getgems: Leading NFT marketplace'' | |||
# ''Fragment: A marketplace to trade tokenized Telegram usernames"'' | |||
== Pros and Cons == | == Pros and Cons == | ||
=== Pros === | === Pros === | ||
* Theoretical huge [[On Chain|on-chain]] scaling through [[sharding]] and workchains. | |||
* Hard forks are done by having 75% of validators having to upgrade, not lazy [[consensus]]. | |||
=== Cons === | === Cons === | ||
* Governance is opaque. | |||
* No stats to really see [[blockchain]] data or governance voting (3-2023). | |||
* There is a master key that the TON Foundation can use to upgrade some blockchain parameters (3-2023). | |||
== Competition == | == Competition == | ||
* | * [https://blog.ton.org/six-unique-aspects-of-ton-blockchain-that-will-surprise-solidity-developers Compared] (4-2022) to [[Ethereum (ETH)|Ethereum]]: | ||
# ''"Your [[Smart Contract (SC)|smart contract]] needs to pay rent and charge its users'' | |||
# ''Calls between smart contracts are [[asynchronous]] and not atomic'' | |||
# ''Smart contract code is not [[immutable]] and can easily be modified'' | |||
# ''[[Wallet|Wallets]] are contracts and one [[Public Key|public key]] can have mutliple wallets deployed"'' | |||
== Team, | == Team, Funding, Partners == | ||
=== Team === | === Team === | ||
* TON Labs; The project’s core infrastructure developers | * From their [https://ton.org/primer.pdf primer] (11-2021): | ||
''"Two developers known as Anatoliy Makosov and EmelyanenkoK initiated Newton open-source community aimed at further development and support of TON on the open source principles. Newton team, in turn, got renamed as TON Foundation. By now over 40 independent non-incorporated developers from various geographies work on the project as TON Foundation not-for-proft community funded by donations."'' | |||
*TON Labs; The project’s ex core infrastructure developers | |||
*[https://blog.ton.org/toncoin-fund-why-we-invested-fanzee Has] TONcoin Fund, which invests in TON related projects (27-7-2022). | |||
=== Funding === | |||
* The Open Network Ventures (@TON_Ventures), a new venture capital firm, has [https://x.com/ton_blockchain/status/1823694572188299414 launched] a $40 million fund to support early-stage crypto projects within TON ecosystem (14-8-2024). | |||
* [https://messari.io/organization/arrington-xrp-capital Part of] (9-3-2020) the portfolio of [[Arrington XRP Capital]]. | *[https://www.onchaintimes.com/p/ton-the-most-credible-mass-adoption From] Onchain Times (7-5-2024): | ||
''"Funds activity:'' | |||
# ''[[Mirana Ventures]] acquired 8M Toncoins in March 2024'' | |||
# ''[[Pantera Capital|Pantera]] Capital recently announced an investment in TON'' | |||
# ''DWF Labs runs two TON validators and invested 10M in TON ecosystem'' | |||
# ''Animoca is an investor in TON and also running one of its largest validators'' | |||
# ''Yolo Investment invested 8M into TON"'' | |||
*[[Animoca Brands]] is TON blockchain’s [https://news.bitcoin.com/animoca-brands-now-the-largest-validator-on-ton-network/ largest] validator (30-11-2023) and will henceforth “provide funding, research, and an analytics platform. | |||
*TON has [https://cointelegraph.com/news/ton-raises-8-figure-sum-telegram-web3-super-app raised] an eight-figure investment from [[MEXC Ventures]] (4-10-2023). | |||
*Had a '[https://t.me/toncoin/863 strategic investment]' from [[Mask Network (MASK)|Mask Network]] (17-5-2023) | |||
*[https://society.ton.org/#fund-your-project Has] (12-2022) a TONcoin Fund of $250M in partnership with Orbs, [[MEXC Global]], [[Huobi (HT)|Huobi]] Incubator, [[KuCoin (KCS)|KuCoin]] Ventures, Cypher Capital, Kilo and the TON Alpha-Vista Incubation, which is a $90M ecosystem builder for The Open Network (TON), backed by VistaLabs and Alphanonce. | |||
*[https://messari.io/organization/arrington-xrp-capital Part of] (9-3-2020) the portfolio of [[Arrington XRP Capital]]. | |||
*Raised [https://twitter.com/CoinDesk/status/1545061097018773504 $90M] for a new ecosystem fund continuing its recent attempts to get the Telegram-founded blockchain project back into gear (7-7-2022). | |||
=== Partners === | === Partners === | ||
* [https://www.chainalysis.com/crypto-incident-response/ Announced] (4-5-2023) a partnership with [[Chainalysis]] in case of hacks and to help law enforcement. | |||
[[Category:Coins/Tokens]] | [[Category:Coins/Tokens]] |
Latest revision as of 03:49, 11 November 2024
TON is a sharded smart contract blockchain network.
Basics
- Started in:
- Based in: Russia, Non-profit foundation in Switzerland since (6-9-2023).
- TON launched in 2018
- Fka Telegram Open Network, since then usually just called TON.
- Telegram was planned to launch their own blockchain in 3-2019 but got closed down (12-5-2020) as an official Telegram project. However, the TON blockchain itself kept running and is still used by Telegram (1-12-2022).
History and Forks
- Changed its token name into Toncoin (TON).
- From their roadmap (1-2-2023):
"(2018) The Telegram Messenger team, led by brothers Pavel and Nikolai Durov, begin exploring blockchain solutions for Telegram Messenger. Finding no current Layer 1 blockchain able to support Telegram's 9-figure userbase, they decide to design their own layer-1 chain, then called Telegram Open Network. Telegram raised $1.7b in a private sale of TON tokens (then called Grams) in one of the largest cryptocurrency offerings ever.
(2019) The Telegram team releases a series of documents detailing the design of the TON blockchain. Telegram spins up two TON testnets - one in Spring 2019, and the second in November 2019. The Telegram team launches the first TON testnet in the spring of 2019, after which the code becomes open-source, and testnet2 goes live on Nov. 15, 2019.
(Oct 2019) The US Securities and Exchange Commission sues Telegram, accusing it of conducting an unregistered securities offering. Telegram argues that the SEC's claims were baseless, but agrees to postpone the launch of TON until legal matters are resolved.
(Mar 2020) Amid its ongoing battle of attrition with the U.S. regulator, Telegram finally decides to call it quits. (May 2020) The Telegram team cease development of TON and support of testnet2, pay a $18.5m settlement, and agree to return funds to investors.
(2020-2021) A small team of open-source developers - NewTON - dive deep into TON's codebase, architecture, and documentation. They resume active development of TON in keeping with the design detailed in TON's original documentation.
(May 2021) Testnet2 remains stable for a long time and the community votes for renaming it as Mainnet. NewTON team, in turn, is renamed as TON Foundation — a not-for-profit community focused on further support and development of the network."
"The Chinese community group for the Telegram Open Network today announced that it is launching its own version of the blockchain. The Chinese project to launch TON is one among several trying to keep Telegram’s magic alive. There’s Free TON and NewTON, both of which want to get the Telegram Open Network online, using open source-code published by Telegram."
- From Cointelegraph (6-5-2020):
"Telegram recently delayed their open network, TON, and their cryptocurrency, GRAM, once again. There is one related project that has not experienced these setbacks, however. TON OS, an operating system for the TON blockchain, will soon get an open source release.
The project’s core infrastructure developers, TON Labs, are planning to open source the main components of the TON OS on GitHub tomorrow. Mitja Goroshevsky, CTO at TON Labs, confirmed the news to Cointelegraph on May 6."
TON Labs to issue a token known as TON Cash within a month. As reported by industry publication, ForkLog, the release includes TON Node in the Rust programming language, command line interface, TON Multi signature Wallet smart contract, as well as tools for launching TON validators. The report notes that within a month, TON Labs also plans to issue its decentralized browser, Surf, its staking pool, DePool, and the token known as TON Cash.
In conjunction with the TON OS open source release, TON Labs is joining the Free Software Foundation (FSF), a major free software movement. As such, all the components of the TON OS are being launched as a free software. According to the developers, the idea of a permissionless blockchain in a closed source is absurd. TON Labs reportedly felt that joining the FSF will help them maintain free use of the application as well as the TON blockchain."
Audits & Exploits
- Bug bounty program can be found here (21-7-2022). Up to $100k.
- Had a SlowMist audit, which it passed:
"The SlowMist security team use a manual and SlowMist team's analysis tool to audit the project, during the audit work we found 2 low risk, 2 suggestion vulnerabilities."
- "CertiK has become (28-12-2022) an official partner of The Open Network and will be auditing smart contracts and services based on TON. CertiK has already audited (https://t.me/toncoin/640) many critical components of The Open Network, including vesting schedule smart contracts, the TON Bridge app, the TON Baselayer, and others."
Bugs/Exploits
- Went again down, for multiple hours, due to DOGS, a meme coin. Showing TON still does not have dynamic sharding live, and gets into trouble around 280 TPS. A bit later it went down again for multiple hours, due to the same issue. However, it was able to sustain up to 300 TPS afterwards.
- TON went down due to congestion (8-12-2023).
Governance
- Governance is done through validators voting. There is a 75% validator minimum for votes to pass. However, language around it sometimes changes into 75% minimum of voting validators. Also, there are not UIs to check which validators voted and how. When asked within the community, no-one answers, but instead people are pointed to the non-binding signaling voting page which was community built (2-2023). There is no governance forum and there is no clarity on where validators communicate.
- Hard forks are done in a manner where validators have to update, if they want to vote against, they do not have to do anything, a good practice (21-2-2023).
Society DAO
"TON Foundation is advancing a community model that redistributes resource allocation power back to the community. Under this approach, respected and proven community members are empowered to coordinate vision, goals, and strategies, collectively determining resource allocation in alignment with TON's overall growth," said President of the TON Foundation Steve Yun and Ton Society co-founder Jack Booth in an announcement on Friday. In January 2025, Society DAO will publish its key initiatives and objectives for the first half of the year, inviting community feedback to help shape its strategic direction.
Foundation Master Key
- The TON Foundation has an emergency update key (6-3-2023). It has used it twice and it can apparently "only be used to speed up configuration updates. It has no ability to interfere with the code, storage, and balances of any contract on any chain." To date, it has been used twice.
Notable Governance Votes
- From their Telegram channel (22-2-2023):
"More than 75% of all validators voted in favor of temporarily freezing dormant early mining wallets — these addresses were not activated before the end of the voting period and now will not be able to be activated until 09:00 (UTC) on February 21, 2027. 171 wallets were deactivated with a total balance of 1,081,389,417 Toncoin (more than 20% of the total supply)."
Treasury
- Has a grants committee funded by the TON Foundation, which in turn was funded by miners.
Token
Launch
Token Allocation
- From their Telegram channel (22-2-2023):
"171 wallets were deactivated with a total balance of 1,081,389,417 Toncoin (more than 20% of the total supply)."
- From their website (14-12-2022):
"New Toncoins are generated during validation. These also go to validators. Overall annual coin inflation is about 0.6%."
"The blockchain runs on proof-of-stake technology, making it fast and cheap, but the initial token distribution was enabled by mining, which was decentralized and had the same conditions for all who participated.
A case in point is all the donations from TON miners that led to the creation of the TON Foundation and the TON Reserve"
- From their primer (11-2021):
"When testnet2 later renamed as Mainnet was launched, 5bn coins were generated with a small fraction (1.45% of the total supply) distributed between testers and developers."
Utility
"$TON is used for transaction processing fees as well as cross-chain transaction fees. dApps that build on TON can also receive the token in exchange for services their app provides. $TON is also the governance token of the network, and is used to vote for decisions that affect the future of the network."
Other Details
Coin Distribution
- From an independent report (14-3-2023):
"At least 85.8% of the supply was mined by a few groups of miners connected with each other and affiliated with TON Foundation. Funds from these miner groups are used by network validators that control 2/3 of the TON blockchain PoS consensus."
They also make the case for 1 whale (group) to own 22% or up to 40.8% or even 58% of the supply (due to their activity being highly correlated) with another group having 20% of the supply.
"There are 182 (~ 66,9%) validators that received funds from defined mining groups which are possibly under the control of the described group of early TON miners. The current initiative to freeze some of the addresses is a step towards reducing the problem because the number of active tokens of this large whale will decrease. In fact, the whale voted to freeze some of their addresses."
- The TON Foundation has 2 wallets with in total around ~570M tokens, at the moment there are around 5B tokens, so this would be ~11.3% of the supply. This was given by miners. These wallets also seem quite active, with 9 tx in the last 4 days. There is also a list of early miners. The highest address has a bit above 2% of the supply. Keep in mind that TON has 0.6% inflation per year, so this will dilute.
TON Technology
- Whitepaper or docs can be found here (26-7-2021). Had a first version in 2017.
- Code can be viewed here.
- Consensus mechanism: PoS
- Algorithm:
- Virtual Machine: Turing complete calls it their TVM.
- Development language used: FunC, a risk analysis can be read here (07/19/2024). TOLK will also get introduced (11-2024) and is designed as an evolution of FunC, introducing familiar syntax similar to TypeScript, but leaving all low-level optimizations untouched.
Transaction Details
- Capacity (TPS): claims 1million tps (3-12-2022). However went again down (27-8-2024), for multiple hours, due to DOGS, a meme coin. Showing TON still does not have dynamic sharding live, and gets into trouble around 280 TPS.
- Latency: under 6 seconds (3-12-2022). Claimed 104,715 TPS and being the fastest blockchain in the world, while admitting it was done in a test setup "For the test, TON rented 256 servers from Alibaba Cloud for validator nodes and launched a separate TON Blockchain network."
How it works
- From their website (14-12-2022):
"An ad hoc Byzantine Fault Tolerant Catchain protocol was developed to ensure that stakeholders achieve consensus as long as the number of cheaters among them is 1/3 or less."
- From their docs (14-12-2022):
"A sequence of transactions Tx1 -> Tx2 -> Tx3 -> .... may be called a chain. And in the considered case it is called AccountChain to emphasize that it is the chain of a single account of transactions. We can get a few AccountChains and store them together, such a set of AccountChains is called a ShardChain. In the same way, we can cut ShardChain into ShardBlocks, which are an aggregation of individual AccountBlocks. An aggregation of all shards which contains all accounts behaving by one set of rules is called a Blockchain. In TON there can be many sets of rules and thus many blockchains which operate simultaneously and can interact with each other by sending messages crosschain in the same way that accounts of one chain can interact with each other.
If you want to customize rules of the group of Shardchains, you could create a Workchain. A good example is to make a workchain that works on the base of EVM to run Solidity smart contracts on it. Theoretically, everyone in community can create own workchain. In fact, it's pretty complicated task to build it, after that to pay (expensive) price of creating it and receive 2/3 of votes from validators to approve creation of your Workchain. TON allows creating up to 2^30 workchains, each subdivided to up to 2^60 shards. Nowadays, there are only 2 workchains in TON: MasterChain and BaseChain."
"Its purpose is to provide a platform for decentralized applications (dApps) and smart contracts. It is based on a multi-blockchain architecture and consists of a master chain, several working blockchains, and sharding protocols.
Some of TON’s Components:
- The TON P2P (peer-to-peer) Network which is for accessing the TON Blockchain, sending transactions candidates, and giving blockchain updates to a client
- Distributed storage, or TON Storage, which archives copies of blocks and snapshots.
- TON Proxy, which users can anonymously access and use the network through.
- A distributed hash table.
- A platform for services that feature UI that is browser/app-like for easy use through a smartphone.
- TON DNS, which, like DNS for the Internet, assigns human-readable names to smart contracts, accounts, services, network nodes, and smart contracts.
- A platform for micropayments called TON Payments
So about that “1million tps”. That sounds crazy, right? Well, this is made possible due to TON’s unique architecture. The TON blockchain is made up of a “collection of two blockchains”. That is, a master blockchain (or masterchain) and several working blockchains (or workchains). The master blockchains are responsible for being a repository of the protocol’s general information, information about validators, workchains and their shards, and the hashes of the work- and sharchains’ most recent blocks. The workchains, on the other hand, contain information on events like smart contract transactions and value-transfer. In terms of consensus, the blockchain uses a proof of stake mechanism.
What is interesting about the workchains is that they themselves can be split up into shard blockchains (or shardchains). Each shardchain is tasked with handling transactions for a subset of accounts. The network has an impressive block time of 5 seconds, and can split workchains into 260 shards, allowing for much less network stress and congestion."
- On its sharding mechanism. From the TON blog (16-8-2022):
"The number of shards is not fixed - TON supports adding more and more shards as needed with an upper bound of 2^60 ( per workchain). This number is practically limitless, enough for every person in the world to be allotted 100 million shards, and still have spare.
The number of shards is elastic - TON supports automatic splitting of shardchains in two when the load is high, and then merging them back together when the load is low. This is the only way to deal with dynamic scaling requirements that are impossible to predict in advance. As load on a specific shardchain increases, it will be split in two. Since smart contracts instances are atomic, they're never broken in half. This means that some smart contract instances that once lived on the same shardchain may one day find themselves residing on different ones!
If [a] token is held by 1,000,000 different users, there will be exactly 1,000,001 contract instances deployed. This is where the magic of auto-sharding happens. By default, all contract instances will be found on a single shardchain. But, if these users start issuing a large number of transactions and this single shardchain is under high load, TON will automatically split it into smaller shardchains. Theoretically, the system can keep splitting and splitting until every contract instance is found on a dedicated shard. That's the secret that enables TON to scale to billions of users."
- From the TON blog (28-4-2022):
"Calls between smart contracts are asynchronous and not atomic:
If you imagine Ethereum as a monolith on a single server, TON is more similar to a cluster of microservices. Think that every smart contract may be running on a different machine. If two smart contracts want to call each other, just like two microservices communicating, they can send a message over the network. This message takes some time to travel, so communication is suddenly asynchronous! This means that when your smart contract calls a method of a different smart contract, the call will be processed after the transaction terminates, on some different future block.
This is much more difficult to reason about. What happens if conditions change from when the message was sent and until it was received? For example, the calling contract balance had one value, but by the time the second contract processes the call, the balance has changed. Maintaining consistency is more difficult and bugs can creep up. What about atomicity? What happens if you chain three calls and only the last one fails? If you need to roll back all the changes, you will have to do so manually. Smart contracts on TON can only communicate by sending asynchronous messages. If you need to query data from another contract and you require the answer immediately, you're out of luck.
Smart contract code is not immutable and can easily be modified:
“Smart contracts are free to modify their own code just like writing to any other state variable. If a contract writes to the code variable, it is mutable, and if it doesn't, it is immutable.
Wallets are contracts and one public key can have multiple wallets deployed:
On TON, wallets are not implied, they are independent smart contracts that must be deployed like any other smart contract. When a new user wants to start using TON blockchain, their first step would be to deploy a wallet on-chain. The address of this wallet is derived from the wallet contract code and various init parameters like the user's public key.
This means that a user can have more than one wallet deployed, each with its own address. The wallets can differ on their code (different official code versions are published by the foundation from time to time) or on their init parameters (one of these parameters is normally a sequence number). This also means that a user that knows their private key must still make a conscious effort to remember their wallet address (or the init parameters used in its construction).
Sending a transaction to some dapp on TON involves signing a message using the user's private key. Unlike Ethereum, this transaction is not sent to the dapp smart contract, but to the user's wallet contract, which will in turn forward the message to the dapp smart contract.
This design approach opens up a new dimension of flexibility on TON. New wallet contracts can be invented by the community over time, for example consider a wallet without a nonce (transaction sequence number) that allows multiple transactions to be sent in parallel from different clients without prior synchronization. In addition, special wallets like multi-sig wallets (that also on Ethereum require a special smart contract to be deployed), behave just like their regular counterparts."
Fees
- From the TON blog (28-4-2022):
"The fee model on TON is quite different [compared to Ethereum]. Instead of emulating a bank account [a 1 time fee per tx], TON is inspired from web apps like * instant messengers*. Who is paying the cost to send a message on Facebook Messenger? It's definitely not the person initiating the transfer. The app developer is actually covering the costs, and it's up to Facebook Inc to recover these costs somehow and fund itself.
Accordingly, in TON, the dapp itself needs to pay for its own resource costs. Every smart contract holds a TON token balance and uses this balance to pay rent. If the smart contract runs out of money, it will eventually be deleted (don't worry, everything is recoverable). Notice that paying for chain storage doesn't happen once, the rent payment is continuous. If you only hold data for a short period of time, you will pay significantly less. These fee economics are more in line with the costs of miners and thus easier to scale.
Very similar to Facebook Inc, the contract developer in TON has a lot of freedom to choose how to fund its operation. The developer can fund the contract with TON tokens out of pocket and subsidize its users; or it can charge gas from users for different actions and keep this gas in its balance for future rent payments."
Upgrades
- The gas limit got increased by the TON Foundation through an emergency upgrade after an increased amount of activity (2-3-2023).
Staking
- From their website (14-12-2022):
"Validators stake Toncoin for a fixed specific term, and the stake is refunded with interest after the completion of a validation round. Should a validator attempt to cheat or be unavailable during a validation round, its stake is partially or fully forfeited as a penalty. The TON Nominator service allows Toncoin holders to lend their asset to owners of validator nodes (validators). Toncoin earned by the validator is distributed to those that lent their assets to the validator."
Validator Stats
- From Onchain Times (7-5-2024):
"The PoS TON chain is validated by 340 validators today across 29 countries with ~10% of its circulating supply (513M Toncoin) staked."
- Animoca Brands is TON blockchain’s largest validator (30-11-2023).
- From their website (14-12-2022):
" Currently, the average validator stake is 600k Toncoin. ~270 Toncoin / per day. Average income daily generated by validator node with average stake as of May 2022."
According to TONwhales the minimum for staking is at least 350,000 TON.
Mining
- From an independent report (14-3-2023):
"Contract addresses were of two types: Small Givers and Large Givers. The second distributed more coins (100 000 instead of 100 each time) but required more computing power.
Mining continued from July 6, 2020, to June 28, 2022, but almost all token emission was distributed during the first 51 days:
- From July 6 to August 26, 2020, Large Givers distributed 4.8bn (96%) tokens, Small givers gave away 9.9 mn tokens (0.2%);
- From August 27, 2020, to June 28, 2022, Small Givers distributed 117.3 mn tokens (2.35%)."
- According to the official ton.org website (15-12-2022), mining has all but ended:
"In June 2020, all of the available Toncoin tokens (98.55% of the total supply) became available for mining. The tokens were placed in special Giver smart contracts, allowing anyone to participate in the mining — up until 28 june 2022. Users mined around 200,000 TON daily. Today, two years later, the last Toncoin was mined, signaling the successful closure of TON’s initial distribution.
Although all PoW Giver smart contracts have been completely emptied and TON mining is no longer available in a classical sense, the TonWhales team has developed a fascinating solution for miners who want to continue mining Toncoin: a pool for perpetual Toncoin mining called Infinity TON Mining Pool."
Which indeed seems to happen: "InfinityTON pool is the only pool where you can continue to mine TON."
Liquidity Mining
- Community rewards, worth $115M will start being released from 1-4-2024 onwards.
- "TON Foundation has introduced a liquidity mining campaign, offering $720,000 worth of Toncoin (TON) in rewards. Scheduled from June 5 to June 30, this campaign is designed to boost network liquidity with a special emphasis on Tether (jUSDt), USD Coin (jUSDC), and Wrapped Bitcoin (jWBTC) jettons. Several prominent DEX protocols, including Megaton Finance,, DeDust, and STON.fi, will be participating in the campaign." (2-6-2023)
Scaling
"TON Applications Chain (TAC) is building a layer-2 network for the TON. The project, which is backed by The Open Platform, an investor focused on the TON blockchain ecosystem, will rely on Polygon’s Chain Development Kit (CDK) as well as Polygon’s AggLayer. A key feature of the TAC project is that it will be compatible with Ethereum Virtual Machine, or EVM."
- From their website (14-12-2022):
"The system can potentially accommodate up to 232 workchains, each of which can be subdivided into up to 260 shardchains with near-instant cross-shard and cross-chain communication, resulting in millions of transactions per second."
Interoperability
Other Details
Oracle Method
- Pyth Network announced (14-8-2024) that it has partnered with The Open Network (TON).
- RedStone (1-2024)
- Oracles are yet to be deployed (22-2-2023) according to an outside report.
Projects
"Pavel Durov—the messaging platform’s founder and CEO—announced that the company would begin building “non-custodial wallets” and “decentralized exchanges” that would let millions of users safely trade their crypto. The executive argued that the project should be more than feasible: the development of Fragment, Telegram’s decentralized auction platform, “took only 5 weeks and 5 people, including myself,” according to Durov. The marketplace, which launched last month, has already raked in $50 million worth of Toncoin by selling tokenized usernames on the blockchain." ==Roadmap==*New one here (1-2-2023):
- TON tokens bridge to ETH & BNB
- A universal DAO smart contract
- Proposes a mechanism for burning a portion of network commissions.\
- Decentralized Encrypted Messaging
- Support for EVM signature verification and other new TVM features.
Usage
- From Onchain Times (7-5-2024):
"After a long period of stagnation, TON’s TVL saw an explosive growth in late February 2024 to its current levels of ~157M. This was largely due to the confluence of two factors: 1) a Feb 28 announcement to launch a 50% revenue-share program for Telegram channels, of which payments and withdrawals will be exclusively transacted on TON in Toncoin and 2) the commencement of 30M Toncoin incentives."
- Telegram will be using TON for its Ad Platform (28-2-2024).
- From a First Stage Labs report (Q2 2023):
"The number of registered TON addresses increased by +23.6% over the last quarter. TON's market capitalization grew by +108.5% and the network's TVL also surged by 30.4%."
"Low on-chain activity that stays almost the same despite the 5x growth of addresses. It seems that TON attracts interest, but new addresses don’t have use cases for on-chain activity."
"In April 2022, TON announced that the Democratic Republic of the Congo, Cameroon and the Republic of the Congo were considering using TON to deploy products intended to bolster their economies."
Projects that use or built on it
- Can be found here (15-12-2022).
- Ston.fi; AMM, with around ~600k TVL (14-12-2022). Has 7 coins to swap.
- From Onchain Times (7-5-2024):
"TON dapps are listed in the “Telegram App Center”, an App Store of sorts. Hundreds of dapps already exist, but here are a few noteworthy ones:
- Tonstakers: Toncoin liquid staking with ~208M TVL and 3.6% APY. Toncoin has one of the highest liquid staking rates versus MATIC, AVAX, SOL
- STON.fi and DeDust: TON’s run-of-the-mill AMM DEXs
- Storm Trade: Perps DEX with ~9M TVL for pre-launch tokens and TradFi assets (soon)
- EVAA Protocol: Lending platform with 5.1M TVL
- Games: Notcoin is a notable mindless clicker game where users receive tokens but saw a staggering 3.5M DAUs. Tap Fantasy is another MMORPG that saw 600K players in Jan 2024.
- Getgems: Leading NFT marketplace
- Fragment: A marketplace to trade tokenized Telegram usernames"
Pros and Cons
Pros
- Theoretical huge on-chain scaling through sharding and workchains.
- Hard forks are done by having 75% of validators having to upgrade, not lazy consensus.
Cons
- Governance is opaque.
- No stats to really see blockchain data or governance voting (3-2023).
- There is a master key that the TON Foundation can use to upgrade some blockchain parameters (3-2023).
Competition
- "Your smart contract needs to pay rent and charge its users
- Calls between smart contracts are asynchronous and not atomic
- Smart contract code is not immutable and can easily be modified
- Wallets are contracts and one public key can have mutliple wallets deployed"
Team, Funding, Partners
Team
- From their primer (11-2021):
"Two developers known as Anatoliy Makosov and EmelyanenkoK initiated Newton open-source community aimed at further development and support of TON on the open source principles. Newton team, in turn, got renamed as TON Foundation. By now over 40 independent non-incorporated developers from various geographies work on the project as TON Foundation not-for-proft community funded by donations."
- TON Labs; The project’s ex core infrastructure developers
- Has TONcoin Fund, which invests in TON related projects (27-7-2022).
Funding
- The Open Network Ventures (@TON_Ventures), a new venture capital firm, has launched a $40 million fund to support early-stage crypto projects within TON ecosystem (14-8-2024).
- From Onchain Times (7-5-2024):
"Funds activity:
- Mirana Ventures acquired 8M Toncoins in March 2024
- Pantera Capital recently announced an investment in TON
- DWF Labs runs two TON validators and invested 10M in TON ecosystem
- Animoca is an investor in TON and also running one of its largest validators
- Yolo Investment invested 8M into TON"
- Animoca Brands is TON blockchain’s largest validator (30-11-2023) and will henceforth “provide funding, research, and an analytics platform.
- TON has raised an eight-figure investment from MEXC Ventures (4-10-2023).
- Had a 'strategic investment' from Mask Network (17-5-2023)
- Has (12-2022) a TONcoin Fund of $250M in partnership with Orbs, MEXC Global, Huobi Incubator, KuCoin Ventures, Cypher Capital, Kilo and the TON Alpha-Vista Incubation, which is a $90M ecosystem builder for The Open Network (TON), backed by VistaLabs and Alphanonce.
- Part of (9-3-2020) the portfolio of Arrington XRP Capital.
- Raised $90M for a new ecosystem fund continuing its recent attempts to get the Telegram-founded blockchain project back into gear (7-7-2022).
Partners
- Announced (4-5-2023) a partnership with Chainalysis in case of hacks and to help law enforcement.