Skip to content

vitiko/truffle-fast-compile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Truffle fast compile

Wrapper for solc binary package

Problem

Compiling complex smart contract via truffle compile command is very slow

When we use truffle framework and compile ethereum solidity smart contracts with truffle compile command, actually we use javascript version of solidity compiler. But solidity compiler works very slow, for instance compiling of ~20 .sol files takes about 2 minutes

Solution

Simple solution is to use solc binary package, that works much faster. You can install this package by commands:

sudo add-apt-repository ppa:ethereum/ethereum

sudo apt-get update

sudo apt-get install solc

This package provides wrapper for solc command

Installation

npm i -g truffle-fast-compile

Usage

truffle-fast-compile ./contracts/MyContract.sol