Documentation ¶
Index ¶
- Variables
- type ReportCodec
- func (r *ReportCodec) BenchmarkPriceFromReport(report ocrtypes.Report) (*big.Int, error)
- func (r *ReportCodec) BuildReport(rf v2.ReportFields) (ocrtypes.Report, error)
- func (r *ReportCodec) Decode(report ocrtypes.Report) (*reporttypes.Report, error)
- func (r *ReportCodec) MaxReportLength(n int) (int, error)
- func (r *ReportCodec) ObservationTimestampFromReport(report ocrtypes.Report) (uint32, error)
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 (*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)
Click to show internal directories.
Click to hide internal directories.