base

package
v0.0.0-...-2b7c0bf Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMoreFromInfo

func AddMoreFromInfo(ctx client.Context) client.Context

func CreateAcc

func CreateAcc(ctx client.Context, keyname string, mnemonic string, bip44path string, algo keyring.SignatureAlgo) keyring.Info

func GenTxWithFactory

func GenTxWithFactory(errFd *os.File, ctx client.Context, txf tx.Factory, onlyGen bool, msgs ...sdktypes.Msg)

func GetPrivKey

func GetPrivKey(ctx client.Context, keyname string) cryptotypes.PrivKey

func LoadClientPubInfo

func LoadClientPubInfo(ctx client.Context, keyname string) keyring.Info

func MakeClientWithNewAcc

func MakeClientWithNewAcc(ctx client.Context, keyname string, mnemonic string, bip44path string, algo keyring.SignatureAlgo) keyring.Info

func MakeContext

func MakeContext(mb module.BasicManager, from string, tmRPC string, chainID string, root string, backend string, userInput io.Reader, userOutput io.Writer, genOnly bool) client.Context

func MakeKeyring

func MakeKeyring(ctx client.Context, backend string) keyring.Keyring

func MakeTxFactory

func MakeTxFactory(ctx client.Context, gas string, gasPrice string, memo string, gasWeight float64) tx.Factory

func SetBechPrefix

func SetBechPrefix()

Types

type AccAddr

type AccAddr = sdktypes.AccAddress

func CheckAccAddr

func CheckAccAddr(target any) (AccAddr, error)

type EncodingConfig

type EncodingConfig struct {
	InterfaceRegistry codectypes.InterfaceRegistry
	Marshaler         codec.Codec
	TxConfig          client.TxConfig
	Amino             *codec.LegacyAmino
}

func MakeEncodingConfig

func MakeEncodingConfig(mb module.BasicManager) EncodingConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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