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

Add chain reader and codec EVM implementation #11842

Merged
merged 158 commits into from
Jan 22, 2024

Conversation

nolag
Copy link
Contributor

@nolag nolag commented Jan 22, 2024

No description provided.

reductionista and others added 30 commits November 22, 2023 20:40
… POC

- Read ChainReader config in from RelayConfig
- Add some initialization and validation relay skeletons

- Use medianProviderWrapper instead of passing medianContract separately

This avoids us having to modify the signature of NewMedianFactory, which
would require further modifications to all non-evm repos and chainlink-relay

- Add chain_reader_test.go with some basic relay tests

Co-authored-by: Jordan Krage <jmank88@gmail.com>

- Add chain reader config validation
- Add chain reader config validation tests
- Add config for chain reader median contract to cr validation testcases
- Add unimplemented Encode(), Decode(), GetMaxEncodingSize(), GetMaxDecodingSize()
- Add ChainReader() method to mock provider for plugin test
- Rename relaymercury.ChainReader to MercuryChainReader, resolve name collisions
- Add tests for errors during ChainReader construction
- Propagate InvalidConfig & any other errors back to client

We should ignore Unsupported until node ops have been given ample time to migrate to the new job spec
(including a section for ChainReader config) so that we can remove the old product-specific
MedianContract component from MedianProvider. All other errors we can immediately start passing back
to the client, letting the core node decide how to handle them (eg. displaying an "invalid job spec"
message to the UI if the RelayConfig was invalid or the ContractID missing)
Co-authored-by: Jordan Krage <jmank88@gmail.com>
We had this before, at some point it accidentally got dropped
Also: move test for invalid contract ID to evm_test.go, & add mismatched ChainID
test while we're here since it's pretty similar
Co-authored-by: Jordan Krage <jmank88@gmail.com>
…EVM-POC-fix-logs-dir

fix logs dir for Solana tests
…er-EVM-POC

# Conflicts:
#	integration-tests/go.mod
Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

@nolag nolag force-pushed the rtinianov_different_next_run_sonar_plz branch from e905c3b to 640e138 Compare January 22, 2024 19:10
@cl-sonarqube-production
Copy link

@reductionista reductionista added this pull request to the merge queue Jan 22, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 22, 2024
@reductionista reductionista added this pull request to the merge queue Jan 22, 2024
Merged via the queue into develop with commit 091a9a3 Jan 22, 2024
96 checks passed
@reductionista reductionista deleted the rtinianov_different_next_run_sonar_plz branch January 22, 2024 21:14
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.

6 participants