-
Notifications
You must be signed in to change notification settings - Fork 9
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
Queries for getting which accounts have scheduled releases or cooldowns. #67
base: main
Are you sure you want to change the base?
Conversation
- Add `GetScheduledReleaseAccounts` endpoint for querying the list of accounts that | ||
have scheduled releases. | ||
- Add `GetCooldownAccounts`, `GetPreCooldownAccounts` and `GetPrePreCooldownAccounts` | ||
endpoints for querying the lists of account that have pending cooldowns in protocol |
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.
endpoints for querying the lists of account that have pending cooldowns in protocol | |
endpoints for querying the lists of accounts that have pending cooldowns in protocol |
@@ -174,6 +174,25 @@ service Queries { | |||
// Get next available sequence numbers for updating chain parameters after a given block. | |||
rpc GetNextUpdateSequenceNumbers (BlockHashInput) returns (NextUpdateSequenceNumbers); | |||
|
|||
// Get all accounts that have scheduled releases, with the timestamp of the first pending | |||
// scheduled release for that account. (Note, this only identifies accounts by index, and |
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.
// scheduled release for that account. (Note, this only identifies accounts by index, and | |
// scheduled release for that account. (Note, this only identifies accounts by index, and |
// Prior to protocol version 7, the resulting stream will always be empty. | ||
rpc GetCooldownAccounts (BlockHashInput) returns (stream AccountPending); | ||
|
||
// Get all accounts (by account index) that have stake in pre-cooldown. |
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.
To be consistent, minor nitpicking:
// Get all accounts (by account index) that have stake in pre-cooldown. | |
// Get all accounts that have stake in pre-cooldown. (Note, this only identifies accounts by index). |
// Prior to protocol version 7, the resulting stream will always be empty. | ||
rpc GetPreCooldownAccounts (BlockHashInput) returns (stream AccountIndex); | ||
|
||
// Get all accounts (by account index) that have stake in pre-pre-cooldown. |
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.
// Get all accounts (by account index) that have stake in pre-pre-cooldown. | |
// Get all accounts that have stake in pre-pre-cooldown. (Note, this only identifies accounts by index). |
Purpose
Add gRPC endpoints for getting the lists of accounts with scheduled releases or cooldowns.
Changes
Checklist
hard-to-understand areas.