JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q40032F
  • License MIT

Solidity smart contracts utility

Package Exports

  • solco

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (solco) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

solco - Solidity smart contracts utility

solco is your smart contracts companion.

Prerequisites

  • NodeJS >=6.x
  • MacOS/Linux

Installation

npm install -g solco

Usage

Help output:

alexc@MacBook-Pro:~/Desktop/Projects/solco$ solco --help
solco

Commands:
  solco visualize <contract>  Visualize contract's control flow
                                                              [aliases: viz, vz]
  solco analyze <contract>    Analyze a contract                [aliases: an]
  solco combine <contract>    Combine contract dependencies in one file
                                                              [aliases: com, cb]
  solco profile <contract>    Profile a smart contract    [aliases: prof, pr]

Options:
  --version   Show version number                                      [boolean]
  -h, --help  Show help                                                [boolean]

Made w/ ❤ by AlexanderC <alexander.moldova@gmail.com>

Combine contracts:

solco combine ./contracts/AwesomeToken.sol

To flatten the contract for verification on Etherscan use --verifyable option to enable Truffle compatibility mode.

Analyze contract:

solco analyze ./contracts/AwesomeToken.sol

Visualize contract:

solco visualize ./contracts/AwesomeToken.sol

Profile contract:

solco profile ./contracts/AwesomeToken.sol

Every command have their own --help containing usage information

Debugging:

DEBUG=* solco visualize ./contracts/AwesomeToken.sol
DEBUG=Resolver solco visualize ./contracts/AwesomeToken.sol

More info on debug usage you can find here

Roadmap

  • Add logo and badges
  • Write tests
  • Add more commands
  • Add more documentation

Support development

I really love open source, however i do need your help to keep the library up to date. There are several ways to do it: open issues, submit PRs, share the library w/ community or simply-

Donate ETH