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: 4 months ago
JSON representation
A basic solodity watcher to generate abi, bin nad go bindings on file event
- Host: GitHub
- URL: https://github.com/asabya/go-watch-solidity
- Owner: asabya
- License: mit
- Created: 2020-02-03T03:44:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-08T16:15:31.000Z (over 5 years ago)
- Last Synced: 2025-02-02T10:13:21.855Z (5 months ago)
- Language: Go
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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).