Coder Social home page Coder Social logo

dao-voting-app's People

Contributors

beam-mw avatar iscander01 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dao-voting-app's Issues

Change proposal / Facilitator

Facilitator can Changed any proposal from the Future epoch ONLY.
He goes to The proposal. inside he can see to buttons: Delete proposal #26 and Change proposal
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A13512
Снимок экрана 2022-01-31 в 14 58 55

After he pushed "Change" proposal
Opens proposal window with all field fields
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A12751
Снимок экрана 2022-01-31 в 15 30 29

After all changes are done, and they suit all conditions #24
"create" - save all changes at the proposal
"cancel" - cancel any changes at the proposal

The proposal page, user don't voted / Current epoch

When the epoch begins all future proposals transform in present proposals.
The user comes to vote and will see how users voted for this proposal before him.
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=475%3A4415
Снимок экрана 2022-01-27 в 16 40 33

The progress line is painted in a way that is proportional to the number of votes received. the entire length is - total staked.

  1. Yes progress line - shows how many voices has been given for this proposal from the beginning
    of the current epoch
  2. No progress line - shows how many voices has been given for this proposal from the beginning
    of the current epoch.
  3. sum of No and Yes voices for this proposal
  4. If the quantity of Yes voices is less than quorum than red triangle.
  5. the quantity of Yes voices
  6. the quantity of No voices

The proposal page, no voices / Current epoch

When the epoch begins all future proposals transform in present proposals.
The first person who comes to vote will see voices blank Proposal.

https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=475%3A4886
Снимок экрана 2022-01-27 в 16 06 55

  1. the proposal number
  2. the title
  3. the publication date (date when proposal was created)
  4. the link to the forum discussion
  5. YES/No buttons
  6. Yes voices progress line
  7. Quorum line (separate task)
  8. No voices progress line
  9. Voting Info:
    9.1 Total staked
    9.2 Voted - total voted for the proposal (=0, if nobody have voted yet)
    9.3. Your staked - user's personal staked for current epoch
    9.4 Quorum + quorum notification (separate task)
  10. Proposal description (separate task for Facilitator)

all this steps create when Facilitator create proposal (separate task)
image

Create file where will be summarise all info about using graphical instruments

Voting https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=565%3A5063

  1. colors:
    Buttons (deposit, withdraw, etc)
    Progress line
    Thumb up, thumb down

  2. Text ( title, subtitle, other colors, texts)
    The head of the page, the main part, proposals card, etc

  3. Icons. Marked all icons (backside menu, currency), icons size

  4. deposit/withdraw pop-up standard. Colors, text with examples.

  5. Notifications proposal past/ failed https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=565%3A5063

  6. any other useful info

Delete proposal / Facilitator

Facilitator can delete any proposal from the Future epoch ONLY.
He goes to The proposal. inside he can see to buttons: Delete proposal and Change proposal #27
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A13512
Снимок экрана 2022-01-31 в 14 58 55

After he pushed the "Delete" he gets "are you sure" notification
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A13667\
Снимок экрана 2022-01-31 в 14 59 28

After confirmation the proposal will be deleted and facilitator gets notification
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A11263
Снимок экрана 2022-01-31 в 15 02 16

Change qurorum limit \ Facilitator

Change the quorum limit to total supply (BeamX = 100.000.000 and take % from its value) , and change name from "Total value locked" to "Total supply"
image

The head of voting

https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=442%3A1818

Снимок экрана 2022-01-26 в 16 26 41

  1. The app Name (Voting);

Information Staker's block:

  1. Current epoch number;
  2. Countdown timer until end of current epoch (days, hours, minutes);
    When the countdown shows less than an 1 hour - it becomes red.

https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=28%3A2387
Снимок экрана 2022-01-27 в 09 57 10
4. Total value Locked BeamX;
5. User’s staked BeamX - according to the rule ↓

Stake & Changes in stake in the current epoch
The only way to vote in the N epoch is to stake BeamX before the N epoch starts. The number of votes = the number of BeamX users have staked in the application before the beginning of the epoch.

The following options are available for BeamX:

If a stakeholder reduces stake in BeamX in the N epoch, then voting power is the minimum value of stake during the current voting epoch. 

If a stakeholder increases the amount of BeamX, it's voting power for the N epoch remains unchanged. The N+1 epoch increases proportionally to the increase in the stake in the N epoch (provided they don't reduce their stake during that time). All these restrictions were introduced to avoid hijacking and other manipulations.

To claim voter rewards, a voter must vote all proposals up in the current epoch.

