utils

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func ReadAccounts(filepath string) (accounts []string, balances []int, err error)

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 ReadString(filepath string, lineNum int) (line string, lastLine int, err error)

func StringToAddress

func StringToAddress(s string) common.Address

func StringToHash

func StringToHash(s string) common.Hash

func WriteString

func WriteString(filepath string, msg string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL