Documentation ¶
Index ¶
Constants ¶
This section is empty.
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"` 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"` }
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.