WTFAcademy/WTF-gas-optimization

WTF Solidity gas optimization techniques, verified with Foundry.

Solidityethereumdappsmart-contractsblockchainsolidityweb3
This is stars and forks stats for /WTFAcademy/WTF-gas-optimization repository. As of 27 Apr, 2024 this repository has 167 stars and 29 forks.

WTF Gas Optimization Solidity gas optimization techniques, verified with Foundry. 总结 Solidity 智能合约省 gas 技巧,并使用 Foundry 验证。 Lead by @0xKaso Outline 1. use constant and immutable 2. use calldata over memory 3. use Bitmap 4. use unchecked 5. use uint256 over uint8 6. use custom error over require/assert 7. use local variable over storage 8. use clone over new/create2 to deploy contracts 9. packing storage slots 10. use ++i as better increment 11. use uint in reentrancy guard 12. use < over <= 13....
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
Crossbell-Box/xLogTypeScriptCSSOther1.5k01800
Anish-Agnihotri/HyperbitcoinizationSolidity121030
0xfoobar/bitsignalSolidity620100
kommitters/stellar_baseElixir6090
pinkcat-jay/pinkcatSolidity0000
itsobvioustech/aa-passkeys-walletSolidityTypeScript580110
mouseless-eth/rusty-sandoRustSolidity598+2213+2
saucepoint/foundry-arbitrumSolidity54030
neal-zhu/arbclaimJavaScriptSolidity690280
zeroknots/brokentokenSolidity2070250