staking

package
v0.0.0-...-9865f5a Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package staking implements the staking application.

Index

Constants

View Source
const (
	// AppID is the unique application identifier.
	AppID uint8 = 0x05
)

Variables

View Source
var (
	// AppName is the ABCI application name.
	AppName = stakingState.AppName

	//EventType is the ABCI event type for staking events.
	EventType = api.EventTypeForApp(AppName)

	// QueryApp is a query for filtering events processed by the
	// staking application.
	QueryApp = api.QueryForApp(AppName)

	// KeyTakeEscrow is an ABCI event attribute key for TakeEscrow calls
	// (value is an api.TakeEscrowEvent).
	KeyTakeEscrow = stakingState.KeyTakeEscrow

	// KeyReclaimEscrow is an ABCI event attribute key for ReclaimEscrow
	// calls (value is an api.ReclaimEscrowEvent).
	KeyReclaimEscrow = []byte("reclaim_escrow")

	// KeyTransfer is an ABCI event attribute key for Transfers (value is
	// an api.TransferEvent).
	KeyTransfer = stakingState.KeyTransfer

	// KeyBurn is an ABCI event attribute key for Burn calls (value is
	// an api.BurnEvent).
	KeyBurn = []byte("burn")

	// KeyAddEscrow is an ABCI event attribute key for AddEscrow calls
	// (value is an api.AddEscrowEvent).
	KeyAddEscrow = stakingState.KeyAddEscrow
)

Functions

func New

func New() abci.Application

New constructs a new staking application instance.

Types

type Query

Query is the staking query interface.

type QueryFactory

type QueryFactory struct {
	// contains filtered or unexported fields
}

QueryFactory is the staking query factory.

func NewQueryFactory

func NewQueryFactory(state abciAPI.ApplicationQueryState) *QueryFactory

NewQueryFactory returns a new QueryFactory backed by the given state instance.

func (*QueryFactory) QueryAt

func (sf *QueryFactory) QueryAt(ctx context.Context, height int64) (Query, error)

QueryAt returns the staking query interface for a specific height.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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