Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PollProtocolID is ID of poll protocol
PollProtocolID = "poll"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GravityChainAPIs []string `yaml:"gravityChainAPIs"` GravityChainTimeInterval time.Duration `yaml:"gravityChainTimeInterval"` OperatorPrivateKey string `yaml:"operatorPrivateKey"` IoTeXAPI string `yaml:"ioTeXAPI"` IoTeXAPISecure bool `yaml:"ioTeXAPISecure"` RegisterContractAddress string `yaml:"registerContractAddress"` StakingContractAddress string `yaml:"stakingContractAddress"` PaginationSize uint8 `yaml:"paginationSize"` BrokerPaginationSize uint8 `yaml:"brokerPaginationSize"` VitaContractAddress string `yaml:"vitaContractAddress"` DiscordBotToken string `yaml:"discordBotToken"` DiscordChannelID string `yaml:"discordChannelID"` DiscordMsg string `yaml:"discordMsg"` DiscordReminder string `yaml:"discordReminder"` DardaenllesHeight uint64 `yaml:"dardanellesHeight"` FairBankHeight uint64 `yaml:"fairbankHeight"` NativeCommitteeInitHeight uint64 `yaml:"nativeCommitteeInitHeight"` }
Config defines the configs for VoteSync
type VoteSync ¶
type VoteSync struct {
// contains filtered or unexported fields
}
VoteSync defines fields used in VoteSync
func NewVoteSync ¶
NewVoteSync instantiates new VoteSync
type WeightedVote ¶
WeightedVote defines voter and votes for weighted vote
Click to show internal directories.
Click to hide internal directories.