Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn Ethereum

You're reading from  Learn Ethereum

Product type Book
Published in Sep 2019
Publisher Packt
ISBN-13 9781789954111
Pages 540 pages
Edition 1st Edition
Languages
Concepts
Authors (3):
Xun (Brian) Wu Xun (Brian) Wu
Profile icon Xun (Brian) Wu
Zhihong Zou Zhihong Zou
Profile icon Zhihong Zou
Dongying Song Dongying Song
Profile icon Dongying Song
View More author details
Toc

Table of Contents (19) Chapters close

Preface 1. Section 1: Blockchain and Ethereum Basics
2. Blockchain and Cryptocurrency 3. Ethereum Architecture and Ecosystem 4. Deep Research on Ethereum 5. Section 2: Blockchain Development Cycle
6. Solidity Fundamentals 7. Developing Your Own Cryptocurrency 8. Section 3: Ethereum Implementations
9. Smart Contract Development and Test Fundamentals 10. Writing UI for the DApps 11. Ethereum Tools and Frameworks 12. Section 4: Production and Deployment
13. Creating an Ethereum Private Chain 14. Deployment of Your Smart Contract 15. Building Ethereum Wallets 16. Section 5: Conclusion
17. Conclusion 18. Other Books You May Enjoy

Putting it all together – rental property leasing

In this section, we will implement and deploy a smart contract for a real-world rental property leasing use case.

The business process for a rental property being leased starts with the landlord creating a rental property listing and allowing the tenants to apply and sign the leasing agreement. Once the tenant moves in, they have to pay monthly rent to the landlord, and once the lease term is due, the lease is terminated. If the tenant misses a rent payment, the landlord has the option to start an eviction, and if the tenant terminates the lease early, they have to pay the early termination penalty.

The following is the high-level diagram of our rental property lease contract:

As we explained earlier, the smart contract is developed using a combination of the access control design pattern and the state machine design pattern...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime