helpers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryBalance

func QueryBalance(chain *relayer.Chain, address string, showDenoms bool) (sdk.Coins, error)

QueryBalance is a helper function for query balance

func QueryHeader

func QueryHeader(chain *relayer.Chain, opts ...string) (*tmclient.Header, error)

QueryHeader is a helper function for query header

func QueryTxs

func QueryTxs(chain *relayer.Chain, eventsStr string, offset uint64, limit uint64) ([]*ctypes.ResultTx, error)

QueryTxs is a helper function for query txs

Types

type KeyOutput

type KeyOutput struct {
	Mnemonic string `json:"mnemonic" yaml:"mnemonic"`
	Address  string `json:"address" yaml:"address"`
}

KeyOutput contains mnemonic and address of key

func KeyAddOrRestore

func KeyAddOrRestore(chain *relayer.Chain, keyName string, coinType uint32, mnemonic ...string) (KeyOutput, error)

KeyAddOrRestore is a helper function for add key and restores key when mnemonic is passed

Jump to

Keyboard shortcuts

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