scaffold-eth / Scaffold-ETH-DeFi-Challenges

MIT License
27 stars 8 forks source link

Bring in Scaffold-ETH v1 AND/OR v2 and Combine with Foundry Setup #2

Open steve0xp opened 1 year ago

steve0xp commented 1 year ago

Detail

There are challenges associated to bringing in foundry in combination with the hardhat default frameworks used with ScaffoldETH v1. It is assumed that this type of conflict will arise with ScaffoldETH v2 as well, but it is yet to be seen.

TODOs:

steve0xp commented 1 year ago

It would be great to have a front end that showcases the yearn strategy at play within a testnet or at least a local mainnet fork.

See other issues on these aspects.

steve0xp commented 1 year ago

Attempting to do this in this forked repo off of ScaffoldETH v2. Link HERE I followed the same processes I took with ScaffoldETH v1 and DEX foundry tests.

I ran into some issues, see the latest commit where I left off in the other repo. My goal is to bring SE v2 into this repo, perhaps create a new branch for DeFi Challenge #1 once SE v2 is merged into main branch. Get foundry working and everything with this new setup with SE v2. Get debugger working and then get a front end going for the challenge itself from solidoracle.

_Latest commit from other repo:

Troubleshoot errors w/ make build

The tests needed their import paths fixed, but I also noticed that the imported vault.json artifact is not setup correctly due to migrating the foundry-strategy-mix setup to this SE v2 framework. I need to take a closer look. Next steps include:

steve0xp commented 1 year ago

@solidoracle now that we have se-2 coming into the main branch here, we need to coordinate an effective way to combine foundry and se-2.

Context:

Next Steps IMO

Please let me know what you think!

solidoracle commented 1 year ago

@umphams yes I think it's best to branch off main again, and paste in the challenge-1-simple-yearn-strategy