state

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidSign        = errors.New("invalid signature")
	ErrFuncNotFound       = errors.New("function is not found")
	ErrRevealIsExist      = errors.New("reveal is exist")
	ErrCommitIsExist      = errors.New("commit is exist")
	ErrCommitIsNotExist   = errors.New("commit is not exist")
	ErrInvalidReveal      = errors.New("invalid reveal")
	ErrNewRound           = errors.New("round is exist")
	ErrAddOracleInNebula  = errors.New("oracle was added in nebula")
	ErrInvalidScore       = errors.New("invalid score. score <= 0")
	ErrInvalidChainType   = errors.New("invalid chain type")
	ErrInvalidHeight      = errors.New("invalid height")
	ErrInvalidSubRound    = errors.New("invalid sub round")
	ErrInvalidNebulaOwner = errors.New("invalid nebula owner")
	ErrNebulaNotFound     = errors.New("nebula not found")
	ErrSignIsExist        = errors.New("sign is exist")
	ErrRoundIsExist       = errors.New("round is exist")
)

Functions

Types

type SubRound

type SubRound int64
const (
	CommitSubRound SubRound = iota
	RevealSubRound
	ResultSubRound
	SendToTargetChain

	SubRoundCount = 4

	RoundInterval = 2
)

func CalculateSubRound

func CalculateSubRound(id uint64) SubRound

Jump to

Keyboard shortcuts

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