MCPcopy Index your code
hub / github.com/TribecaHQ/tribeca

github.com/TribecaHQ/tribeca @v0.5.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.5.8 ↗ · + Follow
273 symbols 579 edges 69 files 48 documented · 18% updated 3y agov0.5.8 · 2022-06-23★ 1347 open issues

Browse by type

Functions 192 Types & classes 81
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

♜ Tribeca

License Build Status Contributors

<img src="https://github.com/TribecaHQ/tribeca/raw/v0.5.8/images/banner.png" />







An open standard and toolkit for launching DAOs on Solana.

About

Tribeca is an open source protocol for launching decentralized autonomous organizations on Solana. It is heavily inspired by the designs of Compound and Curve governance.

  • Built with Anchor. Tribeca is pluggable with other Anchor-based projects and tools, allowing for greater composability.
  • Modularity. Tribeca is built to be flexible and extensible, splitting out proposals/voting, transaction execution, and staking into three separate programs.
  • Hosted. The Tribeca DAO program is meant to be deployed as one instance of a program, similar to the SPL Token Program. It is an open standard that any other project can build upon, without requiring teams to deploy their own DAO or giving custody of user tokens to Tribeca.
  • Simplicity. Tribeca does as little as possible, giving DAOs the freedom to choose how their governance system operates.

For the most up-to-date documentation, please visit the official documentation site.

Note

  • Tribeca is in active development, so all APIs are subject to change.
  • This code is unaudited. Use at your own risk.

Packages

Package Description Version Docs
govern Handles proposals, voting, and queueing of transactions into a Smart Wallet. Crates.io Docs.rs
locked-voter Voter which locks up governance tokens for a user-provided duration in exchange for increased voting power. crates Docs.rs
simple-voter A simple Tribeca voter program where 1 token = 1 vote. crates Docs.rs
@tribecahq/tribeca-sdk TypeScript SDK for Tribeca npm Docs

Addresses

Program addresses are the same on devnet and mainnet-beta.

Documentation

The official documentation is hosted at docs.tribeca.so..

License

Tribeca Protocol is licensed under the GNU Affero General Public License v3.0.

In short, this means that any changes to this code must be made open source and available under the AGPL-v3.0 license, even if only used privately. If you have a need to use this program and cannot respect the terms of the license, please message us our team directly at team@tribeca.so.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 120
Class 73
Function 72
Enum 7
Interface 1

Languages

Rust59%
TypeScript41%

Modules by API surface

src/wrappers/lockedVoter/locker.ts21 symbols
src/wrappers/simpleVoter/electorate.ts19 symbols
src/wrappers/govern/governor.ts18 symbols
programs/simple-voter/src/lib.rs16 symbols
programs/govern/src/proposal.rs15 symbols
programs/locked-voter/src/lib.rs14 symbols
src/wrappers/lockedVoter/escrow.ts13 symbols
programs/locked-voter/src/state.rs11 symbols
programs/govern/src/lib.rs11 symbols
programs/govern/src/events.rs9 symbols
programs/govern/src/account_structs.rs9 symbols
src/sdk.ts8 symbols

For agents

$ claude mcp add tribeca \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page