Documentation
¶
Index ¶
- Constants
- Variables
- func AddGenesisIcaCmd(defaultNodeHome string) *cobra.Command
- func AddrCmd() *cobra.Command
- func ConfigCmd() *cobra.Command
- func ConvertBech32Cmd() *cobra.Command
- func DebugCmd() *cobra.Command
- func ExportDeriveBalancesCmd() *cobra.Command
- func NewRootCmd() (*cobra.Command, params.EncodingConfig)
- func PubkeyCmd() *cobra.Command
- func RawBytesCmd() *cobra.Command
- func ResetCmd() *cobra.Command
- func SetCustomEnvVariablesFromClientToml(ctx client.Context)
- func StakedToCSVCmd() *cobra.Command
- type DeriveSnapshot
- type DerivedAccount
- type JunoCustomClient
Constants ¶
const (
FlagMinimumStakeAmount = "minimum-stake-amount"
)
Variables ¶
var ResetAppCmd = &cobra.Command{ Use: "app", Short: "Reset App files", RunE: func(cmd *cobra.Command, _ []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.
var ResetWasmCmd = &cobra.Command{ Use: "wasm", Short: "Reset WASM files", RunE: func(cmd *cobra.Command, _ []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 ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func ConfigCmd ¶
ConfigCmd returns a CLI command to interactively create an application CLI config file.
func ConvertBech32Cmd ¶
get cmd to convert any bech32 address to a juno prefix.
func ExportDeriveBalancesCmd ¶
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 RawBytesCmd ¶
func SetCustomEnvVariablesFromClientToml ¶
Reads the custom extra values in the config.toml file if set. If they are, then use them.
func StakedToCSVCmd ¶
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"`
}