logvik / TON-Solidity-Compiler

Solidity compiler for Free TON Virtual Machine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

TON Solidity API reference

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

Make other TON toolchain utilities aware of the language runtime library location via an environment variable: specify path to stdlib_sol.tvm.

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

Code samples in Solidity for TON can be found there: https://github.com/tonlabs/samples/tree/master/solidity

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

TON OS command line tool: https://github.com/tonlabs/tonos-cli

Example of usage TON OS for working (deploying, calling and etc.) with TON blockchain can be found there: Write smart contract in Solidity

Change log: Changelog_TON.md

About

Solidity compiler for Free TON Virtual Machine

License:GNU General Public License v3.0


Languages

Language:C++ 68.5%Language:Solidity 25.8%Language:Shell 2.1%Language:C 1.2%Language:CMake 1.1%Language:Python 0.8%Language:Batchfile 0.2%Language:Makefile 0.1%Language:JavaScript 0.1%Language:Dockerfile 0.0%