Skip to Content
Solidity Programming Essentials - Second Edition
book

Solidity Programming Essentials - Second Edition

by Ritesh Modi
June 2022
Intermediate to advanced content levelIntermediate to advanced
412 pages
8h 24m
English
Packt Publishing
Content preview from Solidity Programming Essentials - Second Edition

Chapter 15: Solidity Design Patterns

Solidity is a contract-based language. You might wonder what a language has to do with entity modeling. On the face of it, it does not sound right; however, after security, entity modeling is probably one of the most important activities for writing smart contracts. But why is entity modeling an important exercise for smart contracts? To understand this question, we must understand the purpose of smart contracts. Smart contracts comprise two important facets:

  1. Entities
  2. Logic

Data stored in smart contracts is stored permanently within Ethereum storage. The use of storage comes with the cost of reading and writing to it. It is for this reason that it is very important to store optimal data that is necessary ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Solidity Programming Essentials

Solidity Programming Essentials

Ritesh Modi
Programming Rust, 2nd Edition

Programming Rust, 2nd Edition

Jim Blandy, Jason Orendorff, Leonora F. S. Tindall

Publisher Resources

ISBN: 9781803231181Supplemental Content