Ton

0

Описание

Main TON monorepo

Языки

  • C++96,7%
  • CMake1,8%
  • Shell0,3%
  • Java0,2%
  • Python0,2%
  • PHP0,2%
  • Остальные0,6%
2 года назад
2 года назад
2 года назад
2 года назад
7 лет назад
3 года назад
2 года назад
2 года назад
6 лет назад
6 лет назад
7 лет назад
2 года назад
README.md
TON logo

Reference implementation of TON Node and tools


Ton Research Telegram Community Group Telegram Foundation Group Telegram Community Chat

Twitter Group TON Overflow Group Stack Overflow Group

Main TON monorepo, which includes the code of the node/validator, lite-client, tonlib, FunC compiler, etc.

The Open Network

The Open Network (TON) is a fast, secure, scalable blockchain focused on handling millions of transactions per second (TPS) with the goal of reaching hundreds of millions of blockchain users.

Updates flow

  • master branch - mainnet is running on this stable branch.

    Only emergency updates, urgent updates, or updates that do not affect the main codebase (GitHub workflows / docker images / documentation) are committed directly to this branch.

  • testnet branch - testnet is running on this branch. The branch contains a set of new updates. After testing, the testnet branch is merged into the master branch and then a new set of updates is added to testnet branch.

  • backlog - other branches that are candidates to getting into the testnet branch in the next iteration.

Usually, the response to your pull request will indicate which section it falls into.

"Soft" Pull Request rules

  • Thou shall not merge your own PRs, at least one person should review the PR and merge it (4-eyes rule)
  • Thou shall make sure that workflows are cleanly completed for your PR before considering merge

Build TON blockchain

Ubuntu 20.4, 22.04 (x86-64, aarch64)

Install additional system libraries

Compile TON binaries

MacOS 11, 12 (x86-64, aarch64)

Windows 10, 11, Server (x86-64)

You need to install

MS Visual Studio 2022
first. Go to https://www.visualstudio.com/downloads/ and download
MS Visual Studio 2022 Community
.

Launch installer and select

Desktop development with C++
. After installation, also make sure that
cmake
is globally available by adding
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin
to the system
PATH
(adjust the path per your needs).

Open an elevated (Run as Administrator)

x86-64 Native Tools Command Prompt for VS 2022
, go to the root folder and execute:

Building TON to WebAssembly

Install additional system libraries on Ubuntu

Compile TON binaries with emscripten

Building TON tonlib library for Android (arm64-v8a, armeabi-v7a, x86, x86-64)

Install additional system libraries on Ubuntu

Compile TON tonlib library

Build TON portable binaries with Nix package manager

You need to install Nix first.

Then compile TON with Nix by executing below command from the root folder:

More examples for other platforms can be found under

assembly/nix
.

Running tests

Tests are executed by running

ctest
in the build directory. See
doc/Tests.md
for more information.