Documentation ¶
Index ¶
Constants ¶
View Source
const ( PollChallengedNullifier = iota PollNullifierTreeRoot PollParticipationEventID PollChallengedEventID )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { comfig.Logger pgdb.Databaser comfig.Listenerer auth.Auther //nolint:misspell broadcaster.Broadcasterer evtypes.EventTypeser hmacsig.SigCalculatorProvider PollVerifierer Levels() *Levels Verifiers() Verifiers DailyQuestions() *DailyQuestions }
type DailyQuestions ¶ added in v1.5.0
func (*DailyQuestions) ClearDeadlines ¶ added in v1.5.0
func (q *DailyQuestions) ClearDeadlines() map[int]int
func (*DailyQuestions) GetDeadline ¶ added in v1.5.0
func (q *DailyQuestions) GetDeadline(nullifier string) *Deadline
func (*DailyQuestions) LocalTime ¶ added in v1.5.0
func (q *DailyQuestions) LocalTime(date time.Time) time.Time
func (*DailyQuestions) SetDeadline ¶ added in v1.5.0
type Levels ¶
type Levels struct { Downgradeable bool // contains filtered or unexported fields }
type PollVerifier ¶ added in v1.4.0
type PollVerifier struct { RPC *ethclient.Client `fig:"rpc,required"` ProposalStateAddress common.Address `fig:"proposal_state_address,required"` // contains filtered or unexported fields }
func (*PollVerifier) VerifyProof ¶ added in v1.4.0
type PollVerifierer ¶ added in v1.4.0
type PollVerifierer interface {
PollVerifier() *PollVerifier
}
func NewPollVerifier ¶ added in v1.4.0
func NewPollVerifier(getter kv.Getter) PollVerifierer
Click to show internal directories.
Click to hide internal directories.