简体   繁体   English

将UI选定字段转换为Solidity智能合约

[英]Converting UI selected field to solidity smart contract

Folks 乡亲

While pitching the idea of smart contract to handle business processes, one of our client asked a very important question. 在推销智能合约来处理业务流程的想法时,我们的一位客户提出了一个非常重要的问题。

Question: What if we need a different logic/business process in future? 问题:如果将来我们需要不同的逻辑/业务流程怎么办? Can we have user configurable smart contract? 我们可以拥有用户可配置的智能合约吗?

Explanation: Let us say the entire logic changes due to business process change. 说明:让我们说整个逻辑由于业务流程的变化而变化。 In that case client will have to contact a solidity developer time and again whenever there is change in the process. 在这种情况下,每当流程发生变化时,客户将不得不一次又一次联系Solidity开发人员。

Our idea is to give a UI (with drag and drop option) where user can set smart contract logic and that logic will be translated into solidity smart contract. 我们的想法是提供一个UI(带有拖放选项),用户可以在其中设置智能合约逻辑,并将该逻辑转换为实体智能合约。

My question is that " Is this approach feasible ?" 我的问题是“ 这种方法可行吗?”

If 如果

yes

then what are the libraries/dependencies available to do this. 那么有什么库/依赖关系可以做到这一点。 If 如果

no 没有

then what option do we have? 那我们有什么选择呢? What should be our approach to solve this problem. 解决该问题的方法应该是什么。

Thanks in advance. 提前致谢。

I don't like the idea. 我不喜欢这个主意 There is long way ahead to have CMS like frameworks for writing a smart contract. 拥有像CMS这样的框架来编写智能合约,还有很长的路要走。 I think it's not feasible now. 我认为现在不可行。 But you can find some projects that trying to do so. 但是您可以找到一些尝试这样做的项目。 See this article and this project . 请参阅本文和该项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM