Sign inSign up

jaredweinfurtner/openzeppelin-abigen

By jaredweinfurtner

•Updated about 6 years ago

Docker container to generate go-wrappers from OpenZeppelin compiled smart contracts

Image
0

264

jaredweinfurtner/openzeppelin-abigen repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

295.9 MB

Last updated

about 6 years ago

docker pull jaredweinfurtner/openzeppelin-abigen