util

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddress added in v0.5.0

func GetAddress(cdc *codec.Codec, cliCtx context.CLIContext, addressOrName string) (sdk.AccAddress, error)

GetAddress searches address in nickname mapping

func GetContractType added in v0.5.0

func GetContractType(strContractType string) util.ContractType

func GetLocalWalletInfo added in v0.6.0

func GetLocalWalletInfo(valueFromFromFlag string, kb keys.Keybase, cdc *codec.Codec, cliCtx context.CLIContext) (keys.Info, error)

GetLocalWalletInfo takes wallet info from local Rules:

  1. If --from exists, search according to: (1) Local wallet alias (2) Address (3) Nickname
  2. If --from doesn't exist, (1) If only one wallet exists, take this (2) If not, raise error

func ReplaceBase64HashToBech32 added in v0.9.0

func ReplaceBase64HashToBech32(path, valueStr string) string

ReplaceBase64HashToBech32 for replace hashes for empty path query

Types

type Bigsun added in v0.6.0

type Bigsun string

func ToBigsun added in v0.6.0

func ToBigsun(hdac Hdac) (Bigsun, error)

type Hdac added in v0.6.0

type Hdac string

func ToHdac added in v0.6.0

func ToHdac(Bigsun Bigsun) Hdac

Jump to

Keyboard shortcuts

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