truffle-fast-compile

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i truffle-fast-compile

Weekly Downloads

1

Version

0.0.3

License

ISC

Unpacked Size

3.78 kB

Total Files

3

Last publish

Collaborators

  • vitiko