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: update icahost to use runtime.Environment #7600

Draft
wants to merge 3 commits into
base: damian/runtime-env
Choose a base branch
from

Conversation

damiannolan
Copy link
Member

@damiannolan damiannolan commented Nov 25, 2024

Description

Updates icahost submodule to use runtime.Environment.
Removes storeService, msgRouterService and queryRouterService in favour of embedded appmodule.Environment.

closes: #XXXX


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against the correct branch (see CONTRIBUTING.md).
  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

Comment on lines 46 to 54
// res, err := m.QueryRouterService.Invoke(ctx, &abci.QueryRequest{
// Path: query.Path,
// Data: query.Data,
// })

res, err := route(ctx, &abci.QueryRequest{
res, err := m.QueryRouterService.Invoke(ctx, &cmtservice.ABCIQueryRequest{
Path: query.Path,
Data: query.Data,
})
Copy link
Member Author

Choose a reason for hiding this comment

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

Tried using both abci.QueryRequest and cmtservice.ABCIQueryRequest here but no luck, seems like neither are registered within the query router service.

I'm guessing we may need to do some funky string parsing to transform the service path to a type url and then decode bytes into a stub or something.

Maybe we could also extend the module query safe msg with regular proto any or msgs and deprecate the current approach. But it would be good to not break cross chain backwards compat

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.

1 participant