util

package
v0.0.0-...-c187892 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2016 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountTypes

func AccountTypes(erisPath string) ([]string, error)

returns a list of filenames which are the account_types files these *should be* absolute paths, but this is not a contract with calling functions.

func AccountTypesNames

func AccountTypesNames(erisPath string, withExt bool) ([]string, error)

func CheckDefaultTypes

func CheckDefaultTypes(erisPath, myPath string) error

ensures that the files which are included in this repository (`defaultTyps`) are also present in the user's .eris/chains/account_types directory.

does not ensure that the contents of the files are the same so will not affect user defined settings around these files.

does not check if the user has more account_types files in their .eris/chains/account_types directory either so users can safely add additional account_types beyond the marmot established defaults.

func GetBoolResponse

func GetBoolResponse(question string, defalt bool, reader *os.File) (bool, error)

displays the question, scans for the response, if the response is an empty string will return default, otherwise will parseBool and return the result.

func GetIntResponse

func GetIntResponse(question string, defalt int, reader *os.File) (int, error)

func GetStringResponse

func GetStringResponse(question string, defalt string, reader *os.File) (string, error)

func SaveAccountResults

func SaveAccountResults(do *definitions.Do) error

func SaveAccountType

func SaveAccountType(thisActT *definitions.AccountType) error

func Tarball

func Tarball(do *definitions.Do) error

func WriteGenesisFile

func WriteGenesisFile(name string, genesis *definitions.MintGenesis, account *definitions.Account, single bool) error

func WritePrivVals

func WritePrivVals(name string, account *definitions.Account, single bool) error

func Zip

func Zip(do *definitions.Do) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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