• Home
  • Search
  • Solidity Code Generation From UML State Machines in Model-Driven Smart Contract Development
  • Cite Icon42
  • https://doi.org/10.1109/access.2022.3162227Copy DOI Icon

Solidity Code Generation From UML State Machines in Model-Driven Smart Contract Development

Show More
  • Abstract
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

For the development of blockchain smart contracts, a structured approach based on the principles of the Model Driven Architecture can be beneficial and facilitate the implementation of smart contracts. This paper presents such an approach, which, in combination with Unified Modeling Language (UML) Class and State machine diagrams, allows the smart contract structure and behavior logic to be modeled in several abstraction layers. This paper delves into details on how the model-to-model transformations from the specified Blockchain Platform Independent Model (PIM) with specified state-like behavior can be used to produce a Solidity Platform Specific Model (PSM). Subsequently, we elaborate on how the Solidity PSM is used for Solidity smart contract code generation by employing model-to-text transformations. The paper also demonstrates the process of our proposed transformations and code generation using smart contract code examples from Solidity documentation. Based on the examples, a Blockchain PIM is specified and transformed to Solidity PSM, which is then used for Solidity smart contract code generation. The generated smart contract code is then compiled, deployed on the Ethereum blockchain JavaScript virtual machine, and compared to the original smart contract code in terms of Solidity code metrics, similarity scores, and execution costs. The evaluation results indicate that our approach could be successfully used to model and later generate smart contract code.

Loading PDF

Similar Papers
  • PDF
  • Research Article
  • Citations16

MDA-Based Approach for Blockchain Smart Contract Development

  • Dec 30, 2022
  • Applied Sciences
  • Mantas Jurgelaitis +4
  • PDF
  • Research Article
  • Citations10

A Reuse-Oriented Visual Smart Contract Code Generator for Efficient Development of Complex Multi-Party Interaction Scenarios

  • Jul 11, 2023
  • Applied Sciences
  • Xinzhe Shen +4
  • Book Chapter
  • Citations8

Smart Contract Code Generation from Platform Specific Model for Hyperledger Go

  • Jan 01, 2021
  • Mantas Jurgelaitis +5
  • Conference Article

CASC: Content Addressed Smart Contracts

  • Aug 01, 2022
  • Markus Knecht +1
  • Research Article
  • Citations2

Smart contract optimization for gas fee reduction with static solidity optimizer

  • Aug 05, 2025
  • Discover Applied Sciences
  • Alfred Kuhlman +1
  • Book Chapter
  • Citations6

Foundations for MDA Case Tools

  • Jan 01, 2009
  • Liliana María Favre +2
  • Research Article
  • Citations24

Vulnerable smart contract function locating based on Multi-Relational Nested Graph Convolutional Network

  • Jun 09, 2023
  • Journal of Systems and Software
  • Haiyang Liu +3
  • Research Article
  • Citations719

Smart Contract Development: Challenges and Opportunities

  • Dec 18, 2019
  • IEEE Transactions on Software Engineering
  • Weiqin Zou +7
  • Research Article
  • Citations2

Evolution of Smart Contracts- A Bibliometric Analysis and Review

  • Jun 30, 2022
  • International Journal for Research in Applied Science and Engineering Technology
  • Palak Aar
  • Book Chapter
  • Citations4

Applicability of the Software Security Code Metrics for Ethereum Smart Contract

  • Aug 08, 2021
  • Aboua Ange Kevin N’Da +2
  • PDF
  • Research Article
  • Citations25

The Legal Design of the Smart Contract: The Legal Nature and Scope of Application

  • Aug 29, 2019
  • Lex Russica
  • O S Grin +2
  • PDF
  • Research Article
  • Citations322

Smart Contract: Attacks and Protections

  • Jan 01, 2020
  • IEEE Access
  • Sarwar Sayeed +2
  • Conference Article

A Recursive Descent Analysis-based Solution for Smart Contract Generation and Management

  • Dec 01, 2022
  • Xu Zhong +4
  • Research Article
  • Citations5

The Importance of Testing in the Early Stages of Smart Contract Development Life Cycle

  • Jun 03, 2020
  • Journal of Web Engineering
  • N Sánchez-Gómez +3
  • Book Chapter
  • Citations1

Formal Transformation of Platform Independent Models into Platform Specific Models

  • Jan 01, 2006
  • Pontus Boström +3
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.