parser

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CelestiaUpgradeParser added in v1.0.1

func CelestiaUpgradeParser(resp []byte) (
	int64,
	string,
	error)

celestia upgrade parser

func CosmosBlockParser

func CosmosBlockParser(resp []byte) (
	int64,
	time.Time,
	string,
	[]types.Tx,
	int64,
	[]types.Signature,
	error,
)

func CosmosBlockResultsParser added in v1.1.0

func CosmosBlockResultsParser(resp []byte) (txsEvents []types.BlockEvent, blockEvents []types.BlockEvent, params types.CosmosBlockData, err error)

this function return two events but one of them will be empty events

func CosmosConsensusmParamsParser added in v1.1.0

func CosmosConsensusmParamsParser(resp []byte) (float64, float64, error)

func CosmosSlashingParamsParser added in v1.0.1

func CosmosSlashingParamsParser(resp []byte) (signedBlocksWindow float64, minSignedPerWindow float64, err error)

func CosmosSlashingParser added in v1.0.1

func CosmosSlashingParser(resp []byte) (consensusAddress string, indexOffset float64, isTomstoned float64, missedBlocksCounter float64, err error)

func CosmosStakingValidatorParser

func CosmosStakingValidatorParser(resp []byte) ([]types.CosmosStakingValidator, error)

func CosmosStatusParser

func CosmosStatusParser(resp []byte) (
	int64,
	time.Time,
	error,
)

func CosmosUpgradeParser added in v1.0.1

func CosmosUpgradeParser(resp []byte) (
	int64,
	string,
	error)

cosmos upgrade parser

func CosmosValidatorParser

func CosmosValidatorParser(resp []byte) ([]types.CosmosValidator, int64, error)

TODO: modify this function logic

func DecodeAttributes added in v1.1.0

func DecodeAttributes(attributes []types.Attribute) []types.Attribute

func DecodeEventsInBlockResults added in v1.1.0

func DecodeEventsInBlockResults(txsEvents []types.BlockEvent, blockEvents []types.BlockEvent) ([]types.BlockEvent, []types.BlockEvent)

func InitiaStakingValidatorParser

func InitiaStakingValidatorParser(resp []byte) ([]types.CosmosStakingValidator, error)

func ParseFinalityProviderInfos added in v1.1.0

func ParseFinalityProviderInfos(resp []byte) (types.FinalityProviderInfosResponse, error)

func ParseFinalityProviderVotings added in v1.1.0

func ParseFinalityProviderVotings(resp []byte) (types.FinalityVotesResponse, error)

func ParseFinalityProviders added in v1.1.0

func ParseFinalityProviders(resp []byte) (types.FinalityProvidersResponse, error)

func ParserBTCDelegations added in v1.1.0

func ParserBTCDelegations(resp []byte) (int64, error)

func ParserBTCLightClientParams added in v1.1.0

func ParserBTCLightClientParams(resp []byte) ([]string, error)

func ParserCovenantCommiteeParams added in v1.1.0

func ParserCovenantCommiteeParams(resp []byte) ([]string, error)

func ParserFinalityParams added in v1.1.0

func ParserFinalityParams(resp []byte) (float64, float64, int64, error)

func ParserFinalityProviderSigningInfo added in v1.1.0

func ParserFinalityProviderSigningInfo(resp []byte) (float64, error)

func StorySlashingParamsParser added in v1.0.1

func StorySlashingParamsParser(resp []byte) (signedBlocksWindow float64, minSignedPerWindow float64, err error)

func StorySlashingParser added in v1.0.1

func StorySlashingParser(resp []byte) (consensusAddress string, indexOffset float64, isTomstoned float64, missedBlocksCounter float64, err error)

story slashing parser

func StoryStakingValidatorParser

func StoryStakingValidatorParser(resp []byte) ([]types.CosmosStakingValidator, error)

func StoryUpgradeParser added in v1.0.1

func StoryUpgradeParser(resp []byte) (
	int64,
	string,
	error)

story upgrade parser

Types

This section is empty.

Jump to

Keyboard shortcuts

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