-
Notifications
You must be signed in to change notification settings - Fork 606
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: adding RegisteredPayees to ics29 genesis state #1492
Conversation
…ion. Store funcs, keys..
Codecov Report
@@ Coverage Diff @@
## main #1492 +/- ##
==========================================
- Coverage 80.36% 80.33% -0.04%
==========================================
Files 166 166
Lines 12105 12238 +133
==========================================
+ Hits 9728 9831 +103
- Misses 1920 1946 +26
- Partials 457 461 +4
|
modules/apps/29-fee/types/genesis.go
Outdated
@@ -77,5 +85,20 @@ func (gs GenesisState) Validate() error { | |||
} | |||
} | |||
|
|||
// Validate DistributionAddresses | |||
for _, registeredDistAddr := range gs.RegisteredDistributionAddresses { | |||
if _, err := sdk.AccAddressFromBech32(registeredDistAddr.Address); err != nil { |
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.
also for DistributionAddress
repeated RegisteredPayee registered_payees = 3 | ||
[(gogoproto.moretags) = "yaml:\"registered_payees\"", (gogoproto.nullable) = false]; | ||
// list of registered relayer addresses | ||
repeated RegisteredRelayerAddress registered_relayers = 3 | ||
repeated RegisteredRelayerAddress registered_relayers = 4 |
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.
Why are there two of these? Shouldn't there be RegisteredPayees
and RegisteredCounterpartyPayees
?
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.
Yep, will be done in a follow up. Didn't want to mix the renaming of the counterparty address rpc with this!
Co-authored-by: Aditya <adityasripal@gmail.com>
…-go into damian/1477-genesis-distaddrs
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 nice work 🥇
Description
RegisteredPayees
to ICS29GenesisState
Needs: #1491
This PR includes the additions from the above and should be merged after the initial work in #1491
NOTE: this is one of many PRs to complete the feature work referenced in: #1477
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