Skip to content

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

License

Notifications You must be signed in to change notification settings

jaredweinfurtner/openzeppelin-abigen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published