Documentation ¶
Index ¶
- Constants
- func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
- func ExportAirdropSnapshotCmd() *cobra.Command
- func ImportGenesisAccountsFromSnapshotCmd(defaultNodeHome string) *cobra.Command
- func InitTestnet(clientCtx client.Context, cmd *cobra.Command, nodeConfig *tmconfig.Config, ...) error
- func NewRootCmd() (*cobra.Command, params.EncodingConfig)
- func RollbackCmd() *cobra.Command
- type Account
- type Snapshot
- type SnapshotAccount
Constants ¶
View Source
const ( MaxCap = 50000000000 TotalGameAirdropAmount = 1000000000000 // 0.5% * 200000000 DefaultDenom = "ugame" )
Variables ¶
This section is empty.
Functions ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func ExportAirdropSnapshotCmd ¶ added in v0.8.1
ExportAirdropSnapshotCmd generates a snapshot.json from a provided cosmos-sdk v0.36 genesis export.
func ImportGenesisAccountsFromSnapshotCmd ¶ added in v0.8.1
func InitTestnet ¶
func InitTestnet( clientCtx client.Context, cmd *cobra.Command, nodeConfig *tmconfig.Config, mbm module.BasicManager, genBalIterator banktypes.GenesisBalancesIterator, outputDir, chainID, minGasPrices, nodeDirPrefix, nodeDaemonHome, startingIPAddress, keyringBackend, algoStr string, numValidators int, ) error
Initialize the testnet
func NewRootCmd ¶
func NewRootCmd() (*cobra.Command, params.EncodingConfig)
NewRootCmd creates a new root command for simd. It is called once in the main function.
func RollbackCmd ¶ added in v1.0.0
RollbackCmd update state last results hash from block
Types ¶
type SnapshotAccount ¶ added in v0.8.1
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"` GameBalance sdk.Int `json:"game_balance"` Denominator sdk.Int `json:"denominator"` }
SnapshotAccount provide fields of snapshot per account
Click to show internal directories.
Click to hide internal directories.