Importing Contracts
Last updated
Last updated
Foundry is able to grab directly from github.
Example: You want to use the IERC20.sol interface provided by Yield at:
Forge will install the repo into our project directory (repo can be found inside lib)
.gitmodules will be updated to reflect the dependencies:
forge remappings
yield-utils-v2/ is mapped to directory lib/yield-utils-v2/contracts
This informs us how to craft our import statement.