Skip to content

Commit

Permalink
Rename OCR2KeepersProvider to AutomationProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
ferglor committed Dec 12, 2023
1 parent 4f68741 commit 5d9ce40
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions pkg/loop/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ func (r *RelayerAdapter) NewFunctionsProvider(ctx context.Context, rargs types.R
return r.Relayer.NewFunctionsProvider(rargs, pargs)
}

func (r *RelayerAdapter) NewOCR2KeepersProvider(ctx context.Context, rargs types.RelayArgs, pargs types.PluginArgs) (types.OCR2KeepersProvider, error) {
return r.Relayer.NewOCR2KeepersProvider(rargs, pargs)
func (r *RelayerAdapter) NewAutomationProvider(ctx context.Context, rargs types.RelayArgs, pargs types.PluginArgs) (types.AutomationProvider, error) {
return r.Relayer.NewAutomationProvider(rargs, pargs)
}

func (r *RelayerAdapter) NewPluginProvider(ctx context.Context, rargs types.RelayArgs, pargs types.PluginArgs) (types.PluginProvider, error) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/loop/internal/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ type FunctionsProvider interface {
NewFunctionsProvider(context.Context, types.RelayArgs, types.PluginArgs) (types.FunctionsProvider, error)
}

type OCR2KeepersProvider interface {
NewOCR2KeepersProvider(context.Context, types.RelayArgs, types.PluginArgs) (types.OCR2KeepersProvider, error)
type AutomationProvider interface {
NewAutomationProvider(context.Context, types.RelayArgs, types.PluginArgs) (types.AutomationProvider, error)
}

// Relayer extends [types.Relayer] and includes [context.Context]s.
Expand Down
6 changes: 6 additions & 0 deletions pkg/types/provider_automation.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package types

// AutomationProvider provides components needed for the automation OCR2 plugin.
type AutomationProvider interface {
PluginProvider
}
6 changes: 0 additions & 6 deletions pkg/types/provider_ocr2keepers.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/types/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ type Relayer interface {
NewMedianProvider(rargs RelayArgs, pargs PluginArgs) (MedianProvider, error)
NewMercuryProvider(rargs RelayArgs, pargs PluginArgs) (MercuryProvider, error)
NewFunctionsProvider(rargs RelayArgs, pargs PluginArgs) (FunctionsProvider, error)
NewOCR2KeepersProvider(rargs RelayArgs, pargs PluginArgs) (OCR2KeepersProvider, error)
NewAutomationProvider(rargs RelayArgs, pargs PluginArgs) (AutomationProvider, error)
}

0 comments on commit 5d9ce40

Please sign in to comment.