Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
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 Balance
Token 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 Blacklist
Other 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
Deploying to the Web
Conclusion
← Prev
Back
Next →
← Prev
Back
Next →