Catalog npm
Back to packageRELEASE DETAILS

1.1.15

npm

@0x/sol-compiler

Solidity compiler wrapper and artifactor

Published11 Dec 2018
Direct dependencies40
Transitive dependenciesNot calculated

README

Current package documentation

@0x/sol-compiler

Sol-compiler is a wrapper around solc-js that adds:

  • Smart re-compilation: Only recompiles when smart contracts have changed
  • Ability to compile an entire project instead of only individual .sol files
  • Compilation using the Solidity version specified at the top of each individual .sol file
  • Proper parsing of Solidity version ranges
  • Support for the standard input description for what information you'd like added to the resulting artifacts file (i.e 100% configurable artifacts content).

Read the Documentation.

Installation

CLI Installation

yarn global add @0x/sol-compiler

API Installation

yarn add @0x/sol-compiler

If your project is in TypeScript, add the following to your tsconfig.json:

"compilerOptions": {
    "typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
}

Import

import { Compiler } from '@0x/sol-compiler';

or

var Compiler = require('@0x/sol-compiler').Compiler;

Contributing

We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.

Please read our contribution guidelines before getting started.

Install dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

yarn config set workspaces-experimental true

Then install dependencies

yarn install

Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

PKG=@0x/sol-compiler yarn build

Or continuously rebuild on change:

PKG=@0x/sol-compiler yarn watch

Clean

yarn clean

Lint

yarn lint

Run Tests

yarn test

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 40

