Documentation ¶
Index ¶
- func LoadGenesisDoc(cdc *amino.Codec, genFile string) (genDoc types.GenesisDoc, err error)
- func ReadAccounts(filepath string) (accounts []string, balances []int, err error)
- func ReadString(filepath string, lineNum int) (line string, lastLine int, err error)
- func StringToAddress(s string) common.Address
- func StringToHash(s string) common.Hash
- func WriteString(filepath string, msg string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadGenesisDoc ¶
func LoadGenesisDoc(cdc *amino.Codec, genFile string) (genDoc types.GenesisDoc, err error)
LoadGenesisDoc reads and unmarshals GenesisDoc from the given file.
func ReadAccounts ¶ added in v1.0.0
junying-todo, 2020-01-15 this is used to export accounts from accounts.text into genesis.json in: accounts text file path out: accounts, balances
func ReadString ¶
func StringToAddress ¶
func StringToHash ¶
func WriteString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.