Closed philippine-lime closed 1 year ago
not sure is that possible do imports for whole file like in solidity...
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.
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.