Documentation ¶
Index ¶
- Variables
- func NewDelegatedListProcessor(arg ArgTrieIteratorProcessor) (*delegatedListProcessor, error)
- func NewDirectStakedListProcessor(arg ArgTrieIteratorProcessor) (*directStakedListProcessor, error)
- func NewTotalStakedValueProcessor(arg ArgTrieIteratorProcessor) (*stakedValuesProcessor, error)
- type AccountsWrapper
- type ArgTrieIteratorProcessor
Constants ¶
This section is empty.
Variables ¶
var ErrCannotCastAccountHandlerToUserAccount = errors.New("cannot cast AccountHandler to UserAccount")
ErrCannotCastAccountHandlerToUserAccount signal that returned account is wrong
var ErrNilAccountsAdapter = errors.New("trying to set nil accounts adapter")
ErrNilAccountsAdapter signals that a nil accounts adapter has been provided
var ErrNilBlockChain = errors.New("nil block chain")
ErrNilBlockChain signals that an operation has been attempted to or with a nil blockchain
var ErrNilMutex = errors.New("nil mutex")
ErrNilMutex signals that a nil mutex has been provided
var ErrNilPubkeyConverter = errors.New("nil pubkey converter")
ErrNilPubkeyConverter signals that an operation has been attempted to or with a nil public key converter implementation
var ErrNilQueryService = errors.New("nil query service")
ErrNilQueryService signals that a nil query service has been provided
var ErrNodeNotInitialized = errors.New("the node is not fully initialized")
ErrNodeNotInitialized signals that the node is not initialized and can not compute the required task yet
Functions ¶
func NewDelegatedListProcessor ¶
func NewDelegatedListProcessor(arg ArgTrieIteratorProcessor) (*delegatedListProcessor, error)
NewDelegatedListProcessor will create a new instance of delegatedListProc
func NewDirectStakedListProcessor ¶
func NewDirectStakedListProcessor(arg ArgTrieIteratorProcessor) (*directStakedListProcessor, error)
NewDirectStakedListProcessor will create a new instance of stakedValuesProc
func NewTotalStakedValueProcessor ¶
func NewTotalStakedValueProcessor(arg ArgTrieIteratorProcessor) (*stakedValuesProcessor, error)
NewTotalStakedValueProcessor will create a new instance of stakedValuesProc
Types ¶
type AccountsWrapper ¶
type AccountsWrapper struct { *sync.Mutex state.AccountsAdapter }
AccountsWrapper extends the AccountsAdapter interface
type ArgTrieIteratorProcessor ¶
type ArgTrieIteratorProcessor struct { ShardID uint32 Accounts *AccountsWrapper BlockChain data.ChainHandler QueryService process.SCQueryService PublicKeyConverter core.PubkeyConverter }
ArgTrieIteratorProcessor represents the arguments DTO used in trie iterator processors constructors