Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 874 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 874 Bytes

openzeppelin-abigen

The out-of-the-box go-ethereum's abigen allows a combined-json flag to extract the abi and bin data from the solidity compiler (solc); however this is not the same json format as a compiled OpenZeppelin's compiler. This docker container aims to allow developers to generate go-wrappers for solidity files that contain references to imported OpenZeppelin contracts via npm.

Run it

2 simple arguments

  • -o [the output directory of the generated go-wrappers]
  • -p [the package name of the generated go-wrappers]

Run the following in the root directory of your projects:

 docker run -u $(id -u ${USER}):$(id -g ${USER}) --rm -v $(pwd):/sources jaredweinfurtner/openzeppelin-abigen -o /sources/internal/contracts -p contracts