Recently, Blockchain technology adoption has expanded to many application areas due to the evolution of smart contracts. However, developing smart contracts is non-trivial and challenging due to the lack of tools and expertise in this field. A promising solution to overcome this issue is to use Model-Driven Engineering (MDE), however, using models still involves a learning curve and might not be suitable for non-technical users. To tackle this challenge, chatbot or conversational interfaces can be used to assess the non-technical users to specify a smart contract in gradual and interactive manner. In this paper, we propose iContractBot, a chatbot for modeling and developing smart contracts. Moreover, we investigate how to integrate iContractBot with iContractML, a domain-specific modeling language for developing smart contracts, and instantiate intention models from the chatbot. The iContractBot framework provides a domain-specific language (DSL) based on the user intention and performs model-to-text transformation to generate the smart contract code. A smart contract use case is presented to demonstrate how iContractBot can be utilized for creating models and generating the deployment artifacts for smart contracts based on a simple conversation.
翻译:最近,由于智能合同的演变,链式技术的采用已扩大到许多应用领域,但是,由于在这一领域缺乏工具和专门知识,开发智能合同是非技术性的,具有挑战性。克服这一问题的一个有希望的解决办法是使用模型驱动工程(MDE),然而,使用模型仍涉及学习曲线,可能不适合非技术用户。为了应对这一挑战,可以使用聊天机器人或对话界面来评估非技术用户,以便以渐进和互动的方式指定智能合同。在本文中,我们提议使用一个聊天机iArticBot,一个用于模拟和开发智能合同的聊天机。此外,我们研究如何将itract与itractML(开发智能合同的域名模型语言)和itractbet的即时速意向模型相结合。iLectBot框架提供了一种基于用户意图的域名语言(DSL),并进行了模型到文字的转换,以生成智能合同代码。一个智能合同使用案例展示了itractBot如何用于创建模型和生成智能合同的简单手工艺。