staking

package
v0.2400.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package staking implements the CometBFT backed staking backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventsFromCometBFT

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

EventsFromCometBFT extracts staking events from CometBFT events.

Types

type ServiceClient

type ServiceClient interface {
	api.Backend
	tmapi.ServiceClient
}

ServiceClient is the scheduler service client interface.

func New

func New(backend tmapi.Backend) (ServiceClient, error)

New constructs a new CometBFT backed staking Backend instance.

Jump to

Keyboard shortcuts

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