Documentation ¶
Index ¶
- Constants
- func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command
- func InitTestnet(clientCtx client.Context, cmd *cobra.Command, nodeConfig *tmconfig.Config, ...) error
- 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
- func TestnetCmd(mbm module.BasicManager) *cobra.Command
- type GenesisParams
- type TestnetNode
Constants ¶
View Source
const ( HumanCoinUnit = "acarb" BaseCoinUnit = "uacarb" ACARBExponent = 6 Bech32PrefixAccAddr = "acarb" )
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" )
Variables ¶
This section is empty.
Functions ¶
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 InitTestnet ¶
func InitTestnet( clientCtx client.Context, cmd *cobra.Command, nodeConfig *tmconfig.Config, mbm module.BasicManager, genBalIterator banktypes.GenesisBalancesIterator, outputDir, chainID, minGasPrices, nodeDirPrefix, nodeDaemonHome, startingIPAddress, keyringBackend, algoStr string, numValidators int, ) error
Initialize the testnet
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)
fill with data
func PrepareGenesisCmd ¶
func PrepareGenesisCmd(defaultNodeHome string, mbm module.BasicManager) *cobra.Command
func TestnetCmd ¶
func TestnetCmd(mbm module.BasicManager) *cobra.Command
get cmd to initialize all files for tendermint testnet and application
Types ¶
type GenesisParams ¶
type GenesisParams struct { ConsensusParams *tmproto.ConsensusParams GenesisTime time.Time NativeCoinMetadatas []banktypes.Metadata StakingParams stakingtypes.Params DistributionParams distributiontypes.Params GovParams govtypes.Params CrisisConstantFee sdk.Coin SlashingParams slashingtypes.Params }
func DevnetGenesisParams ¶
func DevnetGenesisParams() GenesisParams
Click to show internal directories.
Click to hide internal directories.