Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.87 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.87 KB

Sol2TVM Compiler

Port of the Solidity smart-contract compiler generating TVM bytecode for TON blockchain. Please refer to upstream README.md for information on the language itself.

API documentation

API documentation is here

Build and Install

Original Instructions about how to build and install the Solidity compiler can be found in the Solidity documentation.

Ubuntu Linux

git clone git@github.com:tonlabs/TON-Solidity-Compiler.git
cd TON-Solidity-Compiler
sh ./compiler/scripts/install_deps.sh
mkdir build
cd build
cmake ../compiler/ -DCMAKE_BUILD_TYPE=Release
cmake --build . -- -j8

To facilitate work with other TON tools add path to stdlib_sol.tvm into environment variables:

sh ./compiler/scripts/install_lib_variable.sh

Windows 10

Install Visual Studio, Git bash, cmake. Run Visual Studio Developer Command Prompt

git clone https://github.com/tonlabs/TON-Solidity-Compiler
cd TON-Solidity-Compiler
cmake -P compiler\scripts\install_deps.cmake
mkdir build
cd build
cmake ..\compiler
cmake --build . --config Release -j 8

To facilitate work with other TON tools add path to stdlib_sol.tvm into environment variable TVM_LINKER_LIB_PATH.

Links

Sample are described here: https://github.com/tonlabs/samples/tree/master/solidity

TVM linker repository: https://github.com/tonlabs/TVM-linker

All other relevant binaries, if needed, can be found inside TON Labs Node SE distribution at https://ton.dev/.

Change log: Changelog_TON.md