types

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigProvider

type ConfigProvider interface {
	Service
	OffchainConfigDigester() types.OffchainConfigDigester
	ContractConfigTracker() types.ContractConfigTracker
}

The bootstrap jobs only watch config.

type MedianProvider

type MedianProvider interface {
	Plugin
	ReportCodec() median.ReportCodec
	MedianContract() median.MedianContract
}

MedianProvider provides all components needed for a median OCR2 plugin.

type Plugin

type Plugin interface {
	ConfigProvider
	ContractTransmitter() types.ContractTransmitter
}

Plugin provides common components for any OCR2 plugin. It watches config and is able to transmit.

type PluginArgs

type PluginArgs struct {
	TransmitterID string
	PluginConfig  []byte
}

PluginArgs are the args required to create any OCR2 plugin components. Its possible that the plugin config might actually be different per relay type, so we pass the config directly through.

type RelayArgs

type RelayArgs struct {
	ExternalJobID     uuid.UUID
	JobID             int32
	ContractID        string
	ForwardingAllowed bool
	RelayConfig       []byte
}

type Relayer

type Relayer interface {
	Service
	NewConfigProvider(rargs RelayArgs) (ConfigProvider, error)
	NewMedianProvider(rargs RelayArgs, pargs PluginArgs) (MedianProvider, error)
}

type Service

type Service interface {
	Start(context.Context) error
	Close() error
	Ready() error
	Healthy() error
}

Jump to

Keyboard shortcuts

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