Papers2 providers Ā· 2 records
December 17, 2024Ā· arXiv (Cornell University)
preprint
Open access

Generating Move Smart Contracts based on Concepts

Authors:Rabimba KaranjaiSam BlackshearLei XuWeidong Shi

Abstract

The growing adoption of formal verification for smart contracts has spurred the development of new verifiable languages like Move. However, the limited availability of training data for these languages hinders effective code generation by large language models (LLMs). This paper presents ConMover, a novel framework that enhances LLM-based code generation for Move by leveraging a knowledge graph of Move concepts and a small set of verified code examples. ConMover integrates concept retrieval, planning, coding, and debugging agents in an iterative process to refine generated code. Evaluations with various open-source LLMs demonstrate substantial accuracy improvements over baseline models. These results underscore ConMover's potential to address low-resource code generation challenges, bridging the gap between natural language descriptions and reliable smart contract development.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.