proposal

package
v0.5.3-beta.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProposalCommand = cli.Command{
		Name:  "proposal",
		Usage: "Manage Proposal Contract",
		Description: `
		Manage Proposal Contract
		`,
		Flags: flags.GeneralFlags,
		Subcommands: []cli.Command{
			{
				Name:        "deploy",
				Usage:       "proposal deploy <congress address>",
				Action:      deploy,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "string",
				Description: `deploy contract`,
			},
			{
				Name:        "submit",
				Usage:       "submit --id <id>  --period <period, seconds>",
				Action:      submit,
				Flags:       append(flags.GeneralFlags, submitFlag...),
				Description: `submit proposal`,
			},
			{
				Name:        "approve",
				Usage:       "approve <id>",
				Action:      approve,
				Flags:       flags.GeneralFlags,
				Description: `approve proposal`,
			},
			{
				Name:        "vote",
				Usage:       "vote <id>",
				Action:      vote,
				Flags:       flags.GeneralFlags,
				Description: `vote proposal`,
			},
			{
				Name:        "get-status",
				Usage:       "get-status <id>",
				Action:      getStatus,
				Flags:       flags.GeneralFlags,
				Description: `status of proposal`,
			},
			{
				Name:        "show-configs",
				Usage:       "proposal showconfigs",
				Action:      showConfigs,
				Flags:       flags.GeneralFlags,
				Description: `show configs`,
			},
			{
				Name:        "set-amount-threshold",
				Usage:       "set-amount-threshold <value>",
				Action:      setAmountThreshold,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "int",
				Description: `set amount threshold`,
			},
			{
				Name:        "set-approval-threshold",
				Usage:       "set-approval-threshold <value>",
				Action:      setApprovalThreshold,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "int",
				Description: `set approval threshold`,
			},
			{
				Name:        "set-vote-threshold",
				Usage:       "set-vote-threshold <value>",
				Action:      setVoteThreshold,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "int",
				Description: `set vote threshold`,
			},
			{
				Name:        "set-min-congress",
				Usage:       "set-min-congress <value>",
				Action:      setMinCongress,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "int",
				Description: `set vote threshold`,
			},
			{
				Name:        "set-id-length",
				Usage:       "set-id-length <value>",
				Action:      setIDLength,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "int",
				Description: `set IDLength`,
			},
			{
				Name:        "set-max-period",
				Usage:       "set-max-period <value>",
				Action:      setMaxPeriod,
				Flags:       flags.GeneralFlags,
				ArgsUsage:   "int",
				Description: `set maxPeriod`,
			},
			{
				Name:        "disable",
				Usage:       "disbale",
				Action:      disable,
				Flags:       flags.GeneralFlags,
				Description: `disable contract`,
			},
			{
				Name:        "enable",
				Usage:       "enable",
				Action:      enable,
				Flags:       flags.GeneralFlags,
				Description: `enable contract`,
			},
			{
				Name:        "refund",
				Usage:       "refund --id <proposal id>",
				Action:      refund,
				Flags:       append(flags.GeneralFlags, idFlag...),
				Description: `refund`,
			},
			{
				Name:        "refund-all",
				Usage:       "refund-all",
				Action:      refundAll,
				Flags:       flags.GeneralFlags,
				Description: `refund all`,
			},
		},
	}
)

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