Versions in this module Expand all Collapse all v0 v0.1.0 Oct 9, 2024 Changes in this version + var File_mercury_observation_v2_proto protoreflect.FileDescriptor + var MissingPrice = big.NewInt(-1) + type DataSource interface + Observe func(ctx context.Context, repts types.ReportTimestamp, ...) (v2.Observation, error) + type Factory struct + func NewFactory(ds DataSource, lggr logger.Logger, occ mercurytypes.OnchainConfigCodec, ...) Factory + func (fac Factory) NewMercuryPlugin(ctx context.Context, configuration ocr3types.MercuryPluginConfig) (ocr3types.MercuryPlugin, ocr3types.MercuryPluginInfo, error) + type MercuryObservationProto struct + BenchmarkPrice []byte + LinkFee []byte + LinkFeeValid bool + MaxFinalizedTimestamp int64 + MaxFinalizedTimestampValid bool + NativeFee []byte + NativeFeeValid bool + PricesValid bool + Timestamp uint32 + func (*MercuryObservationProto) Descriptor() ([]byte, []int) + func (*MercuryObservationProto) ProtoMessage() + func (x *MercuryObservationProto) GetBenchmarkPrice() []byte + func (x *MercuryObservationProto) GetLinkFee() []byte + func (x *MercuryObservationProto) GetLinkFeeValid() bool + func (x *MercuryObservationProto) GetMaxFinalizedTimestamp() int64 + func (x *MercuryObservationProto) GetMaxFinalizedTimestampValid() bool + func (x *MercuryObservationProto) GetNativeFee() []byte + func (x *MercuryObservationProto) GetNativeFeeValid() bool + func (x *MercuryObservationProto) GetPricesValid() bool + func (x *MercuryObservationProto) GetTimestamp() uint32 + func (x *MercuryObservationProto) ProtoReflect() protoreflect.Message + func (x *MercuryObservationProto) Reset() + func (x *MercuryObservationProto) String() string + type PAO interface + GetLinkFee func() (*big.Int, bool) + GetMaxFinalizedTimestamp func() (int64, bool) + GetNativeFee func() (*big.Int, bool) + func NewParsedAttributedObservation(ts uint32, observer commontypes.OracleID, bp *big.Int, pricesValid bool, ...) PAO