stakeValuesProcessor

package
v1.1.34 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: GPL-3.0 Imports: 14 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 ErrInvalidNodePrice = errors.New("invalid node price")

ErrInvalidNodePrice signals that an invalid node price has been provided

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 ErrNilMarshalizer = errors.New("trying to set nil marshalizer")

ErrNilMarshalizer signals that a nil marshalizer 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(
	nodePrice string,
	marshalizer marshal.Marshalizer,
	accounts state.AccountsAdapter,
) (*stakedValuesProc, error)

NewTotalStakedValueProcessor will create a new instance of stakedValuesProc

Types

type ArgsTotalStakedValueHandler

type ArgsTotalStakedValueHandler struct {
	ShardID             uint32
	NodePrice           string
	InternalMarshalizer marshal.Marshalizer
	Accounts            state.AccountsAdapter
}

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