Solidity devs come again....
Been spending way too much time looking at EVM opcodes lately, and I need to talk about TSTORE because it's genuinely one of the most slept-on features from the Cancun upgrade.
Let's break down MSTORE vs TSTORE vs SSTORE and why this actually matters for gas optimisation.
Do yourself a favour and learn zero knowledge.
Privacy is a BIG THING.
Resources?
Actively updating this repo for Blockchain Engineers.
Its Open source - Feel free to start it 🤭
https://t.co/eTkYVIx5rf
Mastering smart contract development?
This is the ultimate repo for you. I will actively maintain and update.
Start ⭐️ it, Bookmark it 🔖
https://t.co/eTkYVIx5rf
Ethereum's Fusaka upgrade just went live (Dec 3rd), and everyone's missing the most important part of this fork.
While crypto Twitter obsesses over PeerDAS, there's a tiny opcode that just changed the game for DeFi gas costs, ZK rollup performance, and every math-heavy protocol on Ethereum.
It's called CLZ.
It sounds boring reading all of huge EIP docs and all right?
It's actually kind of a big deal.
Here is a very simple explanation of CLZ opcode and why this tiny addition matters more than most people realise.
Solidity tip 💡
In Solidity, there’s no built-in method to retrieve all ERC-20 balances held by a contract.
That’s because token balances aren’t stored on the account level, but inside each token contract.
So if you’re building a function to withdraw all tokens your contract owns, you’ll need to.
✅ Fetch the token list externally. For example from an indexer or block explorer API.
✅ Pass those token addresses and amounts to a helper contract function.
See the code example below.
⚠️ Smart contract Engineers, this thread is for you.
In this thread, you will learn that most sr engineers don't help their jrs with:
Yeah! Read this if you wanna know how to understand foundry traces like a pro and master advance smart contract Engineering stuff.
Foundry traces can be overwhelming at first, but once you understand the structure, they become incredibly valuable for debugging.
Let me break down how to read these like a pro 🧵
If you are a hardcore ETH maxi like me and want to master the Ethereum protocol and wanna be absolutely badass Ethereum developer, here are some resources that might help you.
Bookmark this. ✅
thread 🧵 ⤵️
Uniswap
v1 - 2018
ETH-only pairs with basic AMM.
v2 - 2020
Added direct token swaps and flash loans.
v3 - 2021
Introduced concentrated liquidity and multiple fee tiers.
v4 - 2024
Added customizable hooks system and singleton architecture for maximum flexibility.
Defi W
Excited to share I joined @catapulta_sh team as a Developer Relations Engineer.
Thanks to @kartojal for the best onboarding experience as Foundry's developer experience for the Smart contracts devs.
Alright devs, Ready to ship faster with us ?
What is Catapulta ? 👇