-
Notifications
You must be signed in to change notification settings - Fork 170
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
feat(uibc): ICS20 hooks gov switch #2459
Conversation
WalkthroughThe recent updates introduce functionality to toggle ICS20 hooks in the Umee protocol, enhancing control over inter-blockchain communication. This is achieved through a new message type, Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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 ignored due to path filters (3)
x/uibc/events.pb.go
is excluded by:!**/*.pb.go
x/uibc/quota.pb.go
is excluded by:!**/*.pb.go
x/uibc/tx.pb.go
is excluded by:!**/*.pb.go
Files selected for processing (8)
- proto/umee/uibc/v1/events.proto (1 hunks)
- proto/umee/uibc/v1/quota.proto (1 hunks)
- proto/umee/uibc/v1/tx.proto (2 hunks)
- tests/tcheckers/error.go (1 hunks)
- x/uibc/msg.go (2 hunks)
- x/uibc/msg_test.go (3 hunks)
- x/uibc/quota/msg_server.go (1 hunks)
- x/uibc/quota/params.go (1 hunks)
Check Runs (1)
buf-lint failure (4)
- proto/umee/uibc/v1/tx.proto: 127-127: Message "MsgGovToggleICS20HooksResponse" should have a non-empty comment for documentation.
Additional comments: 8
tests/tcheckers/error.go (1)
- 9-15: The
ErrorContains
utility function is well-implemented and follows best practices for error checking in tests. Good use of thegotest.tools/v3/assert
package for assertions and thoughtful handling of both expected and unexpected errors.proto/umee/uibc/v1/events.proto (1)
- 23-26: The introduction of the
EventICS20Hooks
message type is well-defined and follows protobuf conventions. It appropriately uses a boolean field to represent the toggle state of ICS20 hooks.x/uibc/quota/params.go (1)
- 74-76: The
SetICS20HooksStatus
function is correctly implemented to update theIcs20Hooks
status in the module's parameters. It follows the established pattern for parameter updates in the module.x/uibc/quota/msg_server.go (1)
- 66-86: The
GovToggleICS20Hooks
function is well-implemented, correctly handling authorization checks, updating the ICS20 hooks status, and emitting the appropriate event. It follows the established patterns for governance-related message handling in the module.proto/umee/uibc/v1/quota.proto (1)
- 51-52: The addition of the
ics20_hooks
boolean field to theParams
message is correctly implemented, allowing for tracking the status of ICS20 hooks within the module's parameters.x/uibc/msg.go (1)
- 92-118: The
MsgGovToggleICS20Hooks
message type and its associated methods are correctly implemented, following the established patterns for message types in the module. The validation and signer extraction logic are appropriately handled.x/uibc/msg_test.go (1)
- 127-172: The refactoring of existing tests to use the
tcheckers.ErrorContains
utility and the addition of theTestMsgGovToggleICS20Hooks
function are well-implemented. These changes improve the consistency and maintainability of the test suite, and the new test function adequately covers the validation logic of theMsgGovToggleICS20Hooks
message type.proto/umee/uibc/v1/tx.proto (1)
- 24-25: The addition of the
GovToggleICS20Hooks
RPC is correctly implemented, enabling/disabling ICS20 hooks support through governance actions.
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 ignored due to path filters (2)
swagger/swagger.yaml
is excluded by:!**/*.yaml
x/uibc/tx.pb.go
is excluded by:!**/*.pb.go
Files selected for processing (1)
- proto/umee/uibc/v1/tx.proto (2 hunks)
Files skipped from review as they are similar to previous changes (1)
- proto/umee/uibc/v1/tx.proto
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
let's hold on with the merge - we will merge it right after v6.4 release |
Description
Summary by CodeRabbit
MsgGovToggleICS20Hooks
.