Synthesis-powered optimization of smart contracts via data type refactoring

13Citations
Citations of this article
14Readers
Mendeley users who have this article in their library.

Abstract

Since executing a smart contract on the Ethereum blockchain costs money (measured in gas), smart contract developers spend significant effort in reducing gas usage. In this paper, we propose a new technique for reducing the gas usage of smart contracts by changing the underlying data layout. Given a smart contract P and a type-level transformation, our method automatically synthesizes a new contract P′ that is functionally equivalent to P. Our approach provides a convenient DSL for expressing data type refactorings and employs program synthesis to generate the new version of the contract. We have implemented our approach in a tool called Solidare and demonstrate its capabilities on real-world smart contracts from Etherscan and GasStation. In particular, we show that our approach is effective at automating the desired data layout transformation and that it is useful for reducing gas usage of smart contracts that use rich data structures.

Cite

CITATION STYLE

APA

Chen, Y., Wang, Y., Goyal, M., Dong, J., Feng, Y., & Dillig, I. (2022). Synthesis-powered optimization of smart contracts via data type refactoring. Proceedings of the ACM on Programming Languages, 6(OOPSLA2). https://doi.org/10.1145/3563308

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free