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
Click to show internal directories.
Click to hide internal directories.