Documentation ¶
Index ¶
- func AccountTypes(erisPath string) ([]string, error)
- func AccountTypesNames(erisPath string, withExt bool) ([]string, error)
- func CheckDefaultTypes(erisPath, myPath string) error
- func GetBoolResponse(question string, defalt bool, reader *os.File) (bool, error)
- func GetIntResponse(question string, defalt int, reader *os.File) (int, error)
- func GetStringResponse(question string, defalt string, reader *os.File) (string, error)
- func SaveAccountResults(do *definitions.Do) error
- func SaveAccountType(thisActT *definitions.AccountType) error
- func Tarball(do *definitions.Do) error
- func WriteGenesisFile(name string, genesis *definitions.MintGenesis, account *definitions.Account, ...) error
- func WritePrivVals(name string, account *definitions.Account, single bool) error
- func Zip(do *definitions.Do) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountTypes ¶
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 CheckDefaultTypes ¶
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 ¶
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 GetStringResponse ¶
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.