votesync

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: GPL-3.0 Imports: 18 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"`
	VotingSystemContractAddress string        `yaml:"votingSystemContractAddress"`
}

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