init

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Bech32PrefixAccAddr defines the Bech32 prefix of an account's address
	Bech32MainPrefix = "gard"

	// PrefixAccount is the prefix for account keys
	PrefixAccount = "acc"
	// PrefixValidator is the prefix for validator keys
	PrefixValidator = "val"
	// PrefixConsensus is the prefix for consensus keys
	PrefixConsensus = "cons"
	// PrefixPublic is the prefix for public keys
	PrefixPublic = "pub"
	// PrefixOperator is the prefix for operator keys
	PrefixOperator = "oper"

	// PrefixAddress is the prefix for addresses
	PrefixAddress = "addr"

	// Bech32PrefixAccAddr defines the Bech32 prefix of an account's address
	Bech32PrefixAccAddr = Bech32MainPrefix
	// Bech32PrefixAccPub defines the Bech32 prefix of an account's public key
	Bech32PrefixAccPub = Bech32MainPrefix + PrefixPublic
	// Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address
	Bech32PrefixValAddr = Bech32MainPrefix + PrefixValidator + PrefixOperator
	// Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key
	Bech32PrefixValPub = Bech32MainPrefix + PrefixValidator + PrefixOperator + PrefixPublic
	// Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address
	Bech32PrefixConsAddr = Bech32MainPrefix + PrefixValidator + PrefixConsensus
	// Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key
	Bech32PrefixConsPub = Bech32MainPrefix + PrefixValidator + PrefixConsensus + PrefixPublic
)

Variables

This section is empty.

Functions

func AddGenesisAccountCmd

func AddGenesisAccountCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command

func CollectGenTxsCmd

func CollectGenTxsCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command

nolint

func ExportGenesisFile

func ExportGenesisFile(
	genFile, chainID string, validators []types.GenesisValidator, appState json.RawMessage,
) error

ExportGenesisFile creates and writes the genesis configuration to disk. An error is returned if building or writing the configuration to file fails.

func ExportGenesisFileWithTime

func ExportGenesisFileWithTime(
	genFile, chainID string, validators []types.GenesisValidator,
	appState json.RawMessage, genTime time.Time,
) error

ExportGenesisFileWithTime creates and writes the genesis configuration to disk. An error is returned if building or writing the configuration to file fails.

func GenTxCmd

func GenTxCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command

GenTxCmd builds the hashgard gentx command. nolint: errcheck

func InitBech32Prefix added in v0.2.0

func InitBech32Prefix()

func InitCmd

func InitCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command

InitCmd returns a command that initializes all files needed for Tendermint and the respective application.

func InitNativeCoinUnits added in v0.5.0

func InitNativeCoinUnits()

func InitializeNodeValidatorFiles

func InitializeNodeValidatorFiles(
	config *cfg.Config) (nodeID string, valPubKey crypto.PubKey, err error,
)

InitializeNodeValidatorFiles creates private validator and p2p configuration files.

func LoadGenesisDoc added in v0.3.1

func LoadGenesisDoc(cdc *amino.Codec, genFile string) (genDoc types.GenesisDoc, err error)

func TestnetFilesCmd

func TestnetFilesCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command

get cmd to initialize all files for tendermint testnet and application

func ValidateGenesisCmd added in v0.3.1

func ValidateGenesisCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command

Validate genesis command takes

Types

This section is empty.

Jump to

Keyboard shortcuts

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