-
Notifications
You must be signed in to change notification settings - Fork 16
feat: add moniker and valoper address to signatures query #627
Conversation
WalkthroughThe codebase has been updated to enhance the functionality related to validators. New structures and fields have been introduced to store validator information, including a Changes
TipsChat with CodeRabbit Bot (
|
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.
Review Status
Actionable comments generated: 1
Configuration used: CodeRabbit UI
Files selected for processing (2)
- cmd/blobstream/query/cmd.go (8 hunks)
- rpc/app_querier.go (2 hunks)
Additional comments: 6
cmd/blobstream/query/cmd.go (6)
138-143: The addition of the
ValopAddress
field to thesignature
struct aligns with the summary and enhances the data structure with more relevant information.146-150: The introduction of the
validatorInfo
struct is a good encapsulation of validator details, which should improve code maintainability and clarity.242-257: The
toValidatorsInfo
function is correctly implemented to map staking validators tovalidatorInfo
instances, which is consistent with the summary.287-311: The update to the
toQueryOutput
function to includeMoniker
andValopAddress
in thesignature
struct is consistent with the summary and enhances the output with more detailed information.333-345: The modifications to the
printConfirms
function to displayMoniker
andValopAddress
in the log output are consistent with the summary and improve the visibility of these new details.284-311: > Note: This review was outside the patches, so it was mapped to the patch with the greatest overlap. Original lines [9-345]
No issues found regarding error handling, data races, or performance in the provided hunks.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #627 +/- ##
==========================================
- Coverage 26.09% 25.91% -0.19%
==========================================
Files 29 29
Lines 3023 3044 +21
==========================================
Hits 789 789
- Misses 2139 2160 +21
Partials 95 95 ☔ View full report in Codecov by Sentry. |
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.
# Conflicts: # cmd/blobstream/query/cmd.go
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.
Review Status
Actionable comments generated: 1
Configuration used: CodeRabbit UI
Files selected for processing (1)
- cmd/blobstream/query/cmd.go (8 hunks)
Additional comments: 6
cmd/blobstream/query/cmd.go (6)
15-22: The import of
stakingtypes
and its usage in the code is correct and aligns with the summary provided.153-158: The addition of the
ValopAddress
field to thesignature
struct is correctly implemented and matches the summary.161-164: The
validatorInfo
struct is well-defined and serves the purpose of encapsulating validator details as described in the summary.257-272: The
toValidatorsInfo
function is correctly implemented to create a map ofvalidatorInfo
from the staking validators.302-326: The
toQueryOutput
function has been modified appropriately to includevalidatorsInfo
and populate thesignature
struct withMoniker
andValopAddress
.348-360: The
printConfirms
function has been updated to display the newMoniker
andValopAddress
fields, which enhances the visibility of validator actions.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- cmd/blobstream/query/cmd.go (8 hunks)
Additional comments: 6
cmd/blobstream/query/cmd.go (6)
18-18: The import of
stakingtypes
is correctly used in the newvalidatorInfo
struct andtoValidatorsInfo
function.153-158: The addition of the
ValopAddress
field to thesignature
struct is correctly implemented and used in thetoQueryOutput
function.161-164: The new
validatorInfo
struct is well-defined and serves its purpose within thetoValidatorsInfo
function.257-272: The
toValidatorsInfo
function is correctly implemented to create a map of validator information from the staking validators.302-326: The
toQueryOutput
function has been modified appropriately to includevalidatorsInfo
and populateMoniker
andValopAddress
fields in thesignature
struct.348-360: The
printConfirms
function has been updated to logMoniker
andValopAddress
alongsideEvmAddress
, which aligns with the summary of changes.
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.
Overview
Checklist
Summary by CodeRabbit
New Features
Enhancements
Documentation