solc-vm
allows us to manage solidity compiler (solc) and compile sol files from the tool directly with specific compiler version.
- NodeJS (Tested with Version 8.x.x)
- NPM (Tested with Version 6.x.x)
Ideally, this project needs to be published on npm. But at development phase, we can install directly from the folder.
cd solc-vm
npm install -g .
chmod 777 solc-vm/
cd solc-vm
sudo npm install -g .
We have different way to install this tool on Mac OS. The tool needs to be compiled directly.
cmake
boost
z3
Make sure to have the prerequisites installed. If we need to install them, the best way is to use Homebrew
:
brew install cmake
brew install boost
brew install z3
chmod 777 solc-vm/
cd solc-vm
sudo npm install -g .
Make sure to add .
(dot) at the end of command or you can define it with specific package folder.
For Linux OS and Mac OS, we need to allow write access to the folder chmod 777 solc-vm/
. This is required since npm
need access to the folder while installing. This step is NOT
required if we've published this tool.
Once the installation success, we can use the command line solc-vm
globally.
solc-vm install x.y.z
solc-vm uninstall x.y.z
solc-vm ls
solc-vm using x.y.z file.sol --abi --bin
solc-vm using x.y.z --help
We can add any solc arguments and params to solc-vm
.
Install dependencies:
npm install
The tool uses semistandard
to lint the project. We can lint using command:
npm run lint
Testing this tool is done by tape
. To test this project, we can use the following command:
npm test
https://drive.google.com/open?id=13DoCLjPixLxMyJw3XaJTvP8tpIGfXrOQ
https://drive.google.com/open?id=1-56HJfran-zduWzENIC3hQT1Tsk0psN4
Please notice that the video paused while compiling since it takes a lot of time.