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

# Packages

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

# Functions

AddrKeyWithPrefix returns address key with prefix.
BucketIndexFromReceiptLog extracts bucket index from log.
CalculateVoteWeight calculates the vote weight.
ConstructBaseView returns a candidate state reader that reflects the base view it will be used read-only.
CreateBaseView creates the base view from state reader.
FindProtocol return a registered protocol from registry.
NewCandidateCenter creates an instance of CandidateCenter.
NewCandidateStateManager returns a new CandidateStateManager instance.
NewEndorsementStateManager creates a new endorsement state manager.
NewEndorsementStateReader creates a new endorsement state reader.
NewMockContractStakingIndexer creates a new mock instance.
NewPatchStore creates a new staking patch store.
NewProtocol instantiates the protocol of staking.
NewStakingCandidatesBucketsIndexer creates a new StakingCandidatesIndexer.
NewVoteBucket creates a new vote bucket.
NewVoteReviser creates a VoteReviser.
ProtocolAddr returns the address generated from protocol id.

# Constants

CandsMapNS is the bucket name to store candidate map.
Endorsed means the endorsement is valid.
EndorseExpired means the endorsement is expired.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
constants.
StakingBucketsNamespace is a namespace to store vote buckets with epoch start height.
StakingCandidatesNamespace is a namespace to store candidates with epoch start height.
StakingMetaNamespace is a namespace to store metadata.
UnEndorsing means the endorser has submitted unendorsement, but it is not expired yet.

# Variables

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CandidatesBucketsIndexer is an indexer to store candidates by given height.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MockContractStakingIndexer is a mock of ContractStakingIndexer interface.
MockContractStakingIndexerMockRecorder is the mock recorder for MockContractStakingIndexer.
PatchStore is the patch store of staking protocol.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VoteReviser is used to recalculate candidate votes.

# Interfaces

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

# Type aliases

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