Skip to content
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

added query to return info on voting tally for dispute #412

Merged
merged 5 commits into from
Nov 4, 2024

Conversation

CJPotter10
Copy link
Contributor

Added query to dispute module to get current voting tally for a dispute broken down by group. Changed reporter "available-tips" query to return their tips in Loya (precision of 6) instead of the normalized stored value (precision of 12)

…vailable-tips query in the reporter module to return their tips with a precision of 6 instead of 12 so they don't think they have a boat load of tips
@@ -171,3 +173,51 @@ func (s *KeeperTestSuite) TestOpenDisputesQuery() {
fmt.Println(resp)
require.Equal(2, len(resp.OpenDisputes.Ids))
}

func (s *KeeperTestSuite) TestTallyQuery() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice tests

@CJPotter10 CJPotter10 marked this pull request as ready for review November 4, 2024 17:35
@themandalore themandalore merged commit 5ff6785 into main Nov 4, 2024
3 checks passed
@themandalore themandalore deleted the chore/add-dispute-tally branch November 4, 2024 18:17
github-actions bot pushed a commit that referenced this pull request Nov 4, 2024
* added query to return info on voting tally for dispute. Changed the available-tips query in the reporter module to return their tips with a precision of 6 instead of 12 so they don't think they have a boat load of tips

* fixed test for AvailableTips

* fixed lint issues

* added team vote to the returned data

* added check for executed disputes to return a zero'ed BlockInfo Object

(cherry picked from commit 5ff6785)
tkernell pushed a commit that referenced this pull request Nov 4, 2024
* added query to return info on voting tally for dispute. Changed the available-tips query in the reporter module to return their tips with a precision of 6 instead of 12 so they don't think they have a boat load of tips

* fixed test for AvailableTips

* fixed lint issues

* added team vote to the returned data

* added check for executed disputes to return a zero'ed BlockInfo Object

(cherry picked from commit 5ff6785)

Co-authored-by: CJPotter10 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants