随着区块链的发展,智能合约的开发逐渐成为一片新的蓝海。与智能合约发展一同进步的其实还有一系列的智能合约开发工具和安全审计工具,但由于此方面很少有人介绍,导致大量新型工具并不为人所熟知。本文主要介绍智能合约开发和安全审计工具,以智能合约开发和测试为主线,依次介绍涉及以下方面的工具:
With the development of block chains, the development of smart contracts has gradually become a new blue sea. The development of smart contracts has been accompanied by a series of smart contract development tools and security auditing tools, but few have been introduced, leading to a large number of new tools that are not well known.
- 编辑器配置
- 代码编写、测试与部署
- 合约安全测试
- 链上合约调用分析
- 区块数据获取
本文章主要面向使用语言进行太坊或以太坊兼容链智能合约开发的程序员。
The article is aimed primarily at programmers who use language for the development of e-Team or e-Team-compatible intellectual contracts.
作为智能合约开发者,拥有一个配置良好的编辑器可以大幅度提高合约开发效率。由于目前智能合约开发刚刚起步,并没有使用专业的IDE,但通用编辑器配合各种插件可以拥有非常好的开发体验。在此处,我建议按照以下插件:
As an intelligent contract developer, having a well-configured editor can significantly improve the efficiency of contract development. Since the current smart contract development is just beginning, no professional IDE is used, but a generic editor can have a very good development experience with various plugins. Here, I suggest following the following plugins:
前者可以提供一些基础的语言特性高亮和自动补齐功能,而后者专门为智能合约审计人员设计,提供了大量的附加功能,方便开发者理解合约。对于一般开发者而言,基础插件的功能较好理解,此处我们着重介绍,该插件提供了大量的合约可视化能力,如下图所示:
The former can provide some of the underlying linguistic features and auto-compatibility functions, while the latter is designed for intelligent contract auditors and provides a great deal of additional functionality to facilitate the developers’ understanding of the contract. For developers in general, the basic plugin functions are better understood, and we highlight here that the plugin provides a great deal of contractual visualization, as shown in the figure below:
除此之外,此插件还提供了以下功能:
In addition to this, the plugin provides the following functions:
一是更加多样化的颜色绚烂、参数显示和函数信息显示,如下图所示:
The first is a more diverse colour, parameter and function information display, as shown in the figure below:
二是引入了更加丰富的关键词信息和安全建议展示,如下图:
Second is the introduction of richer keyword information and security advice displays, as follows:
三是增加了显示所有函数选择器的展示,如下图:
Third, a display showing all function selections has been added as follows:
四是增加了合约概览展示,如下图:
The fourth is the addition of an overview presentation of the contract as follows:
总而言之,提供了大量对于智能合约开发者实用的功能,无论开发者从事合约开发抑或是合约审计,此插件都可以大幅度增加开发体验。
In summary, a large number of functions are available that are useful for intelligent contract developers, and this plugin can significantly increase the development experience, whether the developers are engaged in contract development or contract audit.
在代码编写、测试与部署环节,我个人推荐使用框架,此框架具有以下特点:
In the code development, testing and deployment phases, I personally recommend the use of the framework, which has the following characteristics:
- 易于安装(仅针对Linux和MacOS系统)
- 可以快速编译智能合约
- 使用 solidity 作为测试框架语言,而不需要使用 javascript或 typescript 作为测试辅助语言
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论