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() ocrtypes.OffchainConfigDigester ContractConfigTracker() ocrtypes.ContractConfigTracker }
The bootstrap jobs only watch config.
type MedianProvider ¶
type MedianProvider interface { Plugin ReportCodec() median.ReportCodec MedianContract() median.MedianContract OnchainConfigCodec() median.OnchainConfigCodec }
MedianProvider provides all components needed for a median OCR2 plugin.
type MercuryProvider ¶ added in v0.1.6
type MercuryProvider interface { ConfigProvider ReportCodec() mercury.ReportCodec OnchainConfigCodec() mercury.OnchainConfigCodec ContractTransmitter() mercury.Transmitter }
MercuryProvider provides components needed for a mercury OCR2 plugin. Mercury requires config tracking but does not transmit on-chain.
type Plugin ¶
type Plugin interface { ConfigProvider ContractTransmitter() ocrtypes.ContractTransmitter }
Plugin provides common components for any OCR2 plugin. It watches config and is able to transmit.
type PluginArgs ¶
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 Relayer ¶
type Relayer interface { Service NewConfigProvider(rargs RelayArgs) (ConfigProvider, error) NewMedianProvider(rargs RelayArgs, pargs PluginArgs) (MedianProvider, error) NewMercuryProvider(rargs RelayArgs, pargs PluginArgs) (MercuryProvider, error) }
Click to show internal directories.
Click to hide internal directories.