GithubHelp home page GithubHelp logo

skywinder / tvm-solidity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tonlabs/ton-solidity-compiler

0.0 2.0 0.0 6.34 MB

Solidity compiler for Free TON Virtual Machine enhanced with Groth16 verification instruction.

License: GNU General Public License v3.0

CMake 1.07% Makefile 0.13% Python 0.81% Batchfile 0.25% C++ 68.67% C 1.17% Dockerfile 0.03% Shell 2.07% JavaScript 0.13% Solidity 25.67%

tvm-solidity's Introduction

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 [email protected]:nilfoundation/tvm-solidity.git
cd tvm-solidity
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/nilfoundation/tvm-solidity
cd tvm-solidity
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

tvm-solidity's People

Contributors

borisi avatar igorkoval avatar nemothenoone avatar nkaskov avatar silkovalexander avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.