Skip to content

Conversation

@prtk418
Copy link
Contributor

@prtk418 prtk418 commented Sep 1, 2022

Implements Voting module:

  • CreateVote Transaction message
  • VoteBook Record for storing vote casted among two participants
  • AggregateVoteCount Record for storing aggregated votes casted and received by an address

Unit tests:

  • Casting & Un casting valid positive votes
  • Casting & Un casting invalid positive votes
  • Casting & Un casting valid negative votes
  • Casting & Un casting invalid negative votes
  • Casting & Un casting valid positive & negative votes together

Steps to run tests:

  • go test "github.com/mande-labs/mande/v1/x/voting/keeper" [Will be moved to Makefile]

Added linting and formatting:

  • make lint
  • make format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants