Documentation
¶
Index ¶
- Constants
- Variables
- func AddGenesisAccountCmd(ctx *app.Context, cdc *codec.Codec) *cobra.Command
- func AddGenesisShardCmd(ctx *app.Context, cdc *codec.Codec) *cobra.Command
- func AddGenesisValidatorCmd(ctx *app.Context, cdc *codec.Codec) *cobra.Command
- func AddServerCommands(ctx *app.Context, cdc *amino.Codec, rootCmd *cobra.Command, ...)
- func CopyFile(src, dst string) error
- func ExportCmd(appExporter app.AppExporter, defaultNodeHome string) *cobra.Command
- func GetVersion() string
- func InitWithConfig(cdc *amino.Codec, appInit app.AppInit, c *cfg.Config, initConfig InitConfig) (chainID string, nodeID string, appMessage json.RawMessage, ...)
- func MustSortJSON(toSortJSON []byte) []byte
- func ParseAccAddress(addr string) types.AccAddress
- func ParseCoin(denom, amount string) (types.Coin, error)
- func SortJSON(toSortJSON []byte) ([]byte, error)
- func StartInProcess(ctx *app.Context, appCreator app.AppCreator, cdc *codec.Codec) (*node.Node, error)
- type GenesisTx
- type InitConfig
- type ValidatorAccount
Constants ¶
View Source
const ( FlagHeight = "height" FlagForZeroHeight = "for-zero-height" FlagJailAllowedAddrs = "jail-allowed-addrs" )
Variables ¶
View Source
var ( FlagName = "name" FlagClientHome = "home-client" FlagOWK = "owk" )
View Source
var ( FlagOverwrite = "overwrite" FlagWithTxs = "with-txs" FlagIP = "ip" FlagChainID = "chain_id" FlagStateDB = "statedb" //FlagDBName = "dbname" FlagWithValidator = "validator_key" FlagCoinName = "denom" )
Functions ¶
func AddGenesisAccountCmd ¶
func AddGenesisShardCmd ¶
func AddGenesisValidatorCmd ¶
func AddServerCommands ¶
func ExportCmd ¶ added in v1.5.23
func ExportCmd(appExporter app.AppExporter, defaultNodeHome string) *cobra.Command
func InitWithConfig ¶
func MustSortJSON ¶ added in v1.5.23
MustSortJSON is like SortJSON but panic if an error occurs, e.g., if the passed JSON isn't valid.
func ParseAccAddress ¶
func ParseAccAddress(addr string) types.AccAddress
Types ¶
type GenesisTx ¶
type GenesisTx struct {
NodeID string `json:"node_id"`
IP string `json:"ip"`
Validator tmtypes.GenesisValidator `json:"validator"`
AppGenTx json.RawMessage `json:"app_gen_tx"`
}
type InitConfig ¶
type ValidatorAccount ¶
Click to show internal directories.
Click to hide internal directories.