package
2.1.3-rc0
Repository: https://github.com/iotexproject/iotex-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CandidatesToMap converts a candidate list to map of cachedCandidates.
DelegateCandidateOption is an option to create a delegate candidate account.
Deserialize check if input is Deserializer, if it is, use the input's Deserialize method, otherwise use Gob.
LegacyNonceAccountTypeOption is an option to create account with new account type.
MapToCandidates converts a map of cachedCandidates to candidate list.
NewAccount creates a new account with options.
NewIterator returns an interator given a list of serialized states.
Serialize check if input is Serializer, if it is, use the input's Serialize method, otherwise use Gob.

# Variables

ErrAccountCollision is the error that the account already exists.
ErrCandidate indicates the error of candidate.
ErrCandidateList indicates the error of candidate list.
ErrCandidateMap indicates the error of candidate map.
ErrCandidatePb indicates the error of protobuf's candidate message.
ErrInConsistentLength is an error when keys and states have inconsistent length.
ErrInvalidAmount is the error that the amount to add is negative.
ErrInvalidNonce is the error that the nonce to set is invalid.
ErrNilValue is an error when value is nil.
ErrNonceOverflow is the error that the nonce overflow.
ErrNotEnoughBalance is the error that the balance is not enough.
ErrOutOfBoundary defines an error when the index in the iterator is out of boundary.
ErrStateDeserialization is the error that the state un-marshaling is failed.
ErrStateNotExist is the error that the state does not exist.
ErrStateSerialization is the error that the state marshaling is failed.
ErrUnknownAccountType is the error that the account type is unknown.

# Structs

No description provided by the author
No description provided by the author

# Interfaces

Deserializer has Deserialize method to deserialize binary data to struct.
Iterator defines an interator to read a set of states.
Serializer has Serialize method to serialize struct to binary data.
State is the interface, which defines the common methods for state struct to be handled by state factory.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author