v3

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Schema = getSchema()
)

Functions

This section is empty.

Types

type Report

type Report struct {
	FeedId                [32]byte //nolint:revive // Legacy naming
	ObservationsTimestamp uint32
	BenchmarkPrice        *big.Int
	Bid                   *big.Int
	Ask                   *big.Int
	ValidFromTimestamp    uint32
	ExpiresAt             uint32
	LinkFee               *big.Int
	NativeFee             *big.Int
}

func Decode

func Decode(report []byte) (*Report, error)

Decode is made available to external users (i.e. mercury server)

type ReportCodec

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

func NewReportCodec

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

func (*ReportCodec) BuildReport

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

func (*ReportCodec) Decode

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

type ReportFields

type ReportFields struct {
	ValidFromTimestamp uint32
	Timestamp          uint32
	NativeFee          *big.Int
	LinkFee            *big.Int
	ExpiresAt          uint32
	BenchmarkPrice     *big.Int
	Bid                *big.Int
	Ask                *big.Int
}

Jump to

Keyboard shortcuts

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