client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagChainID   = "chain-id"
	FlagNode      = "node"
	FlagHeight    = "height"
	FlagTrustNode = "trust-node"
	FlagName      = "name"
	FlagSequence  = "sequence"
	FlagFee       = "fee"
	FlagPrivKey   = "priv-key"
	FlagPubKey    = "pub-key"

	// Account
	FlagIsFollow = "is-follow"
	FlagFollowee = "followee"
	FlagFollower = "follower"
	FlagSender   = "sender"
	FlagReceiver = "receiver"
	FlagAmount   = "amount"
	FlagMemo     = "memo"

	// Developer
	FlagDeveloper   = "developer"
	FlagDeposit     = "deposit"
	FlagWebsite     = "website"
	FlagDescription = "description"
	FlagAppMeta     = "appmeta"
	FlagUser        = "user"
	FlagReferrer    = "referrer"
	FlagSeconds     = "seconds"
	FlagPermission  = "permission"
	FlagGrantAmount = "grant-amount"

	// Infra
	FlagProvider = "provider"
	FlagUsage    = "usage"

	// Post
	FlagDonator                 = "donator"
	FlagLikeUser                = "likeUser"
	FlagWeight                  = "weight"
	FlagAuthor                  = "author"
	FlagPostID                  = "post-ID"
	FlagTitle                   = "title"
	FlagContent                 = "content"
	FlagParentAuthor            = "parent-author"
	FlagParentPostID            = "parent-post-ID"
	FlagSourceAuthor            = "source-author"
	FlagSourcePostID            = "source-post-ID"
	FlagRedistributionSplitRate = "redistribution-split-rate"

	// Vote
	FlagVoter      = "voter"
	FlagProposalID = "proposal-id"
	FlagResult     = "result"
	FlagLink       = "link"
)

nolint

Variables

View Source
var LineBreak = &cobra.Command{Run: func(*cobra.Command, []string) {}}

LineBreak can be included in a command list to provide a blank line to help with readability

Functions

func GetCommands

func GetCommands(cmds ...*cobra.Command) []*cobra.Command

GetCommands adds common flags to query commands

func NewCoreContextFromViper

func NewCoreContextFromViper() core.CoreContext

func PostCommands

func PostCommands(cmds ...*cobra.Command) []*cobra.Command

PostCommands adds common flags for commands to post tx

func PrintIndent

func PrintIndent(inputs ...interface{}) error

Types

type CommandTxCallback

type CommandTxCallback func(cmd *cobra.Command, args []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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