v3

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 7 Imported by: 0

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