oracle

package
v0.0.2-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagValidator = "validator"
)
View Source
const VotePeriod = 12

Variables

This section is empty.

Functions

func Broadcast

func Broadcast(msgs []sdk.Msg) error

func GenerateRandomBytes

func GenerateRandomBytes(n int) ([]byte, error)

GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func GenerateRandomString

func GenerateRandomString(n int) (string, error)

GenerateRandomString returns a securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

Types

type OracleService

type OracleService struct {
	cmn.BaseService
	// contains filtered or unexported fields
}

func NewOracleService

func NewOracleService(ps *price.PriceService, cdc *amino.Codec) *OracleService

func (*OracleService) OnStart

func (os *OracleService) OnStart() error

Jump to

Keyboard shortcuts

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