oracle

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WrkOracle

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

WrkOracle is an object to hold Oracle settings, and the WRKChain and Mainchain clients

func NewWrkOracle

func NewWrkOracle(cliCxt context.CLIContext, kb keys.Keybase, cdc *codec.Codec) (WrkOracle, error)

NewWrkOracle returns an initialised WrkOracle object

func (WrkOracle) RecordSingleBlock

func (wo WrkOracle) RecordSingleBlock(height uint64) error

RecordSingleBlock is used to record a single WRKChain block header to Mainchain

func (WrkOracle) Run

func (wo WrkOracle) Run() error

Run runs the WRKOracle in automated mode

Jump to

Keyboard shortcuts

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