commands

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagSequence = "sequence"
	FlagNonceKey = "nonce-key"
)

nolint

Variables

View Source
var NonceQueryCmd = &cobra.Command{
	Use:   "nonce [address]",
	Short: "Get details of a nonce sequence number, with proof",
	RunE:  commands.RequireInit(nonceQueryCmd),
}

NonceQueryCmd - command to query an nonce account

Functions

This section is empty.

Types

type NonceWrapper

type NonceWrapper struct{}

NonceWrapper wraps a tx with a nonce

func (NonceWrapper) Register

func (NonceWrapper) Register(fs *pflag.FlagSet)

Register adds the sequence flags to the cli

func (NonceWrapper) Wrap

func (NonceWrapper) Wrap(tx sdk.Tx) (res sdk.Tx, err error)

Wrap grabs the sequence number from the flag and wraps the tx with this nonce. Grabs the permission from the signer, as we still only support single sig on the cli

Jump to

Keyboard shortcuts

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