Documentation
¶
Index ¶
- Constants
- Variables
- func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
- func AuthCmd() *cobra.Command
- func AutomationCmd() *cobra.Command
- func AutomationQueryCmd() *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 HAOrchestratorQueryCmd() *cobra.Command
- func InitTestnet(clientCtx client.Context, cmd *cobra.Command, nodeConfig *tmconfig.Config, ...) error
- func ManifestCmd() *cobra.Command
- func NewRootCmd() (*cobra.Command, sdkutil.EncodingConfig)
- func OrchestrationCmd() *cobra.Command
- 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
- func PrintManifestResponse(resp ManifestResponse)
- func QueryAutomationParamsCmd() *cobra.Command
- func QueryHAOrchestratorEndpointsCmd() *cobra.Command
- func QueryManifestCmd() *cobra.Command
- func QueryOrchestrationMessagesCmd() *cobra.Command
- func QueryOrchestrationParamsCmd() *cobra.Command
- func QueryOrchestrationQueueDepthCmd() *cobra.Command
- func QueryOrchestrationStateCmd() *cobra.Command
- func QueryValiporacleParamsCmd() *cobra.Command
- func ScheduleTaskCmd() *cobra.Command
- func ValiporacleCmd() *cobra.Command
- type GenesisParams
- type ManifestResponse
Constants ¶
const ( FlagJWTExp = "exp" FlagJWTNbf = "nbf" FlagJWTAccess = "access" FlagJWTScope = "scope" )
Variables ¶
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 AutomationCmd ¶
AutomationCmd returns the automation-related commands
func AutomationQueryCmd ¶
AutomationQueryCmd returns automation query commands.
func ConvertBech32Cmd ¶
ConvertBech32Cmd get cmd to convert any bech32 address to an akash prefix.
func ExecuteWithCtx ¶
ExecuteWithCtx executes the root command.
func HAOrchestratorQueryCmd ¶
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 ¶
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 ¶
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 ¶
QueryAutomationParamsCmd prints the effective automation defaults.
func QueryHAOrchestratorEndpointsCmd ¶
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 ¶
QueryManifestCmd returns command to query a deployment's manifest
func QueryOrchestrationMessagesCmd ¶
QueryOrchestrationMessagesCmd returns command to query orchestration messages
func QueryOrchestrationParamsCmd ¶
QueryOrchestrationParamsCmd prints the effective default params wired into the x/orchestration module on this binary.
func QueryOrchestrationQueueDepthCmd ¶
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 ¶
QueryOrchestrationStateCmd returns command to query orchestration state
func QueryValiporacleParamsCmd ¶
QueryValiporacleParamsCmd prints the effective valiporacle defaults.
func ScheduleTaskCmd ¶
ScheduleTaskCmd returns the command to schedule an automation task
func ValiporacleCmd ¶
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