@libotony/sharp-cli
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.3 • Public • Published

Sharp CLI

Command line interface that compiling contracts/running tests/executing scripts

Commands

sharp-cli <command>

Commands:
  sharp-cli compile      compile contracts
  sharp-cli test [task]  run test task
  sharp-cli exec [file]  execute a connex script

Config

{
    "contracts_directory": "[string] root directory of contracts",
    "build_directory": "[string] directory to save built contract info",
    "contracts": "[Array<string>] relative path(to contracts directory) of contracts to compile",
    "solc": {
        "version": "[string](optional) semver version requirement",
        "evmVersion": "[string](optional) version of the EVM to compile for",
        "libraries": "[object](optional) addresses of the libraries",
        "optimizer": "[object](optional) optimizer settings"
    }
}

Sharp CLI relies solc-js for compiling contract sources, supports evmVersion/libraries/optimizer from the solidity compiler's standard JSON input, for more detailed info please refer to JSON Input Description.

Guide

There is a project shows a step by step guide of using sharp, see sharp-example-vip180.

Package Sidebar

Install

npm i @libotony/sharp-cli

Weekly Downloads

1

Version

1.0.0-beta.3

License

LGPL-3.0

Unpacked Size

103 MB

Total Files

22

Last publish

Collaborators

  • tony.li