codec

package
v0.0.0-...-f148bc3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Bech32PrefixAccAddr defines the Bech32 prefix of an account's address
	Bech32PrefixAccAddr = "iaa"
	// Bech32PrefixAccPub defines the Bech32 prefix of an account's public key
	Bech32PrefixAccPub = "iap"
	// Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address
	Bech32PrefixValAddr = "iva"
	// Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key
	Bech32PrefixValPub = "ivp"
	// Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address
	Bech32PrefixConsAddr = "ica"
	// Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key
	Bech32PrefixConsPub = "icp"
)

Functions

func GetMarshaler

func GetMarshaler() codec.Codec

func GetSigningTx

func GetSigningTx(txBytes types.Tx) (signing.Tx, error)

func GetTxDecoder

func GetTxDecoder() sdk.TxDecoder

func MakeEncodingConfig

func MakeEncodingConfig()

初始化账户地址前缀

func RegisterAppModules

func RegisterAppModules(module ...module.AppModuleBasic)

func SetBech32Prefix

func SetBech32Prefix(bech32PrefixAccAddr, bech32PrefixAccPub, bech32PrefixValAddr,
	bech32PrefixValPub, bech32PrefixConsAddr, bech32PrefixConsPub string)

func SetBech32Prefixs

func SetBech32Prefixs(prefixs []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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