-
Notifications
You must be signed in to change notification settings - Fork 45
feat: group queries #2432
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
Merged
Merged
feat: group queries #2432
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
88f3f05
more tests and fixes for group queries
QuantumExplorer 606f282
active group actions query
QuantumExplorer 11fb03b
much more work on group actions
QuantumExplorer decb2f7
more work on group queries
QuantumExplorer 3876269
Update packages/rs-drive/src/verify/group/verify_action_signers/mod.rs
QuantumExplorer 4ebce13
Update packages/rs-drive/src/drive/group/fetch/fetch_action_infos/mod.rs
QuantumExplorer b3aa1ee
Update packages/rs-drive/src/verify/group/verify_action_signers/mod.rs
QuantumExplorer 6df5f96
Update packages/rs-drive/src/drive/group/prove/prove_action_infos/mod.rs
QuantumExplorer b6263e5
Update packages/rs-drive/src/verify/group/verify_active_action_infos/…
QuantumExplorer edc9238
Update packages/rs-drive/src/drive/group/fetch/fetch_action_infos/mod.rs
QuantumExplorer 05ec2d9
Update packages/rs-drive/src/drive/group/prove/prove_action_infos/mod.rs
QuantumExplorer 0755fcd
Update packages/rs-drive/src/drive/group/prove/prove_action_infos/mod.rs
QuantumExplorer 6d98f64
small improvements
QuantumExplorer 6d23e14
Merge branch 'feat/GroupQueries1' of github.com:dashpay/platform into…
QuantumExplorer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| use anyhow::bail; | ||
|
|
||
| #[derive(Debug, PartialEq, PartialOrd, Clone, Eq)] | ||
| pub enum GroupActionStatus { | ||
| ActionActive, | ||
| ActionClosed, | ||
| } | ||
|
|
||
| impl TryFrom<u8> for GroupActionStatus { | ||
| type Error = anyhow::Error; | ||
| fn try_from(value: u8) -> Result<Self, Self::Error> { | ||
| match value { | ||
| 0 => Ok(Self::ActionActive), | ||
| 1 => Ok(Self::ActionClosed), | ||
| value => bail!("unrecognized action status: {}", value), | ||
| } | ||
| } | ||
| } | ||
|
|
||
| impl TryFrom<i32> for GroupActionStatus { | ||
| type Error = anyhow::Error; | ||
| fn try_from(value: i32) -> Result<Self, Self::Error> { | ||
| match value { | ||
| 0 => Ok(Self::ActionActive), | ||
| 1 => Ok(Self::ActionClosed), | ||
| value => bail!("unrecognized action status: {}", value), | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.