-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Adding more content to the compilation artifacts output #705
Comments
I think this should be possible via foundry toml? Cc @mattsse |
this question was also asked in the support chat today by me and another individual. I need to output the |
@gakonst it would be great to have a flag's integration instead of the config file, as it would allow smooth third parties integration. |
using the flags as-is is flakey. It will be a very very nested toml file if you want to configure it using some of the more nested options too. |
Metadata is also needed for verification |
better metadata bindings have been added to ethers-rs gakonst/ethers-rs#894 Is there any (good) reason we should support configuring the output on a file or contract basis? this should be either a list of output_selection = ["ir", "storageLayout", "evm",...] or From the docs, the only file level config is what if we make a
|
+1 on @montyly's point on also having a flag on the CLI to allow doing that without a Config file |
The reason we would want this is for verification, which is dependent on how etherscan consumes this. I would guess that they normally get 1 metadata.json file, as opposed to 1 for every contract. I will email their support and ask, thanks @mattsse |
I am not sure that @762 fixed this issue. I can't find a way to generate For |
wrt to The
you mean the |
Great, thanks. For For the compact format, yes it is |
just to be sure, the JSON interface returns contract metadata in case of an internal compiler error while the CLI interface does not for solc. |
@montyly You can now get |
I think so - here's a slither job example https://github.com/thirdweb-dev/contracts/blob/main/.github/workflows/slither.yml#L27-L43. feel free to re-open if still an issue |
Component
Forge
Describe the feature you would like
Hi,
Running
forge build
leads to generating compilation artifacts inout
with onlyabi
/bytecode
/deployed_bytecode
. This limits the integration with other tools (like Slither, Echidna etc..).Would it be possible to generate all the compilation artifacts? (or to have a flag for it)? The ones that are needed for crytic-tools are (and probably for most of the other third parties integration):
I tried with
--extra-output ast
but it did not work. However because some of these flags depend on the compiler version, it would be great to let foundry figure out which ones are available.Related: crytic/crytic-compile#230
Additional context
No response
The text was updated successfully, but these errors were encountered: