GithubHelp home page GithubHelp logo

lei1030 / plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 33cn/plugin

0.0 0.0 0.0 69.1 MB

chain33 官方插件系统

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

Makefile 0.27% Batchfile 0.01% Dockerfile 0.01% Shell 3.03% Go 95.86% HTML 0.03% JavaScript 0.80%

plugin's Introduction

API Reference pipeline status Go Report Card Windows Build Status codecov

chain33 官方插件系统

安装

1. 安装govendor 工具
go get -u -v github.com/kardianos/govendor

支持make file的平台

make

就可以完成编译安装

运行

./chain33 -f chain33.toml

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

注意:

从头开始安装vendor 有非常大的难度,主要问题是带宽 和 翻墙问题 为了解决包依赖等问题,我们直接提供了vendor目录。

贡献代码:

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

准备阶段:

  • 首先点击 右上角的 fork 图标, 把chain33 fork 到自己的分支 比如我的是 vipwzw/plugin
  • git clone https://github.com/vipwzw/chain33.git $GOPATH/src/github.com/33cn/plugin
注意:这里要 clone 到 $GOPATH/src/github.com/33cn/chain33, 否则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 zzh33cn avatar mdj33 avatar 33cn avatar jpeng-go avatar bysomeone avatar harrylee2015 avatar hugo-huang avatar chain33-shg avatar niniwzw avatar leowei1234567 avatar caopingcp avatar zhengjunhe avatar developerren avatar lyh169 avatar kongmingbo avatar yuanchain avatar hxzqlh avatar jixingwei avatar caoping33 avatar icehawk-hyb 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.