ocr3

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 29 Imported by: 1 module, 4 packages

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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capability

type Capability struct {
	loop.Plugin
	reportingplugins.PluginProviderServer
	// contains filtered or unexported fields
}

func NewOCR3

func NewOCR3(config Config) *Capability

func (*Capability) NewReportingPluginFactory

func (o *Capability) NewReportingPluginFactory(ctx context.Context, cfg core.ReportingPluginServiceConfig,
	provider commontypes.PluginProvider, pipelineRunner core.PipelineRunnerService, telemetry core.TelemetryClient,
	errorLog core.ErrorLog, capabilityRegistry core.CapabilitiesRegistry, keyValueStore core.KeyValueStore,
	relayerSet core.RelayerSet) (core.OCR3ReportingPluginFactory, error)

func (*Capability) NewValidationService

func (o *Capability) NewValidationService(ctx context.Context) (core.ValidationService, error)

type Config

type Config struct {
	RequestTimeout          *time.Duration
	BatchSize               int
	OutcomePruningThreshold uint64
	Logger                  logger.Logger
	AggregatorFactory       types.AggregatorFactory
	EncoderFactory          types.EncoderFactory
	SendBufferSize          int
	// contains filtered or unexported fields
}

type ContractTransmitter

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

ContractTransmitter is a custom transmitter for the OCR3 capability. When called it will forward the report + its signatures back to the OCR3 capability by making a call to Execute with a special "method" parameter.

func NewContractTransmitter

func NewContractTransmitter(lggr logger.Logger, registry core.CapabilitiesRegistry, fromAccount string) *ContractTransmitter

func (*ContractTransmitter) FromAccount

func (c *ContractTransmitter) FromAccount(ctx context.Context) (types.Account, error)

func (*ContractTransmitter) Transmit

func (c *ContractTransmitter) Transmit(ctx context.Context, configDigest types.ConfigDigest, seqNr uint64, rwi ocr3types.ReportWithInfo[[]byte], signatures []types.AttributedOnchainSignature) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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