prevotes

package
v0.0.0-...-accc917 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChainName string
	VotePower = types.NewInt(0)
)

Functions

func DrawScreen

func DrawScreen(network string, voteChan chan []VoteState, pctChan chan float64, summaryChan chan string)

func GetNetworkName

func GetNetworkName(addr string) (string, error)

Types

type Hvs

type Hvs struct {
	Prevotes         []string `json:"prevotes"`
	PreVotesBitArray string   `json:"prevotes_bit_array"`
}

type ValNames

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

func GetValNames

func GetValNames(addr string) *ValNames

func (*ValNames) GetInfo

func (v *ValNames) GetInfo(index int) string

type VoteState

type VoteState struct {
	Description string
	Voted       bool
}

func GetPreVotes

func GetPreVotes(url string, names *ValNames) (votes []VoteState, percent float64, hrs string, dur time.Duration, err error)

Jump to

Keyboard shortcuts

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