-
Notifications
You must be signed in to change notification settings - Fork 134
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: Add QueryAllPairsValConAddrByConsumerChainID
#1503
feat: Add QueryAllPairsValConAddrByConsumerChainID
#1503
Conversation
QueryAllPairsValConAddrByConsumerChainID
QueryAllPairsValConAddrByConsumerChainID
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.
Please fix this typo:
https://github.com/cosmos/interchain-security/pull/1503/files#r1431241558
Co-authored-by: MSalopek <[email protected]>
Hi @MSalopek, I see we lack a lot of tests for queries, I think we should make a pr to solve this to cover this |
@ThanhNhann could you please add a changelog entry in the |
…ttps://github.com/decentrio/interchain-security into nhan/add_QueryAllPairsValConAddrByConsumerChainID
Updated it @mpoke, can you review and merge it? btw I think we should take a time to make the testing for our queries |
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.
See my comment below
.changelog/unreleased/improvements/1503-query-key-assignment.md
Outdated
Show resolved
Hide resolved
…into nhan/add_QueryAllPairsValConAddrByConsumerChainID
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. Thanks @ThanhNhann
string provider_address = 1 [ (gogoproto.moretags) = "yaml:\"address\"" ]; | ||
// The consensus address of the validator on the consumer chain | ||
string consumer_address = 2 [ (gogoproto.moretags) = "yaml:\"address\"" ]; | ||
tendermint.crypto.PublicKey consumer_key = 3; |
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.
tendermint.crypto.PublicKey consumer_key = 3; | |
// The public key of the validator on the consumer chain | |
tendermint.crypto.PublicKey consumer_key = 3; |
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. Just one nit.
* add QueryAllPairsValConAddrByConsumerChainID * Lint * add pubkey in PairValConAddrProviderAndConsumer struct * add test TestQueryAllPairsValConAddrByConsumerChainID * add doc * Update docs/docs/features/key-assignment.md Co-authored-by: MSalopek <[email protected]> * add changelog * update with Marius Poke's suggestions * update logic get data --------- Co-authored-by: Du Nguyen <[email protected]> Co-authored-by: MSalopek <[email protected]> (cherry picked from commit 56399f6) # Conflicts: # tests/e2e/tracehandler_testdata/slashThrottle.json
…#1551) feat: Add `QueryAllPairsValConAddrByConsumerChainID` (#1503) * add QueryAllPairsValConAddrByConsumerChainID * Lint * add pubkey in PairValConAddrProviderAndConsumer struct * add test TestQueryAllPairsValConAddrByConsumerChainID * add doc * Update docs/docs/features/key-assignment.md Co-authored-by: MSalopek <[email protected]> * add changelog * update with Marius Poke's suggestions * update logic get data --------- Co-authored-by: Du Nguyen <[email protected]> Co-authored-by: MSalopek <[email protected]> (cherry picked from commit 56399f6) # Conflicts: # tests/e2e/tracehandler_testdata/slashThrottle.json Co-authored-by: Nguyen Thanh Nhan | Decentrio <[email protected]>
Closes: #1251
This PR adds
QueryAllPairsValConAddrByConsumerChainID
method to get list of all pairs valConsensus address byConsummer chainID
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...