售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Title Page
Copyright and Credits
Truffle Quick Start Guide
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
Download the color images
Code in Action
Conventions used
Get in touch
Reviews
Truffle for Decentralized Applications
Technical requirements
What is Truffle?
Let's build a mini Dapp
Let's build a to-do list
Initializing a Truffle project
Peeping into the folders
Peeping into the root files
Housekeeping before we write code
Writing our first smart contract
Adding an owner
Creating a reward method
Securing your contract with modifiers
Adding a utility method
Wrapping up
Building a user interface
Simple styling
Performing the build steps
Let's write some JavaScript
References
Summary
Web3 and Solidity in Truffle
Technical requirements
What is web3?
Ganache-CLI
Web3 in Truffle
Solidity – a refresher
Data types
Arrays
Structs
Mapping
Visibility specifiers
Functions
Function modifiers
Function types
Events
Summary
Choosing an Ethereum Client for Your Dapp
Technical requirements
Geth, Parity, and Ganache
What is an Ethereum client?
Geth
How does Geth work?
The power of Geth
Common GETH actions
Parity
The power of Parity
Common Parity actions
Ganache-CLI
The power of Ganache-CLI
Common Ganache-CLI actions
Choosing the correct Ethereum client
Truffle and Ethereum clients
Truffle and Geth
Truffle and Parity
Truffle and Ganache-CLI
Summary
Migrating Your Dapp to Ethereum Blockchains
Technical requirements
Let's migrate
Migrating your contracts to Ropsten with Parity
Creating a new Ropsten Parity account
Syncing Parity to Ropsten
Adding funds to our Parity coinbase account
Migrating our contract to Ropsten
Migrating our contract to kovan
Common migration pitfalls
Summary
Truffle and Popular JavaScript Technologies
Technical requirements
Truffle and Angular
angular-truffle-starter-dapp
Peeping into the src folder
Running the starter Dapp
Part 1
Part 2
Diving into Web3Service
MetaCoinService
Truffle and React
The Truffle and React starter
Peeping into the src folder
Diving into the Truffle and React code
Truffle and Node
Running our Truffle and Node application
The node run steps
Summary
Testing Your Dapp
Technical requirements
Writing unit tests with Solidity
Testing the TaskMaster
Writing unit tests with JavaScript
Testing for Solidity events
Summary
Truffle Gotchas and Best Practices
Gas versus gas limit versus gas price
Gas
Gas price
Gas limit
Sync issues in Geth
Security best practices
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