Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/asabya/go-watch-solidity

A basic solodity watcher to generate abi, bin nad go bindings on file event
https://github.com/asabya/go-watch-solidity

Last synced: 2 days ago
JSON representation

A basic solodity watcher to generate abi, bin nad go bindings on file event

Awesome Lists containing this project

README

        

# go-watch-solidity

It is a handy little tool to watch a solidity file and generate abi, bin and gobinging.

# Install

`go get -u github.com/Sab94/go-watch-solidity`

Note, go-watch-solidity needs `solc` installed to run. Here is the [official guide](https://solidity.readthedocs.io/en/latest/installing-solidity.html) to install solc.

# Usage

```
$ go-watch-solidity -h
Go Watch Solidity is a watcher for a given solidity file.
It generates abi, bin, and go bindings for the given solidity
file on save.

Usage:
go-watch-solidity [flags]

Flags:
-a, --abi Generate abi
-b, --bin Generate bin
-g, --bindgo Generate go binding (default true)
-d, --dest string Destination to generate
-h, --help help for go-watch-solidity
```

# Examples

```
$ go-watch-solidity -a -b -g -d=example/generated example/solidity/greeter.sol
```

# Project52

It is one of my [project 52](https://github.com/Sab94/project52).