AVIator
AVIator copied to clipboard
wip ethers-compile
A more structured approach at abstracting away the compiler than https://github.com/gakonst/ethers-rs/pull/934
- Added ethers-compile, and kept ethers-solc
ethers-compile
-
CompilerTrait
-
GenericCompiler
(with aCompilerKindEnum
inside),Vyper
andSolc
allimpl CompilerTrait
- Uses a
GenericCompiler
for as long as possible, and then instantiates eithervyper
orsolc
atcompile_sequential
orcompile_parallel
with ainto_kind()
method -
Report
moved fromsolc
- Changed the structure so the compilers are under
src/compile/compilers
-
CompilerSources
has a method calledtriage
that loops through all sources and separates*.vy
from*.solc
and creates the actual compiler object that it needs. (probably this could be done onGraph
but i didn't go much deep there...)
Working with https://github.com/joshiedo/foundry/tree/feat/ethers-compile
Motivation
Solution
PR Checklist
- [ ] Added Tests
- [ ] Added Documentation
- [ ] Updated the changelog