staking

package
v0.2202.10 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package staking implements the tendermint backed staking 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 scheduler service client interface.

func New

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

New constructs a new tendermint backed staking Backend instance.

Jump to

Keyboard shortcuts

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