aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/md/docs/sol-compiler/introduction.md
blob: aa1939006916c4a9f41fc14dbac6f9d86f6f1baf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
Welcome to the [sol-compiler](https://github.com/0xProject/0x-monorepo/tree/development/packages/sol-compiler) documentation! Sol-compiler is a tool for compiling Solidity smart contracts and generating artifacts with ease.

It serves a similar purpose as parts of the [Truffle framework](http://truffleframework.com/), but with the UNIX philosophy in mind: Make each program do one thing well. This tool is for intermediate to advanced Solidity developers that require greater configurability and reliability.

Sol-compiler has the following advantages over Truffle:

*   Compile each smart contract with a specific version of Solidity.
*   Improved artifact files:
    *   Storage of constructor args, source maps and paths to all requisite source files.
    *   An easy to maintain codebase: TypeScript + Single repo.
    *   Supports Solidity version ranges - contract compiled with latest Solidity version that satisfies the range.

Sol-compiler can be used as a command-line tool or as an imported module.