-
Notifications
You must be signed in to change notification settings - Fork 61
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: mapped account query #443
Conversation
@ajansari95 lint fail. I think you just need to run formatting |
Codecov Report
@@ Coverage Diff @@
## feat/keytypes #443 +/- ##
=================================================
- Coverage 54.22% 54.20% -0.03%
=================================================
Files 164 164
Lines 12179 12241 +62
=================================================
+ Hits 6604 6635 +31
- Misses 5070 5099 +29
- Partials 505 507 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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
Co-authored-by: Alex Johnson <[email protected]>
for k := range m.RemoteAddressMap { | ||
v := m.RemoteAddressMap[k] | ||
baseI := i | ||
if len(v) > 0 { | ||
i -= len(v) | ||
copy(dAtA[i:], v) | ||
i = encodeVarintQuery(dAtA, i, uint64(len(v))) | ||
i-- | ||
dAtA[i] = 0x12 | ||
} | ||
i -= len(k) | ||
copy(dAtA[i:], k) | ||
i = encodeVarintQuery(dAtA, i, uint64(len(k))) | ||
i-- | ||
dAtA[i] = 0xa | ||
i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) | ||
i-- | ||
dAtA[i] = 0xa | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map
* add to proto * generate * populate field * Update proto/quicksilver/interchainstaking/v1/interchainstaking.proto Co-authored-by: Ajaz Ahmed Ansari <[email protected]> * decode basic implementation * decodememo * fix * decode Field * lint fix * parse memo fields * stub out logic * address map * address map * refactor * lint fix * validate memo fields * add logic * refactor * feat: mapped account query (#443) * add mapped account query * format * rebase * return map instead of struct * Update x/interchainstaking/client/cli/query.go Co-authored-by: Alex Johnson <[email protected]> * Update x/interchainstaking/keeper/grpc_query.go * Update x/interchainstaking/keeper/grpc_query_test.go * fix lint * use sdkConfig --------- Co-authored-by: Alex Johnson <[email protected]> * refactor to cover more cases * update * send on remote zone * add condition * Update x/interchainstaking/types/zones_test.go * Update x/interchainstaking/types/zones_test.go * Update x/interchainstaking/types/zones_test.go remove unused import * Update x/interchainstaking/types/zones_test.go --------- Co-authored-by: Ajaz Ahmed Ansari <[email protected]> Co-authored-by: Joe Bowman <[email protected]>
1. Summary
Fixes QCK-477
Adds Mapped Account query for xcclookup
2.Type of change
3. Implementation details
4. How to test/use
5. Checklist
6. Limitations (optional)
7. Future Work (optional)