Truffle quick start guide learn the fundamentals of Ethereum development

Develop, test, and deploy decentralized applications for Ethereum platform About This Book Build your first Ethereum Dapp with Truffle: the most popular Ethereum development framework Build, compile, and deploy smart contracts in your development environment Embrace Blockchains and utilize it to cre...

Descripción completa

Detalles Bibliográficos
Otros Autores: Bhaskar, Nagella Uday, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham : Packt 2018.
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630627706719
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 JavaScript
  • References
  • 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 actions
  • Choosing 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 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
  • 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 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
  • Index.