Summary
In this chapter, we designed and partially developed our first smart contract, or chaincode, following the use case described in Chapter 9, Building a Next-Generation Oracle B2B Platform. To begin, I explained why it is best to start designing your smart contract with a model-first approach. It is important to get to know your participants and design your data objects, transactions, and events before coding the contract. Also in this chapter, we designed our model and separated the data objects, transactions, and events into four different domains (commonly known as namespaces), namely basic, accident, vehicle repair, and insurance. For each of the domains, I reviewed the contents of the data objects, its purpose and relationships, ...
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.
Read now
Unlock full access