Documentation
¶
Index ¶
- Constants
- Variables
- func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
- func AuthCmd() *cobra.Command
- func ConvertBech32Cmd() *cobra.Command
- func Execute(rootCmd *cobra.Command, envPrefix string) error
- func ExecuteWithCtx(ctx context.Context, rootCmd *cobra.Command, envPrefix string) error
- func InitTestnet(clientCtx client.Context, cmd *cobra.Command, nodeConfig *tmconfig.Config, ...) error
- func NewRootCmd() (*cobra.Command, sdkutil.EncodingConfig)
- func PrepareGenesis(clientCtx client.Context, appState map[string]json.RawMessage, ...) (map[string]json.RawMessage, *genutiltypes.AppGenesis, error)
- func PrepareGenesisCmd(defaultNodeHome string, mbm module.BasicManager) *cobra.Command
- type GenesisParams
Constants ¶
View Source
const ( FlagJWTExp = "exp" FlagJWTNbf = "nbf" FlagJWTAccess = "access" FlagJWTScope = "scope" )
Variables ¶
View Source
var ( ErrInvalidVestingParameters = errors.New("invalid vesting parameters") ErrVestingAmountGreater = errors.New("vesting amount cannot be greater than total amount") )
Functions ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func ConvertBech32Cmd ¶
ConvertBech32Cmd get cmd to convert any bech32 address to an akash prefix.
func ExecuteWithCtx ¶
ExecuteWithCtx executes the root command.
func InitTestnet ¶
func InitTestnet( clientCtx client.Context, cmd *cobra.Command, nodeConfig *tmconfig.Config, mbm module.BasicManager, genBalIterator banktypes.GenesisBalancesIterator, genesisParams GenesisParams, chainID string, outputDir, minGasPrices, nodeDirPrefix, nodeDaemonHome, startingIPAddress, keyringBackend, algoStr string, numValidators int, ) error
InitTestnet initializes the testnet.
func NewRootCmd ¶
func NewRootCmd() (*cobra.Command, sdkutil.EncodingConfig)
NewRootCmd creates a new root command for akash. It is called once in the main function.
func PrepareGenesis ¶
func PrepareGenesis(clientCtx client.Context, appState map[string]json.RawMessage, genDoc *genutiltypes.AppGenesis, genesisParams GenesisParams, chainID string) (map[string]json.RawMessage, *genutiltypes.AppGenesis, error)
func PrepareGenesisCmd ¶
func PrepareGenesisCmd(defaultNodeHome string, mbm module.BasicManager) *cobra.Command
Types ¶
type GenesisParams ¶
type GenesisParams struct {
StrategicReserveAccounts []banktypes.Balance
ConsensusParams *tmtypes.ConsensusParams
GenesisTime time.Time
NativeCoinMetadatas []banktypes.Metadata
StakingParams stakingtypes.Params
MintParams minttypes.Params
DistributionParams distributiontypes.Params
GovParams govtypesv1.Params
CrisisConstantFee sdk.Coin
SlashingParams slashingtypes.Params
}
func MainnetGenesisParams ¶
func MainnetGenesisParams() GenesisParams
func TestnetGenesisParams ¶
func TestnetGenesisParams() GenesisParams
Source Files
¶
Click to show internal directories.
Click to hide internal directories.