medianpoc

package
v2.12.1-starknet-07192024 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource struct {
	// contains filtered or unexported fields
}

func (*DataSource) Observe

func (d *DataSource) Observe(ctx context.Context, reportTimestamp ocrtypes.ReportTimestamp) (*big.Int, error)

type PipelineNotFoundError added in v2.13.0

type PipelineNotFoundError struct {
	Key string
}

func (*PipelineNotFoundError) Error added in v2.13.0

func (e *PipelineNotFoundError) Error() string

type Plugin

type Plugin struct {
	loop.Plugin

	reportingplugins.MedianProviderServer
	// contains filtered or unexported fields
}

func NewPlugin

func NewPlugin(lggr logger.Logger) *Plugin

func (*Plugin) NewReportingPluginFactory

func (p *Plugin) NewReportingPluginFactory(
	ctx context.Context,
	config core.ReportingPluginServiceConfig,
	provider types.MedianProvider,
	pipelineRunner core.PipelineRunnerService,
	telemetry core.TelemetryClient,
	errorLog core.ErrorLog,
	keyValueStore core.KeyValueStore,
	relayerSet core.RelayerSet,
) (types.ReportingPluginFactory, error)

func (*Plugin) NewValidationService added in v2.11.0

func (p *Plugin) NewValidationService(ctx context.Context) (core.ValidationService, error)

type ZeroDataSource added in v2.12.0

type ZeroDataSource struct{}

func (*ZeroDataSource) Observe added in v2.12.0

func (d *ZeroDataSource) Observe(ctx context.Context, reportTimestamp ocrtypes.ReportTimestamp) (*big.Int, error)

Jump to

Keyboard shortcuts

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