cmd

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RegisterInfoPath 默认注册信息地址
	RegisterInfoPath = "register.json"
	// UpdateInfoPath 默认更新信息地址
	UpdateInfoPath = "update.json"
	// SpvVersion 默认合约版本号
	SpvVersion = "1.0"
	// SpvPath 默认合约地址
	SpvPath = "./spv1chain1.7z"
	// SpvRuntimeType 默认合约运行时
	SpvRuntimeType = "DOCKER_GO"
	// SpvParam 默认合约参数
	SpvParam = "{}"
	// SpvChainRid 默认chain id
	SpvChainRid = "chain1"
	// SpvOption 默认操作
	SpvOption = "install"
)

Functions

func PrintVersion

func PrintVersion()

PrintVersion 打印版本信息

func Register

func Register()

Register 生成网关注册信息

func RegisterCMD

func RegisterCMD() *cobra.Command

RegisterCMD 生成网关注册信息命令

@return *cobra.Command

func SpvContract

func SpvContract()

SpvContract spv合约管理

func SpvContractCMD

func SpvContractCMD() *cobra.Command

SpvContractCMD spv合约管理命令

@return *cobra.Command

func SpvContractFlagSet

func SpvContractFlagSet() *pflag.FlagSet

SpvContractFlagSet spv合约管理

@return *pflag.FlagSet

func SpvContractFlags

func SpvContractFlags(cmd *cobra.Command, flagNames []string)

SpvContractFlags spv合约管理

@param cmd
@param flagNames

func StartCMD

func StartCMD() *cobra.Command

StartCMD 启动命令

@return *cobra.Command

func Update

func Update()

Update 生成网关注更新信息

func UpdateCMD

func UpdateCMD() *cobra.Command

UpdateCMD 生成网关注更新信息

@return *cobra.Command

func VersionCMD

func VersionCMD() *cobra.Command

VersionCMD 打印当前版本

@return *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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