In today's lecture, Harkirat introduced Solidity, the programming language for writing Ethereum smart contracts. We learned about Bytecode, ABI, and how Solidity interacts with the EVM. Key concepts included contracts, variables, constructors, state-changing vs. view functions, inheritance, and basic structures like mappings, arrays, and structs. The session provided a clear foundation for writing and understanding smart contracts.

Slides Link : https://petal-estimate-4e9.notion.site/Solidity-13e7dfd107358081be94ca74f42781b6

Canva Link: https://www.canva.com/design/DAGWfh7FkYs/atPF0eKRrFcVvxIWs1R3Sw/edit

Solidity

image.png

Solidity is a programming language used to create smart contracts for Ethereum and other blockchains that use the Ethereum Virtual Machine (EVM).


How Solidity Works with EVM

  1. You write Solidity code.
  2. The code is converted into bytecode (machine-readable instructions).
  3. The bytecode runs on the EVM, which works on different systems like Windows, Ubuntu, or Linux.

Key Point

As a developer, you usually only work with Solidity code. Rarely do you need to look at the bytecode unless you want to inspect or debug something deep in the blockchain.


In Simple Terms

Solidity is like writing instructions for a robot (smart contracts) that run on Ethereum’s engine (EVM). You focus on writing clear instructions (Solidity code), and the system takes care of converting and executing them on various platforms.