ItsNickBarry / hardhat-dependency-compiler

📦 Compile Solidity sources directly from NPM dependencies
MIT License
38 stars 5 forks source link

vyper support added #14

Closed philippine-lime closed 1 year ago

ItsNickBarry commented 1 year ago

I would prefer a solution that generates a vyper file containing the desired import. With this solution, what happens if you try to import a vyper file which itself imports a different vyper file? Presumably the import will fail because copying the file to a local directory will change the relative path.

philippine-lime commented 1 year ago

not sure is that possible do imports for whole file like in solidity...

ItsNickBarry commented 1 year ago

Then we probably need to infer what components are contained in the referenced vyper files, and import those into the generated file. Reopen this PR or a new PR if you're able to come up with an implementation like that. I don't work with Vyper, so I can't do this myself at the moment.