plugin

command module
v1.75.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

API Reference ci_base Go Report Card codecov

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

环境
golang1.19+

支持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

CI 全部由 GitHub Actions 驱动(.github/workflows/)。新增 dapp 的 testcase 后, 在 .github/workflows/ci_dapps.yml 的 matrix 里加一行 - dapp: <name> 即可, 本地可用 make docker-compose dapp=<name> 复现,make docker-compose-down dapp=<name> 清理。

Documentation

Overview

每个系统的功能通过插件完成,插件分成4类: 共识 加密 dapp 存储 这个go 包提供了 官方提供的 插件。

Directories

Path Synopsis
cli
fork_config command
consensus/dpos
Package dpos Uses nacl's secret_box to encrypt a net.Conn.
Package dpos Uses nacl's secret_box to encrypt a net.Conn.
consensus/dpos/types
Package types is a generated protocol buffer package.
Package types is a generated protocol buffer package.
consensus/qbft
Package qbftNode Uses nacl's secret_box to encrypt a net.Conn.
Package qbftNode Uses nacl's secret_box to encrypt a net.Conn.
consensus/tendermint
Package tendermint Uses nacl's secret_box to encrypt a net.Conn.
Package tendermint Uses nacl's secret_box to encrypt a net.Conn.
crypto/legacymimc
Package legacymimc 提供 gnark-crypto v0.5.3 的旧版 MiMC 实现。
Package legacymimc 提供 gnark-crypto v0.5.3 的旧版 MiMC 实现。
dapp/accountmanager/commands
Package commands implement dapp client commands
Package commands implement dapp client commands
dapp/blackwhite
Package blackwhite 黑白配游戏插件
Package blackwhite 黑白配游戏插件
dapp/coinsx
Package coins 系统级coins dapp插件
Package coins 系统级coins dapp插件
dapp/coinsx/executor
Package executor coins执行器
Package executor coins执行器
Package sync ...
dapp/dex/boss command
dapp/echo/types/echo
Package echo is a generated protocol buffer package.
Package echo is a generated protocol buffer package.
dapp/evm/executor/vm/common/math
Package math provides integer math utilities.
Package math provides integer math utilities.
dapp/evmxgo/commands
Package commands implement dapp client commands
Package commands implement dapp client commands
dapp/exchange/commands
Package commands implement dapp client commands
Package commands implement dapp client commands
dapp/lightclient/commands
Package commands implement dapp client commands
Package commands implement dapp client commands
dapp/lightclient/rpc/lightclient/neutrino
Package neutrino integrate btc light client neutrino
Package neutrino integrate btc light client neutrino
dapp/mix/wallet
Package ecdh implements the Diffie-Hellman key exchange using elliptic curves (ECDH).
Package ecdh implements the Diffie-Hellman key exchange using elliptic curves (ECDH).
dapp/paracross
Package paracross 实现了跨链合约.
Package paracross 实现了跨链合约.
dapp/privacy/types
Package types ...
Package types ...
dapp/rgbx/commands
Package commands implement dapp client commands
Package commands implement dapp client commands
dapp/rollup/commands
Package commands implement dapp client commands
Package commands implement dapp client commands
dapp/storage/commands
Package commands implement dapp client commands
Package commands implement dapp client commands
dapp/token
Package token 创建token
Package token 创建token
dapp/token/cmd/signatory-server/signatory
Package signatory is a generated protocol buffer package.
Package signatory is a generated protocol buffer package.
dapp/vote/commands
Package commands implement dapp client commands
Package commands implement dapp client commands
dapp/x2ethereum/commands
Package commands implement dapp client commands
Package commands implement dapp client commands
Package sync ...
dapp/x2ethereum/ebrelayer/types
Package types is a generated protocol buffer package.
Package types is a generated protocol buffer package.
dapp/zksync/commands
Package commands implement dapp client commands
Package commands implement dapp client commands
p2p/gossip
Package gossip 实现了gossip网络拓扑
Package gossip 实现了gossip网络拓扑
p2p/gossip/nat
Package nat provides access to common network port mapping protocols.
Package nat provides access to common network port mapping protocols.
p2p/init
Package init init p2p
Package init init p2p
store/kvmvccmavl
Package kvmvccmavl kvmvcc+mavl接口
Package kvmvccmavl kvmvcc+mavl接口
store/mpt/db
Package mpt implements Merkle Patricia Tries.
Package mpt implements Merkle Patricia Tries.
store/mpt/db2
Package mpt implements Merkle Patricia Tries.
Package mpt implements Merkle Patricia Tries.
store/mpt/db2/rlp
Package rlp implements the RLP serialization format.
Package rlp implements the RLP serialization format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL