README
solcvm
A solc
version manager
About
solcvm
is a solc
version manager that lets you install and manage different versions of solc
.
Instalation
This tool depends on node
and npm
. Ensure both are installed in the system.
npm install -g solcvm
to install it.
Usage
- Installing a
solc
versionsolcvm install x.y.z
. It will install thex.y.z
version of thesolc
compiler, if it is not already installed. - Uninstalling a
solc
versionsolcvm uninstall x.y.z
. It will uninstall thex.y.z
version of thesolc
compiler, if it is already installed. - Running a contract
There are two ways of running a contract.
solcvm using x.y.z contract.sol
would run the contract using thex.y.z
version ofsolc
.solcvm contract.sol
would try to grab the solidity version from the file, if no version of the compiler is specified in thepragma
directive, it will use the latest version of the solidity installed. It supports pragma directive of the form of^x.y.z
as well asx.y.z
.
For developers
Use npm install
or yarn
to install the dependencies.
Run npm run test
to run the tests and npm run test:coverage
to view the test coverage.