0.0.3 • Published 6 years ago

truffle-fast-compile v0.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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