Zero to Hero in Foundry - Part 6: Time Travel & Events in TestsRecap What’s up, fellow chain-surfers! 🏄♂️ Welcome back to our grand tour of Foundry. So in Part 5 we looked into what Gas is and how it can be optimized to make our contracts user friendly. We wrote a gas-intensive version of an ether batch transf...Aug 21, 2025 · 6 min readblog.bitcodex.tech
Zero to Hero in Foundry - Part 5: Gas OptimizationRecap We’re on a roll! Let’s keep going! Part 4 we dug deep into writing fuzz and invariant tests. We wrote our token mint contracts and the 1:1 swap contract which let users swap our tokens. Then we fuzz tested our swap by using Foundry’s in-built f...Aug 17, 2025 · 12 min readblog.bitcodex.tech
Zero to Hero in Foundry - Part 4: Fuzz & Invariant TestsRecap Awesome! I see you’re back! Part 3 was a banger with some good old testing fundamentals. We wrote a pretty simple bank contract through which users could deposit and withdraw funds, as well as check their balances. Deployed the same using anvil...Aug 14, 2025 · 10 min readblog.bitcodex.tech
Zero to Hero in Foundry - Part 3: Testing FundamentalsRecap Welcome back folks! Part 2 took us through some pretty good stuff. We learnt how to use anvil to run a local simulation of a blockchain in our systems. Then we used a simple forge command to deploy our contract to our local chain. And finally u...Aug 13, 2025 · 5 min readblog.bitcodex.tech
Zero to Hero in Foundry - Part 2: Deploy & InteractRecap In the last part, we saw how to setup Foundry in our systems. We created a simple Counter contract project, compiled it and tested it all using the forge command Please read it if you haven't already before continuing Foundry: Zero to Hero - Pa...Aug 13, 2025 · 5 min readblog.bitcodex.tech