Documentation
¶
Index ¶
- Variables
- func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
- func ConvertCosmosAddressToLum(address string) (sdk.AccAddress, error)
- func Execute(rootCmd *cobra.Command) error
- func ExportAirdropSnapshotCmd() *cobra.Command
- func NewRootCmd() (*cobra.Command, params.EncodingConfig)
- type AppStateV038
- type GenesisStateV038
- type Snapshot
- type SnapshotAccount
Constants ¶
This section is empty.
Variables ¶
View Source
var ChainID string
Functions ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func ConvertCosmosAddressToLum ¶
func ConvertCosmosAddressToLum(address string) (sdk.AccAddress, error)
ConvertCosmosAddressToLum convert cosmos1 address to juno1 address
func NewRootCmd ¶
func NewRootCmd() (*cobra.Command, params.EncodingConfig)
NewRootCmd creates a new root command for simd. It is called once in the main function.
Types ¶
type AppStateV038 ¶
type AppStateV038 struct {
Accounts []v038genaccounts.GenesisAccount `json:"accounts"`
Staking v038staking.GenesisState `json:"staking"`
Distribution v038distribution.GenesisState `json:"distribution"`
}
AppStateV038 is app state structure for app state
type GenesisStateV038 ¶
type GenesisStateV038 struct {
AppState AppStateV038 `json:"app_state"`
}
GenesisStateV038 is minimum structure to import airdrop accounts
type SnapshotAccount ¶
type SnapshotAccount struct {
AtomAddress string `json:"atom_address"` // Atom Balance = AtomStakedBalance + AtomUnstakedBalance
AtomBalance sdk.Int `json:"atom_balance"`
AtomOwnershipPercent sdk.Dec `json:"atom_ownership_percent"`
AtomStakedBalance sdk.Int `json:"atom_staked_balance"`
AtomUnstakedBalance sdk.Int `json:"atom_unstaked_balance"` // AtomStakedPercent = AtomStakedBalance / AtomBalance
AtomStakedPercent sdk.Dec `json:"atom_staked_percent"`
LumBalance sdk.Int `json:"lum_balance"` // LumBalance = sqrt( AtomBalance ) * (1 + 1.5 * atom staked percent)
LumBalanceBase sdk.Int `json:"lum_balance_base"` // LumBalanceBase = sqrt(atom balance)
LumBalanceBonus sdk.Int `json:"lum_balance_bonus"` // LumBalanceBonus = LumBalanceBase * (1.5 * atom staked percent)
LumPercent sdk.Dec `json:"lum_ownership_percent"` // LumPercent = LumNormalizedBalance / TotalLumSupply
}
SnapshotAccount provide fields of snapshot per account
Click to show internal directories.
Click to hide internal directories.