roothash

package
v0.2201.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package roothash implements the tendermint backed roothash backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventsFromTendermint

func EventsFromTendermint(
	tx tmtypes.Tx,
	height int64,
	tmEvents []tmabcitypes.Event,
) ([]*api.Event, error)

EventsFromTendermint extracts staking events from tendermint events.

Types

type ServiceClient

type ServiceClient interface {
	api.Backend
	tmapi.ServiceClient
}

ServiceClient is the roothash service client interface.

func New

func New(
	ctx context.Context,
	dataDir string,
	backend tmapi.Backend,
) (ServiceClient, error)

New constructs a new tendermint-based root hash backend.

Jump to

Keyboard shortcuts

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