Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/abigen, common/compiler: support for reading solc output from stdin #16683

Merged
merged 3 commits into from
Jun 5, 2018

Commits on May 4, 2018

  1. Configuration menu
    Copy the full SHA
    5c75423 View commit details
    Browse the repository at this point in the history
  2. common/compiler: Extract combined JSON parsing from Solidity.run

    We'll be reusing it when we read combined JSON from stdin rather than a
    direct solc run.
    Shadowfiend committed May 4, 2018
    Configuration menu
    Copy the full SHA
    fcca429 View commit details
    Browse the repository at this point in the history
  3. cmd/abigen: Add support for STDIN to abigen

    Allow the --abi flag to be given - to indicate that it should read the
    ABI information from standard input. It expects to read the solc output
    with the --combined-json flag providing bin, abi, userdoc, devdoc, and
    metadata, and works very similarly to the internal invocation of solc,
    except it allows external invocation of solc.
    
    This facilitiates integration with more complex solc invocations, such
    as invocations that require path remapping or --allow-paths tweaks.
    
    Simple usage example:
    
        solc --combined-json bin,abi,userdoc,devdoc,metadata *.sol | abigen --abi -
    Shadowfiend committed May 4, 2018
    Configuration menu
    Copy the full SHA
    183bc53 View commit details
    Browse the repository at this point in the history