prevotes

package
v0.0.0-...-4950b7b Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 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, votePctChan, commitPctChan chan float64, summaryChan chan string)

func GetNetworkName

func GetNetworkName(addr string) (string, error)

Types

type Hvs

type Hvs struct {
	Prevotes           []string `json:"prevotes"`
	Precommits         []string `json:"precommits"`
	PreVotesBitArray   string   `json:"prevotes_bit_array"`
	PreCommitsBitArray string   `json:"precommits_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
	VotedZeroes bool
	Committed   bool
}

func GetHeightVoteStep

func GetHeightVoteStep(url string, names *ValNames) (votes []VoteState, votePercent, commitPercent float64, hrs string, dur time.Duration, proposer int, err error)

Jump to

Keyboard shortcuts

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