-
Notifications
You must be signed in to change notification settings - Fork 50
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
Move the precompiles to a new directory that is shipped to npm #789
Comments
interesting idea, i like it, i've got just one concern, would foundry compile the contracts from a not known path? or does foundry compile contract only from the configured paths? not sure if it is possible to override [profile.default]
src = "src"
test = "test"
test ="precompiles" |
Looks like by setting |
oh, ok, thanks thought that |
AFAIK, Foundry will be able to read the contracts even without |
script
If we haven't yet decided on the directory for precompiles, how about using My Rationale behind it
|
That's an interesting idea, @smol-ninja. One wrinkle with putting it in That is:
Thus, I would be slightly more inclined to put the precompiles in a new folder called |
Thanks so much for explaining it @PaulRBerg. After reading your comment, I am now in favour of moving it to |
Clarifications:
That's correct. |
Sorry @smol-ninja, I had missed your questions here. I confess that I don't understand your questions.
Could you please re-explain? Your questions might have referred to an older state of the code base. More context: I am looking at the |
No problem @PaulRBerg. I am happy to explain it again.
Well it was in the OP (I struckthrough it). Iirc, the idea was to ship it with npm package so that developers can use it to deploy the entire protocol using precompiles.
Yes thats correct. The question was about |
Ooh, I see. I think what I forgot is that |
As discussed here, it would be helpful to ship the precompiles so that we can write a protocol deployment script that spans V2 Core and V2 Periphery.
Task:
precompiles
directoryprecompiles
in the npm packageInclude thescript/Precompiles.s.sol
file in the npm package (viafiles
)Food for thought: or maybe we shouldn't include the precompiles in
script
? How about another directory, e.g.,precompiles
?I will let you @andreivladbrg and @smol-ninja self-organize and assign this.
The text was updated successfully, but these errors were encountered: