solcjs-core-fix

0.7.0 • Public • Published

solcjs core

Travis codecovnpm downloads Dependency Status

Install

npm install solcjs-core

Usage

const solcjsCore = require('solcjs-core');
  • getVersion
let version = await solcjsCore.getVersion();
let version = await solcjsCore.getVersion('v0.5.1-stable-2018.12.03');
  • solc
let compiler = await solcjsCore.solc();
const sourceCode = `
pragma solidity >0.4.99 <0.6.0;

library OldLibrary {
  function someFunction(uint8 a) public returns(bool);
}

contract NewContract {
  function f(uint8 a) public returns (bool) {
      return OldLibrary.someFunction(a);
  }
}
`;
let output = await compiler(sourceCode);

License

MIT © alincode

Dependents (0)

Package Sidebar

Install

npm i solcjs-core-fix

Weekly Downloads

1

Version

0.7.0

License

MIT

Unpacked Size

32.5 kB

Total Files

27

Last publish

Collaborators

  • koishi