Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Implement voteOn Proposal command #126

Closed
Tracked by #65
Naureen1lightcurve opened this issue Dec 19, 2022 · 0 comments · Fixed by #220 or #301
Closed
Tracked by #65

Implement voteOn Proposal command #126

Naureen1lightcurve opened this issue Dec 19, 2022 · 0 comments · Fixed by #220 or #301

Comments

@Naureen1lightcurve
Copy link
Contributor

Naureen1lightcurve commented Dec 19, 2022

Description

Create a command at the voteOnProposalCommand.ts in the commands folder Implement voteOnProposal command and Implement voteOnProposal command.

Acceptance Criteria

Following unit tests are implemented

  • voteOnProposal command returns an error when invalid timestamp such as one that is in the past or not a valid timestamp.
  • An error is returned when provided with an invalid voter address.
  • Voter is able to choose only one decision at a time.
  • An error is returned when voter has less than minimum staked tokens.
  • Event EVENT_NAME_PROPOSAL_VOTED is emitted.
@Naureen1lightcurve Naureen1lightcurve added this to the Sprint 17 milestone Dec 19, 2022
@Naureen1lightcurve Naureen1lightcurve changed the title Implement voteOn Proposal command Implement voteOn Proposal command Dec 19, 2022
@Irfan-Personal Irfan-Personal linked a pull request Feb 27, 2023 that will close this issue
@Naureen1lightcurve Naureen1lightcurve linked a pull request Mar 7, 2023 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.