The reward is calculated for BeamX stakeholders based on the sum of BeamX at the end of the epoch. Considering any changes in BeamX during the epoch. The reward is added to the BeamX stake and increases the voice power for the next epoch.
  1. Voting power at % in current epoch: Percentage user’s voting power from total voting value;
  2. Block to increase the amount of BeamX: click on the button "Deposit" a pop up to deposit BeamX; separate task
  3. Block BeamX to Beam: click on the "Withdraw" button, a pop up appears to output a BeamX; separate task
  4. Show my public key;
    https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=27%3A1696

Снимок экрана 2022-01-27 в 10 02 03

Add disable buttons if voted

If the user has voted, add disabling buttons for the duration of the transaction to avoid multiple transactions of 1 proposal.
During the transaction, add the text "vote in progress" for proposal

Facilitator and his opportunities

Facilitator (Beam Team Representative): The holder of the key that allows:

  1. Create a proposal by sending a special form; #24
  2. Changed a proposal in future epochs only; #25
  3. Delete Proposal. Facilitator could delete proposals in the future epochs ONLY; #26
  4. Establish a quorum for each proposal; #24

The personal account is the same as a BeamX stakeholder has. Two additions for Facilitator only:
Button to open Pop up “Form for publication of the Proposal”;
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A10652
Снимок экрана 2022-01-31 в 13 49 51

Button “Change Proposal” is active on every Proposal page;
Button “Delete Proposal” is active on every Proposal page for future epochs.
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A13512
Снимок экрана 2022-01-31 в 13 54 19

Deposit and Withdraw (Voting)

Quorum

Quorum - the minimum number of votes needed to be involved in accepting the proposal. If this minimum is not achieved, the vote will be invalid. The facilitator must establish a quorum. https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A13136
Any integer in the closed interval [0;100] if we use % or any integer number (voices) if we put quorum in BeamX.
Quorum published only for Yes choice.
can be 3 quorum types:

  1. no quorum
  2. quorum in BeamX
  3. quorum in % from total staked BeamX

1. no quorum
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A10413
image

2. quorum in BeamX
when the user put cursor on the quorum dot-line the explanation is shown
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=475%3A4162
image

3. quorum in % from total staked BeamX
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=475%3A4660
image

The future proposals list

https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=475%3A1917
Снимок экрана 2022-01-31 в 12 24 06

When a user clicks at "shows future proposals" he gets on the future proposals list of the N+1 epoch, where N - current epoch.
It's just a list of proposals without any marks and any possibility to vote.

The main differences from the main page:

  1. 'Back' button - goes back on the main page;
  2. Menu and Filters line:
    2.1. Future proposals
    2.2. Search line
    2.3. Epoch filter shows N+1 epoch.
    2.4 Proposal card: the number of the proposal, Title

Menu and Filters (Voting)

https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=442%3A1818
Снимок экрана 2022-01-27 в 10 23 46

  1. Proposals - just word.
  2. All, AWAITING YOUR VOTE, Your VOTEs:
    All - the list of all proposals
    AWAITING YOUR VOTE - the list of the proposals which user doesn't vote yet;
    Your VOTEs - the list of the proposals which user have already voted;
  3. Search string; separate task
  4. Epoch droplist filter;
    the list of epochs. always in position - current epoch, if user didn't choose other one.
    The number of future epoch appears in the drop list when even one proposal from this future epoch created.

Снимок экрана 2022-01-27 в 10 22 55

Change decision (change vote)

when the user changed his mind and decided to change his vote decision, he pushed the "changed decision"
Снимок экрана 2022-01-28 в 09 56 48

"changed decision" opens a pop-up
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A4152
Снимок экрана 2022-01-28 в 10 10 59

where can be 2 messages type:

  1. the user voted "no" -> "You voted NO. Are you sure you want to change your current decision in proposal “Proposal Title”?
  2. the user voted "yes" -> "You voted YES. Are you sure you want to change your current decision in proposal “Proposal Title”?

After he approve changing he goes to "not voted proposal page". his votes are subtracted from the previous decision.

https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=475%3A4415
Снимок экрана 2022-01-28 в 10 10 45

The past epoch proposals list/ " show old epochs" button

It's several ways to get to past eposchs proposal list:
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=442%3A1818
Снимок экрана 2022-01-27 в 13 51 10

to push the button at the bottom on the main page " show old epochs"
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=475%3A2882

Снимок экрана 2022-01-27 в 13 35 14

The list looks like the list on the present epoch, two adds:

  1. The total voting result
    1.1. Green - Proposal successfully passed
    1.2. Red - Proposal failed

  2. If user didn't voted for the proposal - "The epoch 13 is finished. You hadn’t voted".

Create proposal Button +notification / Facilitator

