{"modulePath":"github.com/multiversx/mx-chain-go","version":"v1.11.11","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package trieIterators\n\n## Variables\n\n```go\nvar ErrCannotCastAccountHandlerToUserAccount = errors.New(\"cannot cast AccountHandler to UserAccount\")\n```\nErrCannotCastAccountHandlerToUserAccount signal that returned account is wrong\n\n```go\nvar ErrNilAccountsAdapter = errors.New(\"trying to set nil accounts adapter\")\n```\nErrNilAccountsAdapter signals that a nil accounts adapter has been provided\n\n```go\nvar ErrNilMutex = errors.New(\"nil mutex\")\n```\nErrNilMutex signals that a nil mutex has been provided\n\n```go\nvar ErrNilPubkeyConverter = errors.New(\"nil pubkey converter\")\n```\nErrNilPubkeyConverter signals that an operation has been attempted to or with a nil public key converter implementation\n\n```go\nvar ErrNilQueryService = errors.New(\"nil query service\")\n```\nErrNilQueryService signals that a nil query service has been provided\n\n```go\nvar ErrTrieOperationsTimeout = errors.New(\"trie operations timeout\")\n```\nErrTrieOperationsTimeout signals a timeout during trie operations\n\n## Functions\n\n```go\nfunc NewDelegatedListProcessor(arg ArgTrieIteratorProcessor) (*delegatedListProcessor, error)\n```\nNewDelegatedListProcessor will create a new instance of delegatedListProc\n\n```go\nfunc NewDirectStakedListProcessor(arg ArgTrieIteratorProcessor) (*directStakedListProcessor, error)\n```\nNewDirectStakedListProcessor will create a new instance of stakedValuesProc\n\n```go\nfunc NewTotalStakedValueProcessor(arg ArgTrieIteratorProcessor) (*stakedValuesProcessor, error)\n```\nNewTotalStakedValueProcessor will create a new instance of stakedValuesProc\n\n## Types\n\n```go\ntype AccountsWrapper struct {\n\t*sync.Mutex\n\tstate.AccountsAdapter\n}\n```\nAccountsWrapper extends the AccountsAdapter interface\n\n```go\ntype ArgTrieIteratorProcessor struct {\n\tShardID            uint32\n\tAccounts           *AccountsWrapper\n\tQueryService       process.SCQueryService\n\tPublicKeyConverter core.PubkeyConverter\n}\n```\nArgTrieIteratorProcessor represents the arguments DTO used in trie iterator processors constructors\n\n","path":"github.com/multiversx/mx-chain-go/node/trieIterators","name":"trieIterators","synopsis":"","isRedistributable":true}
