registry

package
v0.2300.10 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package registry implements the CometBFT 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 EventsFromCometBFT

func EventsFromCometBFT(
	tx cmttypes.Tx,
	height int64,
	tmEvents []cmtabcitypes.Event,
) ([]*api.Event, []*NodeListEpochInternalEvent, error)

EventsFromCometBFT extracts registry events from CometBFT 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 CometBFT backed registry Backend instance.

Jump to

Keyboard shortcuts

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