Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProtocolID is the ID of protocol ProtocolID = "voting" // VotingHistoryTableName is the table name of voting history VotingHistoryTableName = "voting_history" // VotingResultTableName is the table name of voting result VotingResultTableName = "voting_result" //VotingMetaTableName is the voting meta table VotingMetaTableName = "voting_meta" // AggregateVotingTable is the table name of voters' aggregate voting AggregateVotingTable = "aggregate_voting" // EpochIndexName is the index name of epoch number on voting meta table EpochIndexName = "epoch_index" // EpochVoterIndexName is the index name of epoch number and voter address on voting history table EpochVoterIndexName = "epoch_voter_index" // CandidateVoterIndexName is the index name of candidate name and voter address on voting history table CandidateVoterIndexName = "candidate_voter_index" // EpochCandidateIndexName is the index name of epoch number and candidate name on voting history/result table EpochCandidateIndexName = "epoch_candidate_index" // EpochCandidateVoterIndexName is the index name of epoch number, candidate name, and voter address on aggregate voting table EpochCandidateVoterIndexName = "epoch_candidate_voter_index" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
Protocol defines the protocol of indexing blocks
func NewProtocol ¶
NewProtocol creates a new protocol
func (*Protocol) CreateTables ¶
CreateTables creates tables
func (*Protocol) HandleBlock ¶
HandleBlock handles blocks
func (*Protocol) Initialize ¶
Initialize initializes votings protocol
Click to show internal directories.
Click to hide internal directories.