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 utils #12

Merged
merged 6 commits into from
Jan 18, 2024
Merged

Add chain utils #12

merged 6 commits into from
Jan 18, 2024

Conversation

ishantiw
Copy link
Member

What was the problem?

This PR resolves #4

How was it solved?

  • Add all the interfaces for apiClient
  • Implement all the functions required for fault detector
  • Add tests
  • Add script for test coverage

How was it tested?

  • Run make test

@ishantiw ishantiw self-assigned this Jan 17, 2024
@ishantiw ishantiw changed the title 🌱 Add chain utils Add chain utils Jan 17, 2024
pkg/chain/chain_mocks.go Outdated Show resolved Hide resolved
pkg/chain/eth_client.go Outdated Show resolved Hide resolved
pkg/chain/eth_client.go Outdated Show resolved Hide resolved
pkg/chain/eth_client.go Outdated Show resolved Hide resolved
pkg/chain/eth_client.go Outdated Show resolved Hide resolved
pkg/chain/eth_client.go Outdated Show resolved Hide resolved
pkg/chain/eth_client.go Outdated Show resolved Hide resolved
pkg/chain/chain.go Outdated Show resolved Hide resolved
pkg/chain/chain.go Outdated Show resolved Hide resolved
pkg/chain/eth_client.go Outdated Show resolved Hide resolved
@ishantiw ishantiw requested a review from shuse2 January 17, 2024 17:54
pkg/chain/chain.go Outdated Show resolved Hide resolved
pkg/chain/chain.go Outdated Show resolved Hide resolved
pkg/chain/chain.go Outdated Show resolved Hide resolved
pkg/chain/chain_test.go Outdated Show resolved Hide resolved
pkg/chain/chain_mocks_test.go Outdated Show resolved Hide resolved
pkg/chain/chain_test.go Outdated Show resolved Hide resolved
pkg/chain/chain.go Outdated Show resolved Hide resolved
pkg/chain/chain.go Outdated Show resolved Hide resolved
Copy link
Member

@shuse2 shuse2 left a comment

Choose a reason for hiding this comment

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

except the godoc comment, LGTM 🚀

pkg/chain/chain.go Outdated Show resolved Hide resolved
@ishantiw ishantiw requested a review from shuse2 January 18, 2024 14:39
Copy link
Member

@nagdahimanshu nagdahimanshu 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 👍

log log.Logger
}

type proofResponse struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think, it can be exposable struct in this pkg for the future use cases. we want to compare the result of GetProof func so it would be better to accessible outside of the chain pkg, is it correct?

Copy link
Member Author

Choose a reason for hiding this comment

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

In the end we are going to use storageHash value from the proof, but yes maybe its better to make it accessible when a user will call this func

Copy link
Member Author

Choose a reason for hiding this comment

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

applied changes

@ishantiw ishantiw requested a review from hrmhatef January 18, 2024 15:31
Copy link
Contributor

@hrmhatef hrmhatef left a comment

Choose a reason for hiding this comment

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

Well done 👍

@ishantiw ishantiw merged commit 87774a9 into development Jan 18, 2024
1 check passed
@ishantiw ishantiw deleted the 4-chain-util branch January 18, 2024 15:55
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.

4 participants