-
Notifications
You must be signed in to change notification settings - Fork 597
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: rename genesis type RegisteredRelayer to RegisteredCounterpartyPayee #1514
refactor: rename genesis type RegisteredRelayer to RegisteredCounterpartyPayee #1514
Conversation
Co-authored-by: Charly <charly@interchain.berlin>
…e-genesis-register-counterparty-addr
Codecov Report
@@ Coverage Diff @@
## main #1514 +/- ##
=======================================
Coverage 80.24% 80.25%
=======================================
Files 166 166
Lines 12254 12274 +20
=======================================
+ Hits 9833 9850 +17
- Misses 1957 1959 +2
- Partials 464 465 +1
|
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.
lgtm!
@@ -259,22 +259,22 @@ func (suite *KeeperTestSuite) TestGetAllFeeEnabledChannels() { | |||
} | |||
|
|||
func (suite *KeeperTestSuite) TestGetAllRelayerAddresses() { |
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.
This test function needs to be renamed!
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.
I accidentally pushed this change to #1522. Doesn't make much difference really, both will be merged one after the other
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.
LGTM
@@ -38,19 +38,20 @@ message FeeEnabledChannel { | |||
// RegisteredPayee contains the relayer address and payee address for a specific channel | |||
message RegisteredPayee { | |||
// the relayer address | |||
string relayer_address = 1 [(gogoproto.moretags) = "yaml:\"relayer_address\""]; | |||
string relayer = 1; | |||
// the payee address | |||
string payee = 2; | |||
// unique channel identifier | |||
string channel_id = 3 [(gogoproto.moretags) = "yaml:\"channel_id\""]; |
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.
This is a nit, but should we move the channel_id
to the first position? Usually we have the port_id
and channel_id
in the first positions of the message
s?
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.
I don't feel very strong about this tbh. I'll go ahead and make the change and get this merged
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.
done for both 👍
string counterparty_address = 2 [(gogoproto.moretags) = "yaml:\"counterparty_address\""]; | ||
string relayer = 1; | ||
// the counterparty payee address | ||
string counterparty_payee = 2 [(gogoproto.moretags) = "yaml:\"counterparty_payee\""]; | ||
// unique channel identifier | ||
string channel_id = 3 [(gogoproto.moretags) = "yaml:\"channel_id\""]; |
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.
Same comment here.
Description
Renaming
GenesisState
field toRegisteredCounterpartyPayee
to alignneeds: #1513
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.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes