votesync

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2019 License: GPL-3.0 Imports: 23 Imported by: 0

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"`
}

type VoteSync

type VoteSync struct {
	// contains filtered or unexported fields
}

func NewVoteSync

func NewVoteSync(cfg Config) (*VoteSync, error)

func (*VoteSync) Start

func (vc *VoteSync) Start(ctx context.Context)

func (*VoteSync) Stop

func (vc *VoteSync) Stop(ctx context.Context)

type WeightedVote

type WeightedVote struct {
	Voter []byte
	Votes *big.Int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL