I've been exploring different event designs for tracking function additions/replacements/removals in diamond contracts as part of a new simplified standard for diamonds.
Surprisingly, emitting multiple small events can cost less gas than emitting a single large event โ even when the smaller events include more indexed params.
Today MrJimJam published benchmark results comparing:
* event DiamondCut(FacetCut[] diamondCut) - one big event
* event AddFacet(address indexed facet, bytes4[] selectors) - smaller, batched events
* event AddFunction(bytes4 indexed selector, address indexed facet) - fully flattened events
Interesting findings โ smaller, flatter event designs can actually be more gas-efficient and easier for indexers to work with.
Gas benchmark tests and results here: https://t.co/bPuAPwAniW
Has anyone recently observed that Gemini is becoming less obedient day by day. What do you mean "I used other approach which is better". Just shut up and do the damn task.
3/ DisseK by Aura
Dissek is a marketplace for Valuable knowledge like - DeFi Trading Strategies, Medical History, and Research Datasets that allows selective disclosure of the content with a cryptographic proof of authenticity.
@AnIdiotJimJam@offee_co
Project link: https://t.co/LjvHSFew8T