Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Index token balances #3

Open
0xekez opened this issue Sep 22, 2022 · 0 comments
Open

Index token balances #3

0xekez opened this issue Sep 22, 2022 · 0 comments
Assignees

Comments

@0xekez
Copy link
Contributor

0xekez commented Sep 22, 2022

Being able to visualize token balance distributions is super important for transparent governance!

In DAO DAO there are two kinds of token balances:

  1. Staked balances which are managed by the cw20-stake contract.
  2. Governance token balances which are managed by a cw20-base contract.

I've written an indexer for staked balances (which is largely untested) in the cw20-stake-indexer folder in this repository. We should build an indexer for cw20 balances! It can follow the design for the staked balances indexer, though it is not strictly necessary to include block heights for balances in the index (as those don't matter from the DAO DAO contract's perspective).

The end goal here is to build a data visualization into the UI which will display governance power distribution for a DAO.

image

@onewhiskeypls onewhiskeypls self-assigned this Oct 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants