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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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