Opis książki: Solidity Programming Essentials - Second Edition
Solidity is a high-level language for writing smart contracts, and the syntax has large similarities with JavaScript, thereby making it easier for developers to learn, design, compile, and deploy smart contracts on large blockchain ecosystems including Ethereum and Polygon among others. This book guides you in understanding Solidity programming from scratch.
The book starts with step-by-step instructions for the installation of multiple tools and private blockchain, along with foundational concepts such as variables, data types, and programming constructs. You'll then explore contracts based on an object-oriented paradigm, including the usage of constructors, interfaces, libraries, and abstract contracts. The following chapters help you get to grips with testing and debugging smart contracts. As you advance, you'll learn about advanced concepts like assembly programming, advanced interfaces, usage of recovery, and error handling using try-catch blocks. You'll also explore multiple design patterns for smart contracts alongside developing secure smart contracts, as well as gain a solid understanding of writing upgradable smart concepts and data modeling. Finally, you'll discover how to create your own ERC20 and NFT tokens from scratch.
By the end of this book, you will be able to write, deploy, and test smart contracts in Ethereum.
Wybrane bestsellery
-
Z tym przewodnikiem nauczysz się stosowania Reacta w praktyce. Dowiesz się, w jaki sposób zbudować jednostronicową, złożoną aplikację internetową, i zdobędziesz wiedzę umożliwiającą używanie tej biblioteki w codziennej pracy. Pokazano tu, jak rozpocząć projekt i rozwijać rzeczywistą aplikację. Za...
React w działaniu. Tworzenie aplikacji internetowych. Wydanie II React w działaniu. Tworzenie aplikacji internetowych. Wydanie II
(0,00 zł najniższa cena z 30 dni)41.30 zł
59.00 zł(-30%) -
Dzięki książce Head First JavaScript. Edycja polska poznasz JavaScript w nietypowy, a przy tym bardzo skuteczny sposób. Ponieważ została ona napisana w oparciu o najnowsze teorie uczenia się, błyskawicznie przyswoisz sobie wiedzę o tym języku. Nauczysz się osadzać kod JavaScript w dokumentach HTM...(0,00 zł najniższa cena z 30 dni)
48.95 zł
89.00 zł(-45%) -
To książka przeznaczona dla osób, które posługują się językiem JavaScript i chcą wykorzystać jego możliwości do zbudowania kompletnej aplikacji internetowej. Prezentuje język TypeScript i opisuje jego najlepsze cechy, pokazuje także, w jaki sposób za pomocą takich frameworków jak React, Redux, No...
React, TypeScript i Node. Tworzenie aplikacji internetowych typu fullstack React, TypeScript i Node. Tworzenie aplikacji internetowych typu fullstack
(0,00 zł najniższa cena z 30 dni)70.85 zł
109.00 zł(-35%) -
To drugie wydanie cenionego podręcznika dla początkujących programistów. Zawarty w nim materiał - podany jasno i przystępnie - pozwoli Ci w pełni poznać możliwości języka TypeScript 4. Naukę rozpoczniesz od zdobycia solidnych podstaw, a po przeanalizowaniu przejrzystych przykładów poznasz korzyśc...
TypeScript 4. Od początkującego do profesjonalisty. Wydanie II TypeScript 4. Od początkującego do profesjonalisty. Wydanie II
(0,00 zł najniższa cena z 30 dni)70.85 zł
109.00 zł(-35%) -
To książka przeznaczona dla średnio zaawansowanych użytkowników biblioteki React, którzy chcą tworzyć elastyczniejsze i łatwiejsze w utrzymaniu aplikacje. Wyjaśniono tu sposób działania wewnętrznych mechanizmów biblioteki React. Zaprezentowano, jak należy budować komponenty możliwe do wielokrotne...
React 17. Wzorce projektowe i najlepsze praktyki. Projektowanie i rozwijanie nowoczesnych aplikacji internetowych. Wydanie III React 17. Wzorce projektowe i najlepsze praktyki. Projektowanie i rozwijanie nowoczesnych aplikacji internetowych. Wydanie III
(0,00 zł najniższa cena z 30 dni)51.35 zł
79.00 zł(-35%) -
W poprzednim tomie Nanonauci, którzy założyli własne Dojo Nano, wymyślili i napisali stronę internetową. Teraz przyszedł czas na grę. Będzie to prosta gra działająca w przeglądarce internetowej. Do kodowania posłuży Ci świetny język JavaScript, którym posługują się najlepsi programiści! W książce...(0,00 zł najniższa cena z 30 dni)
7.90 zł
24.90 zł(-68%) -
Niniejsza książka jest pierwszą częścią serii w całości poświęconej temu językowi. Autor skupia się na trudniejszych aspektach języka JavaScript, dogłębnie je analizuje, a następnie przedstawia praktyczne zastosowanie opisanych koncepcji. Książka jest przeznaczona dla osób dopiero rozpoczynającyc...
-
To kolejne, rozbudowane i uaktualnione wydanie świetnego podręcznika projektowania i programowania stron internetowych, zawierające wiedzę niezbędną do rozpoczęcia samodzielnej pracy. Opisano tu zasady tworzenia witryn WWW oraz przedstawiono język HTML i techniki CSS. Sporo miejsca poświęcono mul...
Projektowanie stron internetowych. Przewodnik dla początkujących webmasterów po HTML5, CSS3 i grafice. Wydanie V Projektowanie stron internetowych. Przewodnik dla początkujących webmasterów po HTML5, CSS3 i grafice. Wydanie V
(0,00 zł najniższa cena z 30 dni)83.85 zł
129.00 zł(-35%) -
To trzecie, wzbogacone i uzupełnione wydanie popularnego podręcznika programowania dla początkujących. Znalazło się tu wyczerpujące wyjaśnienie podstawowych zasad programowania oraz struktury języka JavaScript. Omówiono techniki testowania kodu i obsługi błędów, tworzenia kodu modułowego, zapreze...
Zrozumieć JavaScript. Wprowadzenie do programowania. Wydanie III Zrozumieć JavaScript. Wprowadzenie do programowania. Wydanie III
(0,00 zł najniższa cena z 30 dni)57.85 zł
89.00 zł(-35%) -
To kolejne wydanie lubianego samouczka, dzięki któremu w ramach 24 godzinnych lekcji przyswoisz solidne podstawy programowania. Zrozumiesz, jak działają programy, i nauczysz się reguł stosowanych przez profesjonalistów przy ich projektowaniu. Dowiesz się, jak wygląda świat programistów i na czym ...
Programowanie dla początkujących w 24 godziny. Wydanie IV Programowanie dla początkujących w 24 godziny. Wydanie IV
(0,00 zł najniższa cena z 30 dni)37.95 zł
69.00 zł(-45%)
Ritesh Modi - pozostałe książki
-
Build and design multiple types of applications that are cross-language, platform, and cost-effective by understanding core Azure principles and foundational concepts
-
Compose and decompose ARM templates and use advanced concepts like looping, conditions, dependencies, PowerShell and Desired State Configuration.
Azure Resource Manager Templates Quick Start Guide Azure Resource Manager Templates Quick Start Guide
-
Create advanced data and integrated solutions using Azure Event Grid, functions, and containers
-
Learn the most powerful and primary programming language for writing smart contracts and find out how to write, deploy, and test smart contracts in Ethereum. Key Features Get you up and running with Solidity Programming language Build Ethereum Smart Contracts with Solidity as your scripting l...
-
Your one stop guide to making the most out of Azure CloudAbout This BookGet familiar with the different design patterns available in Microsoft AzureDevelop Azure cloud architecture and a pipeline management systemGet to know the security best practices for your Azure deploymentWho This Book Is Fo...
-
Obtain enterprise agility and continuous delivery by implementing DevOps with Windows Server 2016About This BookThis practical learning guide will improve your application lifecycle management and help you manage environments efficientlyShowcase through a sample application ways to apply DevOps p...
Ebooka przeczytasz na:
-
czytnikach Inkbook, Kindle, Pocketbook, Onyx Boox i innych
-
systemach Windows, MacOS i innych
-
systemach Windows, Android, iOS, HarmonyOS
-
na dowolnych urządzeniach i aplikacjach obsługujących formaty: PDF, EPub, Mobi
Masz pytania? Zajrzyj do zakładki Pomoc »
Audiobooka posłuchasz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolonych urządzeniach i aplikacjach obsługujących format MP3 (pliki spakowane w ZIP)
Masz pytania? Zajrzyj do zakładki Pomoc »
Kurs Video zobaczysz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolonych urządzeniach i aplikacjach obsługujących format MP4 (pliki spakowane w ZIP)
Szczegóły książki
- Tytuł oryginału:
- Solidity Programming Essentials - Second Edition
- ISBN Ebooka:
- 978-18-032-3479-3, 9781803234793
- Data wydania ebooka:
-
2022-06-10
Data wydania ebooka często jest dniem wprowadzenia tytułu do sprzedaży i może nie być równoznaczna z datą wydania książki papierowej. Dodatkowe informacje możesz znaleźć w darmowym fragmencie. Jeśli masz wątpliwości skontaktuj się z nami sklep@helion.pl.
- Język publikacji:
- angielski
- Rozmiar pliku Pdf:
- 8.6MB
- Rozmiar pliku ePub:
- 10.3MB
- Kategorie:
Technologie webowe » JavaScript - Programowanie
Spis treści książki
- Solidity Programming Essentials Second Edition
- Contributors
- About the author
- About the reviewer
- Preface
- Who this book is for
- What this book covers
- To get the most out of this book
- Download the example code files
- Download the color images
- Conventions used
- Get in touch
- Share Your Thoughts
- Part 1: The Fundamentals of Solidity and Ethereum
- Chapter 1: An Introduction to Blockchain, Ethereum, and Smart Contracts
- Technical requirements
- What is a blockchain?
- The need for blockchain
- Understanding cryptography
- Hashing
- Digital signatures
- Reviewing blockchain and Ethereum architecture
- Relationship between blocks
- How transactions and blocks are related to each other
- Consensus
- Proof of work
- Proof of stake
- Ethereum nodes
- EVM
- Mining nodes
- Ethereum validators
- Ethereum accounts
- Externally owned accounts
- Contract accounts
- Ether, gas, and transactions
- Blocks
- An end-to-end transaction
- Smart contract
- Writing smart contracts
- The internals of smart contract deployment
- Summary
- Questions
- Further reading
- Chapter 2: Installing Ethereum and Solidity
- Technical requirements
- Ethereum networks
- Main network
- Test network
- Private network
- Consortium network
- Installing and configuring Geth
- Installing Geth on macOS
- Installing Geth on Windows
- Creating a private network
- Installing Ganache
- Installing the Solidity compiler
- Installing the web3 framework
- Installing and using MetaMask
- Summary
- Questions
- Further reading
- Chapter 3: Introducing Solidity
- Technical requirements
- The Ethereum Virtual Machine
- Understanding Solidity and Solidity files
- Pragma
- Comments
- Importing Solidity code
- Contracts
- The structure of a contract
- State variables
- Structure
- Modifiers
- Events
- Enumeration
- Functions
- Exploring data types in Solidity
- Value types
- Reference types
- Storage and memory data locations
- Rule one
- Rule two
- Rule three
- Rule four
- Rule five
- Rule six
- Rule seven
- Rule eight
- Using literals
- Understanding integers
- Understanding Boolean
- The byte data type
- Understanding arrays
- Fixed arrays
- Dynamic arrays
- Special arrays
- Array properties
- Knowing more about the structure of an array
- Enumerations
- Understanding the address data type
- Working with mappings
- Summary
- Questions
- Further reading
- Chapter 4: Global Variables and Functions
- Technical requirements
- Variable scoping
- Type conversion
- Implicit conversion
- Explicit conversion
- Block and transaction global variables
- Transaction- and message-related global variables
- The difference between tx.origin and msg.sender
- Cryptographic global variables
- Address global variables
- Contract global variables
- Recovering addresses using ecrecover
- Summary
- Questions
- Further reading
- Chapter 5: Expressions and Control Structures
- Technical requirements
- Understanding Solidity expressions
- Understanding the if and if...else decision controls
- Exploring while loops
- Understanding the do...while loop
- Understanding breaks
- Understanding continue
- Understanding return
- Summary
- Questions
- Further reading
- Part 2: Writing Robust Smart Contracts
- Chapter 6: Writing Smart Contracts
- Technical requirements
- Smart contracts
- Writing a smart contract
- Creating contracts
- Using the new keyword
- Using the address of a contract
- Contract constructor
- Contract composition
- Inheritance
- Single inheritance
- Multilevel inheritance
- Hierarchical inheritance
- Multiple inheritance
- Encapsulation
- Polymorphism
- Function polymorphism
- Contract polymorphism
- Method overriding
- Abstract contracts
- Interfaces
- Advanced interfaces
- Library
- Importing a library
- Summary
- Questions
- Further reading
- Chapter 7: Solidity Functions, Modifiers, and Fallbacks
- Technical requirements
- Function input and output
- Modifiers
- Visibility scope
- View, constant, and pure functions
- Address-related functions
- The address send method
- The address transfer method
- The address call method
- The address callcode method
- The address delegatecall method
- The address staticcall method
- The fallback and receive functions
- Summary
- Questions
- Further reading
- Chapter 8: Exceptions, Events, and Logging
- Technical requirements
- Exception handling
- Require
- Assert
- Revert
- Try-catch in Solidity
- Events and logging
- Summary
- Questions
- Further reading
- Chapter 9: Basics of Truffle and Unit Testing
- Technical requirements
- Application development life cycle management
- Introducing Truffle
- Development with Truffle
- Testing with Truffle
- Interactively working with Truffle
- Summary
- Questions
- Further reading
- Chapter 10: Debugging Contracts
- Technical requirements
- Overview of debugging
- The Remix editor
- Using events
- Using a block explorer
- Summary
- Questions
- Further reading
- Part 3: Advanced Smart Contracts
- Chapter 11: Assembly Programming
- Technical requirements
- An introduction to Solidity and its advantages
- Getting started with Assembly programming
- Scopes and blocks
- Returning values
- Working with memory slots
- Working with storage slots
- Calling contract functions
- Determining contract addresses
- Summary
- Questions
- Further reading
- Chapter 12: Upgradable Smart Contracts
- Technical requirements
- Learning what constitutes upgradability
- Understanding dependency injection
- Providing instance addresses during contract deployment
- Providing instance addresses following contract deployment
- Reviewing problematic smart contracts
- Implementing simple solutions with inheritance
- Implementing simple solutions with composition
- Implementing advanced solutions using proxy contracts
- Writing upgradable contracts with upgradable storage
- Summary
- Questions
- Further reading
- Chapter 13: Writing Secure Contracts
- Technical requirements
- SafeMath and under/overflow attacks
- Reentrancy attack
- The EtherPot contract
- The Hacker contract
- Solutions to the reentrancy problem
- Security best practices
- Summary
- Questions
- Further reading
- Chapter 14: Writing Token Contracts
- Technical requirements
- Introducing tokens
- ERC20 Tokens
- ERC20 standard
- ERC20 functionality
- ERC20 events
- Non-fungible tokens
- ERC721
- The ERC721 implementation
- EIP223
- ERC165
- Summary
- Questions
- Further reading
- Chapter 15: Solidity Design Patterns
- Technical requirements
- Introducing entity modeling
- Ethereum storage
- Data types in Ethereum
- Understanding data modeling in Solidity
- Nested versus reference fields
- Exploring types of relationships
- One-to-one relationships
- One-to-many relationships
- Many-to-many relationships
- Reviewing the rules for embedding structures
- Data cohesion
- Out-of-bounds nested structure
- Static data within a nested structure
- The nested structure will not change in the near future
- Containment relationship
- Having few relationships
- Performing data modeling using an example
- Structures
- State variables
- Adding Employees
- Retrieving a single Employees record
- Updating Employees
- Retrieving all Employees
- Ownership in smart contracts
- Exploring ownership in Solidity
- Modifier
- Establishing ownership of a smart contract
- Multiownership
- Transfer of ownership
- MultiSig contracts
- Transfer of the ownership of assets within a smart contract
- Stoppable/haltable smart contract pattern
- Summary
- Questions
- Further reading
- Assessments
- Chapter 1, Introduction to Blockchain, Ethereum, and Smart Contracts
- Chapter 2, Installing Ethereum and Solidity
- Chapter 3, Introducing Solidity
- Chapter 4, Global Variables and Functions
- Chapter 5, Expressions and Control Structures
- Chapter 6, Writing Smart Contracts
- Chapter 7, Functions, Modifiers, and Fallbacks
- Chapter 8, Exceptions, Events, and Logging
- Chapter 9, Truffle Basics and Unit Testing
- Chapter 10, Debugging Contracts
- Chapter 11, Assembly Programming
- Chapter 12, Upgradable Smart Contracts
- Chapter 13, Writing Secure Contracts
- Chapter 14, Writing Token Contracts
- Chapter 15, Solidity Design Patterns
- Why subscribe?
- Other Books You May Enjoy
- Packt is searching for authors like you
- Share Your Thoughts
Packt Publishing - inne książki
-
Save time and effort when building 3D scenes with this essential guide to creating stunning photorealistic 3D environments in Blender
-
Leverage algorithms to solve real world problems ranging from sorting and searching to modern algorithms in machine learning and cryptography
50 Algorithms Every Programmer Should Know - Second Edition 50 Algorithms Every Programmer Should Know - Second Edition
-
Use modern Python libraries such as pandas, NumPy, and scikit-learn and popular machine learning and deep learning methods to solve financial modeling problems
-
Design, build, and deploy performant and maintainable web applications using Spring, Spring Boot, and Angular
-
Get up to speed with Oracle's Autonomous Databases and implementation strategies for any workload or use case, including transactional, data warehousing, and non-relational databases
Oracle Autonomous Database in Enterprise Architecture Oracle Autonomous Database in Enterprise Architecture
-
Build CD pipelines following GitOps principles like declarative and immutable changes stored in version control, all continuously reconciled by Argo CD, and minimize the failure of deployments.
Dzieki opcji "Druk na żądanie" do sprzedaży wracają tytuły Grupy Helion, które cieszyły sie dużym zainteresowaniem, a których nakład został wyprzedany.
Dla naszych Czytelników wydrukowaliśmy dodatkową pulę egzemplarzy w technice druku cyfrowego.
Co powinieneś wiedzieć o usłudze "Druk na żądanie":
- usługa obejmuje tylko widoczną poniżej listę tytułów, którą na bieżąco aktualizujemy;
- cena książki może być wyższa od początkowej ceny detalicznej, co jest spowodowane kosztami druku cyfrowego (wyższymi niż koszty tradycyjnego druku offsetowego). Obowiązująca cena jest zawsze podawana na stronie WWW książki;
- zawartość książki wraz z dodatkami (płyta CD, DVD) odpowiada jej pierwotnemu wydaniu i jest w pełni komplementarna;
- usługa nie obejmuje książek w kolorze.
W przypadku usługi "Druk na żądanie" termin dostarczenia przesyłki może obejmować także czas potrzebny na dodruk (do 10 dni roboczych)
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka, którą chcesz zamówić pochodzi z końcówki nakładu. Oznacza to, że mogą się pojawić drobne defekty (otarcia, rysy, zagięcia).
Co powinieneś wiedzieć o usłudze "Końcówka nakładu":
- usługa obejmuje tylko książki oznaczone tagiem "Końcówka nakładu";
- wady o których mowa powyżej nie podlegają reklamacji;
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.


Oceny i opinie klientów: Solidity Programming Essentials - Second Edition Ritesh Modi (0)
Weryfikacja opinii następuję na podstawie historii zamówień na koncie Użytkownika umieszczającego opinię. Użytkownik mógł otrzymać punkty za opublikowanie opinii uprawniające do uzyskania rabatu w ramach Programu Punktowego.