Build your first Ethereum DApp /

In this book we'll walk through the creation of a complete distributed application (DApp) based on the Ethereum platform. We'll be building The Neverending Story, a crowdsourced choose-your-own-adventure story with crowd curation and community censorship. This book is for anyone interested...

Full description

Saved in:
Bibliographic Details
Other Authors: Škvorc, Bruno (Editor)
Format: Electronic eBook
Language:English
Published: Collingwood, VIC, Australia : SitePoint Pty. Ltd., [2018]
Subjects:
Online Access:CONNECT
Table of Contents:
  • Build Your First Ethereum DApp; Notice of Rights; Notice of Liability; Trademark Notice; About SitePoint; Preface; Who Should Read This Book?; Conventions Used; Code Samples; Tips, Notes, and Warnings; Chapter 1: App Rules and Blockchain Setup; What We'll Be Building; Chapters; Fees; Bootstrapping: PoA Private Blockchain; Bootstrapping: Ganache CLI; Conclusion; Chapter 2: Creating, Deploying TNS Tokens; Prerequisites; The Basic Dependencies; Starting the Token; SafeMath; ERC20 from Scratch; Basic balances; Total supply; Sending tokens; Allowance; Constructor; Alternative Development Flow
  • Initial BalanceToken Locking; Full Code; Conclusion; Chapter 3: Ethereum DApps: Compiling, Deploying, Testing TNS tokens; Compiling; Deploying to Ganache; Testing the Token; Deploying to a Live Network; Bonus: Verification and ENS; Verification; ENS; Conclusion; Chapter 4: Whitelisting & Testing a Story DAO; Contract Outline; Testing; Whitelist; Conclusion; Chapter 5: Cross-contract Communication & Token Selling; Adding Tokens; Buying Tokens; Structs and Submissions; Deleting; Deployments Get More Complicated; Conclusion; Chapter 6: Voting with Custom Tokens; Votes and Proposals
  • Voting to Delete and BlacklistOther Types of Votes; Chapter End; Dividend Distribution and Withdrawals; Deployment Issues; Conclusion; Chapter 7: Building a Web3 UI for a DAO Contract; Automating Transfers; The Front End; About the syntax; Account Information; Session; Account avatar; Account balances; Listening to events; Account whitelisting; Submitting an entry; Conclusion; Chapter 8: Launching the StoryDao; Suicide; What about selfdestruct?; Deploying the Contract; Mainnet Deployment; Send tokens to StoryDao address; Transfer ownership of token to StoryDao; Verification