alias

package
v1.6.1-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliasCmd = &cobra.Command{
	Use:   config.TranslateInLang(aliasCmdUses, config.UILanguage),
	Short: config.TranslateInLang(aliasCmdShorts, config.UILanguage),
}

AliasCmd represents the alias command

View Source
var (
	ErrNoAliasFound = errors.New("no alias is found")
)

Errors

Functions

func Alias

func Alias(address string) (string, error)

Alias returns the alias corresponding to address

func EtherAddress

func EtherAddress(in string) (common.Address, error)

EtherAddress returns the address in ether format

func GetAliasMap

func GetAliasMap() map[string]string

GetAliasMap gets the map from address to alias

func IOAddress

func IOAddress(in string) (address.Address, error)

IOAddress returns the address in IoTeX address format

Types

This section is empty.

Jump to

Keyboard shortcuts

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