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

[democracy] proposal submission #1744

Open
brenzi opened this issue Jan 14, 2025 · 0 comments
Open

[democracy] proposal submission #1744

brenzi opened this issue Jan 14, 2025 · 0 comments
Assignees

Comments

@brenzi
Copy link
Member

brenzi commented Jan 14, 2025

The app should allow submitting all kinds of proposals, for community level and global

User Story

  1. on democracy page, user taps (+) button to start submission of new proposal
  2. new page opens with a form to enter proposal data
  3. submit proposal

Proposal entry form:

  • ProposalAction (default to petition)
  • scope: global or currently selected cid (default to local, if allowed)
  • fields depending on proposal action.....
    • addlocation: text entry lat and lon
    • updateDemurrage: enter demurrage as percent per month (show current value)
    • updateNominalIncome: enter amount (show current amount)
    • setInactivityTimeout: enter number of cycles (show current value)
    • petition: enter text (bounded)
    • spenNative: beneficiary, amount (beneficiary same entry field as "send", with contacts and own accounts as dropdown)
    • issueSwapNativeOption:
      • beneficiary (beneficiary same entry field as "send", with contacts and own accounts as dropdown)
      • allowance: KSM value, apply decimals
      • rate: How many units of community currency will you pay to get one native token (decimals applied)
      • do_burn: hardcode to true,
      • validity/expiry: None
      • (optional) extension: hardcode a LUT CC/fiat + fetch KSM/fiat exchange rate and autofill rate

exclude:

  • remove location (because it needs to fetch existing locations to select the ones to delete)
  • updateMetadata

ProposalActions and scope:
https://github.com/encointer/pallets/blob/e68dc324d5a3bab217ecf06ce7d0239e24987ffd/primitives/src/democracy.rs#L70-L80

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

No branches or pull requests

2 participants