after Facilitator fill in all obligatory fields he can public proposal
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A12751
Снимок экрана 2022-01-31 в 14 41 21

notification for the wrong number is for Quorum only. #24
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A11570
Снимок экрана 2022-01-31 в 14 46 55

Quorum - integer number,
1 position %: 3 number max, integer in the closed interval [0;100];
2 BeamX position: integer number <= Total value locked BeamX for current epoch. If total value BeamX is withdrawn during the epoch - BeamX quorum position is stable till it <= Total value locked BeamX, then BeamX quorum position decrease at withdrawing quantity BeamX
!!!Any position with “0” or empty field - quorum line doesn’t show.

After everything is fine, button "create" pushed - proposal can be created.
Facilitator get notification
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A10956
Снимок экрана 2022-01-31 в 14 50 29

Extra page / Staked Info

Started page, if a user did nothing with staked amount

https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=1307%3A4290
Снимок экрана 2022-03-31 в 12 09 19

If user deposits some BeamX. Next Epoch staked changes
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=1307%3A3752
Снимок экрана 2022-03-31 в 12 12 13

If user withdraws some BeamX in the current epoch
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=1307%3A4021
Снимок экрана 2022-03-31 в 12 22 29

2 step changes: 1. user withdraws some BeamX and then 2. user deposits some BeamX
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=1307%3A3300
Снимок экрана 2022-03-31 в 12 24 48

Create proposal / Facilitator

Facilitator (Beam Team Representative): The holder of the key that allows:

Create a proposal by sending a special form
Снимок экрана 2022-01-31 в 14 15 55

after pushed the button form is opened
https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=507%3A13136

Снимок экрана 2022-01-31 в 14 18 22

The Proposal is published on one page, each block of text in the form is a new paragraph in the Proposal description.
If the field is not filled in, an empty paragraph does not appear in the description.

  1. Select the number of the epoch in which the Proposal will be published. Obligatory field. Could choose epoch: N+1, N+2, N+3, N+4, where N - is the current epoch;

  2. Proposal Title - text, obligatory field, 50 words max;

  3. Specification / Proposal Details - text, obligatory field; field must keep the format of the original document (paragraphs, lists, etc. );

  4. Quorum - integer number,
    4.1 position %: 3 number max, integer in the closed interval [0;100];
    4.2 BeamX position: integer number <= Total value locked BeamX for current epoch. If total value BeamX is withdrawn during the epoch - BeamX quorum position is stable till it <= Total value locked BeamX, then BeamX quorum position decrease at withdrawing quantity BeamX
    !!!Any position with “0” or empty field - quorum line doesn’t show.

  5. A link to a forum proposal discussion, obligatory field;

  6. Reference link - any kind of links;

  7. Total value locked - information for Facilitator, duplicate from the head.

  8. Button “Create” - save and publish Proposal, close Proposal form; #25

  9. Button “Cancel” - Cancel all changes and close the Proposal form.

**Proposal saved with a publication date in the listed epoch. If the proposal was the first in the epoch, the number of the epoch appears in the filter of the epochs. At the head of the voting page became a visible link “Show future votings”.
Еру sequence number is assigned automatically to the Proposal
**

Windows for deposit/withdraw buttons

  1. When we entered the amount and then reopened the window , the amount left entered should be 0
    https://user-images.githubusercontent.com/50007056/160416209-d1c3413f-2521-417f-aae8-6bd2cab3e563.mp4
  2. Change color for number 0 when we open window deposit to red if withdraw then to blue
    2022-03-28_16-44
    3.Change the month to English
    2022-03-28_16-58
  3. Limit the input after the dot for 8 numbers
    2022-03-28_17-09
    5.Change fee from 0.0011 to 0.011
    6.Make text in withdraw button to be in one line
    2022-03-28_17-12
  4. Make text in one line for deposit/ withdraw windows
    2022-03-28_17-26

The list of the proposals

https://www.figma.com/file/JJwEqNgraxVz0ernKj6ps3/voting?node-id=442%3A1818
Снимок экрана 2022-01-27 в 10 28 21

The list of the proposal cards.
At the beginning of the epoch, The proposals are numbered. When the user votes for any Proposal, this Proposal is dropped below ‘not voted’ Proposals.

Proposal card on the main page:

  1. The number of proposals;
  2. The title of the proposal (Title, Bold);
  3. Pending vote - the status of the proposal if user doesn't vote
    When user has voted for the proposal:
  4. The number of votes in beamX for the current proposal from all users. (voted Yes, voted No)
  5. An Icon user’s voting status for the proposal (thumbs up - voted yes, thumbs down - voted no);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.