August 2019
Intermediate to advanced
486 pages
13h 52m
English
The behavioral design patterns are used when a contract behaves differently according to its current state. In Solidity, we can have a contract in different states based on the values of its variables. These behaviors should be defined in the contract definition. According to the behavior defined in a contract, a contract transitions between different states. Let's look at some of the behavioral design patterns.