Native requirements
40 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
solc
Environment
{
  "local_name": "solc",
  "alias": false,
  "peer_metadata": null
}
^0.4.23runtime
chalk
Environment
{
  "local_name": "chalk",
  "alias": false,
  "peer_metadata": null
}
^2.3.0runtime
yargs
Environment
{
  "local_name": "yargs",
  "alias": false,
  "peer_metadata": null
}
^10.0.3runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.5runtime
mkdirp
Environment
{
  "local_name": "mkdirp",
  "alias": false,
  "peer_metadata": null
}
^0.5.1runtime
semver
Environment
{
  "local_name": "semver",
  "alias": false,
  "peer_metadata": null
}
5.5.0runtime
@0x/types
Environment
{
  "local_name": "@0x/types",
  "alias": false,
  "peer_metadata": null
}
^1.4.0runtime
@0x/utils
Environment
{
  "local_name": "@0x/utils",
  "alias": false,
  "peer_metadata": null
}
^2.0.7runtime
@0x/assert
Environment
{
  "local_name": "@0x/assert",
  "alias": false,
  "peer_metadata": null
}
^1.0.19runtime
@types/yargs
Environment
{
  "local_name": "@types/yargs",
  "alias": false,
  "peer_metadata": null
}
^11.0.0runtime
web3-eth-abi
Environment
{
  "local_name": "web3-eth-abi",
  "alias": false,
  "peer_metadata": null
}
^1.0.0-beta.24runtime
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^1.1.3runtime
ethereumjs-util
Environment
{
  "local_name": "ethereumjs-util",
  "alias": false,
  "peer_metadata": null
}
^5.1.1runtime
@0x/json-schemas
Environment
{
  "local_name": "@0x/json-schemas",
  "alias": false,
  "peer_metadata": null
}
^2.1.3runtime
@0x/sol-resolver
Environment
{
  "local_name": "@0x/sol-resolver",
  "alias": false,
  "peer_metadata": null
}
^1.1.0runtime
@0x/web3-wrapper
Environment
{
  "local_name": "@0x/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^3.2.0runtime
source-map-support
Environment
{
  "local_name": "source-map-support",
  "alias": false,
  "peer_metadata": null
}
^0.5.0runtime
require-from-string
Environment
{
  "local_name": "require-from-string",
  "alias": false,
  "peer_metadata": null
}
^2.0.1runtime
@0x/typescript-typings
Environment
{
  "local_name": "@0x/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^3.0.5runtime
nyc
Environment
{
  "local_name": "nyc",
  "alias": false,
  "peer_metadata": null
}
^11.0.1development
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
^0.2.2development
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^4.1.0development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
5.11.0development
typedoc
Environment
{
  "local_name": "typedoc",
  "alias": false,
  "peer_metadata": null
}
0.13.0development
types-bn
Environment
{
  "local_name": "types-bn",
  "alias": false,
  "peer_metadata": null
}
^0.0.1development
copyfiles
Environment
{
  "local_name": "copyfiles",
  "alias": false,
  "peer_metadata": null
}
^2.0.0development
dirty-chai
Environment
{
  "local_name": "dirty-chai",
  "alias": false,
  "peer_metadata": null
}
^2.0.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
3.0.1development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
@0x/dev-utils
Environment
{
  "local_name": "@0x/dev-utils",
  "alias": false,
  "peer_metadata": null
}
^1.0.20development
@types/mkdirp
Environment
{
  "local_name": "@types/mkdirp",
  "alias": false,
  "peer_metadata": null
}
^0.5.2development
@types/semver
Environment
{
  "local_name": "@types/semver",
  "alias": false,
  "peer_metadata": null
}
^5.5.0development
chai-bignumber
Environment
{
  "local_name": "chai-bignumber",
  "alias": false,
  "peer_metadata": null
}
^2.0.2development
chai-as-promised
Environment
{
  "local_name": "chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.0development
@0x/tslint-config
Environment
{
  "local_name": "@0x/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^1.0.10development
zeppelin-solidity
Environment
{
  "local_name": "zeppelin-solidity",
  "alias": false,
  "peer_metadata": null
}
1.8.0development
make-promises-safe
Environment
{
  "local_name": "make-promises-safe",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development
web3-typescript-typings
Environment
{
  "local_name": "web3-typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^0.10.2development
@types/require-from-string
Environment
{
  "local_name": "@types/require-from-string",
  "alias": false,
  "peer_metadata": null
}
^1.2.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "5e7b3681e3594a614d3f0dc80374a27338079e1d",
  "tarball": "https://registry.npmjs.org/@0x/sol-compiler/-/sol-compiler-1.1.15.tgz",
  "fileCount": 65,
  "integrity": "sha512-7uJHLZR2WTr65Lq6qpyEmeO25xVTWlxZlGljHls5Nci3KWcL3RBB3n0o/RL85sW0/Rkq0cUtZZNNVnQlENTQjw==",
  "signatures": [
    {
      "sig": "MEUCIQDyCz4EKGd3sxZGQqc5/HlfM/TEVmYxFyqqKSvynu0EeAIgWuo11e7r9EteMJwS6FL73JnklldhN+0sl3v2CQJWQ6g=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 33049404,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEEqlCRA9TVsSAnZWagAAHPAP/i4Li5dAeGKhwBv4YGyL\nNTW/Ydv7yqxnWWJVVNpYaxh3j1RETdEUJ/iyf01XotBcwmzL8ZmUBI1RDyxI\nYGaOsjmKvrjWhF8t5w/RjQqL0wuGbo8dFG8inPrK7qBauX4c57OWu4y87SPZ\n39ti7X3a7RGgZi3SQ/Sy7Vde4jiy9N0QVYJVQR1TyK5dSyUZQBv2ClN4yppv\ngwhv7MlQupjfbWwCHntxs6BSXZNm9Qr41f6dd3N4X7PYZd3IlK1LlzH86DHb\nCNrEjjghZUvWxrsUnoRjKzsZu7gByuk4Q6xe20z1aBS8OireBMksMrFno+n7\nIV1sMTRE4cqAO/1izvK1RaeSsZ3m4HDtPU++qPwOB68l9I5wj483zEGt3/F9\nVb8BhiaI/+H76y6bWPWbiKTAblQrjQQS8jp/S5Gi+FOajJYjyUv2bED/Bnq9\nNSRfOKRIdv4rcIv74JULgIYHakBbhikSj3yonTGncLq7MQTG/LYza99N8k8u\nTZOqF6K2kw6+kvomBqsloDrTy39C28b2/QKXoMJlab6EyfMNPmJ7oNN50sFd\n/2g+IPhvDgcBc2vIOagrk4K2qrdzqXvHyA21JRG75y2kwTSC2+yuBUac21Pv\ndfLKfXnBNWom98QWTPMqCUTpt5xvAzU0/bKJhw6lsLS2r7RNB20Gd9xaPztr\n7T87\r\n=pDO3\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
0xproject/0x-monorepo

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
0xproject/tools

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:29 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:c433fde6bb5cf78db83cf4c13bbf088c4e3ab17f2ecb496a1340b51a1cedad77

Other collected versions

4.8.57 Apr4.8.47 Apr4.8.326 Jan4.8.218 Aug4.8.116 Mar4.8.016 MarView all collected versions →