solcvm

A solc version manager

Usage no npm install needed!

<script type="module">
  import solcvm from 'https://cdn.skypack.dev/solcvm';
</script>

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 version solcvm install x.y.z. It will install the x.y.z version of the solc compiler, if it is not already installed.
  • Uninstalling a solc version solcvm uninstall x.y.z. It will uninstall the x.y.z version of the solc 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 the x.y.z version of solc. solcvm contract.sol would try to grab the solidity version from the file, if no version of the compiler is specified in the pragma directive, it will use the latest version of the solidity installed. It supports pragma directive of the form of ^x.y.z as well as x.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.