defi_blocks – 德菲尤街区区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,defi_blocks – 德菲尤街区区块链毕设代写 是一篇很好的国外资料

defi_blocks

Description

This is a very basic PoC for a graphical no-code builder that generates solidity smart contract code from a given blockly block.

defi_blocks - 德菲尤街区

Currently it’s re-implementing the DAICompoundBasic strategy from yearn. It comes with a custom blockly block that can be used to parametrize the strategy and switch between a depositor, a rewardor, the exchange and the token that is wanted and optimized by the strategy without writing any single line of solidity code.

The tool generates the smart contract code by applying the configured block to a given template file which is provided. The logic is currently very limited, the idea was just if it’s doable and how no-code programming of smart contracts could be used.

I have created this as a fun project for the ETHonline 2020 hackathon.

Note: Most of the code is currently hard-wired so basically it always ouputs the DAICompoundBasic yearn strategy atm 😂

Usage

As this is a very quick & dirty implementation the only thing you can do right now is to generate the solidity code from a preconfigured block for the DAICompoundBasic strategy from yearn:

npm install && node index.js

The generated smart contract code can then be found in generated/defi_blocks.sol

Future

As an example, this PoC generates solidity code based on a template version of a smart contract from yearn. However, it’s not tied to yearn at all. You could generate any smart contract that respects a certain design pattern and can logically be mapped to blockly. Creating a blockly parser or language generator for solidity or maybe even vyper could be the next thing to implement.

It might also be integrated into a web app where users could just click together some new strategies and generate the solidity code on the fly. Maybe this could be even compiled and run against remix or similar tools, there are many options.

It’s time to buidl! 🚀

We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Learn more.


定义块

说明

这是一个非常基本的PoC,用于图形化的无代码生成器,它从给定的块中生成可靠的智能合约代码。

defi_blocks - 德菲尤街区

<defi_blocks>

目前,它正在实施来自earr的daicomoundBasic策略。它提供了一个自定义块块,可用于参数化策略,并在存款人、回报人、交易所和该策略所需和优化的代币之间切换,而无需编写任何一行可靠代码。

该工具通过将配置的块应用于所提供的给定模板文件来生成智能合约代码。逻辑目前是非常有限的,想法只是如果它是可行的,以及如何不使用智能合约的代码编程。

我把这个作为一个有趣的项目为etonline 2020黑客竞赛。

Usage

注意:大多数代码目前都是硬连接的,所以基本上它总是输出daicompondBasic erren-strategy atm😂

由于这是一个非常快速且不干净的实现,因此您现在唯一能做的就是从预先配置的块中为来自earsh的daicomoundBasic策略生成solidity代码:

npm install&amp;节点索引.js

Future

生成的智能合约代码可以在generated/defi中找到_块.sol

例如,这个PoC基于来自earr的智能合约的模板版本生成solidity代码。然而,它与思念一点关系也没有。您可以生成任何尊重某个设计模式并且可以逻辑地映射到块的智能合约。下一步要实现的是为solidity或者甚至vyper创建一个块解析器或语言生成器。

它也可以集成到一个web应用程序中,用户只需点击一些新的策略,就可以动态生成solidity代码。也许这甚至可以编译和运行在混音或类似的工具上,有很多选择。

是时候建造了!🚀

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/18123.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » defi_blocks – 德菲尤街区区块链毕设代写

提供最优质的资源集合

立即查看 了解详情