Skip to content

Commit 6829d25

Browse files
a-bahdanaurevelopergithub-actions[bot]TonSquareomahs
authored
* New translations principles-of-a-good-tutorial.md (Korean) * New translations sample-tutorial.md (Korean) * New translations readme.md (Korean) * New translations contribution-rules.md (Korean) * New translations maintainers.md (Korean) * New translations participate.md (Korean) * New translations mining.md (Korean) * fix typos * fix typo * fix typo * fix typos * fix typo * fix typos * fix typos * fix typo * fix typo * fix typo * fix typo * fix typos * fix typo * update dropdown menu * fix import * add translation of sidebar * New translations overview.md (Chinese Simplified) * New translations how-it-works.md (Chinese Simplified) * New translations how-to-contribute.md (Chinese Simplified) * New translations how-it-works.md (Chinese Simplified) * New translations how-to-contribute.md (Chinese Simplified) * remove content * New translations overview.md (Chinese Simplified) * New translations translation-style-guide.md (Chinese Simplified) * Mandarin localization (#63) * New translations cell-boc.mdx (Chinese Simplified) * New translations as-contributor.md (Korean) * New translations as-maintainer.md (Korean) * New translations readme.mdx (Korean) * New translations guidelines.md (Korean) * New translations schemes-guidelines.mdx (Korean) * New translations guidelines.md (Korean) * New translations guidelines.md (Japanese) * New translations principles-of-a-good-tutorial.md (Korean) * New translations sample-tutorial.md (Korean) * New translations readme.md (Korean) * New translations contribution-rules.md (Korean) * New translations maintainers.md (Korean) * New translations participate.md (Korean) * New translations mining.md (Korean) * remove engines * update dropdown menu * fix import * add translation of sidebar --------- Co-authored-by: TonSquare <147710825+TonSquare@users.noreply.github.com> * New translations how-it-works.md (Chinese Simplified) * New translations how-to-contribute.md (Chinese Simplified) * format fix * Update to mytonctrl2 links in FullNode * Add tip on how to use testnet config in Full Node * Add tip about status fast in testnet * Refactor * Add link for testnet dump for archive node * update default lang array * New translations pow-givers.md (Korean) * New translations sharding-lifecycle.mdx (Korean) * fix header (ton-community#68) * fix translation header * Fix number of outgoing messages * Remove duplicated * Add tlb-parsers.md & Add tlb-codegen & fix link * Separate parsers and tl-b generator * add backend example for ton proof * New translations send-transactions-from-highload.md (Chinese Simplified) * New translations shards.mdx (Korean) * New translations auditors.mdx (Korean) * New translations outsource.mdx (Korean) * New translations adnl.md (Korean) * New translations getblock-ton-api.md (Korean) * New translations overview.md (Chinese Simplified) * New translations how-to-contribute.md (Chinese Simplified) * cut_warining * Stepik corrections Added RU and CHN links as well as replaced EN -> CHN in CHN pages * Update academy-overview.md * Add AWS instance description * ecosystem_messages_layout_init * ecosystem_messages_layuot_2 Correction sidebars,js * ecosystem-messages-layout_3 Scheme files added * ecosystem-messages-layout_4 Cookbook update * chrore: add info about gasless transactions * Add information about node setup timings * Revert "ecosystem-messages-layout_4" This reverts commit c33a788. * ecosystem_messages_layout_4 Cookbook Update according new schemes * cookbook_schemes_update Added dark scheme * Cookbook_update Deleting old scheme * Cookbook_update_3 Deleting old schemes * Update jetton_transfer_dark.svg * Fix non latin symbol * Scheme_Visio_added * Update archive-node.md update archive node requirements * Update enable-liteserver-node.md update liteserver requirements * sidebar_fix * Delete public proxy and C++ compile page - participate/web3/sites-and-proxy - public proxy * Delete public proxy and C++ instruction - participate/web3/sites-and-proxy - public proxy amend * Revert "Delete public proxy and C++ instruction" This reverts commit 4adc61a. * tons_sites_for_apps_page_added * Updated after review * cut_jetton_text Cut the jetton - as Standard operation text from the Cookbook. * Update how-to-run-ton-site.md * Update how-to-run-ton-site.md * Revert wallet.md typo fix * Add error of wrong user usage for nodes * docs(cookbook): update Go address parsing example * feat: ton connect tg bot integration archived * Update single-nominator.mdx (ton-community#710) * Update single-nominator.mdx (ton-community#711) * collectiong_minging_fix Transfer fixes from PR, which got stuck because of merge conflicts. https://github.com/ton-community/ton-docs/pull/664/files * 🐛 Fix link in doc (ton-community#685) * Add some explanation for effective stake (ton-community#687) Co-authored-by: Full-Hat <nikita3131228@gmail.com> * feat: Add tonconnect vue sdk link (ton-community#688) * add tonconnect vue sdk link * fix typo --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: infinityspectra <149141428+infinityspectra@users.noreply.github.com> * feat: upd wallets switch testnet info (ton-community#694) Co-authored-by: igor <i.verhusha@pixelplex.io> * Add Error parsing dependencies to troubleshooting (ton-community#695) Co-authored-by: Full-Hat <nikita3131228@gmail.com> Co-authored-by: AlexG <39581753+reveloper@users.noreply.github.com> * Fix typo in mode 0 of send_raw_message (ton-community#699) This is a non-trivial typo as developer most likely refer to mode 0 to understand how token transfer works * Update how-to-run-ton-site.md (ton-community#700) * update ton connect docs, add video (ton-community#701) Co-authored-by: Aliaksandr Bahdanau <a.bahdanau@pixelplex.io> * Update cookbook.md date->data (ton-community#703) * Update messages.md (ton-community#706) Fixed Send a regular message * fix_node_troubleshooting added lost snippet related to Version problem * update troubleshooting (ton-community#712) * update_ton_connect_button * remove mytonctrl2 branch mentions (ton-community#714) * Scheme update 2 (ton-community#707) * Ecosystem_schemes_layout_5 Try to change font replacement * Ecosystem_scheme_png_update * Ecosystem_sheme_png_2 * Update nodes-troubleshooting.md * SAP list update SAP list updated according current status of auditors on Ecosystem. * added contributors wall * single-nominator-fix * wallet-guidelines-cut-oudated-link * Added info run docker (ton-community#611) * add info run in docker * change docker repository mytonctrl * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Update docs/participate/run-nodes/run-docker.md Co-authored-by: Dr. Awesome Doge <doge@ton.org> --------- Co-authored-by: Sergey Andreev <s.andreev@pixelplex.io> Co-authored-by: AlexG <39581753+reveloper@users.noreply.github.com> Co-authored-by: Dr. Awesome Doge <doge@ton.org> * Fixed code for selling nft on getgems (ton-community#691) * fixed code for selling nft on getgems * fix first mistake with nanoTon * added suggestions that tokens come in different decimals --------- Co-authored-by: vityooook <vityooook@gmail.com> * feat: add high-load wallet v3 to wallet tutorial (ton-community#715) * Update difference-of-blockchains.md (ton-community#716) The previous link is broken, fix with ton.org pdf * Add transaction and messages hashes examples (ton-community#718) Co-authored-by: Aliaksandr Bahdanau <a.bahdanau@pixelplex.io> * Added message modes cookbook (ton-community#724) Co-authored-by: Vladislav Kokosh <v.kokosh@pixelplex.io> * Update data about archive node sync timings (ton-community#720) Co-authored-by: Full-Hat <nikita3131228@gmail.com> * add Japanese content document translation (ton-community#743) * Transaction outcome description (ton-community#708) * Transaction outcome Definition of success and some TVM details. * Upd transaction outcome * Update message-delivery-guarantees.mdx * Update tvm-overview.mdx * Update auditors.mdx * Additional changes to Msg & Tx page (ton-community#744) * Transaction outcome Definition of success and some TVM details. * Upd transaction outcome * Update message-delivery-guarantees.mdx * Update tvm-overview.mdx * Update message-delivery-guarantees.mdx * Added an example of how to send a transaction with Wallet V5 (ton-community#721) Co-authored-by: Vladislav Kokosh <v.kokosh@pixelplex.io> * Added actual link to wallet v5 (ton-community#725) Co-authored-by: Vladislav Kokosh <v.kokosh@pixelplex.io> * feat: upd mytonwallet switch testnet info (ton-community#726) Co-authored-by: igor <i.verhusha@pixelplex.io> * fix bridge.ton.org link (ton-community#727) and open external links in new page * Add status output explanation (ton-community#728) Co-authored-by: Full-Hat <nikita3131228@gmail.com> Co-authored-by: Full-Hat <68519677+Full-Hat@users.noreply.github.com> * Add information about api keys (ton-community#730) Co-authored-by: Full-Hat <nikita3131228@gmail.com> * supplement Korean translation (ton-community#731) Co-authored-by: lotteam003 <lotteam003@proton.me> * Adding Tatum under RPC Nodes provider (ton-community#745) Adding Tatum under RPC Nodes provider as Tatum provides TON RPC Nodes and whole infrastructure to run Web3 Apps. * Fix for buttons at academy page (ton-community#747) * Transaction outcome Definition of success and some TVM details. * Upd transaction outcome * Update message-delivery-guarantees.mdx * Update tvm-overview.mdx * Update message-delivery-guarantees.mdx * Update academy-overview.md Button * add i18n ja translation (ton-community#732) Co-authored-by: lotteam003 <lotteam003@proton.me> * Mytonctrl installer (ton-community#733) * Add information about disabling storing archive blocks * Add explanation to mytonctrl installer section --------- Co-authored-by: Full-Hat <nikita3131228@gmail.com> * Add information about configs (ton-community#734) Co-authored-by: Full-Hat <nikita3131228@gmail.com> * change link to tonapi rates documentarion (ton-community#735) * Examples (ton-community#736) * Update examples & add -t flag explanation * Complete examples --------- Co-authored-by: Full-Hat <nikita3131228@gmail.com> * Fix footer & add guideline (ton-community#739) * fix & udpate footer * update guides * complete add footer guide * update branch doc * specify function --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * improve transaction processing (ton-community#741) Co-authored-by: Aliaksandr Bahdanau <a.bahdanau@pixelplex.io> * Add vue section (ton-community#738) * add vue section * cut numbers from header --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Add testnet.dton.io (ton-community#750) * Add tonpy to TLB parsers and codegen (ton-community#749) * fix jetton sample (ton-community#742) ton-community#637 Co-authored-by: Aliaksandr Bahdanau <a.bahdanau@pixelplex.io> * remove numbers (ton-community#751) * Update node-types.md (ton-community#748) * Added tonutils SDK to the Python SDKs section (ton-community#740) * update_bridge_example_link * Add -c flag explanation in liteserver test node (ton-community#670) * Add -c flag explanation in liteserver test node * Update links to mytonctrl master * Update examples & add -t flag explanation * Add -c flag explanation in liteserver test node * Update links to mytonctrl master --------- Co-authored-by: Full-Hat <nikita3131228@gmail.com> * Add .NET ton_proof demo (ton-community#723) * Add information about api keys (ton-community#729) * Add information about api keys * Remove info about tariffs --------- Co-authored-by: Full-Hat <nikita3131228@gmail.com> * added translation (ton-community#752) * Update analysis link (ton-community#674) * Update analysis link * Fix link * Add eth 2.0 info * Remove Eth 1.0 & update ton name --------- Co-authored-by: Full-Hat <nikita3131228@gmail.com> * node-commands_added * Fixed cases with 16 flag in modes cookbook (ton-community#754) Co-authored-by: Vladislav Kokosh <v.kokosh@pixelplex.io> * Docu update on MacOS installation and docker image with MyTonCtrl 2.0 (ton-community#755) * update ton installation on MacOS * update docker with MyTonCtrl 2.0 docu --------- Co-authored-by: neodiX <neodix42@ton.org> * cut-ecosystem-sap * Update governance.md * lite-client-naming * Update sign.mdx (ton-community#760) added convenient check if proof valid * nodes_documentation_fine_update (ton-community#762) * nodes_documentation_fine_update * added_wallet_deployment_for_each_shard * added_mintless_jettons * beauty_fixes * beauty_fixes_2 * build_fix * fix_node_reqierements * node_reqierement_fix.mdx * fix_node_reqierements_2 * fix_node_reqierements_3 * wallet_v5_caution_cut * feat: clarified jetton errors information (ton-community#771) Co-authored-by: Aliaksandr Bahdanau <a.bahdanau@pixelplex.io> * Add Chainstack as node & indexer provider (ton-community#774) * Update_node_reqierements * feat: add nodes video (ton-community#779) * Fix transfer example for V5R1 wallet (ton-community#778) https://github.com/ton-blockchain/wallet-contract-v5/blob/88557ebc33047a95207f6e47ac8aadb102dff744/contracts/wallet_v5.fc#L82 Transfer will fail without IGNORE_ERRORS flag with 137 exit code * feat: add examples with assets sdk for message builders (ton-community#667) * feat: add examples with assets sdk for message builders * improve assets-sdk examples * add info about Jetton and NFT Contracts * feat: add cells information --------- Co-authored-by: “mlikhar” <m.likhtar@pixelplex.io> Co-authored-by: Aliaksandr Bahdanau <a.bahdanau@pixelplex.io> * Add OP Codes to the docs (ton-community#763) * Transaction outcome Definition of success and some TVM details. * Upd transaction outcome * Update message-delivery-guarantees.mdx * Update tvm-overview.mdx * Update message-delivery-guarantees.mdx * Update academy-overview.md Button * op code update Added known op codes * Update contracts.md * Update contracts.md * Added DEX opcodes StonFi&DeDust * Update contracts.md * add secure guidelines for nodes (ton-community#766) Co-authored-by: AlexG <39581753+reveloper@users.noreply.github.com> * feat: update Prism.js definitions of Tact and FunC for syntax highlighting (ton-community#768) * feat(prism): update Tact from 1.2.0 to 1.5.0 * feat(prism): update and enhance FunC from 0.2.0 to 0.4.4 * Check ef (ton-community#773) * check_ef description * update check_ef description & update status info * update check_ef description (add links to configs) * update check_ef description (fix typos) --------- Co-authored-by: Full-Hat <nikita3131228@gmail.com> * Minor corrections (ton-community#780) * Transaction outcome Definition of success and some TVM details. * Upd transaction outcome * Update message-delivery-guarantees.mdx * Update tvm-overview.mdx * Update message-delivery-guarantees.mdx * Update academy-overview.md Button * op code update Added known op codes * Update contracts.md * Update contracts.md * Added DEX opcodes StonFi&DeDust * Update contracts.md * Add serokell * Refatored page about node types (ton-community#769) * Update cookbook.md (ton-community#777) Fixed * React doc wrappers (ton-community#673) * improve react doc * chore: add wrappers examples for react doc * add more info about react * add info about contract deploy * remove protocol pages from doc, improve react doc --------- Co-authored-by: “mlikhar” <m.likhtar@pixelplex.io> Co-authored-by: Aliaksandr Bahdanau <a.bahdanau@pixelplex.io> * Update custom-overlays.md * shard-optimization-guidelines-added * fix_address_format.mdx * rework documentation with guidelines in first iterartion * feat: update docusaurus version * feat: divide sidebars * feat: divide sidebars * add husky and cspell for grammar check * fix docs/develop/howto/step-by-step.mdx * fix some spelling * fix: fix husky * feat: reorganize learn sidebar * nodes section renewal * refactor TON Node Command-Line Flags * feat: extract navbar * feat: update navbar * aws_node_req_update.mdx * Update full-node.mdx * Update full-node.mdx * feat: add contribute link * add redirect script * Add smart contracts specs (#6) * refactor wallets page * fix highload ref --------- Co-authored-by: Gleb Karavatski <g.karavatski@pixelplex.io> * feat: improve difference in the naming * feat: improve concepts * feat: remove web3 from upper bar * feat: move wallets * feat: rename mytonctrl * feat: add guidelines * feat: fix assets * fix: fix move script --------- Co-authored-by: AlexG <39581753+reveloper@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: TonSquare <147710825+TonSquare@users.noreply.github.com> Co-authored-by: omahs <73983677+omahs@users.noreply.github.com> Co-authored-by: sansx <646924078@qq.com> Co-authored-by: sansx <xiathxth@gmail.com> Co-authored-by: Full-Hat <nikita3131228@gmail.com> Co-authored-by: “mlikhar” <m.likhtar@pixelplex.io> Co-authored-by: Antonoff <35700168+memearchivarius@users.noreply.github.com> Co-authored-by: p.nazarychev <pavel.nazarychev@copper.co> Co-authored-by: Airam G <169088121+AiramGol@users.noreply.github.com> Co-authored-by: Vladislav Kokosh <v.kokosh@pixelplex.io> Co-authored-by: Oleg Baranov <xssnick8@gmail.com> Co-authored-by: Anthony Tsivarev <tsivarev.a@gmail.com> Co-authored-by: 70sh1 <70sh1@proton.me> Co-authored-by: igor <i.verhusha@pixelplex.io> Co-authored-by: Maksim Kurbatov <94808996+yungwine@users.noreply.github.com> Co-authored-by: Ginta <775650117@qq.com> Co-authored-by: PixelPlex Dev team <10460630+pixelplex@users.noreply.github.com> Co-authored-by: infinityspectra <149141428+infinityspectra@users.noreply.github.com> Co-authored-by: NakeyJakey <jimip6c12@gmail.com> Co-authored-by: Devin <studyzy@gmail.com> Co-authored-by: Duginets Nikita <duginetsn98@gmail.com> Co-authored-by: Roman <krutovoyroman@gmail.com> Co-authored-by: Sergey Andreev <s.andreev@pixelplex.io> Co-authored-by: Dr. Awesome Doge <doge@ton.org> Co-authored-by: Victor <129557549+vityooook@users.noreply.github.com> Co-authored-by: vityooook <vityooook@gmail.com> Co-authored-by: aSpite <45543119+aSpite@users.noreply.github.com> Co-authored-by: zhangchitc <95238503+zhangchitc@users.noreply.github.com> Co-authored-by: SilentPine <SilentPine@proton.me> Co-authored-by: spookyahell <9724215+spookyahell@users.noreply.github.com> Co-authored-by: Full-Hat <68519677+Full-Hat@users.noreply.github.com> Co-authored-by: lotteam003 <Kafkaesqt@proton.me> Co-authored-by: lotteam003 <lotteam003@proton.me> Co-authored-by: blockchaingirl1407 <142514003+blockchaingirl1407@users.noreply.github.com> Co-authored-by: Moiseev Ilya <ilya@mois.pro> Co-authored-by: Andrey Tvorozhkov <tvorog@tvorog.me> Co-authored-by: Artem <79601745+Sovenok-Hacker@users.noreply.github.com> Co-authored-by: Shon Ness <78713403+nessshon@users.noreply.github.com> Co-authored-by: Alexander <Seviant88@gmail.com> Co-authored-by: StarryHazex <StarryHaze@proton.me> Co-authored-by: neodix42 <namlem@gmail.com> Co-authored-by: neodiX <neodix42@ton.org> Co-authored-by: EmelyanenkoK <emelyanenko.kirill@gmail.com> Co-authored-by: JeanClaude (JC) <Jeanclaude.aoun@hotmail.com> Co-authored-by: Ake <10195782+akegaviar@users.noreply.github.com> Co-authored-by: Max Voloshinskii <me@voloshinskii.com> Co-authored-by: Novus Nota <68142933+novusnota@users.noreply.github.com> Co-authored-by: Pavel Nazarychev <73617204+fmira21@users.noreply.github.com> Co-authored-by: yycceth <zhichunqi93@gmail.com> Co-authored-by: Gleb Karavatski <g.karavatski@pixelplex.io> Co-authored-by: Karavatski Gleb <gleb498@yandex.ru>
1 parent 5cd2d15 commit 6829d25

File tree

21 files changed

+428
-202
lines changed

21 files changed

+428
-202
lines changed

docs/develop/network/overlay.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Overlay subnetworks
22

3+
Implementation:
4+
* https://github.com/ton-blockchain/ton/tree/master/overlay
5+
6+
## Overview
7+
38
The architecture of TON is built in such a way that a lot of chains can exist simultaneously and independently in it - they can be both private or public.
49
Nodes have the ability to choose which shards and chains they store and process.
510
At the same time, the communication protocol remains unchanged due to its universality. Protocols such as DHT, RLDP and Overlays allow this to be achieved.
@@ -11,6 +16,21 @@ All chains in TON, including the masterchain, communicate using their own overla
1116
To join it, you need to find the nodes that are already in it, and start exchanging data with them.
1217
For the public overlays you can find nodes using DHT.
1318

19+
## ADNL vs Overlay networks
20+
21+
In contrast to ADNL, the TON overlay networks usually do not support
22+
sending datagrams to other arbitrary nodes. Instead, some “semi-permanent
23+
links” are established between certain nodes (called “neighbors” with respect to
24+
the overlay network under consideration) and messages are usually forwarded
25+
along these links (i.e. from a node to one of its neighbors).
26+
27+
Each overlay subnetwork has a 256-bit network identifier usually equal
28+
to a SHA256 of the description of the overlay network—a TL-serialized object.
29+
30+
Overlay subnetworks can be public or private.
31+
32+
Overlay subnetworks work according to a special [gossip](https://en.wikipedia.org/wiki/Gossip_protocol) protocol.
33+
1434
## Interaction with overlay nodes
1535

1636
We have already analyzed an example with finding overlay nodes in an article about DHT,
@@ -70,4 +90,4 @@ Thus, we can receive information directly from the nodes.
7090

7191
## References
7292

73-
_Here a [link to the original article](https://github.com/xssnick/ton-deep-doc/blob/master/Overlay-Network.md) by [Oleg Baranov](https://github.com/xssnick)._
93+
_Here a [link to the original article](https://github.com/xssnick/ton-deep-doc/blob/master/Overlay-Network.md) by [Oleg Baranov](https://github.com/xssnick)._

docs/develop/network/rldp.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# RLDP
22

3+
Implementation:
4+
* https://github.com/ton-blockchain/ton/tree/master/rldp
5+
* https://github.com/ton-blockchain/ton/tree/master/rldp2
6+
* https://github.com/ton-blockchain/ton/tree/master/rldp-http-proxy
7+
8+
## Overview
9+
310
RLDP - Reliable Large Datagram Protocol - is a protocol that runs on top of ADNL UDP, which is used to transfer large data blocks and
411
includes Forward Error Correction (FEC) algorithms as a replacement of acknowledgment packets on the other side.
512
This makes it possible to transfer data between network components more efficiently, but with more traffic consumption.
@@ -179,4 +186,4 @@ If `last` = true, then we have reached the end, we can put all the pieces togeth
179186

180187
## References
181188

182-
_Here a [link to the original article](https://github.com/xssnick/ton-deep-doc/blob/master/RLDP.md) by [Oleg Baranov](https://github.com/xssnick)._
189+
_Here a [link to the original article](https://github.com/xssnick/ton-deep-doc/blob/master/RLDP.md) by [Oleg Baranov](https://github.com/xssnick)._

docs/develop/smart-contracts/tutorials/wallet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,7 @@ When working with many messages in a short period, there is a need for special w
21052105

21062106
:::note
21072107
We will work [with a slightly modified version of Wrapper](https://github.com/aSpite/highload-wallet-contract-v3/blob/main/wrappers/HighloadWalletV3.ts) for the contract, as it protects against some non-obvious mistakes.
2108-
:::note
2108+
:::
21092109

21102110

21112111
### Storage Structure

docs/learn/networking/overlay-subnetworks.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

docs/learn/networking/overview.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ The TON Project uses its own peer-to-peer network protocols.
1919
blockchain itself, thus providing more possibilities and flexibility for creating
2020
new services in the TON Ecosystem.
2121

22+
## See Also
23+
24+
* [ADNL Protocol](/learn/networking/adnl)
25+
* [Overlay Subnetworks](/learn/networking/overlay-subnetworks)
26+
* [RLDP Protocol](/learn/networking/rldp)
27+
* [TON DHT Service](/learn/networking/ton-dht)

docs/learn/networking/rldp.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/learn/overviews/addresses.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Smart Contract Addresses
1+
# Smart Contract Addresses Documentation
22

33
This section will describe the specifics of smart contract addresses on TON Blockchain. It will also explain how actors are synonymous with smart contracts on TON.
44

docs/participate/wallets/apps.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Player from '@site/src/components/player'
22

3-
# Wallet Apps (for Devs)
3+
# Wallet Apps
44

55
## Overview
66

docs/participate/wallets/contracts.md

Lines changed: 2 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -101,64 +101,9 @@ Sometimes the functionality of basic wallets isn't enough. That's why there are
101101

102102
Let's have a look at them.
103103

104-
### Highload Wallet v3
104+
### Highload Wallets
105105

106-
This wallet is made for who need to send transactions at very high rates. For example, crypto exchanges.
107-
108-
- [Source code](https://github.com/ton-blockchain/highload-wallet-contract-v3)
109-
110-
Any given external message (transfer request) to a highload v3 contains:
111-
- a signature (512 bits) in the top level cell - the other parameters are in the ref of that cell
112-
- subwallet ID (32 bits)
113-
- message to send as a ref (the serialized internal message that will be sent)
114-
- send mode for the message (8 bits)
115-
- composite query ID - 13 bits of "shift" and 10 bits of "bit number", however the 10 bits of bit number can only go up to 1022, not 1023, and also the last such usable query ID (8388605) is reserved for emergencies and should not be normally used
116-
- created at, or message timestamp
117-
- timeout
118-
119-
Timeout is stored in highload as a parameter and is checked against the timeout in all requests - so the timeout for all requests is equal. The message should be not older than timeout at the time of arrival to the highload wallet, or in code it is required that `created_at > now() - timeout`. Query IDs are stored for the purposes of replay protection for at least timeout and possibly up to 2 * timeout, however one should not expect them to be stored for longer than timeout. Subwallet ID is checked against the one stored in the wallet. Inner ref's hash is checked along with the signature against the public key of the wallet.
120-
121-
Highload v3 can only send 1 message from any given external message, however it can send that message to itself with a special op code, allowing one to set any action cell on that internal message invocation, effectively making it possible to send up to 254 messages per 1 external message (possibly more if another message is sent to highload wallet again among these 254).
122-
123-
Highload v3 will always store the query ID (replay protection) once all the checks pass, however a message may not be sent due to some conditions, including but not limited to:
124-
- **containing state init** (such messages, if required, may be sent using the special op code to set the action cell after an internal message from highload wallet to itself)
125-
- not enough balance
126-
- invalid message structure (that includes external out messages - only internal messages may be sent straight from the external message)
127-
128-
Highload v3 will never execute multiple externals containing the same `query_id` **and** `created_at` - by the time it forgets any given `query_id`, the `created_at` condition will prevent such a message from executing. This effectively makes `query_id` **and** `created_at` together the "primary key" of a transfer request for highload v3.
129-
130-
When iterating (incrementing) query ID, it is cheaper (in terms of TON spent on fees) to iterate through bit number first, and then the shift, like when incrementing a regular number. After you've reached the last query ID (remember about the emergency query ID - see above), you can reset query ID to 0, but if highload's timeout period has not passed yet, then the replay protection dictionary will be full and you will have to wait for the timeout period to pass.
131-
132-
133-
### Highload wallet v2
134-
135-
:::danger
136-
Legacy contract, it is suggest to use High-load wallet v3.
137-
:::
138-
139-
This wallet is made for those who need to send hundreds of transactions in a short period of time. For example, crypto exchanges.
140-
141-
It allows you to send up to `254` transactions in one smart contract call. It also uses a slightly different approach to solve replay attacks instead of seqno, so you can call this wallet several times at once to send even thousands of transactions in a second.
142-
143-
:::caution Limitations
144-
Note, when dealing with highload-wallet the following limits need to be checked and taken into account.
145-
:::
146-
147-
1. **Storage size limit.** Currently, size of contract storage should be less than 65535 cells. If size of
148-
old_queries will grow above this limit, exception in ActionPhase will be thrown and transaction will fail.
149-
Failed transaction may be replayed.
150-
2. **Gas limit.** Currently, gas limit is 1'000'000 GAS units, that means that there is a limit of how much
151-
old queries may be cleaned in one tx. If number of expired queries will be higher, contract will stuck.
152-
153-
That means that it is not recommended to set too high expiration date:
154-
number of queries during expiration time span should not exceed 1000.
155-
156-
Also, number of expired queries cleaned in one transaction should be below 100.
157-
158-
159-
160-
Wallet source code:
161-
* [ton/crypto/smartcont/highload-wallet-v2-code.fc](https://github.com/ton-blockchain/ton/blob/master/crypto/smartcont/highload-wallet-v2-code.fc)
106+
When working with many messages in a short period, there is a need for special wallet called Highload Wallet. Read [the article](/participate/wallets/highload) for more information.
162107

163108
### Lockup wallet
164109

docs/participate/wallets/highload.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Highload Wallet
2+
3+
When working with many messages in a short period, there is a need for special wallet called Highload Wallet. Highload Wallet V2 was the main wallet on TON for a long time, but you had to be very careful with it. Otherwise, you could [lock all funds](https://t.me/tonstatus/88).
4+
5+
[With the advent of Highload Wallet V3](https://github.com/ton-blockchain/Highload-wallet-contract-v3), this problem has been solved at the contract architecture level and consumes less gas. This chapter will cover the basics of Highload Wallet V3 and important nuances to remember.
6+
7+
## Highload Wallet v3
8+
9+
This wallet is made for who need to send transactions at very high rates. For example, crypto exchanges.
10+
11+
- [Source code](https://github.com/ton-blockchain/Highload-wallet-contract-v3)
12+
13+
Any given external message (transfer request) to a Highload v3 contains:
14+
- a signature (512 bits) in the top level cell - the other parameters are in the ref of that cell
15+
- subwallet ID (32 bits)
16+
- message to send as a ref (the serialized internal message that will be sent)
17+
- send mode for the message (8 bits)
18+
- composite query ID - 13 bits of "shift" and 10 bits of "bit number", however the 10 bits of bit number can only go up to 1022, not 1023, and also the last such usable query ID (8388605) is reserved for emergencies and should not be normally used
19+
- created at, or message timestamp
20+
- timeout
21+
22+
Timeout is stored in Highload as a parameter and is checked against the timeout in all requests - so the timeout for all requests is equal. The message should be not older than timeout at the time of arrival to the Highload wallet, or in code it is required that `created_at > now() - timeout`. Query IDs are stored for the purposes of replay protection for at least timeout and possibly up to 2 * timeout, however one should not expect them to be stored for longer than timeout. Subwallet ID is checked against the one stored in the wallet. Inner ref's hash is checked along with the signature against the public key of the wallet.
23+
24+
Highload v3 can only send 1 message from any given external message, however it can send that message to itself with a special op code, allowing one to set any action cell on that internal message invocation, effectively making it possible to send up to 254 messages per 1 external message (possibly more if another message is sent to Highload wallet again among these 254).
25+
26+
Highload v3 will always store the query ID (replay protection) once all the checks pass, however a message may not be sent due to some conditions, including but not limited to:
27+
- **containing state init** (such messages, if required, may be sent using the special op code to set the action cell after an internal message from Highload wallet to itself)
28+
- not enough balance
29+
- invalid message structure (that includes external out messages - only internal messages may be sent straight from the external message)
30+
31+
Highload v3 will never execute multiple externals containing the same `query_id` **and** `created_at` - by the time it forgets any given `query_id`, the `created_at` condition will prevent such a message from executing. This effectively makes `query_id` **and** `created_at` together the "primary key" of a transfer request for Highload v3.
32+
33+
When iterating (incrementing) query ID, it is cheaper (in terms of TON spent on fees) to iterate through bit number first, and then the shift, like when incrementing a regular number. After you've reached the last query ID (remember about the emergency query ID - see above), you can reset query ID to 0, but if Highload's timeout period has not passed yet, then the replay protection dictionary will be full and you will have to wait for the timeout period to pass.
34+
35+
36+
## Highload wallet v2
37+
38+
:::danger
39+
Legacy contract, it is suggest to use Highload wallet v3.
40+
:::
41+
42+
This wallet is made for those who need to send hundreds of transactions in a short period of time. For example, crypto exchanges.
43+
44+
It allows you to send up to `254` transactions in one smart contract call. It also uses a slightly different approach to solve replay attacks instead of seqno, so you can call this wallet several times at once to send even thousands of transactions in a second.
45+
46+
:::caution Limitations
47+
Note, when dealing with Highload wallet the following limits need to be checked and taken into account.
48+
:::
49+
50+
1. **Storage size limit.** Currently, size of contract storage should be less than 65535 cells. If size of
51+
old_queries will grow above this limit, exception in ActionPhase will be thrown and transaction will fail.
52+
Failed transaction may be replayed.
53+
2. **Gas limit.** Currently, gas limit is 1'000'000 GAS units, that means that there is a limit of how much
54+
old queries may be cleaned in one tx. If number of expired queries will be higher, contract will stuck.
55+
56+
That means that it is not recommended to set too high expiration date:
57+
number of queries during expiration time span should not exceed 1000.
58+
59+
Also, number of expired queries cleaned in one transaction should be below 100.
60+
61+
62+
63+
Wallet source code:
64+
* [ton/crypto/smartcont/Highload-wallet-v2-code.fc](https://github.com/ton-blockchain/ton/blob/master/crypto/smartcont/Highload-wallet-v2-code.fc)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Overview: Sharding and Split Merge in the TON Blockchain
2+
3+
[//]: # (TODO, this is from gpt)
4+
5+
The TON Blockchain employs advanced sharding mechanisms to enhance scalability and performance, allowing it to efficiently process a massive number of transactions.
6+
The core concept is splitting the blockchain into smaller, independent pieces called **shards**. These shards can handle transactions in parallel, ensuring high throughput even as the network grows.
7+
8+
In TON, sharding is highly dynamic. Unlike other blockchains, which have a fixed number of shards, TON can create new shards on demand.
9+
As the transaction load increases, shards split, and as the load decreases, they merge.
10+
This flexibility ensures that the system can adapt to varying workloads while maintaining efficiency.
11+
12+
The **Masterchain** plays a crucial role, maintaining the network configuration and the final state of all **workchains** and **shardchains**.
13+
While the masterchain is responsible for overall coordination, **workchains** operate under their specific rules, each of which can be split further into shardchains.
14+
Currently, only one workchain (the **Basechain**) operates on TON.
15+
16+
At the heart of TON's efficiency is the **Infinity Sharding Paradigm**, which treats each account as part of its own "accountchain."
17+
These accountchains are then aggregated into shardchain blocks, facilitating efficient transaction processing.
18+
19+
In addition to the dynamic creation of shards, TON uses **Split Merge** functionality, which allows the network to efficiently respond to changing transaction loads. This system enhances scalability and interaction within the blockchain network, exemplifying TON's approach to resolving common blockchain challenges with a focus on efficiency and global consistency.
20+
21+
22+
## See Also
23+
24+
* [Shards Dive In](/develop/blockchain/shards)
25+
* [# Infinity Sharding Paradigm](/develop/blockchain/sharding-lifecycle)

0 commit comments

Comments
 (0)