SolContractEval
收藏资源简介:
SolContractEval是一个用于评估智能合约代码生成质量的数据集,包含来自真实区块链智能合约的124个生成任务,涵盖去中心化金融、非同质化代币、游戏金融等9个主要应用领域。每个任务包含合同上下文依赖、结构化合同框架和清晰的任务提示。为了确保数据质量,每个任务输入都由两名具有三年智能合约开发经验的开发人员独立标注和交叉验证。此外,为了准确和自动评估生成合同的功能正确性,我们引入了基于历史交易回放的动态评估框架。
SolContractEval is a dedicated dataset for evaluating the code generation quality of smart contracts. It encompasses 124 generation tasks sourced from real-world blockchain smart contracts, spanning 9 primary application domains including decentralized finance (DeFi), non-fungible tokens (NFTs), game finance, and others. Each task comprises contract context dependencies, a structured contract framework, and explicit task prompts. To guarantee data quality, every task input was independently annotated and cross-validated by two developers each with three years of smart contract development experience. Additionally, to enable accurate automated evaluation of the functional correctness of the generated smart contracts, we introduce a dynamic evaluation framework based on historical transaction replay.

- 1通过浙江大学区块链与数据安全国家重点实验室, 中国杭州高新技术产业开发区(滨江)区块链与数据安全研究院, 中国中山大学 · 2025年



