npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@quantumcoin/solc

v0.7.7

Published

Solidity compiler for QuantumCoin with 32-byte address support

Downloads

216

Readme

@quantumcoin/solc

Solidity compiler for QuantumCoin with 32-byte address support.

This package is a QuantumCoin adaptation of ethereum/solc-js (v0.7.6). The compiler itself (soljson.js, an Emscripten/WebAssembly build of the QuantumCoin Solidity fork) is embedded directly in the package, so installation requires no downloads, no network access, and no external tooling.

Installation

npm install @quantumcoin/solc

Usage

Compiling (Standard JSON input/output)

var solc = require('@quantumcoin/solc');

var input = {
  language: 'Solidity',
  sources: {
    'test.sol': {
      content: 'contract C { function f() public { } }'
    }
  },
  settings: {
    outputSelection: {
      '*': {
        '*': ['*']
      }
    }
  }
};

var output = JSON.parse(solc.compile(JSON.stringify(input)));

for (var contractName in output.contracts['test.sol']) {
  console.log(
    contractName + ': ' + output.contracts['test.sol'][contractName].evm.bytecode.object
  );
}

Import callbacks

function findImports(path) {
  if (path === 'lib.sol') {
    return { contents: 'library L { function f() internal returns (uint) { return 7; } }' };
  }
  return { error: 'File not found' };
}

var output = JSON.parse(solc.compile(JSON.stringify(input), { import: findImports }));

Linking libraries (32-byte addresses)

QuantumCoin uses 32-byte addresses. Unlinked bytecode contains 64-character placeholders of the form __$<58 hex chars>$__. Use the linker to insert library addresses after compilation:

var linker = require('@quantumcoin/solc/linker.js');

var linkedBytecode = linker.linkBytecode(bytecode, {
  'lib.sol:L': '0x4200000000000000000000000000000000000000000000000000000000000001'
});

// Find remaining (unlinked) references:
var references = linker.findLinkReferences(bytecode);

Libraries can also be linked at compile time via settings.libraries in the Standard JSON input, using 32-byte addresses.

Command-line interface

npx solcjs --bin --abi contract.sol

# Standard JSON mode
cat input.json | npx solcjs --standard-json

# Resolve imports relative to a base path
npx solcjs --bin --base-path . contract.sol

Version

The embedded compiler reports:

0.7.6+commit.4f25fa5d.mod.Emscripten.clang

built from quantumcoinproject/Solidity v32b.8.14, which is based on upstream Solidity 0.7.6 with 32-byte address support.

The npm package version (currently 0.7.7) tracks this bundle and its JavaScript wrapper, so its patch number advances with each compiler rebuild; only the major.minor is guaranteed to match the embedded compiler's reported version. The exact fork release is recorded in the solidityRelease field of package.json.

License and attribution

This package is derived from ethereum/solc-js v0.7.6, which is licensed under the MIT license; the original license text and copyright are retained in this repository.

The embedded soljson.js binary is built from the QuantumCoin Solidity fork, which (like upstream Solidity) is licensed under GPL-3.0. This mirrors the licensing of the upstream solc npm package, which also ships GPL-licensed compiler binaries under an MIT-licensed JavaScript wrapper.