-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10016 StakingAccountQueries (#10069)
closes: #10016 ## Description Implements the `StakingAccountQueries`. Except for `getRedelegation` because there is no query that's guaranteed to return one. It's a strict subset of what's returned by `getRedelegations`. If there are ever use cases in which that payload is too large we can optimize then. This also massages the return types in cosmos-api.ts to more closely match what is returned by the Cosmos query endpoints. (No longer dropping data.) ### Security Considerations The queries are read-only. Like any query there is a risk of resource exhaustion. These aren't rate limited but since they run in a vat the malicious code would exhaust itself. The risks of exhausting the RPC server are no greater than any off-chain query. ### Scaling Considerations May benefit from some load testing in production-ish environment to see what the service can handle. ### Documentation Considerations The interface is already documented. This implements it so nothing changes (other than the return types, as mentioned above) ### Testing Considerations New tests ### Upgrade Considerations No vats yet use this code.
- Loading branch information
Showing
13 changed files
with
1,091 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.