cmd

package
v17.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 56 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FlagMinimumStakeAmount = "minimum-stake-amount"
)

Variables

View Source
var ResetAppCmd = &cobra.Command{
	Use:   "app",
	Short: "Reset App files",
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		clientCtx := client.GetClientContextFromCmd(cmd)
		serverCtx := server.GetServerContextFromCmd(cmd)
		config := serverCtx.Config

		config.SetRoot(clientCtx.HomeDir)

		return resetApp(config.DBDir())
	},
}

ResetAppCmd removes the database of the specified Tendermint core instance.

View Source
var ResetWasmCmd = &cobra.Command{
	Use:   "wasm",
	Short: "Reset WASM files",
	RunE: func(cmd *cobra.Command, args []string) (err error) {
		clientCtx := client.GetClientContextFromCmd(cmd)
		serverCtx := server.GetServerContextFromCmd(cmd)
		config := serverCtx.Config

		config.SetRoot(clientCtx.HomeDir)

		return resetWasm(config.DBDir())
	},
}

ResetWasmCmd removes the database of the specified Tendermint core instance.

Functions

func AddGenesisIcaCmd

func AddGenesisIcaCmd(defaultNodeHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func AddrCmd

func AddrCmd() *cobra.Command

func ConfigCmd

func ConfigCmd() *cobra.Command

ConfigCmd returns a CLI command to interactively create an application CLI config file.

func ConvertBech32Cmd

func ConvertBech32Cmd() *cobra.Command

get cmd to convert any bech32 address to a juno prefix.

func DebugCmd

func DebugCmd() *cobra.Command

Cmd creates a main CLI command

func ExportDeriveBalancesCmd

func ExportDeriveBalancesCmd() *cobra.Command

ExportAirdropSnapshotCmd generates a snapshot.json from a provided exported genesis.json.

func NewRootCmd

func NewRootCmd() (*cobra.Command, params.EncodingConfig)

NewRootCmd creates a new root command for junod. It is called once in the main function.

func PubkeyCmd

func PubkeyCmd() *cobra.Command

func RawBytesCmd

func RawBytesCmd() *cobra.Command

func ResetCmd

func ResetCmd() *cobra.Command

Cmd creates a main CLI command

func SetCustomEnvVariablesFromClientToml

func SetCustomEnvVariablesFromClientToml(ctx client.Context)

Reads the custom extra values in the config.toml file if set. If they are, then use them.

func StakedToCSVCmd

func StakedToCSVCmd() *cobra.Command

StakedToCSVCmd generates a airdrop.csv from a provided exported balances.json.

Types

type DeriveSnapshot

type DeriveSnapshot struct {
	NumberAccounts uint64                    `json:"num_accounts"`
	Accounts       map[string]DerivedAccount `json:"accounts"`
}

type DerivedAccount

type DerivedAccount struct {
	Address        string    `json:"address"`
	LiquidBalances sdk.Coins `json:"liquid_balance"`
	Staked         math.Int  `json:"staked"`
	UnbondingStake math.Int  `json:"unbonding_stake"`
	Bonded         sdk.Coins `json:"bonded"`
	TotalBalances  sdk.Coins `json:"total_balances"`
}

DerivedAccount provide fields of snapshot per account It is the simplified struct we are presenting in this 'balances from state export' snapshot for people.

type JunoCustomClient

type JunoCustomClient struct {
	scconfig.ClientConfig
	Gas           string `mapstructure:"gas" json:"gas"`
	GasPrices     string `mapstructure:"gas-prices" json:"gas-prices"`
	GasAdjustment string `mapstructure:"gas-adjustment" json:"gas-adjustment"`

	Fees       string `mapstructure:"fees" json:"fees"`
	FeeGranter string `mapstructure:"fee-granter" json:"fee-granter"`
	FeePayer   string `mapstructure:"fee-payer" json:"fee-payer"`

	Note string `mapstructure:"note" json:"note"`
}

Jump to

Keyboard shortcuts

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