更新时间:2021-06-25 20:47:51
封面
版权信息
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
What is web3?
Ganache-CLI
Web3 in Truffle
Solidity – a refresher
Data types
Arrays
Structs
Mapping
Visibility specifiers
Functions
Function modifiers
Function types
Events
Choosing an Ethereum Client for Your Dapp
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
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
Migrating Your Dapp to Ethereum Blockchains
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
Truffle and Popular JavaScript Technologies
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