Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/libotony/sharp-cli
Sharp command line helper
https://github.com/libotony/sharp-cli
Last synced: 13 days ago
JSON representation
Sharp command line helper
- Host: GitHub
- URL: https://github.com/libotony/sharp-cli
- Owner: libotony
- Created: 2019-08-19T07:04:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T09:18:05.000Z (over 3 years ago)
- Last Synced: 2024-12-08T08:07:49.532Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 51.8 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sharp CLI
Command line interface that compiling contracts/running tests/executing scripts
## Commands
```
sharp-cliCommands:
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] 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](https://github.com/ethereum/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](https://solidity.readthedocs.io/en/v0.5.11/using-the-compiler.html#input-description).
## Guide
There is a project shows a step by step guide of using sharp, see [sharp-example-vip180](https://github.com/libotony/sharp-example-vip180).