utils

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHeightRequestContext

func GetHeightRequestContext(context context.Context, height int64) context.Context

GetHeightRequestContext adds the height to the context for queries

func QueryTxs

func QueryTxs(node node.Node, query string) ([]*coretypes.ResultTx, error)

QueryTxs queries all the transactions from the given node corresponding to the given query

func ReadGenesis

func ReadGenesis(config config.Config, node node.Node) (*tmtypes.GenesisDoc, error)

ReadGenesis reads the genesis data based on the given config

func RemoveDuplicateValues

func RemoveDuplicateValues(slice []string) []string

RemoveDuplicateValues removes the duplicated values from the given slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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