{'fraction_non_alphanumeric': 0.012690355329949238, 'fraction_numerical': 0.00338409475465313, 'mean_word_length': 5.193717277486911, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Representation of Smart Contracts as State Diagrams

Smart contracts have gained popularity with the emergence of blockchain technology, although the concept behind them has been studied since the 1990s. The automation of contracts signed in real life is an interdisciplinary subject and draws attention not only in the scope of technology but also in areas like business area and legal area. With the aim of providing clear understanding, accuracy and security of information in the process of creating a smart contract, many tools have been developed, either to avoid vulnerabilities or to allow anyone to contribute in writing a contract. In view of this scenario and seeking to further facilitate the general understanding of a smart contract, this paper aims to study the representation of smart contracts as state diagrams. It summarizes, through a systematic mapping, the many ways to visually represent smart contracts as state diagrams, emphasizing their states and transitions. An experiment was also carried out in order to show how state diagrams can facilitate the understanding of a contract. The results show that state diagrams do help understanding smart contracts.