-
Notifications
You must be signed in to change notification settings - Fork 932
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
service/state: Provide simple scaffold for StateService
and implement CoreAccess
#420
service/state: Provide simple scaffold for StateService
and implement CoreAccess
#420
Conversation
6957cf0
to
64407bf
Compare
StateService
and implement CoreAccess
StateService
and implement CoreAccess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint error
c657f0e
to
1bd89f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although it was documented in the ADR, I decided against using the lens dependency as it is still in development and introduced a bit more overhead / complexity than was necessary for two simple queries against the application
Do you mind quickly updating the ADR accordingly in this PR? I've missed the updated ADR 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge conflicts
2952cbf
to
b459ca3
Compare
Rebased. |
FYI the test is currently broken as mock celestia-app isn't working. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint errors!
Test is failing due to failure in mock celestia-app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is CI expected to fail, or no?
Yes @adlerjohn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good and straightforward. Good that the implementation turned out to be quite small even without lens.
Only a few things that require changes, other than that are mostly nits, questions, and discussions on how things should look further.
Also, part of the review process resulted into #415 (comment)
… state access available on full node too
…implement Path method in Keystore | lint
…tead of types.AccAddress
Co-authored-by: Hlib Kanunnikov <hlibwondertan@gmail.com>
3fa7e5e
to
db90c98
Compare
This PR is the first implementation of
StateAccessor
over core:CoreAccess
. It will provide alight node
with the ability to be initialised with a connection to a celestia-core endpoint over which it can query for account balances and submit transactions.ADR for reference.
Two notes:
CoreAccess
as we lack a good way to mock the celestia-app for testing purposes. This will be discussed in the following week and will hopefully provide more clarity in how we can increase test coverage for this feature.TODO: