stakeValuesProcessor

package
v1.1.42 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotCastAccountHandlerToUserAccount = errors.New("cannot cast AccountHandler to UserAccount")

ErrCannotCastAccountHandlerToUserAccount signal that returned account is wrong

View Source
var ErrNilAccountsAdapter = errors.New("trying to set nil accounts adapter")

ErrNilAccountsAdapter signals that a nil accounts adapter has been provided

View Source
var ErrNilBlockChain = errors.New("nil block chain")

ErrNilBlockChain signals that an operation has been attempted to or with a nil blockchain

View Source
var ErrNilPubkeyConverter = errors.New("nil pubkey converter")

ErrNilPubkeyConverter signals that an operation has been attempted to or with a nil public key converter implementation

View Source
var ErrNilQueryService = errors.New("nil query service")

ErrNilQueryService signals that a nil query service has been provided

Functions

func CreateTotalStakedValueHandler

func CreateTotalStakedValueHandler(args *ArgsTotalStakedValueHandler) (external.TotalStakedValueHandler, error)

CreateTotalStakedValueHandler wil create a new instance of TotalStakedValueHandler

func NewTotalStakedValueProcessor

func NewTotalStakedValueProcessor(
	accounts state.AccountsAdapter,
	blockChain data.ChainHandler,
	queryService process.SCQueryService,
	publicKeyConverter core.PubkeyConverter,
) (*stakedValuesProc, error)

NewTotalStakedValueProcessor will create a new instance of stakedValuesProc

Types

type ArgsTotalStakedValueHandler

type ArgsTotalStakedValueHandler struct {
	ShardID            uint32
	Accounts           state.AccountsAdapter
	BlockChain         data.ChainHandler
	QueryService       process.SCQueryService
	PublicKeyConverter core.PubkeyConverter
}

ArgsTotalStakedValueHandler is struct that contains components that are needed to create a TotalStakedValueHandler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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