Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Advanced Solidity: Yul and Assembly
Highest Rated
Rating: 4.9 out of 5(407 ratings)
1,663 students

Advanced Solidity: Yul and Assembly

Understanding what solidity does behind the scenes
Created byJeffrey Scholz
Last updated 9/2022
English

What you'll learn

  • How to create Ethereum smart contracts in assembly
  • How to respect solidity's memory and function call conventions when using assembly
  • How smart contracts work on the bytecode level
  • How to create a smart contract entirely in Yul and assembly

Course content

4 sections26 lectures1h 47m total length
  • Introduction3:23
  • Types5:18
  • Basic Operations6:21
  • Storage Slots7:08
  • Storage Offsets and Bitshifting9:22
  • Storage of Arrays and Mappings6:32

Requirements

  • Experience with Solidity

Description

If you've wondered what solidity is doing behind the scenes, this is the course to take. Perhaps you've head of assembly in Ethereum smart contracts and heard it can be efficient but dangerous. After you finish this course, you will have a ground-up understanding of what exactly happens when a smart contract receives a function call, how it encodes that data, where exactly it stores it, and how it updates the blockchain state. Even if you don't write contracts in assembly, you will have a much better understanding of solidity's design choices and previously cryptic error messages will make perfect sense.


We will learn how solidity represents various data types, and how we can come up with more efficient representations ourselves depending on the application. We will learn the assumptions solidity makes about memory layout and how to avoid violating those assumptions when we use low level instructions. We will learn what happens behind the scenes when smart contracts make function calls to each other, and how to implement that protocol by hand. And of course, we will build smart contracts from scratch in assembly.


Nobody can claim to be an expert in solidity without mastering assembly (also known as Yul). So if mastery is your goal, take this class!


Note: This class is not for beginners. You should be very comfortable with solidity before taking this course.

Who this course is for:

  • Advanced Solidity programmers looking to master the subject