Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge OCR2VRFRelayer into Relay #57

Merged
merged 1 commit into from
Jun 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions pkg/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ type Relayer interface {
Service
NewConfigProvider(rargs RelayArgs) (ConfigProvider, error)
NewMedianProvider(rargs RelayArgs, pargs PluginArgs) (MedianProvider, error)
NewDKGProvider(rargs RelayArgs, transmitterID string) (DKGProvider, error)
NewOCR2VRFProvider(rargs RelayArgs, transmitterID string) (OCR2VRFProvider, error)
}

// The bootstrap jobs only watch config.
Expand All @@ -58,13 +60,6 @@ type MedianProvider interface {
MedianContract() median.MedianContract
}

// OCR2VRFRelayer contains the relayer and instantiating functions for OCR2VRF providers.
type OCR2VRFRelayer interface {
Relayer
NewDKGProvider(rargs RelayArgs, transmitterID string) (DKGProvider, error)
NewOCR2VRFProvider(rargs RelayArgs, transmitterID string) (OCR2VRFProvider, error)
}

// DKGProvider provides all components needed for a DKG plugin.
type DKGProvider interface {
Plugin
Expand Down