cmd

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 75 Imported by: 0

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 AutomationCmd

func AutomationCmd() *cobra.Command

AutomationCmd returns the automation-related commands

func AutomationQueryCmd

func AutomationQueryCmd() *cobra.Command

AutomationQueryCmd returns automation query commands.

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 HAOrchestratorQueryCmd

func HAOrchestratorQueryCmd() *cobra.Command

HAOrchestratorQueryCmd returns the parent `akash query ha-orchestrator` command. Today it exposes a single client-side helper, `endpoints`, which turns a HA orchestrator contract's `active_provider_endpoints` smart query response into formats convenient for external consumers (init-containers, traffic sidecars, /etc/hosts writers, Mongo connection-string builders).

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 ManifestCmd

func ManifestCmd() *cobra.Command

ManifestCmd returns the manifest query commands

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 OrchestrationCmd

func OrchestrationCmd() *cobra.Command

OrchestrationCmd returns the orchestration query commands

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

func PrintManifestResponse

func PrintManifestResponse(resp ManifestResponse)

PrintManifestResponse prints the manifest response in a readable format

func QueryAutomationParamsCmd

func QueryAutomationParamsCmd() *cobra.Command

QueryAutomationParamsCmd prints the effective automation defaults.

func QueryHAOrchestratorEndpointsCmd

func QueryHAOrchestratorEndpointsCmd() *cobra.Command

QueryHAOrchestratorEndpointsCmd queries the HA orchestrator contract's `active_provider_endpoints` smart query and renders the per-service projection in one of: json, hosts, kv, env, connstr=mongo.

func QueryManifestCmd

func QueryManifestCmd() *cobra.Command

QueryManifestCmd returns command to query a deployment's manifest

func QueryOrchestrationMessagesCmd

func QueryOrchestrationMessagesCmd() *cobra.Command

QueryOrchestrationMessagesCmd returns command to query orchestration messages

func QueryOrchestrationParamsCmd

func QueryOrchestrationParamsCmd() *cobra.Command

QueryOrchestrationParamsCmd prints the effective default params wired into the x/orchestration module on this binary.

func QueryOrchestrationQueueDepthCmd

func QueryOrchestrationQueueDepthCmd() *cobra.Command

QueryOrchestrationQueueDepthCmd exposes the queue-depth diagnostic shape. The app-level queue lives inside the running node's wasm store; the direct CLI cannot scan it without a query server, so this command surfaces the operator-visible limits and the lease filter format used by the contract query path.

func QueryOrchestrationStateCmd

func QueryOrchestrationStateCmd() *cobra.Command

QueryOrchestrationStateCmd returns command to query orchestration state

func QueryValiporacleParamsCmd

func QueryValiporacleParamsCmd() *cobra.Command

QueryValiporacleParamsCmd prints the effective valiporacle defaults.

func ScheduleTaskCmd

func ScheduleTaskCmd() *cobra.Command

ScheduleTaskCmd returns the command to schedule an automation task

func ValiporacleCmd

func ValiporacleCmd() *cobra.Command

ValiporacleCmd returns valiporacle query commands.

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

type ManifestResponse

type ManifestResponse struct {
	Owner     string `json:"owner"`
	DSeq      uint64 `json:"dseq"`
	Manifest  []byte `json:"manifest"`
	SDL       string `json:"sdl"`
	Hash      []byte `json:"hash"`
	Version   uint32 `json:"version"`
	CreatedAt int64  `json:"created_at"`
	UpdatedAt int64  `json:"updated_at"`
	Found     bool   `json:"found"`
}

ManifestResponse represents the manifest query response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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