Documentation
¶
Index ¶
- Constants
- Variables
- func AddGenesisIcaCmd(defaultNodeHome string) *cobra.Command
- func AddrCmd() *cobra.Command
- func CodecCmd() *cobra.Command
- func ConvertBech32Cmd() *cobra.Command
- func DebugCmd() *cobra.Command
- func ExportDeriveBalancesCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- func PrefixesCmd() *cobra.Command
- 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
Constants ¶
const (
FlagMinimumStakeAmount = "minimum-stake-amount"
)
Variables ¶
var ( // Bech32Prefix defines the Bech32 prefix of an account's address Bech32Prefix = "juno" // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32PrefixAccAddr = Bech32Prefix // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key Bech32PrefixAccPub = Bech32Prefix + sdk.PrefixPublic // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address Bech32PrefixValAddr = Bech32Prefix + sdk.PrefixValidator + sdk.PrefixOperator // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key Bech32PrefixValPub = Bech32Prefix + sdk.PrefixValidator + sdk.PrefixOperator + sdk.PrefixPublic // Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address Bech32PrefixConsAddr = Bech32Prefix + sdk.PrefixValidator + sdk.PrefixConsensus // Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key Bech32PrefixConsPub = Bech32Prefix + sdk.PrefixValidator + sdk.PrefixConsensus + sdk.PrefixPublic )
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 Comet 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 Comet core instance.
Functions ¶
func AddGenesisIcaCmd ¶
AddGenesisIcaCmd returns add-genesis-account cobra Command.
func ConvertBech32Cmd ¶
get cmd to convert any bech32 address to a juno prefix.
func ExportDeriveBalancesCmd ¶
ExportDeriveBalancesCmd generates a snapshot.json from a provided exported genesis.json.
func NewRootCmd ¶
NewRootCmd creates a new root command for junod. It is called once in the main function.
func PrefixesCmd ¶
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 sdkmath.Int `json:"staked"`
UnbondingStake sdkmath.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.