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

[BCF-2365] Combine providers #164

Merged
merged 1 commit into from
Sep 8, 2023
Merged

Conversation

cedric-cordenier
Copy link
Contributor

@cedric-cordenier cedric-cordenier commented Sep 1, 2023

  • Remove NewMercuryProvider, NewMedianProvider, NewFunctionsProvider from the Relayer interface. This is to allow transparent proxying of provider calls from reporting plugin loopps to relayer loopps, without the core node needing to be aware of the types.
  • From now on, creating a provider should happen via NewPluginProvider, setting RelayArgs.ProviderType as appropriate.
  • LOOPP Relayer implementations can still implement NewMercuryProvider/NewMedianProvider/.... The RelayerServer will check whether the underlying implementation contains these methods and will redirect the call to this more specialized function if that is the case.
  • For interoperability with legacy code in the core node which needs to be aware of the product providers, the RelayerClient will instantiate a provider of the right type inside NewPluginProvider, thus allowing calling code to typecast to the right underlying provider type.

@cedric-cordenier cedric-cordenier temporarily deployed to integration September 1, 2023 15:43 — with GitHub Actions Inactive
@cedric-cordenier cedric-cordenier temporarily deployed to integration September 1, 2023 15:43 — with GitHub Actions Inactive
@cedric-cordenier cedric-cordenier changed the title Relayer changes [BCF-2365] Combine providers Sep 1, 2023
@cedric-cordenier cedric-cordenier temporarily deployed to integration September 4, 2023 12:06 — with GitHub Actions Inactive
@cedric-cordenier cedric-cordenier temporarily deployed to integration September 4, 2023 12:06 — with GitHub Actions Inactive
@cedric-cordenier cedric-cordenier force-pushed the BCF-2365-combine-providers branch from 61cdbd9 to 39e4d6f Compare September 4, 2023 15:29
@cedric-cordenier cedric-cordenier temporarily deployed to integration September 4, 2023 15:29 — with GitHub Actions Inactive
@cedric-cordenier cedric-cordenier temporarily deployed to integration September 4, 2023 15:29 — with GitHub Actions Inactive
@cedric-cordenier cedric-cordenier force-pushed the BCF-2365-combine-providers branch from 39e4d6f to ac7a4ac Compare September 6, 2023 10:11
- Remove NewMercuryProvider, NewMedianProvider, NewFunctionsProvider from
the Relayer interface. This is to allow transparent proxying of provider
calls from reporting plugin loopps to relayer loopps, without the core
node needing to be aware of the types.
- From now on, creating a provider should happen via NewPluginProvider,
setting RelayArgs.ProviderType as appropriate.
- RelayArgs.ProviderType maps to the OCR2PluginType, which this commit
relocates from the core node to here.
- LOOPP Relayer implementations can still implement
NewMercuryProvider/NewMedianProvider/.... The RelayerServer will check
whether the underlying implementation contains these methods and will
redirect the call to this more specialized function if that is the case.
- For interoperability with legacy code in the core node which needs to be
aware of the product providers, the RelayerClient will instantiate a
provider of the right type inside NewPluginProvider, thus allowing
calling code to typecast to the right underlying provider type.
@cedric-cordenier cedric-cordenier force-pushed the BCF-2365-combine-providers branch from ac7a4ac to b9ec885 Compare September 6, 2023 10:44
@cedric-cordenier cedric-cordenier temporarily deployed to integration September 6, 2023 10:44 — with GitHub Actions Inactive
@cedric-cordenier cedric-cordenier temporarily deployed to integration September 6, 2023 10:44 — with GitHub Actions Inactive
@cedric-cordenier cedric-cordenier marked this pull request as ready for review September 8, 2023 12:38
@cedric-cordenier
Copy link
Contributor Author

@cedric-cordenier cedric-cordenier merged commit 16ce8fa into main Sep 8, 2023
@cedric-cordenier cedric-cordenier deleted the BCF-2365-combine-providers branch September 8, 2023 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants