-
Notifications
You must be signed in to change notification settings - Fork 4
Home
This is knowledge base related to transpiling Solidity to Ligo - smart contract language for Tezos blockchain, using sol2ligo
automated conversion utility.
Here you can find bits and pieces of knowledge that provide an aid in this process.
Sol2LIGO - is a Solidity to Ligo transpiler that aims to convert Solidity source code to Ligo source code. With its help you can migrate your Ethereum or Tron projects to Tezos blockchain
Just pass a Solidity source code file to it and get LIGO code (Pascal dialect) out of it. Next you do some manual fixes. Then you test and audit your contract. And viola!
There are two versions of the transpiler: web version available online here and CLI version available in this repository. To install and use console version please refer to README of this repository.
After you transpiled your code look for warnings in output. Oftentimes they have links to this Wiki with explanations. Follow them and modify your code accordingly.
In case something is missing you might a look at the examples
folder in this repository. They might provide some insights into how transpiler deals with different range of Solidity cases.
Or try to find information in the Advanced section or panel to the right
Known issues - principal differences of Solidity and LIGO
Quirks - nice-to-knows before attempting translation
Default Values - our convention for default values in LIGO
ERC interfaces conversion - docs on how sol2ligo approaches ERC to FA translation