Consider the functions depicted in figure 11.3 and the discussion of the roles, assets, and events to obtain the contract diagram, as shown in figure 11.4. A contract diagram lists the data structures, events, modifiers, and function headers of the contract.