售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Title Page
Copyright and Credits
Solidity Programming Essentials
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Reviews
Introduction to Blockchain, Ethereum, and Smart Contracts
What is a blockchain?
Why blockchains?
Cryptography
Symmetric encryption and decryption
Asymmetric encryption and decryption
Hashing
Digital signatures
Ether
Gas
Blockchain and Ethereum architecture
How are blocks related to each other?
How are transactions and blocks related to each other?
Ethereum nodes
EVM
Ethereum mining nodes
How does mining work?
Ethereum accounts
Externally owned accounts
Contract accounts
Transactions
Blocks
An end-to-end transaction
What is a contract?
What is a smart contract?
How to write smart contracts?
How are contracts deployed?
Summary
Installing Ethereum and Solidity
Ethereum networks
Main network
Test network
Ropsten
Rinkeby
Kovan
Private network
Consortium network
Geth
Installing Geth on Windows
Creating a private network
ganache-cli
Solidity compiler
The web3 JavaScript library
Mist wallet
MetaMask
Summary
Introducing Solidity
Ethereum Virtual Machine
Solidity and Solidity files
Pragma
Comments
The import statement
Contracts
Structure of a contract
State variables
Structure
Modifiers
Events
Enumeration
Functions
Data types in Solidity
Value types
Passing by value
Reference types
Passing by reference
Storage and memory data locations
Rule 1
Rule 2
Rule 3
Rule 4
Rule 5
Rule 6
Rule 7
Rule 8
Literals
Integers
Boolean
The byte data type
Arrays
Fixed arrays
Dynamic arrays
Special arrays
The bytes array
The String array
Array properties
Structure of an array
Enumerations
Address
Mappings
Summary
Global Variables and Functions
The var type variables
Variables hoisting
Variable scoping
Type conversion
Implicit conversion
Explicit conversion
Block and transaction global variables
Transaction and message global variables
Difference between tx.origin and msg.sender
Cryptography global variables
Address global variables
Contract global variables
Summary
Expressions and Control Structures
Solidity expressions
The if decision control
The while loop
The for loop
The do...while loop
The break statement
The continue statement
The return statement
Summary
Writing Smart Contracts
Smart contracts
Writing a simple contract
Creating contracts
Using the new keyword
Using address of a contract
Constructors
Contract composition
Inheritance
Single inheritance
Multi-level inheritance
Hierarchical inheritance
Multiple inheritance
Encapsulation
Polymorphism
Function polymorphism
Contract polymorphism
Method overriding
Abstract contracts
Interfaces
Summary
Functions, Modifiers, and Fallbacks
Function input and output
Modifiers
The view, constant, and pure functions
The address functions
The send method
The transfer method
The call method
The callcode method
The delegatecall method
The fallback function
Summary
Exceptions, Events, and Logging
Error handling
The require statement
The assert statement
The revert statement
Events and logging
Summary
Truffle Basics and Unit Testing
Application development life cycle management
Truffle
Development with Truffle
Testing with Truffle
Summary
Debugging Contracts
Debugging
The Remix editor
Using events
Using a Block Explorer
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