Documentation ¶
Index ¶
- Constants
- func AddGenesisAccountCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command
- func CollectGenTxsCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command
- func ExportGenesisFile(genFile, chainID string, validators []types.GenesisValidator, ...) error
- func ExportGenesisFileWithTime(genFile, chainID string, validators []types.GenesisValidator, ...) error
- func GenTxCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command
- func InitBech32Prefix()
- func InitCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command
- func InitNativeCoinUnits()
- func InitializeNodeValidatorFiles(config *cfg.Config) (nodeID string, valPubKey crypto.PubKey, err error)
- func LoadGenesisDoc(cdc *amino.Codec, genFile string) (genDoc types.GenesisDoc, err error)
- func TestnetFilesCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command
- func ValidateGenesisCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command
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 ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command
func CollectGenTxsCmd ¶
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 InitBech32Prefix ¶ added in v0.2.0
func InitBech32Prefix()
func InitCmd ¶
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 TestnetFilesCmd ¶
get cmd to initialize all files for tendermint testnet and application
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.