myutils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagKeySeed = "key-seed"
)

Variables

This section is empty.

Functions

func CreateKeySeed

func CreateKeySeed(home, keyName string) (sdk.AccAddress, error)

func GetAddressFromFile

func GetAddressFromFile(filepath string) ([]string, error)

func GetFeeFromShrp

func GetFeeFromShrp(cdc *codec.Codec, cliCtx context.CLIContext, shrpFee float64) (string, error)

func GetKeeySeedFromFile

func GetKeeySeedFromFile(seedPath string) (string, error)

func GetKeysFromDir

func GetKeysFromDir(dir string) ([]string, error)

func GetPrivKeyFromSeed

func GetPrivKeyFromSeed(seed string) (string, error)

func GetPrivKeysFromMnemonic

func GetPrivKeysFromMnemonic(mnemonic string, amount uint32) ([]string, []sdk.AccAddress, error)

func GetTxBldrAndCtxFromSeed

func GetTxBldrAndCtxFromSeed(inBuf io.Reader, cdc *amino.Codec, seed string) (context.CLIContext, auth.TxBuilder, error)

func WriteFile

func WriteFile(name string, dir string, contents []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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