cmd

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2025 License: Apache-2.0 Imports: 67 Imported by: 2

Documentation

Index

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

func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func AuthCmd

func AuthCmd() *cobra.Command

func ConvertBech32Cmd

func ConvertBech32Cmd() *cobra.Command

ConvertBech32Cmd get cmd to convert any bech32 address to an akash prefix.

func Execute

func Execute(rootCmd *cobra.Command, envPrefix string) error

Execute executes the root command.

func ExecuteWithCtx

func ExecuteWithCtx(ctx context.Context, rootCmd *cobra.Command, envPrefix string) error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL