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

refactor: modify eth rpc trait for other chains #550

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

dav1do
Copy link
Contributor

@dav1do dav1do commented Oct 4, 2024

I modified the EthRpc trait exposed by the validation crate to hide more chain information and return the specific information needed to do time event validation (a timestamp and a root CID). The parsing and understanding of various transaction input related information moved from the service to the validation crate. A lot of code was moved, some was deleted/renamed (specifically EthRpc to ChainInclusion trait and the related inputs/outputs). The ChainInclusion trait has an associated type for the input so chains without the same Eth RPC interface can request different information.

@dav1do dav1do requested review from a team and stbrody as code owners October 4, 2024 22:27
@dav1do dav1do requested review from ukstv, smrz2001, nathanielc and samika98 and removed request for a team October 4, 2024 22:27
@dav1do dav1do temporarily deployed to github-tests-2024 October 4, 2024 22:45 — with GitHub Actions Inactive
@dav1do dav1do temporarily deployed to github-tests-2024 October 4, 2024 23:11 — with GitHub Actions Inactive
modified EthRpc to be ChainInclusion and only return timestamp and root cid from chain. this required moving a decent amount of logic around parsing chain info/validation from service to validation crate.
Copy link
Collaborator

@stbrody stbrody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, but I put together a follow-up PR to push things a little bit farther and hopefully avoid the event validation code needing to make any decisions at all based on which chain the anchor proof is on: #570

@stbrody stbrody added this pull request to the merge queue Oct 22, 2024
Merged via the queue into main with commit 7c7dc40 Oct 22, 2024
10 checks passed
@stbrody stbrody deleted the refactor/modify-eth-rpc-trait-for-hoku branch October 22, 2024 17:52
@smrz2001 smrz2001 mentioned this pull request Nov 4, 2024
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.

3 participants