Skip to content

broxus/TVM-Solidity-Compiler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

226 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The TVM Solidity compiler

Port of the Solidity smart-contract compiler generating TVM bytecode for TVM compatible blockchains: Tycho and TON.

TVM Solidity API reference

API documentation is here

The compiler supports two versions of VM: Tycho and TON. Use sold --tvm-version tycho ... or sold --tvm-version ton ... to select the desired vm.

Releases

Releases on github.

Build and Install

Sold driver

We recommend using sold to compile smart-contracts. Documentation is available at README.md.

Building compiler

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

Ubuntu Linux

git clone --recurse-submodules https://github.com/broxus/TVM-Solidity-Compiler
cd TVM-Solidity-Compiler
sh ./compiler/scripts/install_deps.sh
mkdir build
cd build
cmake ../compiler/ -DCMAKE_BUILD_TYPE=Release
cmake --build . --parallel

Windows 10

Install Visual Studio Build Tools 2019, Git bash, cmake. Run Developer PowerShell for VS 2019

git clone --recurse-submodules https://github.com/broxus/TVM-Solidity-Compiler
cd TVM-Solidity-Compiler
compiler\scripts\install_deps.ps1
mkdir build
cd build
cmake -DBOOST_ROOT="..\compiler\deps\boost\" -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded ..\compiler
cmake --build . --config Release -- /m

Links

License

GNU GENERAL PUBLIC LICENSE Version 3

About

Solidity compiler for TVM

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C++ 45.9%
  • Solidity 35.7%
  • Yul 10.5%
  • Python 3.0%
  • Shell 2.5%
  • C 0.6%
  • Other 1.8%