Proceedings of the ACM on Programming Languages · 2022 · 14 citations · 28 references
ComputingComputer ScienceComputer SystemsCompilersData StructuresDesign AutomationData TransformationData TypesDesign SynthesisSmart ContractsSoftware DesignSoftware RefactoringAutomated Contract SynthesisAutomated Program SynthesisData Layout OptimizationGas OptimizationProgram SynthesisSynthesis OptimizationType Transformation
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.
28
ContractFuzzer: fuzzing smart contracts for vulnerability detection
Bo Jiang, Ye Liu, W. K. Chan · 2018 · 798 citations · Full text
ZEUS: Analyzing Safety of Smart Contracts
Sukrit Kalra, Seep Goel, Mohan Dhawan et al. · 2018 · 710 citations · Full text
Under-optimized smart contracts devour your money
Ting Chen, Xiaoqi Li, Xiapu Luo et al. · 2017 · 384 citations
Johannes Henkel, Amer Diwan · 2005 · 274 citations