campaign

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: GPL-3.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CampaignCommand = cli.Command{
		Name:  "campaign",
		Usage: "Manage Campaign Contract",
		Description: `
		Manage Campaign Contract
		`,
		Flags: flags.GeneralFlags,
		Subcommands: []cli.Command{
			{
				Name:        "setadmissionaddr",
				Usage:       "set admission contract address, <address in string>",
				Action:      setAdmissionAddress,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "address",
				Description: `set admission contract address`,
			},
			{
				Name:        "setrnodeaddr",
				Usage:       "set rnode contract address, <address in string>",
				Action:      setRnodeAddress,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "address",
				Description: `set rnode contract address`,
			},
			{
				Name:        "setminnoc",
				Usage:       "set min noc",
				Action:      setMinNoc,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "int",
				Description: `set rnode contract address`,
			},
			{
				Name:        "setmaxnoc",
				Usage:       "set max noc",
				Action:      setMaxNoc,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "int",
				Description: `set rnode contract address`,
			},
			{
				Name:        "setblocks",
				Usage:       "set acceptable blocks",
				Action:      setAcceptableBlocks,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "int",
				Description: `set acceptable blocks`,
			},
			{
				Name:        "setversion",
				Usage:       "set supported version",
				Action:      setVersion,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "int",
				Description: `set supported version`,
			},
			{
				Name:        "showconfigs",
				Usage:       "show configs in contract",
				Action:      showConfigs,
				Flags:       flags.GeneralFlags,
				Description: `show configs in contract`,
			},
			{
				Name:        "showcandidates",
				Usage:       "show candidates in contract in given term range, [start, end]",
				Action:      showCandidates,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "start, end",
				Description: `show candidates in contract in given term range in contract`,
			},
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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