api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlock

func GetBlock(c common.CommonClient, height int64) (
	int64,
	time.Time,
	string,
	[]types.Tx,
	int64,
	[]types.Signature,
	error,
)

query a new block to find missed validators index

func GetConsumerChainHRP

func GetConsumerChainHRP(c common.CommonClient) (string, error)

func GetConsumerChainID

func GetConsumerChainID(c common.CommonClient) ([]types.ConsumerChain, error)

func GetProviderValidators

func GetProviderValidators(c common.CommonClient, consumerID string) ([]types.ProviderValidator, error)

func GetStakingValidators

func GetStakingValidators(c common.CommonClient, chainName string, status ...string) ([]types.CosmosStakingValidator, error)

TODO: Move parsing logic into parser module for other blockchains TODO: first parameter should change from indexer struct to interface query current staking validators

func GetValidators

func GetValidators(c common.CommonClient, height ...int64) ([]types.CosmosValidator, error)

query cosmos validators on each a new block

Types

This section is empty.

Jump to

Keyboard shortcuts

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