tellor

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ComponentName = "submitterTellor"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled         bool
	LogLevel        string
	MinSubmitPeriod format.Duration `help:"The time limit between each submit for a staked reporter."`
}

type Submitter

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

func New

func New(
	ctx context.Context,
	logger log.Logger,
	cfg Config,
	client *ethclient.Client,
	contract contracts.TellorCaller,
	account *ethereum.Account,
	transactor Transactor,
	psr *psr.Psr,
) (*Submitter, chan *mining.Result, error)

func (*Submitter) Start

func (self *Submitter) Start() error

func (*Submitter) Stop

func (self *Submitter) Stop()

func (*Submitter) Submit

func (self *Submitter) Submit(newChallengeReplace context.Context, result *mining.Result)

type Transactor

type Transactor interface {
	Transact(ctx context.Context, _nonce string, _requestId [5]*big.Int, _value [5]*big.Int) (*types.Transaction, error)
}

Jump to

Keyboard shortcuts

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