v2_test

package
v0.3.1-beholder Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataSource = staticDataSource{}
View Source
var Fixtures = Parameters{

	Report: ocr2plus_types.Report([]byte("mercury v2 report")),
	ReportFields: mercury_v2_types.ReportFields{
		ValidFromTimestamp: 0,
		Timestamp:          1,
		NativeFee:          big.NewInt(2),
		LinkFee:            big.NewInt(3),
		ExpiresAt:          4,
		BenchmarkPrice:     big.NewInt(5),
	},
	MaxReportLength:      20,
	ObservationTimestamp: 23,

	ReportTimestamp: ocr2plus_types.ReportTimestamp{
		ConfigDigest: [32]byte([]byte("mercury v2 configuration digest!")),
		Epoch:        0,
		Round:        1,
	},
	Observation: mercury_v2_types.Observation{
		BenchmarkPrice:        mercury.ObsResult[*big.Int]{Val: big.NewInt(50)},
		MaxFinalizedTimestamp: mercury.ObsResult[int64]{Val: 79},
		LinkPrice:             mercury.ObsResult[*big.Int]{Val: big.NewInt(30)},
		NativePrice:           mercury.ObsResult[*big.Int]{Val: big.NewInt(20)},
	},
}
View Source
var ReportCodec = staticReportCodec{}
View Source
var StaticReportCodecFixtures = StaticReportCodecValues{
	Report:               ocrtypes.Report([]byte("mercury v2 report")),
	MaxReportLength:      20,
	ObservationTimestamp: 23,
}

Functions

This section is empty.

Types

type Parameters

type Parameters struct {
	// ReportCodec
	Report               ocr2plus_types.Report
	ReportFields         mercury_v2_types.ReportFields
	MaxReportLength      int
	ObservationTimestamp uint32

	// DataSource
	ReportTimestamp ocr2plus_types.ReportTimestamp
	Observation     mercury_v2_types.Observation
}

type StaticReportCodecValues

type StaticReportCodecValues struct {
	Report               ocrtypes.Report
	MaxReportLength      int
	ObservationTimestamp uint32
}

Jump to

Keyboard shortcuts

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