在Remix-IDE中部署本地插件
在Remix-IDE中部署本地插件 一、环境准备 remix-ide 是基于Solidity编写的以太坊智能合约开发环境,用于对solidity语言编写的智能合约程序进行编译。关于remix的内容不做具体介绍。为了部署插件,可以进入 在线remix编辑器 (可能需要科学上网)。也可以搭建本地的remix环境,具体方法百度相关教程。 二、插件开发 这里直接给出一个最简单的插件示例。在remix-plugin的 github页面 可以查看详细的插件开发方法。 以官方给出的hello-world示例 ,完成该插件的部署。该插件项目包含一个html文件(index.html),功能是在remix中新建一个hello-world文件,文件内容为Hello world。 完整代码(index.html): <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Hello World Plugin</title> </head> <body> <!-- Remix Plugin inject