utils

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToString

func ByteToString(inp []byte) string

func CleanupTDMLog added in v0.2.2

func CleanupTDMLog(input string) string

func Format

func Format(stringFormat string, params ...interface{}) string

func GenUUID

func GenUUID(inp interface{}) (string, error)

func GetMsgFee

func GetMsgFee(msg sdk.Msg) (int64, string)

func GetMsgType

func GetMsgType(msg sdk.Msg) string

GetMsgType return type of message in string to be used in fee calculation

func IsValidReserve

func IsValidReserve(address sdk.AccAddress) bool

IsValidReserve - check whether an address is a valid reserve

func Retrieve

func Retrieve(store sdk.KVStore, key []byte, value interface{}) error

func Store

func Store(store sdk.KVStore, key []byte, value interface{}) error

func StringToAddress

func StringToAddress(input string) sdk.AccAddress

Types

This section is empty.

Jump to

Keyboard shortcuts

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