Chapter 3: Introducing Solidity
From this chapter, we will embark on a journey – learning the Solidity language. The previous two chapters introduced blockchains, Ethereum, and related toolsets. Some important concepts related to blockchains, which are essential for having a better understanding and writing efficient code in Solidity, were also discussed. There are multiple languages that target the Ethereum Virtual Machine (EVM). Some of them are deprecated and others are used with varying degrees of acceptance. Solidity is by far the most popular language for EVM. From this chapter onward, the book will focus on Solidity and its concepts, as well as constructs to help write efficient smart contracts.
In this chapter, we will jump right into understanding Solidity, and its structure, data types, and variables. We will cover the following topics in this chapter:
- Solidity and Solidity files
- The structure of a contract
- Data types in Solidity
- Storage and...