Coder Social home page Coder Social logo

ljh88hjl / plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 33cn/plugin

0.0 0.0 0.0 92.19 MB

chain33 官方插件系统

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

Makefile 0.20% Dockerfile 0.01% Shell 4.33% Go 90.83% Batchfile 0.01% HTML 0.01% JavaScript 0.19% Assembly 0.41% C 0.06% C++ 0.09% Solidity 3.87%

plugin's Introduction

API Reference pipeline status Go Report Card Windows Build Status codecov

chain33 官方插件系统(v1.67.2)

环境

需要安装golang1.17 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

33cn avatar andyyuanfzm avatar bysomeone avatar caopingcp avatar chain33-shg avatar developerren avatar harrylee2015 avatar hugo-huang avatar hxzqlh avatar jixingwei avatar jpeng-go avatar kongmingbo avatar leowei1234567 avatar libangzhu avatar linj-disanbo avatar lyh169 avatar lynazrael avatar mdj33 avatar niniwzw avatar semantic-release-bot avatar suyanlong avatar trouble-cxb avatar unpolaris avatar vipwzw avatar whisker17 avatar yann-sjtu avatar yingqm avatar yuanchain avatar zhengjunhe avatar zzh33cn 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.