Ever been surprised by the gas costs in a smart contract? The Ethereum Virtual Machine calculates these costs deterministically, but understanding how is a bit obscure unless you want to comb through the dense yellowpaper! This course helps you understand where every last bit of gas is coming from and the gotchas that can make transactions surprisingly expensive.
.
βββ Section 1 : Overview of Gas Cost
βΒ Β βββ 01. Introduction
βΒ Β βββ 02. Lecture 2; Calculating The Cost of an Ethereum Transfer
βΒ Β βββ 03. Example Smart Contract Interactions Part 1
βΒ Β βββ 04. Example Smart contract Interactions Part 2
βΒ Β βββ 05. Example Smart contract Interactions Part 3
βΒ Β βββ 06. Heavy and Light Functions
βΒ Β βββ 07. Block Limit
βΒ Β βββ 08. Gas Efficient Chains
βΒ Β βββ 09. Prerequisite: Storage Slots
βΒ Β βββ 10. What are Opcodes
βΒ Β βββ 11. Opcode Gas Costs
βΒ Β βββ 12. Opcode Debugging Gas Cost
βΒ Β βββ 13. Function Selectors
βΒ Β βββ 14. Cost of Doing Nothing: Op Codes
βΒ Β βββ 15. Cost of Doing Nothing: Sum of Op Codes
βΒ Β βββ 16. Cost of Doing Nothing: Transaction Data
βΒ Β βββ 17. Cost of Doing Nothing: Memory Costs
βΒ Β βββ 18. Non-payable Functions
βΒ Β βββ 19. Unchecked Arithmetic Part 1
βΒ Β βββ 20. Unchecked Arithmetic Part 2
βΒ Β βββ 21. Gas Limit and More on 21,000 Gas
βΒ Β βββ 22. EIP 1559 Part 1
βΒ Β βββ 23. EIP 1559 Part 2
βΒ Β βββ 24. Solidity Optimizer
βββ Section 2 : Storage
βΒ Β βββ 25. Storage Overview
βΒ Β βββ 26. More on 5000 gas non-zero to non-zero
βΒ Β βββ 27. Smaller Integers
βΒ Β βββ 28. Unchanged Storage Values
βΒ Β βββ 29. Arrays
βΒ Β βββ 30. Refunds and Setting to Zero Part 1
βΒ Β βββ 31. Refunds and Setting to Zero Part 2
βΒ Β βββ 32. ERC20 Transfers
βΒ Β βββ 33. Storage Cost For Files
βΒ Β βββ 34. Structs and Strings Part 1
βΒ Β βββ 35. Variable Packing
βΒ Β βββ 36. Array Length
βββ Section 3 : Memory costs
βΒ Β βββ 37. Memory vs Calldata
βΒ Β βββ 38. Memory Explosion
βΒ Β βββ 39. Memory is Never Cleared
βββ Section 4 : Solidity Tricks
βΒ Β βββ 40. Function Names
βΒ Β βββ 41. Less Than vs Less Than or Equal To
βΒ Β βββ 42. Bit Shifting
βΒ Β βββ 43. Reverting Early
βΒ Β βββ 44. Short Circuiting
βΒ Β βββ 45. Precomputing
βββ Section 5 : Practice Problems
βββ 46. Gas Puzzles
51 directories, 333 files