Versions in this module Expand all Collapse all v0 v0.1.0 Jun 27, 2019 Changes in this version + const AggregateVotingTable + const CandidateVoterIndexName + const EpochCandidateIndexName + const EpochCandidateVoterIndexName + const EpochIndexName + const EpochVoterIndexName + const ProtocolID + const VotingHistoryTableName + const VotingMetaTableName + const VotingResultTableName + type Protocol struct + NumDelegates uint64 + NumSubEpochs uint64 + Store s.Store + func NewProtocol(store s.Store, numDelegates uint64, numSubEpochs uint64) *Protocol + func (p *Protocol) CreateTables(ctx context.Context) error + func (p *Protocol) HandleBlock(ctx context.Context, tx *sql.Tx, blk *block.Block) error + func (p *Protocol) Initialize(context.Context, *sql.Tx, *indexprotocol.Genesis) error + type VotingHistory struct + CandidateName string + EpochNumber uint64 + RemainingDuration string + VoterAddress string + Votes string + WeightedVotes string + type VotingResult struct + DelegateName string + EpochNumber uint64 + OperatorAddress string + RewardAddress string + SelfStaking string + TotalWeightedVotes string