Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Title Page
Copyright and Credits
Hands-On Blockchain Development in 7 Days
About Packt
Why subscribe?
Packt.com
Contributor
About the author
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
Conventions used
Get in touch
Reviews
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
Day Two - Solidity Variables and Data Types
Understanding Solidity variables
Understanding 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
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 modifiers
The require function
Assignment
Summary
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
Day Five - Building a User Interface
Understanding the role of JavaScript and React in a DApp
Creating 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
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 price
Viewing 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
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
Leave a review - let other readers know what you think
← Prev
Back
Next →
← Prev
Back
Next →