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

feat: make artifact type configurable #762

Merged
merged 9 commits into from
Feb 17, 2022

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Feb 16, 2022

BLOCKED BY gakonst/ethers-rs#907

Motivation

Close #705
Close #765

Solution

add additional config and cli options to add additional items to the contract artifact and/or emit them as additional file like metadata

--extra-output <metadata|ir|ir-optimized|...> will add the provided selection to the contract's json artifact.

--extra-output-files <metadata|ir|ir-optimized|...> will emit the provided selection as additional file, eg. forge build --extra-output-files metadata will put the Contract.sol metadata in Contract.metadata.json next to the artifact Contract.json

Copy link
Member

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gg - very clean

config/src/lib.rs Outdated Show resolved Hide resolved
mattsse and others added 2 commits February 17, 2022 16:38
Co-authored-by: Georgios Konstantopoulos <[email protected]>
@gakonst gakonst merged commit bc88a98 into foundry-rs:master Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-feature Type: feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The json format of compiled contract is not correct Adding more content to the compilation artifacts output
3 participants