reportcodec

package
v2.13.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReportTypes = reporttypes.GetSchema()

Functions

This section is empty.

Types

type ReportCodec

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

func NewReportCodec

func NewReportCodec(feedID [32]byte, lggr logger.Logger) *ReportCodec

func (*ReportCodec) BenchmarkPriceFromReport added in v2.6.0

func (r *ReportCodec) BenchmarkPriceFromReport(report ocrtypes.Report) (*big.Int, error)

func (*ReportCodec) BuildReport

func (r *ReportCodec) BuildReport(rf v2.ReportFields) (ocrtypes.Report, error)

func (*ReportCodec) Decode

func (r *ReportCodec) Decode(report ocrtypes.Report) (*reporttypes.Report, error)

func (*ReportCodec) MaxReportLength

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

func (*ReportCodec) ObservationTimestampFromReport

func (r *ReportCodec) ObservationTimestampFromReport(report ocrtypes.Report) (uint32, error)

Jump to

Keyboard shortcuts

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