Improve library support #139
Labels
help wanted
Extra attention is needed
medium-priority
on hold
This issue was marked as not desirable to complete for now
There are two features that
medusa
needs to better support libraries:medusa
does not support external libraries. External libraries are unique since you must first deploy the library, resolve their addresses, update the contract bytecode with those addresses, and then deploy the contracts.medusa
is not great at decoding events that are emitted in internal libraries. See Bug: medusa fails to decode events emitted in internal library functions #131. The current fix is a brute-force approach to a better solution that would only parse the ABIs of libraries that the contract depends on.Here are the technical requirements for the first feature:
crytic-compile
'ssolc
andstandard
export has the necessary information to resolve this. However, it might be better to come up with an in-house solution for it so that we can re-use it for other compilation platforms (e.g., first-party support for foundry / hardhat).For whoever picks this issue up, please reach out to me since I have done a lot of the legwork in the
dev/library-support
branch (requirements 1 and 3 are basically sort of done but not in the most elegant way). The hardest part is the second technical requirement which has an effective yet not-so-elegant solution that we can discuss.Here are the technical requirements for the second feature:
The text was updated successfully, but these errors were encountered: