registry

package
v0.2201.7 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package registry implements the tendermint backed registry backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeListEpochInternalEvent

type NodeListEpochInternalEvent struct {
	Height int64 `json:"height"`
}

NodeListEpochInternalEvent is the per-epoch node list event.

func EventsFromTendermint

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

EventsFromTendermint extracts registry events from tendermint events.

type ServiceClient

type ServiceClient interface {
	api.Backend
	tmapi.ServiceClient
}

ServiceClient is the registry service client interface.

func New

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

New constructs a new tendermint backed registry Backend instance.

Jump to

Keyboard shortcuts

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