OpenZeppelin / OpenZeppelin/openzeppelin-contracts

ERC1155Votes

Open
#3,757 11 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: governance
Dominant language
Solidity
Stars
27.2k
Forks
12.4k
Avg merge
2d 19h
Merged PRs (30d)
33

Description

What about ERC1155Votes?

🧐 Motivation

  1. seems to be the natural next step
  2. DAOs are looking for ways to separate themselves into smaller groups (guild/pods/etc), each with it's own responsibilities and power. The ERC1155 multi-token standard can help with that.

📝 Details
An implementation of Votes for the ERC1155 contract that will allow different voting weight for different tokens.

My thoughts is that this should be possible to implement in much the same method used here
https://github.com/toledoroy/openzeppelin-contracts_NFVotes/blob/master/contracts/token/ERC721/extensions/ERC721VotesNF.sol

Please share your thoughts 🙏

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the referenced contracts/token/ERC721/extensions/ERC721VotesNF.sol implementation and comparing it with the repository's ERC1155 and voting contracts. Clarify the API and voting-weight behavior for different token IDs before implementation; done should include an agreed ERC1155Votes design and corresponding tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.