Documentation ¶
Index ¶
- Constants
- Variables
- func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
- func ConvertStateExport(clientCtx client.Context, params StateExportParams) (*tmtypes.GenesisDoc, error)
- func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command
- func InitFromStateCmd(defaultNodeHome string) *cobra.Command
- func InitTestnet(clientCtx client.Context, cmd *cobra.Command, nodeConfig *tmconfig.Config, ...) error
- func NewRootCmd() (*cobra.Command, params.EncodingConfig)
- func PrepareGenesis(clientCtx client.Context, appState map[string]json.RawMessage, ...) (map[string]json.RawMessage, *tmtypes.GenesisDoc, error)
- func PrepareGenesisCmd(defaultNodeHome string, mbm module.BasicManager) *cobra.Command
- type GenesisParams
- type StateExportParams
Constants ¶
View Source
const ( // FlagOverwrite defines a flag to overwrite an existing genesis JSON file. FlagOverwrite = "overwrite" // FlagSeed defines a flag to initialize the private validator key from a specific seed. FlagRecover = "recover" )
View Source
const ( FlagOldMoniker = "old-moniker" FlagOldAccountAddr = "old-account-addr" FlagVotingPeriod = "voting-period" FlagPruneIbc = "prune-ibc" FlagIncreaseCoinAmount = "increase-coin-amount" )
Variables ¶
View Source
var ChainID string
Functions ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func ConvertStateExport ¶
func ConvertStateExport(clientCtx client.Context, params StateExportParams) (*tmtypes.GenesisDoc, error)
func InitCmd ¶
func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command
InitCmd returns a command that initializes all files needed for Tendermint and the respective application.
func InitFromStateCmd ¶
InitFromStateCmd returns a command that initializes all files needed for Tendermint and the respective application.
func InitTestnet ¶
func InitTestnet( clientCtx client.Context, cmd *cobra.Command, nodeConfig *tmconfig.Config, mbm module.BasicManager, genBalIterator banktypes.GenesisBalancesIterator, genesisParams GenesisParams, outputDir, chainID, minGasPrices, nodeDirPrefix, nodeDaemonHome, startingIPAddress, keyringBackend, algoStr string, numValidators int, ) error
Initialize the testnet
func NewRootCmd ¶
func NewRootCmd() (*cobra.Command, params.EncodingConfig)
NewRootCmd creates a new root command for simd. It is called once in the main function.
func PrepareGenesis ¶
func PrepareGenesis(clientCtx client.Context, appState map[string]json.RawMessage, genDoc *tmtypes.GenesisDoc, genesisParams GenesisParams, chainID string) (map[string]json.RawMessage, *tmtypes.GenesisDoc, error)
func PrepareGenesisCmd ¶
func PrepareGenesisCmd(defaultNodeHome string, mbm module.BasicManager) *cobra.Command
Types ¶
type GenesisParams ¶
type GenesisParams struct { GenesisTime time.Time ConsensusParams *tmproto.ConsensusParams NativeCoin []banktypes.Metadata StakingParams stakingtypes.Params MintParams minttypes.Params DistributionParams distributiontypes.Params GovParams govtypes.Params SlashingParams slashingtypes.Params CrisisConstantFee sdk.Coin FantokenParams fantokentypes.Params MerkledropParams merkledroptypes.Params }
func MainnetGenesisParams ¶
func MainnetGenesisParams() GenesisParams
func TestnetGenesisParams ¶
func TestnetGenesisParams() GenesisParams
type StateExportParams ¶
type StateExportParams struct { StateFile string ChainID string Moniker string KeyName string IncreaseCoinAmount int64 OldMoniker string TmPubKey tmcrypto.PubKey OldAccountAddress string VotingPeriod time.Duration PruneIBC bool Overwrite bool }
func (*StateExportParams) String ¶
func (s *StateExportParams) String() string
func (*StateExportParams) Validate ¶
func (s *StateExportParams) Validate() error
Click to show internal directories.
Click to hide internal directories.