Documentation ¶
Index ¶
- Constants
- Variables
- func AccountParser(key []byte) ([]string, error)
- func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
- func AddGenesisWasmMsgCmd(defaultNodeHome string) *cobra.Command
- func BankParser(key []byte) ([]string, error)
- func BlocktestCmd(defaultNodeHome string) *cobra.Command
- func BuildPrefix(moduleName string) string
- func CompactCmd(defaultNodeHome string) *cobra.Command
- func DexParser(key []byte) ([]string, error)
- func DumpIavlCmd() *cobra.Command
- func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command
- func MatchAndExtractDexAddressPrefixKeys(key []byte) (bool, []string, []byte, error)
- func MintParser(key []byte) ([]string, error)
- func NewRootCmd() (*cobra.Command, params.EncodingConfig)
- func OpenDB(dir string) (dbm.DB, error)
- func PrintKeys(tree *iavl.MutableTree, moduleParser ModuleParser) []byte
- func PrintShape(tree *iavl.MutableTree) ([]byte, error)
- func PrintVersions(tree *iavl.MutableTree)
- func ReadTree(db dbm.DB, version int, prefix []byte) (*iavl.MutableTree, error)
- func ReplayCmd(defaultNodeHome string) *cobra.Command
- func StakingParser(key []byte) ([]string, error)
- type ModuleParser
- type Option
Constants ¶
View Source
const ( DefaultCacheSize int = 10000 FlagDBPath string = "db-path" FlagOutputDir string = "output-dir" FlagModuleName string = "module" )
View Source
const ( // FlagOverwrite defines a flag to overwrite an existing genesis JSON file. FlagOverwrite = "overwrite" // FlagSeed defines a flag to initialize the private validator key from a specific seed. FlagRecover = "recover" )
View Source
const UNRECOGNIZED = "Unrecognized Prefix"
Variables ¶
View Source
var ModuleParserMap = map[string]ModuleParser{ "bank": BankParser, "mint": MintParser, "dex": DexParser, "staking": StakingParser, "acc": AccountParser, }
Functions ¶
func AccountParser ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func AddGenesisWasmMsgCmd ¶
func BankParser ¶
func BlocktestCmd ¶
func BuildPrefix ¶
func CompactCmd ¶
func DumpIavlCmd ¶
func InitCmd ¶
func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command
InitCmd returns a command that initializes all files needed for Tendermint and the respective application.
func MintParser ¶
func NewRootCmd ¶
func NewRootCmd() (*cobra.Command, params.EncodingConfig)
NewRootCmd creates a new root command for a Cosmos SDK application
func PrintKeys ¶
func PrintKeys(tree *iavl.MutableTree, moduleParser ModuleParser) []byte
func PrintShape ¶
func PrintShape(tree *iavl.MutableTree) ([]byte, error)
func PrintVersions ¶
func PrintVersions(tree *iavl.MutableTree)
func ReadTree ¶
ReadTree loads an iavl tree from the directory If version is 0, load latest, otherwise, load named version The prefix represents which iavl tree you want to read. The iaviwer will always set a prefix.
func StakingParser ¶
Types ¶
type ModuleParser ¶
Click to show internal directories.
Click to hide internal directories.