ApeWorX / ape

The smart contract development tool for Pythonistas, Data Scientists, and Security Professionals
https://apeworx.io
Apache License 2.0
845 stars 124 forks source link

fix: issues with remapping and dependency detection in foundry projects #2117

Closed antazoey closed 3 weeks ago

antazoey commented 3 weeks ago

What I did

all the massaging needed to get foundry projects really working.

Goes with https://github.com/ApeWorX/ape-solidity/pull/147

How I did it

ugh.

How to verify it

this beast is now compiling without any ape-config.yaml required: https://github.com/yearn/tokenized-strategy all from reading the foundry's project stuff. the trickiest part was handling weird stuff with gitsubmodules and older foundry libs with so many different wways of doing remappings and names and i cant even explain it. Ape as a side-effect is way smarter now.

The attached ape-solidity PR will attempt to correct bad import remappings so things just work now, this also helps compile older Ape projects.

Checklist