truffle-fast-compile
v0.0.3
Published
fast compiling solidity smart contracts to truffle build files
Downloads
7
Maintainers
Readme
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