Learn solidity for writing mission-critical enterprise-ready smart contracts
Key Features
- Learn proven smart contract implementation challenges and solve them using Solidity
- Go deeper into Solidity to write effective upgradable and maintainable smart contracts using best practices
- Get to grips with the latest version of Solidity with updated codes and examples
Book Description
Solidity is a contract-oriented language whose syntax is highly influenced by JavaScript, and is designed to compile code for the Ethereum Virtual Machine. Solidity Programming Essentials will be your guide to understanding Solidity programming to build smart contracts for Ethereum and blockchain from the ground-up.
This new edition starts with an introduction to blockchain, Ethereum and smart contracts. The practical side will include step-by-step instruction on the installation of tools, private blockchain, and then move onto an introductory overview of the Solidity programming language. You will learn how to install all the necessary tools to write, test, and debug Solidity contracts on Ethereum. As you progress, you’ll also explore the multiple design patterns for multiple areas of smart contract, and get a solid understanding of the layout of a Solidity source file and work with the different data types. We will also take you through function calls, return types, function modifiers, and recipes in object-oriented programming with Solidity. All the examples are updated to the latest version of the solidity programming language.
By the end of this book, you will be able to write, deploy, and test smart contracts in Ethereum.
What you will learn
- Write efficient and effective and secure smart contracts
- Use different tools to build and deploy smart contracts
- Implement popular design patterns in Solidity
- Effectively utilize different storage solutions and their implications
- Understand exception handling and troubleshooting in Solidity
- Create new accounts and submit transactions to blockchain
Who This Book Is For
This book is primarily aimed at beginners who would like to get started with Solidity Programming for developing an Ethereum smart contract. No prior knowledge of EVM is required, but knowing the basics of any programming language will help you follow along.
Table of Contents
- Introduction to Blockchain, Ethereum, and Smart Contracts
- Installing Ethereum and Solidity
- Introducing Solidity
- Global variables and functions
- Expressions and control structure
- Writing Smart Contracts
- Functions, Modifiers, and Fallbacks
- Exceptions, Events and Logging
- Basics of Truffle and Unit Testing
- Debugging contracts
- Assembly Programming
- Upgradable Smart Contracts
- Writing Secure Contracts
- Writing Token Contracts
- Solidity Design Patterns
Ritesh Modi is a former Microsoft senior technology evangelist. He has been recognized as a Microsoft Regional Director for his contributions to Microsoft products, services, and communities. He is a cloud architect, a published author, a speaker, and a leader who is popular for his contributions to datacenters, Azure, Kubernetes, blockchain, cognitive services, DevOps, artificial intelligence, and automation. He is the author of eight books. Ritesh has spoken at numerous national and international conferences and is a published author for MSDN magazine. He has more than a decade of experience in building and deploying enterprise solutions for customers, and has more than 25 technical certifications. His hobbies are writing books, playing with his daughter, watching movies, and learning new technologies. He currently lives in Hyderabad, India. You can follow him on Twitter at automationnext.