Skip to content

add whitelist to join dao extrinsic #211

@2075

Description

@2075

User Story

As #user I want to join a dao. based on the dao settings there are three ways to allow the user to call the join extrinsic and effectively join a dao:

  • open: no retrictions
  • prime: prime adds user wallet address to whitelist
  • voting: a dao voting adds the user wallet address to whitelist

Acceptance Criteria

A. simple poc route:

  • 1 add member state to organisation graph to allow frontend to list users to whitelist
  • 2 user calls join ext -> add state active or pending when private dao
  • 3 user join ext executes, but state pending
  • 4 prime changes state via ext to active

B. long term route

Part I

  • 1. user can call join ext for open dao and becomes member
  • 2. user can call join ext for private dao and gets rejected
  • 3. prime manually adds a list of addresses to the whitelist, users call ext to join and become member
  • 4. dao voting adds a list of addresses to the whitelist, users call ext to join and become member
    bonus level
  • 5. user calls apply ext which creates a proposal vote to whitelist address

Part II

  • add binary vote for prime
  • add binary vote for dao members
  • add auto create proposal for member applications
  • user create proposal containing address list

example

  • create a proposal containing a list
  • this list is contained in the voting
  • approval adds the list to whitelist

Additional Information

  • check parity whitelist pallet
  • if whitelist not sufficeint, we can use memberState and let all users call ext to join but state becomes pending and vote is initiated.

How to test

  1. call ext and become member

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions