Hands-On Blockchain Development in 7 Days : Create a Decentralized Gaming Application Using Ethereum.
Saved in:
Author / Creator: | Button, Will. |
---|---|
Imprint: | Birmingham : Packt Publishing Ltd, 2019. |
Description: | 1 online resource (208 pages) |
Language: | English |
Subject: | Blockchains (Databases) Application software -- Development. Computer games -- Programming. Application software -- Development. Blockchains (Databases) Computer games -- Programming. Electronic books. |
Format: | E-Resource Book |
URL for this record: | http://pi.lib.uchicago.edu/1001/cat/bib/12590469 |
Table of Contents:
- Cover; Title Page; Copyright and Credits; About Packt; Contributor; Table of Contents; Preface; Chapter 1: Day One
- Application Introduction, Installation, and Setup; Introduction to our application; Installing the required tools; Visual Studio Code; Node.js; Truffle framework and Ganache; Creating our first smart contract; Analyzing the contracts; Testing the contract; Understanding the basic syntax; Code layout; Blank lines; Line lengths; Function layout; Naming conventions; Writing your first test; Assignment; Summary; Chapter 2: Day Two
- Solidity Variables and Data Types
- Understanding Solidity variablesUnderstanding visibility; Data types in Solidity; Value types; Reference types; Using Solidity variables; Ether units; Other special units; Understanding Solidity operators; Using Solidity operators; Operators in our application; Assignment; Summary; Chapter 3: Day Three
- Implementing Business Logic in Your Smart Contracts; Solidity functions ; Adding code to functions; Variable scope; Events; Constructor; Fallback function; Function visibility; Visibility in a nutshell; View functions; Pure functions; Using functions to execute business logic
- Understanding modifiersThe require function; Assignment; Summary; Chapter 4: Day Four
- Creating Tests; Understanding unit tests and integration tests; Why write tests?; Unit tests; Integration tests; Testing strategies for various applications; Testing for success; Testing for failure; Testing using Solidity; Testing using JavaScript; Creating unit tests in Solidity; Solidity test conventions; Multiple tests for the same function under test; Creating integration tests in JavaScript; Running test suites; Assignment; Summary; Chapter 5: Day Five
- Building a User Interface
- Understanding the role of JavaScript and React in a DAppCreating React apps from templates; Pros and cons; Displaying game state to players; Getting player input from the UI; Providing feedback to the player; Implementing JavaScript promises in a networked application; How a promise works; Using Web3.js to communicate with the Ethereum network; Implementing JavaScript functions in a UI; Assignment; Summary; Chapter 6: Day Six
- Using Wallets; Understanding wallets and security; Introduction to the wallet; Types of wallets; MetaMask ; Understanding gas price and gas limits; Ethereum gas
- Gas priceViewing blockchain transactions on the Ethereum network; Understanding online and offline wallets; Distributed ledgers; Multiple ledgers; Paper wallets; Hardware wallets; Mobile and desktop wallets; Injecting the Web3 provider; Assignment; Summary; Chapter 7: Day Seven
- Deploying to the Network; Understanding the role of UI and smart contract; Deploying smart contracts to the Ethereum network; Geth; Obtaining ether for use in test networks; Deploying the UI to AWS; Assignment; Summary; Other Books You May Enjoy; Index