commands

package
v0.0.0-...-9dc3ee9 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagPubKey                 = "pubkey"
	FlagAmount                 = "amount"
	FlagMaxAmount              = "max-amount"
	FlagCompRate               = "comp-rate"
	FlagAddress                = "address"
	FlagCandidateAddress       = "candidate-address"
	FlagName                   = "name"
	FlagEmail                  = "email"
	FlagWebsite                = "website"
	FlagLocation               = "location"
	FlagProfile                = "profile"
	FlagVerified               = "verified"
	FlagCubeBatch              = "cube-batch"
	FlagSig                    = "sig"
	FlagDelegatorAddress       = "delegator-address"
	FlagNewCandidateAddress    = "new-candidate-address"
	FlagAccountUpdateRequestId = "account-update-request-id"
)

nolint

View Source
const (
	FlagHeight = "height"
)

nolint

Variables

View Source
var (
	CmdQueryValidator = &cobra.Command{
		Use:   "validator",
		RunE:  cmdQueryValidator,
		Short: "Query the current stake status of a validator",
	}

	CmdQueryValidators = &cobra.Command{
		Use:   "validators",
		RunE:  cmdQueryValidators,
		Short: "Query a list of all current validators and validator candidates",
	}

	CmdQueryDelegator = &cobra.Command{
		Use:   "delegator",
		RunE:  cmdQueryDelegator,
		Short: "Query the current stake status of a delegator",
	}

	CmdQueryAwardInfo = &cobra.Command{
		Use:   "award-info",
		RunE:  cmdQueryAwardInfo,
		Short: "Query the award info of a block",
	}
)

nolint

View Source
var (
	CmdDeclareCandidacy = &cobra.Command{
		Use:   "declare-candidacy",
		Short: "Allows a potential validator to declare its candidacy",
		RunE:  cmdDeclareCandidacy,
	}
	CmdUpdateCandidacy = &cobra.Command{
		Use:   "update-candidacy",
		Short: "Allows a validator candidate to change its candidacy",
		RunE:  cmdUpdateCandidacy,
	}
	CmdWithdrawCandidacy = &cobra.Command{
		Use:   "withdraw-candidacy",
		Short: "Allows a validator/candidate to withdraw",
		RunE:  cmdWithdrawCandidacy,
	}
	CmdVerifyCandidacy = &cobra.Command{
		Use:   "verify-candidacy",
		Short: "Allows the foundation to verify a validator/candidate's information",
		RunE:  cmdVerifyCandidacy,
	}
	CmdActivateCandidacy = &cobra.Command{
		Use:   "activate-candidacy",
		Short: "Allows a validator to activate itself",
		RunE:  cmdActivateCandidacy,
	}
	CmdDeactivateCandidacy = &cobra.Command{
		Use:   "deactivate-candidacy",
		Short: "Allows a validator to deactivate itself",
		RunE:  cmdDeactivateCandidacy,
	}
	CmdUpdateCandidacyAccount = &cobra.Command{
		Use:   "update-candidacy-account",
		Short: "Allows a validator to update its account",
		RunE:  cmdUpdateCandidacyAccount,
	}
	CmdAcceptCandidacyAccountUpdate = &cobra.Command{
		Use:   "accept-candidacy-account-update",
		Short: "Accept the candidate's account update request and become a candidate",
		RunE:  cmdAcceptCandidacyAccountUpdate,
	}
	CmdDelegate = &cobra.Command{
		Use:   "delegate",
		Short: "Delegate coins to an existing validator/candidate",
		RunE:  cmdDelegate,
	}
	CmdWithdraw = &cobra.Command{
		Use:   "withdraw",
		Short: "Withdraw coins from a validator/candidate",
		RunE:  cmdWithdraw,
	}
	CmdSetCompRate = &cobra.Command{
		Use:   "set-comprate",
		Short: "Set the compensation rate for a certain delegator",
		RunE:  cmdSetCompRate,
	}
)

nolint

Functions

func Foutput

func Foutput(b []byte) error

func Get

func Get(path string, params []byte) ([]byte, error)

func GetByHeight

func GetByHeight(path string, params []byte, height int64) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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