Reducing the execution time of unit tests of smart contracts in blockchain platforms

被引:0
|
作者
Medeiros, Hallan [1 ]
Vilain, Patricia [1 ]
Pereira Junior, Vilmar Cesar [1 ]
机构
[1] Univ Fed Santa Catarina, Florianopolis, SC, Brazil
关键词
Smart Contracts Testing; Test Automation;
D O I
10.1145/3330204.3330225
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Smart Contracts are software code that resides within a blockchain, using its infrastructure as an advantage and guarantee of execution. Blockchain and smart contracts are enabling new business models and standards to information systems. However, a smart contract needs to be well tested before to be published in a blockchain, since it cannot be changed after being deployed. The execution time to deploy smart contracts and run their tests is considerable because all transactions must be mined before being added to a new block. This work proposes an approach to reuse the execution of the deployment and the setup of unit test in smart contracts to reduce the execution time of these tests. Experiments have shown a large reduction in the execution time of smart contract unit tests, without breaking the principle of test independency.
引用
收藏
页数:8
相关论文
共 50 条
  • [1] Efficient Concurrent Execution of Smart Contracts in Blockchain Sharding
    Wang, Yan
    Li, Jixin
    Liu, Wansheng
    Tan, Aiping
    [J]. SECURITY AND COMMUNICATION NETWORKS, 2021, 2021
  • [2] Towards a Framework to compare Blockchain Platforms for Smart Contracts
    Di Lucca, Giuseppe A.
    Tortorella, Maria
    [J]. 2021 INTERNATIONAL CONFERENCE ON COMPUTATIONAL SCIENCE AND COMPUTATIONAL INTELLIGENCE (CSCI 2021), 2021, : 1931 - 1937
  • [3] THE CAMBRIDGE HANDBOOK OF SMART CONTRACTS, BLOCKCHAIN TECHNOLOGY AND DIGITAL PLATFORMS
    Tung, Le Xuan
    [J]. EDINBURGH LAW REVIEW, 2023, 27 (03) : 436 - +
  • [4] Systematic Literature Review of Blockchain based Smart Contracts Platforms
    Parjuangan, Sabam
    Suhardi
    [J]. 2020 INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY SYSTEMS AND INNOVATION (ICITSI), 2020, : 381 - 386
  • [5] Execution Plan Control in Dynamic Coalition of Robots with Smart Contracts and Blockchain
    Teslya, Nikolay
    Potryasaev, Semyon
    [J]. INFORMATION, 2020, 11 (01)
  • [6] BPU: A Blockchain Processing Unit for Accelerated Smart Contract Execution
    Lu, Tao
    Peng, Lu
    [J]. PROCEEDINGS OF THE 2020 57TH ACM/EDAC/IEEE DESIGN AUTOMATION CONFERENCE (DAC), 2020,
  • [7] Blockchain and Smart Contracts
    Abdelhamid, Manar
    Hassan, Ghada
    [J]. PROCEEDINGS OF 2019 8TH INTERNATIONAL CONFERENCE ON SOFTWARE AND INFORMATION ENGINEERING (ICSIE 2019), 2019, : 91 - 95
  • [8] An SGX-based execution framework for smart contracts upon permissioned blockchain
    Fang, Min
    Zhang, Zhao
    Jin, Cheqing
    Zhou, Aoying
    [J]. DISTRIBUTED AND PARALLEL DATABASES, 2024, 42 (02) : 143 - 178
  • [9] An SGX-based execution framework for smart contracts upon permissioned blockchain
    Min Fang
    Zhao Zhang
    Cheqing Jin
    Aoying Zhou
    [J]. Distributed and Parallel Databases, 2024, 42 : 143 - 178
  • [10] A Perspective on Blockchain Smart Contracts: Reducing Uncertainty and Complexity in Value Exchange
    Kim, Henry
    Laskowski, Marek
    [J]. 2017 26TH INTERNATIONAL CONFERENCE ON COMPUTER COMMUNICATION AND NETWORKS (ICCCN 2017), 2017,