Giter Site home page Giter Site logo

sunjian-1996 / plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 33cn/plugin

0.0 0.0 0.0 85.38 MB

chain33 官方插件系统

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.22% Dockerfile 0.01% Shell 6.25% Go 91.43% Batchfile 0.01% HTML 0.01% JavaScript 0.38% Assembly 0.84% C 0.09% C++ 0.15% Solidity 0.62%

plugin's Introduction

API Reference pipeline status Go Report Card Windows Build Status codecov

chain33 官方插件系统(v6.4.0)

环境

需要安装golang1.13 or latest

支持make file的平台

//开启mod功能
export GO111MODULE=on

//国内用户需要导入阿里云代理,用于下载依赖包
export GOPROXY=https://mirrors.aliyun.com/goproxy

make

就可以完成编译安装

注意:国内用户需要导入一下代理,才能获取依赖包,mod功能在Makefile中默认开启

运行

./chain33 -f chain33.toml

注意,默认配置会连接chain33 测试网络

注意:

使用mod管理依赖包,主要就是翻墙问题 为了解决包依赖翻墙下载问题,我们提供了阿里云代理。

贡献代码:

详细的细节步骤可以见 https://github.com/33cn/chain33 这里只是简单的步骤:

准备阶段:

  • 首先点击 右上角的 fork 图标, 把chain33 fork 到自己的分支 比如我的是 vipwzw/plugin
  • git clone https://github.com/vipwzw/plugin.git $GOPATH/src/github.com/33cn/plugin
注意:这里要 clone 到 $GOPATH/src/github.com/33cn/plugin, 否则go 包路径会找不到

clone 完成后,执行

make addupstream

创建分支准备开发新功能

make branch b=branch_dev_name

提交代码

make push b=branch_dev_name m="hello world"

如果m不设置,那么不会执行 git commit 的命令

测试代码

类似plugin/dapp/relay,在cmd目录下编写自己插件的Makefile和build.sh 在build目录下写testcase和相关的Dockerfile和docker-compose配置文件, testcase的规则参考plugin/dapp/testcase_compose_rule.md

用户可以在travis自己工程里面设置自己plugin的DAPP变量,如DAPP设置为relay,则travis里面run relay的testcase

plugin's People

Contributors

vipwzw avatar linj-disanbo avatar lyh169 avatar zzh33cn avatar jpeng-go avatar mdj33 avatar harrylee2015 avatar bysomeone avatar yingqm avatar 33cn avatar lynazrael avatar caopingcp avatar zhengjunhe avatar hugo-huang avatar chain33-shg avatar whisker17 avatar hxzqlh avatar niniwzw avatar leowei1234567 avatar developerren avatar kongmingbo avatar yuanchain avatar andyyuanfzm avatar libangzhu avatar jixingwei avatar wchh avatar caoping33 avatar icehawk-hyb avatar yann-sjtu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.