Inicio  /  Future Internet  /  Vol: 12 Par: 11 (2020)  /  Artículo
ARTÍCULO
TITULO

An Organized Repository of Ethereum Smart Contracts? Source Codes and Metrics

Giuseppe Antonio Pierro    
Roberto Tonelli and Michele Marchesi    

Resumen

Many empirical software engineering studies show that there is a need for repositories where source codes are acquired, filtered and classified. During the last few years, Ethereum block explorer services have emerged as a popular project to explore and search for Ethereum blockchain data such as transactions, addresses, tokens, smart contracts? source codes, prices and other activities taking place on the Ethereum blockchain. Despite the availability of this kind of service, retrieving specific information useful to empirical software engineering studies, such as the study of smart contracts? software metrics, might require many subtasks, such as searching for specific transactions in a block, parsing files in HTML format, and filtering the smart contracts to remove duplicated code or unused smart contracts. In this paper, we afford this problem by creating Smart Corpus, a corpus of smart contracts in an organized, reasoned and up-to-date repository where Solidity source code and other metadata about Ethereum smart contracts can easily and systematically be retrieved. We present Smart Corpus?s design and its initial implementation, and we show how the data set of smart contracts? source codes in a variety of programming languages can be queried and processed to get useful information on smart contracts and their software metrics. Smart Corpus aims to create a smart-contract repository where smart-contract data (source code, application binary interface (ABI) and byte code) are freely and immediately available and are classified based on the main software metrics identified in the scientific literature. Smart contracts? source codes have been validated by EtherScan, and each contract comes with its own associated software metrics as computed by the freely available software PASO. Moreover, Smart Corpus can be easily extended as the number of new smart contracts increases day by day.

 Artículos similares

       
 
Luis F. Gonzalez, Ivan Vidal, Francisco Valera, Raul Martin and Dulce Artalejo    
Microservices have become promising candidates for the deployment of network and vertical functions in the fifth generation of mobile networks. However, microservice platforms like Kubernetes use a flat networking approach towards the connectivity of vir... ver más
Revista: Future Internet

 
Mateusz Malarczyk, Mateusz Zychlewicz, Radoslaw Stanislawski and Marcin Kaminski    
In this paper, the problem of the remote control of electric drives with a complex mechanical structure is discussed. Oscillations of state variables and control precision are the main issues found in such applications. The article proposes a smart, IoT-... ver más
Revista: Future Internet

 
Denis Rangelov, Philipp Lämmel, Lisa Brunzel, Stephan Borgert, Paul Darius, Nikolay Tcholtchev and Michell Boerger    
The constant increase in volume and wide variety of available Internet of Things (IoT) devices leads to highly diverse software and hardware stacks, which opens new avenues for exploiting previously unknown vulnerabilities. The ensuing risks are amplifie... ver más
Revista: Future Internet

 
Valerio Mandarino, Giuseppe Pappalardo and Emiliano Tramontana    
The increased penetration of Distributed Energy Resources (DERs) in electricity markets has given rise to a new category of energy players, called Aggregators, whose role is to ensure fair remuneration for energy supplied by DERs, and support the smooth ... ver más
Revista: Future Internet

 
Abubakar Ahmad Musa, Adamu Hussaini, Cheng Qian, Yifan Guo and Wei Yu    
The Internet of Things (IoT) constitutes a vast network comprising various components such as physical devices, vehicles, buildings, and other items equipped with sensors, actuators, and software. These components are interconnected, facilitating the col... ver más
Revista: Future Internet