Documentation ¶
Index ¶
- func GetBlock(c common.CommonClient, height int64) (int64, time.Time, string, []types.Tx, int64, []types.Signature, error)
- func GetConsumerChainHRP(c common.CommonClient) (string, error)
- func GetConsumerChainID(c common.CommonClient) ([]types.ConsumerChain, error)
- func GetProviderValidators(c common.CommonClient, consumerID string) ([]types.ProviderValidator, error)
- func GetStakingValidators(c common.CommonClient, chainName string, status ...string) ([]types.CosmosStakingValidator, error)
- func GetValidators(c common.CommonClient, height ...int64) ([]types.CosmosValidator, error)
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.
Click to show internal directories.
Click to hide internal directories.