reportcodec

package
v2.2.1-mercury-20230627 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReportTypes = getReportTypes()

Functions

This section is empty.

Types

type EVMReportCodec

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

func NewEVMReportCodec

func NewEVMReportCodec(feedID [32]byte, lggr logger.Logger) *EVMReportCodec

func (*EVMReportCodec) BuildReport

func (r *EVMReportCodec) BuildReport(paos []relaymercury.ParsedAttributedObservation, f int, validFromBlockNum int64) (ocrtypes.Report, error)

func (*EVMReportCodec) CurrentBlockNumFromReport

func (r *EVMReportCodec) CurrentBlockNumFromReport(report ocrtypes.Report) (int64, error)

func (*EVMReportCodec) MaxReportLength

func (r *EVMReportCodec) MaxReportLength(n int) (int, error)

func (*EVMReportCodec) ValidFromBlockNumFromReport added in v2.3.0

func (r *EVMReportCodec) ValidFromBlockNumFromReport(report ocrtypes.Report) (int64, error)

Jump to

Keyboard shortcuts

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