Cargando…

Truffle Quick Start Guide : Learn the Fundamentals of Ethereum Development.

Truffle is a world class development environment, testing framework and asset pipeline for Ethereum, aiming to make life as an Ethereum developer easier. If you are a web developer wanting to try your hands at developing Dapps with Truffle then this is the ideal book. This book will teach you to wri...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Bhaskar, Nikhil
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing Ltd, 2018.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: 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 JavaScriptReferences; Summary; Chapter 2: 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; Chapter 3: 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 actionsChoosing the correct Ethereum client; Truffle and Ethereum clients; Truffle and Geth; Truffle and Parity; Truffle and Ganache-CLI; Summary; Chapter 4: 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; Chapter 5: Truffle and Popular JavaScript Technologies.
  • Technical requirementsTruffle 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; Chapter 6: Testing Your Dapp; Technical requirements; Writing unit tests with Solidity; Testing the TaskMaster ; Writing unit tests with JavaScript; Testing for Solidity events; Summary.
  • Chapter 7: Truffle Gotchas and Best PracticesGas versus gas limit versus gas price; Gas; Gas price; Gas limit; Sync issues in Geth; Security best practices; Summary; Other Books You May Enjoy; Index.