mercury

package
v1.11.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type MercuryReport

type MercuryReport struct {
	Payload     hexutil.Bytes
	FromAccount common.Address
}

type MercuryTransmitter

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

func NewTransmitter

func NewTransmitter(lggr logger.Logger, httpClient HTTPClient, fromAccount common.Address, reportURL, username, password string) *MercuryTransmitter

func (*MercuryTransmitter) FromAccount

func (mt *MercuryTransmitter) FromAccount() ocrtypes.Account

func (*MercuryTransmitter) LatestConfigDigestAndEpoch

func (mt *MercuryTransmitter) LatestConfigDigestAndEpoch(ctx context.Context) (cd ocrtypes.ConfigDigest, epoch uint32, err error)

LatestConfigDigestAndEpoch retrieves the latest config digest and epoch from the OCR2 contract. It is plugin independent, in particular avoids use of the plugin specific generated evm wrappers by using the evm client Call directly for functions/events that are part of OCR2Abstract.

func (*MercuryTransmitter) Transmit

Transmit sends the report to the on-chain smart contract's Transmit method.

type ReportCodec

type ReportCodec struct {
	FeedID [32]byte
}

func (ReportCodec) BuildReport

func (ReportCodec) MaxReportLength

func (ReportCodec) MaxReportLength(_ int) int

func (ReportCodec) MedianFromReport

func (ReportCodec) MedianFromReport(report types.Report) (*big.Int, error)

Jump to

Keyboard shortcuts

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