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

introduce community treasuries MVP #401

Merged
merged 20 commits into from
Sep 10, 2024
Merged

introduce community treasuries MVP #401

merged 20 commits into from
Sep 10, 2024

Conversation

brenzi
Copy link
Member

@brenzi brenzi commented Aug 27, 2024

Motivation:

Specification:

  • each community has a unique, keyless AccountId which is derived from their cid
  • an rpc method exists that lets clients query the AccountId for a specified cid
  • a global treasury AccountId exists as well (which is implied by not specifying a cid)
  • a new ProposalAction::SpendNative(maybecid, beneficiary, amount) can spend treasury funds subject to democratic decision

Tasks

  • add pallet-encointer-treasuries with no dispatchables, just provides helpers for other pallets and rpc for clients
  • add ProposalAction::SpendNative(maybecid, beneficiary, amount) to democracy
  • extend democracy unit tests

Copy link
Contributor

@pifragile pifragile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm overall, only minor comments.

form a high level perspective, what is the rationale behind this? like if somebody wants to support a community, they can top up their treasury with native and then the community can decide on how they want to spend it?

treasuries/src/lib.rs Outdated Show resolved Hide resolved
treasuries/src/lib.rs Show resolved Hide resolved
Copy link
Member

@clangenb clangenb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pifragile pifragile self-requested a review September 4, 2024 02:54
@brenzi
Copy link
Member Author

brenzi commented Sep 10, 2024

  • published to crates.io

@brenzi brenzi merged commit 86d3e05 into master Sep 10, 2024
6 checks passed
fellowship-merge-bot bot pushed a commit to polkadot-fellows/runtimes that referenced this pull request Sep 26, 2024
Over the past few months, Encointer has developed a democracy pallet
with one-person-one-vote governance for local communities. We think
we're ready to experiment with our real communities on mainnet.

The governance scope of local democracy is restricted to 

* properties of the local community itself (like amount of [basic
community-issued income](https://book.encointer.org/economics-ubi.html))
* spending of its own treasury funds (currently restricted to KSM). see
[towards
sustainability](https://forum.polkadot.network/t/towards-encointer-self-sustainability/4195)
* petitions (`system.remark`)

Therefore, no special `Origin` is granted which could affect the KSM
token or other parts of Kusama.

In contrast to token voting on *OpenGov*, Encointer democracy aims at
**one-person-one-vote**, enabled by its sybil-resilient
proof-of-personhood protocol. In practice, it will be
one-cycle-attendance-one-vote, which is a pretty decent approximation
with some additional weight given to those who participate in the
protocol more actively

Relevant pallet code
* https://github.com/encointer/pallets/tree/master/democracy
* work partially funded by a [w3f
grant](https://grants.web3.foundation/applications/democratic-governance-1)
* https://github.com/encointer/pallets/tree/master/treasuries / [initial
MVP PR](encointer/pallets#401)

Design documents:
* https://book.encointer.org/protocol-democracy.html
* initial forum post introducing the design:
https://forum.polkadot.network/t/encointers-grassroots-democracy-prototype/9009

Testing on Testnet Gesell
* https://book.encointer.org/tutorials-democracy.html
* https://book.encointer.org/tutorials-treasuries.html

Testing with bot communities (check CI logs)
* encointer/encointer-node#370
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.

3 participants