reportcodec

package
v2.4.1-clf-20230809 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 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) FeedIDFromReport

func (r *EVMReportCodec) FeedIDFromReport(report ocrtypes.Report) (feedID [32]byte, err error)

func (*EVMReportCodec) MaxReportLength

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

Maximum length in bytes of Report returned by BuildReport. Used for defending against spam attacks.

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