datafeeds

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: 17 Imported by: 1

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) (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