https://github.com/complexlity/tally-daos
https://github.com/complexlity/tally-daos
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/complexlity/tally-daos
- Owner: Complexlity
- Created: 2024-02-26T09:22:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T13:35:40.000Z (about 2 years ago)
- Last Synced: 2025-01-26T01:28:30.649Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://tally-daos.vercel.app
- Size: 239 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Tally Active Daos
- Query https://www.tally.xyz/api/search-daos
(returns {governances: [...]} )
Found in [src/utils/getActiveProposalsOrganizations.ts](src/utils/getActiveProposalsOrganizations.ts)
**Update**:
The search-daos api route does not display all the active organizations. Using this endpoint instead:
`
query ExploreOrgs($input: OrganizationsInput!) {
organizations(input: $input) {
nodes {
... on Organization {
id
slug
name
chainIds
proposalsCount
activeProposalsCount
tokenHoldersCount
votersCount
governorIds
metadata {
icon
}
}
}
pageInfo {
firstCursor
lastCursor
}
}
}
`
Found in: [src/utils/getOrganizations.ts](src/utils/getOrganizations.ts)
- Clean data
- Query Proposals with each chain id using the gql query below
```
query GovernanceProposals( $chainId: ChainID!, $governanceIds: [AccountID!]) {
proposals(
chainId: $chainId
governanceIds: $governanceIds
) {
id
description
statusChanges {
type
}
block {
timestamp
}
voteStats {
votes
weight
support
percent
}
governance {
id
quorum
name
timelockId
organization {
metadata {
icon
}
}
tokens {
decimals
}
}
tallyProposal {
id
createdAt
status
}
}
}
```
Found in [src\utils\getActiveProposals.ts](src\utils\getActiveProposals.ts)
- Display on frame image for user
## Current State
- Some daos (optimism, reflex, etc) does not reflect the correct data due to syncing
-