datafeeds

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 18 Imported by: 1 module, 1 package

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

View Source
const (
	// Aggregator outputs reports in the following format:
	//   []Reports{FeedID []byte, RawReport []byte, Price *big.Int, Timestamp int64}
	// Example of a compatible EVM encoder ABI config:
	//   (bytes32 FeedID, bytes RawReport, uint256 Price, uint64 Timestamp)[] Reports
	TopLevelListOutputFieldName = "Reports"
	FeedIDOutputFieldName       = "FeedID"
	RawReportOutputFieldName    = "RawReport"
	PriceOutputFieldName        = "Price"
	TimestampOutputFieldName    = "Timestamp"
	RemappedIDOutputFieldName   = "RemappedID"
)

Variables

View Source
var File_pkg_capabilities_consensus_ocr3_datafeeds_data_feeds_types_proto protoreflect.FileDescriptor

Functions

func NewDataFeedsAggregator

func NewDataFeedsAggregator(config values.Map, reportCodec datastreams.ReportCodec, lggr logger.Logger) (types.Aggregator, error)

func ParseConfig

func ParseConfig(config values.Map) (aggregatorConfig, error)

Types

type DataFeedsMercuryReportInfo

type DataFeedsMercuryReportInfo struct {
	ObservationTimestamp int64  `protobuf:"varint,3,opt,name=observation_timestamp,json=observationTimestamp,proto3" json:"observation_timestamp,omitempty"`
	BenchmarkPrice       []byte `protobuf:"bytes,5,opt,name=benchmark_price,json=benchmarkPrice,proto3" json:"benchmark_price,omitempty"` // big.Int
	// contains filtered or unexported fields
}

func (*DataFeedsMercuryReportInfo) Descriptor deprecated

func (*DataFeedsMercuryReportInfo) Descriptor() ([]byte, []int)

Deprecated: Use DataFeedsMercuryReportInfo.ProtoReflect.Descriptor instead.

func (*DataFeedsMercuryReportInfo) GetBenchmarkPrice

func (x *DataFeedsMercuryReportInfo) GetBenchmarkPrice() []byte

func (*DataFeedsMercuryReportInfo) GetObservationTimestamp

func (x *DataFeedsMercuryReportInfo) GetObservationTimestamp() int64

func (*DataFeedsMercuryReportInfo) ProtoMessage

func (*DataFeedsMercuryReportInfo) ProtoMessage()

func (*DataFeedsMercuryReportInfo) ProtoReflect

func (*DataFeedsMercuryReportInfo) Reset

func (x *DataFeedsMercuryReportInfo) Reset()

func (*DataFeedsMercuryReportInfo) String

func (x *DataFeedsMercuryReportInfo) String() string

type DataFeedsOutcomeMetadata

type DataFeedsOutcomeMetadata struct {
	FeedInfo map[string]*DataFeedsMercuryReportInfo `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DataFeedsOutcomeMetadata) Descriptor deprecated

func (*DataFeedsOutcomeMetadata) Descriptor() ([]byte, []int)

Deprecated: Use DataFeedsOutcomeMetadata.ProtoReflect.Descriptor instead.

func (*DataFeedsOutcomeMetadata) GetFeedInfo

func (*DataFeedsOutcomeMetadata) ProtoMessage

func (*DataFeedsOutcomeMetadata) ProtoMessage()

func (*DataFeedsOutcomeMetadata) ProtoReflect

func (x *DataFeedsOutcomeMetadata) ProtoReflect() protoreflect.Message

func (*DataFeedsOutcomeMetadata) Reset

func (x *DataFeedsOutcomeMetadata) Reset()

func (*DataFeedsOutcomeMetadata) String

func (x *DataFeedsOutcomeMetadata) String() string

Jump to

Keyboard shortcuts

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